Closed renezander90 closed 3 weeks ago
The comparison of a QuantumFloat with a number, or of two QuantumFloats with comparison operators ">,>=,<,<=,!=" does not work.
This ("==") does work:
from qrisp import * import numpy as np qf1 = QuantumFloat(2) qf2 = QuantumFloat(2) h(qf1) h(qf2) with qf1==qf2: gphase(np.pi,qf1[0]) qf1.qs.statevector()
For example, this ("<"):
from qrisp import * import numpy as np qf1 = QuantumFloat(2) qf2 = QuantumFloat(2) h(qf1) h(qf2) with qf1<qf2: gphase(np.pi,qf1[0]) qf1.qs.statevector()
yields an error:
KeyError: 'lt_ancilla.0'
This is fixed now.
The comparison of a QuantumFloat with a number, or of two QuantumFloats with comparison operators ">,>=,<,<=,!=" does not work.
This ("==") does work:
For example, this ("<"):
yields an error: