qrisp.QuantumFloat.sb_poly#
- QuantumFloat.sb_poly(m=0)[source]#
Returns the semi-boolean polynomial of this QuantumFloat where m specifies the image extension parameter.
For the technical details we refer to: https://ieeexplore.ieee.org/document/9815035
- Parameters:
- mint, optional
Image extension parameter. The default is 0.
- Returns:
- Sympy expression
The semi-boolean polynomial of this QuantumFloat.
Examples
>>> from qrisp import QuantumFloat >>> x = QuantumFloat(3, -1, signed = True, name = "x") >>> print(x.sb_poly(5)) 0.5*x_0 + 1.0*x_1 + 2.0*x_2 + 28.0*x_3