Skip to content

Commit e45c10c

Browse files
committed
saving remaining work before move to codegen
1 parent 9427571 commit e45c10c

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

src/bloqade/squin/qubit.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ class MeasureAndReset(ir.Statement):
4848
result: ir.ResultValue = info.result(types.Int)
4949

5050

51+
# MZ -> RZ
52+
# MRZ (never really used, but could have performance benefit)
53+
#
54+
55+
5156
@statement(dialect=dialect)
5257
class Reset(ir.Statement):
5358
qubits: ir.SSAValue = info.argument(ilist.IListType[QubitType])

src/bloqade/stim/dialects/aux/stmts/annotate.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,7 @@ class NewPauliString(ir.Statement):
4545
flipped: tuple[ir.SSAValue, ...] = info.argument(types.Bool)
4646
targets: tuple[ir.SSAValue, ...] = info.argument(types.Int)
4747
result: ir.ResultValue = info.result(type=PauliStringType)
48+
49+
50+
# dialect_group = squin_extended = squin in bloqade-circuit + physical in bloqade-qec
51+
# Chen will need squin -> Stim rewrite IF it is a subroutine of rewrite from bloqade-qec extension

test/squin/stim/stim.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,8 @@ def test_wire_apply_site_verification():
424424
squin_to_stim(constructed_method)
425425

426426

427+
test_wire_measure()
428+
427429
# test_wire_measure_and_reset()
428430
# test_qubit_measure_and_reset()
429431
# test_wire_reset()

0 commit comments

Comments
 (0)