File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ def less_than(a, b):
128
128
if isinstance (a , QuantumFloat ) and isinstance (b , QuantumFloat ):
129
129
lt_gate = less_than_gate (a , b )
130
130
131
- lt_qbl = QuantumBool ()
131
+ lt_qbl = QuantumBool (qs = a . qs , name = "lt_qbl*" )
132
132
133
133
anc_amount = lt_gate .num_qubits - a .size - b .size - 1
134
134
@@ -163,7 +163,7 @@ def less_than(a, b):
163
163
164
164
lt_gate = less_than_gate (a , b )
165
165
166
- lt_qbl = QuantumBool ()
166
+ lt_qbl = QuantumBool (qs = a . qs , name = "lt_qbl*" )
167
167
168
168
anc_amount = lt_gate .num_qubits - a .size - 1
169
169
@@ -205,7 +205,7 @@ def less_than(a, b):
205
205
def equal (qf_0 , qf_1 ):
206
206
from qrisp import QuantumBool , QuantumFloat , cx , mcx
207
207
208
- eq_qbl = QuantumBool ()
208
+ eq_qbl = QuantumBool (qs = qf_0 . qs , name = "eq_qbl*" )
209
209
210
210
if isinstance (qf_1 , QuantumFloat ):
211
211
if qf_1 .signed and not qf_0 .signed :
You can’t perform that action at this time.
0 commit comments