You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider the following example where a gphase is applied upon the control qubit being in state 0:
from qrisp import *
qf = QuantumFloat(2)
case_indicator = QuantumFloat(1)
h(case_indicator)
#with control(case_indicator,ctrl_state=1): # DOES WORK
with control(case_indicator,ctrl_state=0): # DOES NOT WORK
gphase(np.pi,qf[0])
print(qf.qs.statevector())
Yields:
AttributeError: 'int' object has no attribute 'identifier'
The text was updated successfully, but these errors were encountered:
Consider the following example where a gphase is applied upon the control qubit being in state 0:
Yields:
The text was updated successfully, but these errors were encountered: