Skip to content

Commit 7c7a1ee

Browse files
committed
Fix get_qubit_id test
1 parent d0c6ce7 commit 7c7a1ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/squin/test_qubit.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def main():
1919
main.print()
2020
assert main.return_type.is_subseteq(types.Int)
2121

22-
@squin.kernel
22+
@squin.kernel(fold=False)
2323
def main2():
2424
q = squin.qalloc(2)
2525

@@ -34,10 +34,10 @@ def main2():
3434

3535
if m1_id != 0:
3636
# do something that errors
37-
squin.x(q[4])
37+
q[0] + 1
3838

3939
if m2_id != 1:
40-
squin.x(q[4])
40+
q[0] + 1
4141

4242
return squin.broadcast.measure(q)
4343

0 commit comments

Comments
 (0)