Skip to content

Commit aedd527

Browse files
committed
Fix test and bug
1 parent f596757 commit aedd527

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/bloqade/pyqrack/squin/runtime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def control_apply(self, *qubits: PyQrackQubit, adjoint: bool = False) -> None:
3838
ctrls = [qbit.addr for qbit in qubits[:-1]]
3939
target = qubits[-1]
4040
method_name = self.get_method_name(adjoint=adjoint, control=True)
41-
getattr(target.sim_reg, method_name)(target.addr, ctrls)
41+
getattr(target.sim_reg, method_name)(ctrls, target.addr)
4242

4343

4444
@dataclass(frozen=True)

test/pyqrack/test_squin.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def test_rot():
218218
def main():
219219
q = squin.qubit.new(1)
220220
x = squin.op.x()
221-
r = squin.op.rot(x, math.pi / 2)
221+
r = squin.op.rot(x, math.pi)
222222
squin.qubit.apply(r, q)
223223
return squin.qubit.measure(q)
224224

@@ -238,4 +238,5 @@ def main():
238238
# test_phase()
239239
# test_sp()
240240
# test_adjoint()
241-
# test_rot()
241+
# for i in range(100):
242+
# test_rot()

0 commit comments

Comments
 (0)