Skip to content

Commit c77c205

Browse files
david-plweinbe58
andauthored
cast qubit measure to bool
Co-authored-by: Phillip Weinberg <[email protected]>
1 parent e445064 commit c77c205

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bloqade/pyqrack/squin/qubit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def broadcast(
4545

4646
def _measure_qubit(self, qbit: PyQrackQubit):
4747
if qbit.is_active():
48-
return qbit.sim_reg.m(qbit.addr)
48+
return bool(qbit.sim_reg.m(qbit.addr))
4949

5050
@interp.impl(qubit.MeasureQubitList)
5151
def measure_qubit_list(

0 commit comments

Comments
 (0)