bloqade-circuit 0.7.7__tar.gz → 0.7.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of bloqade-circuit might be problematic. Click here for more details.

Files changed (420) hide show
  1. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/.github/workflows/ci.yml +1 -1
  2. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/PKG-INFO +4 -5
  3. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/pyproject.toml +4 -5
  4. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/cirq_utils/__init__.py +1 -1
  5. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/cirq_utils/noise/model.py +4 -3
  6. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/cirq_utils/parallelize.py +9 -6
  7. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/pyqrack/base.py +6 -0
  8. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/pyqrack/reg.py +6 -1
  9. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/pyqrack/squin/noise/native.py +1 -1
  10. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/pyqrack/squin/qubit.py +20 -3
  11. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/cirq/lowering.py +5 -0
  12. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/qubit.py +25 -2
  13. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/cirq_utils/test_parallelize.py +2 -2
  14. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/squin/cirq/test_cirq_to_squin.py +6 -0
  15. bloqade_circuit-0.7.8/test/squin/test_qubit.py +48 -0
  16. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/uv.lock +26 -18
  17. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/.github/dependabot.yml +0 -0
  18. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/.github/workflows/isort.yml +0 -0
  19. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/.github/workflows/lint.yml +0 -0
  20. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/.github/workflows/release.yml +0 -0
  21. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/.gitignore +0 -0
  22. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/.pre-commit-config.yaml +0 -0
  23. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/LICENSE +0 -0
  24. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/README.md +0 -0
  25. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/_typos.toml +0 -0
  26. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/justfile +0 -0
  27. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/analysis/__init__.py +0 -0
  28. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/analysis/address/__init__.py +0 -0
  29. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/analysis/address/analysis.py +0 -0
  30. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/analysis/address/impls.py +0 -0
  31. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/analysis/address/lattice.py +0 -0
  32. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/analysis/fidelity/__init__.py +0 -0
  33. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/analysis/fidelity/analysis.py +0 -0
  34. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/analysis/measure_id/__init__.py +0 -0
  35. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/analysis/measure_id/analysis.py +0 -0
  36. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/analysis/measure_id/impls.py +0 -0
  37. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/analysis/measure_id/lattice.py +0 -0
  38. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/cirq_utils/lineprog.py +0 -0
  39. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/cirq_utils/noise/__init__.py +0 -0
  40. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/cirq_utils/noise/_two_zone_utils.py +0 -0
  41. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/cirq_utils/noise/conflict_graph.py +0 -0
  42. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/cirq_utils/noise/transform.py +0 -0
  43. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/device.py +0 -0
  44. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/native/__init__.py +0 -0
  45. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/native/_prelude.py +0 -0
  46. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/native/dialects/__init__.py +0 -0
  47. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/native/dialects/gates/__init__.py +0 -0
  48. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/native/dialects/gates/_dialect.py +0 -0
  49. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/native/dialects/gates/_interface.py +0 -0
  50. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/native/dialects/gates/stmts.py +0 -0
  51. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/native/stdlib/__init__.py +0 -0
  52. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/native/stdlib/broadcast.py +0 -0
  53. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/native/stdlib/simple.py +0 -0
  54. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/pyqrack/__init__.py +0 -0
  55. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/pyqrack/device.py +0 -0
  56. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/pyqrack/native.py +0 -0
  57. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/pyqrack/noise/__init__.py +0 -0
  58. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/pyqrack/noise/native.py +0 -0
  59. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/pyqrack/qasm2/__init__.py +0 -0
  60. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/pyqrack/qasm2/core.py +0 -0
  61. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/pyqrack/qasm2/glob.py +0 -0
  62. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/pyqrack/qasm2/parallel.py +0 -0
  63. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/pyqrack/qasm2/uop.py +0 -0
  64. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/pyqrack/squin/__init__.py +0 -0
  65. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/pyqrack/squin/noise/__init__.py +0 -0
  66. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/pyqrack/squin/op.py +0 -0
  67. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/pyqrack/squin/runtime.py +0 -0
  68. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/pyqrack/squin/wire.py +0 -0
  69. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/pyqrack/target.py +0 -0
  70. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/pyqrack/task.py +0 -0
  71. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/__init__.py +0 -0
  72. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/_qasm_loading.py +0 -0
  73. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/_wrappers.py +0 -0
  74. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/dialects/__init__.py +0 -0
  75. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/dialects/core/__init__.py +0 -0
  76. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/dialects/core/_dialect.py +0 -0
  77. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/dialects/core/_emit.py +0 -0
  78. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/dialects/core/_typeinfer.py +0 -0
  79. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/dialects/core/address.py +0 -0
  80. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/dialects/core/stmts.py +0 -0
  81. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/dialects/expr/__init__.py +0 -0
  82. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/dialects/expr/_dialect.py +0 -0
  83. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/dialects/expr/_emit.py +0 -0
  84. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/dialects/expr/_from_python.py +0 -0
  85. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/dialects/expr/_interp.py +0 -0
  86. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/dialects/expr/stmts.py +0 -0
  87. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/dialects/glob.py +0 -0
  88. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/dialects/indexing.py +0 -0
  89. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/dialects/inline.py +0 -0
  90. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/dialects/noise/__init__.py +0 -0
  91. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/dialects/noise/_dialect.py +0 -0
  92. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/dialects/noise/fidelity.py +0 -0
  93. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/dialects/noise/model.py +0 -0
  94. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/dialects/noise/stmts.py +0 -0
  95. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/dialects/parallel.py +0 -0
  96. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/dialects/uop/__init__.py +0 -0
  97. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/dialects/uop/_dialect.py +0 -0
  98. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/dialects/uop/_emit.py +0 -0
  99. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/dialects/uop/schedule.py +0 -0
  100. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/dialects/uop/stmts.py +0 -0
  101. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/emit/__init__.py +0 -0
  102. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/emit/base.py +0 -0
  103. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/emit/gate.py +0 -0
  104. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/emit/impls/__init__.py +0 -0
  105. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/emit/impls/noise.py +0 -0
  106. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/emit/main.py +0 -0
  107. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/emit/target.py +0 -0
  108. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/glob.py +0 -0
  109. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/groups.py +0 -0
  110. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/noise.py +0 -0
  111. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/parallel.py +0 -0
  112. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/parse/__init__.py +0 -0
  113. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/parse/ast.py +0 -0
  114. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/parse/build.py +0 -0
  115. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/parse/lowering.py +0 -0
  116. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/parse/parser.py +0 -0
  117. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/parse/print.py +0 -0
  118. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/parse/qasm2.lark +0 -0
  119. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/parse/visitor.py +0 -0
  120. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/parse/visitor.pyi +0 -0
  121. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/passes/__init__.py +0 -0
  122. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/passes/fold.py +0 -0
  123. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/passes/glob.py +0 -0
  124. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/passes/lift_qubits.py +0 -0
  125. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/passes/noise.py +0 -0
  126. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/passes/parallel.py +0 -0
  127. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/passes/py2qasm.py +0 -0
  128. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/passes/qasm2py.py +0 -0
  129. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/passes/unroll_if.py +0 -0
  130. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/rewrite/__init__.py +0 -0
  131. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/rewrite/desugar.py +0 -0
  132. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/rewrite/glob.py +0 -0
  133. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/rewrite/insert_qubits.py +0 -0
  134. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/rewrite/native_gates.py +0 -0
  135. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/rewrite/noise/__init__.py +0 -0
  136. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/rewrite/noise/heuristic_noise.py +0 -0
  137. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/rewrite/noise/remove_noise.py +0 -0
  138. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/rewrite/parallel_to_glob.py +0 -0
  139. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/rewrite/parallel_to_uop.py +0 -0
  140. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/rewrite/register.py +0 -0
  141. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/rewrite/uop_to_parallel.py +0 -0
  142. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qasm2/types.py +0 -0
  143. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qbraid/__init__.py +0 -0
  144. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qbraid/lowering.py +0 -0
  145. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qbraid/schema.py +0 -0
  146. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qbraid/simulation_result.py +0 -0
  147. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/qbraid/target.py +0 -0
  148. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/rewrite/__init__.py +0 -0
  149. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/rewrite/passes/__init__.py +0 -0
  150. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/rewrite/passes/canonicalize_ilist.py +0 -0
  151. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/rewrite/rules/__init__.py +0 -0
  152. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/rewrite/rules/flatten_ilist.py +0 -0
  153. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/rewrite/rules/inline_getitem_ilist.py +0 -0
  154. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/rewrite/rules/split_ifs.py +0 -0
  155. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/__init__.py +0 -0
  156. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/_typeinfer.py +0 -0
  157. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/analysis/__init__.py +0 -0
  158. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/analysis/address_impl.py +0 -0
  159. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/analysis/nsites/__init__.py +0 -0
  160. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/analysis/nsites/analysis.py +0 -0
  161. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/analysis/nsites/impls.py +0 -0
  162. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/analysis/nsites/lattice.py +0 -0
  163. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/analysis/schedule.py +0 -0
  164. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/cirq/__init__.py +0 -0
  165. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/cirq/emit/emit_circuit.py +0 -0
  166. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/cirq/emit/noise.py +0 -0
  167. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/cirq/emit/op.py +0 -0
  168. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/cirq/emit/qubit.py +0 -0
  169. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/cirq/emit/runtime.py +0 -0
  170. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/groups.py +0 -0
  171. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/lowering.py +0 -0
  172. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/noise/__init__.py +0 -0
  173. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/noise/_dialect.py +0 -0
  174. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/noise/_wrapper.py +0 -0
  175. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/noise/rewrite.py +0 -0
  176. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/noise/stmts.py +0 -0
  177. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/op/__init__.py +0 -0
  178. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/op/_dialect.py +0 -0
  179. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/op/_wrapper.py +0 -0
  180. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/op/number.py +0 -0
  181. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/op/rewrite.py +0 -0
  182. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/op/stdlib.py +0 -0
  183. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/op/stmts.py +0 -0
  184. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/op/traits.py +0 -0
  185. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/op/types.py +0 -0
  186. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/parallel.py +0 -0
  187. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/rewrite/U3_to_clifford.py +0 -0
  188. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/rewrite/__init__.py +0 -0
  189. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/rewrite/canonicalize.py +0 -0
  190. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/rewrite/desugar.py +0 -0
  191. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/rewrite/remove_dangling_qubits.py +0 -0
  192. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/rewrite/wrap_analysis.py +0 -0
  193. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/stdlib/__init__.py +0 -0
  194. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/stdlib/channel.py +0 -0
  195. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/stdlib/gate.py +0 -0
  196. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/types.py +0 -0
  197. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/squin/wire.py +0 -0
  198. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/__init__.py +0 -0
  199. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/_wrappers.py +0 -0
  200. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/dialects/__init__.py +0 -0
  201. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/dialects/auxiliary/__init__.py +0 -0
  202. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/dialects/auxiliary/_dialect.py +0 -0
  203. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/dialects/auxiliary/emit.py +0 -0
  204. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/dialects/auxiliary/interp.py +0 -0
  205. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/dialects/auxiliary/lowering.py +0 -0
  206. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/dialects/auxiliary/stmts/__init__.py +0 -0
  207. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/dialects/auxiliary/stmts/annotate.py +0 -0
  208. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/dialects/auxiliary/stmts/const.py +0 -0
  209. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/dialects/auxiliary/types.py +0 -0
  210. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/dialects/collapse/__init__.py +0 -0
  211. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/dialects/collapse/_dialect.py +0 -0
  212. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/dialects/collapse/emit_str.py +0 -0
  213. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/dialects/collapse/stmts/__init__.py +0 -0
  214. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/dialects/collapse/stmts/measure.py +0 -0
  215. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/dialects/collapse/stmts/pp_measure.py +0 -0
  216. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/dialects/collapse/stmts/reset.py +0 -0
  217. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/dialects/gate/__init__.py +0 -0
  218. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/dialects/gate/_dialect.py +0 -0
  219. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/dialects/gate/emit.py +0 -0
  220. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/dialects/gate/stmts/__init__.py +0 -0
  221. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/dialects/gate/stmts/base.py +0 -0
  222. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/dialects/gate/stmts/clifford_1q.py +0 -0
  223. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/dialects/gate/stmts/clifford_2q.py +0 -0
  224. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/dialects/gate/stmts/control_2q.py +0 -0
  225. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/dialects/gate/stmts/pp.py +0 -0
  226. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/dialects/noise/__init__.py +0 -0
  227. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/dialects/noise/_dialect.py +0 -0
  228. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/dialects/noise/emit.py +0 -0
  229. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/dialects/noise/stmts.py +0 -0
  230. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/emit/__init__.py +0 -0
  231. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/emit/stim_str.py +0 -0
  232. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/groups.py +0 -0
  233. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/parse/__init__.py +0 -0
  234. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/parse/lowering.py +0 -0
  235. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/passes/__init__.py +0 -0
  236. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/passes/simplify_ifs.py +0 -0
  237. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/passes/squin_to_stim.py +0 -0
  238. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/rewrite/__init__.py +0 -0
  239. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/rewrite/ifs_to_stim.py +0 -0
  240. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/rewrite/py_constant_to_stim.py +0 -0
  241. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/rewrite/qubit_to_stim.py +0 -0
  242. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/rewrite/squin_measure.py +0 -0
  243. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/rewrite/squin_noise.py +0 -0
  244. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/rewrite/util.py +0 -0
  245. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/rewrite/wire_identity_elimination.py +0 -0
  246. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/rewrite/wire_to_stim.py +0 -0
  247. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/upstream/__init__.py +0 -0
  248. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/stim/upstream/from_squin.py +0 -0
  249. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/task.py +0 -0
  250. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/test_utils.py +0 -0
  251. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/types.py +0 -0
  252. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/visual/__init__.py +0 -0
  253. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/visual/animation/__init__.py +0 -0
  254. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/visual/animation/animate.py +0 -0
  255. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/visual/animation/base.py +0 -0
  256. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/visual/animation/gate_event.py +0 -0
  257. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/visual/animation/runtime/__init__.py +0 -0
  258. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/visual/animation/runtime/aod.py +0 -0
  259. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/visual/animation/runtime/atoms.py +0 -0
  260. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/visual/animation/runtime/ppoly.py +0 -0
  261. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/visual/animation/runtime/qpustate.py +0 -0
  262. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/src/bloqade/visual/animation/runtime/utils.py +0 -0
  263. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/__init__.py +0 -0
  264. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/analysis/address/test_qubit_analysis.py +0 -0
  265. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/analysis/address/test_wire_analysis.py +0 -0
  266. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/analysis/address/util.py +0 -0
  267. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/analysis/fidelity/test_fidelity.py +0 -0
  268. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/analysis/measure_id/test_measure_id.py +0 -0
  269. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/cirq_utils/noise/test_noise_models.py +0 -0
  270. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/cirq_utils/noise/test_noisy_ghz.py +0 -0
  271. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/cirq_utils/noise/test_one_zone_correlated_noise.py +0 -0
  272. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/cirq_utils/test_lpsolvers.py +0 -0
  273. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/cirq_utils/test_transpile.py +0 -0
  274. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/native/__init__.py +0 -0
  275. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/native/test_stdlib.py +0 -0
  276. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/pyqrack/__init__.py +0 -0
  277. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/pyqrack/runtime/__init__.py +0 -0
  278. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/pyqrack/runtime/noise/__init__.py +0 -0
  279. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/pyqrack/runtime/noise/qasm2/test_loss.py +0 -0
  280. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/pyqrack/runtime/noise/qasm2/test_pauli.py +0 -0
  281. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/pyqrack/runtime/test_dyn_memory.py +0 -0
  282. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/pyqrack/runtime/test_qrack.py +0 -0
  283. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/pyqrack/squin/test_kernel.py +0 -0
  284. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/pyqrack/squin/test_noise.py +0 -0
  285. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/pyqrack/test_target.py +0 -0
  286. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/__init__.py +0 -0
  287. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/analysis/test_dag.py +0 -0
  288. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/emit/test_extended.py +0 -0
  289. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/emit/test_extended_noise.py +0 -0
  290. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/emit/test_qasm2.py +0 -0
  291. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/emit/test_qasm2_emit.py +0 -0
  292. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/parse/__init__.py +0 -0
  293. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/parse/invalid_programs/invalid_if.qasm +0 -0
  294. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/parse/programs/README.md +0 -0
  295. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/parse/programs/global.qasm +0 -0
  296. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/parse/programs/iqft1.qasm +0 -0
  297. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/parse/programs/main.qasm +0 -0
  298. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/parse/programs/noise.qasm +0 -0
  299. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/parse/programs/para.qasm +0 -0
  300. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/parse/programs/process_tomo.qasm +0 -0
  301. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/parse/programs/qelib1.inc +0 -0
  302. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/parse/programs/qft.qasm +0 -0
  303. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/parse/programs/qft2.qasm +0 -0
  304. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/parse/programs/rb.qasm +0 -0
  305. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/parse/programs/rep_code.qasm +0 -0
  306. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/parse/programs/ripple_carry_adder.qasm +0 -0
  307. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/parse/programs/tele.qasm +0 -0
  308. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/parse/programs/valid_if.qasm +0 -0
  309. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/parse/test_ast.py +0 -0
  310. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/parse/test_roundtrip.py +0 -0
  311. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/passes/__init__.py +0 -0
  312. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/passes/test_global_to_parallel.py +0 -0
  313. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/passes/test_global_to_uop.py +0 -0
  314. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/passes/test_heuristic_noise.py +0 -0
  315. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/passes/test_parallel_to_global.py +0 -0
  316. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/passes/test_parallel_to_uop.py +0 -0
  317. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/passes/test_qasm2py.py +0 -0
  318. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/passes/test_unroll_if.py +0 -0
  319. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/passes/test_uop_to_parallel.py +0 -0
  320. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/test_count.py +0 -0
  321. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/test_inline.py +0 -0
  322. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/test_lowering.py +0 -0
  323. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/test_native.py +0 -0
  324. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qasm2/test_two2one.py +0 -0
  325. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qbraid/__init__.py +0 -0
  326. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qbraid/test_clean_circuit.py +0 -0
  327. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qbraid/test_lowering.py +0 -0
  328. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/qbraid/test_target.py +0 -0
  329. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/sample/__init__.py +0 -0
  330. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/sample/test_noise_model.py +0 -0
  331. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/squin/analysis/test_nsites_analysis.py +0 -0
  332. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/squin/cirq/test_squin_noise_to_cirq.py +0 -0
  333. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/squin/cirq/test_squin_to_cirq.py +0 -0
  334. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/squin/op/test_reset.py +0 -0
  335. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/squin/rewrite/test_U3_to_clifford.py +0 -0
  336. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/squin/rewrite/test_canonicalize.py +0 -0
  337. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/squin/rewrite/test_desugar.py +0 -0
  338. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/squin/rewrite/test_mult_rewrite.py +0 -0
  339. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/squin/test_constprop.py +0 -0
  340. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/squin/test_stdlib_shorthands.py +0 -0
  341. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/squin/test_sugar.py +0 -0
  342. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/squin/test_typeinfer.py +0 -0
  343. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/squin/wire/__init__.py +0 -0
  344. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/squin/wire/test_check.py +0 -0
  345. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/__init__.py +0 -0
  346. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/dialects/__init__.py +0 -0
  347. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/dialects/stim/__init__.py +0 -0
  348. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/dialects/stim/emit/__init__.py +0 -0
  349. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/dialects/stim/emit/base.py +0 -0
  350. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/dialects/stim/emit/test_stim_1q.py +0 -0
  351. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/dialects/stim/emit/test_stim_ctrl.py +0 -0
  352. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/dialects/stim/emit/test_stim_detector.py +0 -0
  353. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/dialects/stim/emit/test_stim_meas.py +0 -0
  354. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/dialects/stim/emit/test_stim_noise.py +0 -0
  355. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/dialects/stim/emit/test_stim_obs_inc.py +0 -0
  356. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/dialects/stim/emit/test_stim_ppmeas.py +0 -0
  357. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/dialects/stim/emit/test_stim_qubit_coords.py +0 -0
  358. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/dialects/stim/emit/test_stim_spp.py +0 -0
  359. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/dialects/stim/test_stim_circuits.py +0 -0
  360. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/dialects/stim/test_stim_const.py +0 -0
  361. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/parse/__init__.py +0 -0
  362. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/parse/base.py +0 -0
  363. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/parse/test_parse.py +0 -0
  364. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/parse/test_parse_clifford.py +0 -0
  365. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/parse/test_parse_control.py +0 -0
  366. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/parse/test_parse_custom.py +0 -0
  367. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/parse/test_parse_noise.py +0 -0
  368. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/parse/test_parse_spp.py +0 -0
  369. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/__init__.py +0 -0
  370. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/noise/apply_depolarize1.stim +0 -0
  371. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/noise/apply_loss.stim +0 -0
  372. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/noise/apply_pauli_channel_1.stim +0 -0
  373. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/noise/broadcast_depolarize1.stim +0 -0
  374. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/noise/broadcast_depolarize2.stim +0 -0
  375. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/noise/broadcast_iid_bit_flip_channel.stim +0 -0
  376. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/noise/broadcast_iid_phase_flip_channel.stim +0 -0
  377. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/noise/broadcast_iid_y_flip_channel.stim +0 -0
  378. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/noise/broadcast_pauli_channel_1.stim +0 -0
  379. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/noise/broadcast_pauli_channel_1_many_qubits.stim +0 -0
  380. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/noise/broadcast_pauli_channel_1_reuse.stim +0 -0
  381. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/noise/broadcast_pauli_channel_2.stim +0 -0
  382. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/noise/broadcast_pauli_channel_2_reuse_on_4_qubits.stim +0 -0
  383. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/noise/wire_apply_pauli_channel_1.stim +0 -0
  384. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/pure_squin_rewrite.txt +0 -0
  385. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/qubit/addition_assignment_measure.stim +0 -0
  386. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/qubit/alias_with_measure_list.stim +0 -0
  387. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/qubit/complex_storage_index_order.stim +0 -0
  388. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/qubit/for_loop_nontrivial_index.stim +0 -0
  389. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/qubit/measure_desugar.stim +0 -0
  390. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/qubit/nested_for_loop.stim +0 -0
  391. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/qubit/nested_list.stim +0 -0
  392. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/qubit/non_pure_loop_iterator.stim +0 -0
  393. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/qubit/pick_if_else.stim +0 -0
  394. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/qubit/qubit.stim +0 -0
  395. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/qubit/qubit_broadcast.stim +0 -0
  396. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/qubit/qubit_loss.stim +0 -0
  397. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/qubit/qubit_reset.stim +0 -0
  398. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/qubit/record_index_order.stim +0 -0
  399. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/qubit/simple_if_rewrite.stim +0 -0
  400. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/qubit/u3_to_clifford.stim +0 -0
  401. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/wire/wire.stim +0 -0
  402. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/wire/wire_apply.stim +0 -0
  403. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/wire/wire_apply_control.stim +0 -0
  404. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/wire/wire_broadcast.stim +0 -0
  405. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/wire/wire_broadcast_control.stim +0 -0
  406. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/wire/wire_measure.stim +0 -0
  407. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/wire/wire_multiple_apply.stim +0 -0
  408. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/wire/wire_qubit_loss.stim +0 -0
  409. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/stim_reference_programs/wire/wire_reset.stim +0 -0
  410. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/test_squin_meas_to_stim.py +0 -0
  411. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/test_squin_noise_to_stim.py +0 -0
  412. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/test_squin_qubit_to_stim.py +0 -0
  413. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/passes/test_squin_wire_to_stim.py +0 -0
  414. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/test_measure_id_analysis.py +0 -0
  415. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/wrapper/__init__.py +0 -0
  416. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/stim/wrapper/test_wrapper.py +0 -0
  417. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/test_serialization.py +0 -0
  418. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/test_zone_model.py +0 -0
  419. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/visual/__init__.py +0 -0
  420. {bloqade_circuit-0.7.7 → bloqade_circuit-0.7.8}/test/visual/test_utils.py +0 -0
@@ -30,7 +30,7 @@ jobs:
30
30
  - name: Set up Python ${{ matrix.python-version }}
31
31
  run: uv python install ${{ matrix.python-version }}
32
32
  - name: Install the project
33
- run: uv sync --dev --all-extras --no-extra pyqrack-cuda
33
+ run: uv sync --dev --all-extras --no-extra pyqrack-cuda --no-extra pyqrack-opencl
34
34
  - name: Run tests
35
35
  # For example, using `pytest`
36
36
  run: uv run just coverage
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bloqade-circuit
3
- Version: 0.7.7
3
+ Version: 0.7.8
4
4
  Summary: The software development toolkit for neutral atom arrays.
5
5
  Author-email: Roger-luo <rluo@quera.com>, kaihsin <khwu@quera.com>, weinbe58 <pweinberg@quera.com>, johnzl-777 <jlong@quera.com>
6
6
  License-File: LICENSE
@@ -9,8 +9,7 @@ Requires-Dist: kirin-toolchain~=0.17.23
9
9
  Requires-Dist: numpy>=1.22.0
10
10
  Requires-Dist: pandas>=2.2.3
11
11
  Requires-Dist: pydantic<2.11.0,>=1.3.0
12
- Requires-Dist: pyqrack-cpu>=1.69.0; sys_platform != 'darwin-arm64'
13
- Requires-Dist: pyqrack>=1.69.0; sys_platform == 'darwin-arm64'
12
+ Requires-Dist: pyqrack-cpu>=1.69.1
14
13
  Requires-Dist: rich>=13.9.4
15
14
  Requires-Dist: scipy>=1.13.1
16
15
  Provides-Extra: cirq
@@ -18,9 +17,9 @@ Requires-Dist: cirq-core>=1.4.1; extra == 'cirq'
18
17
  Requires-Dist: cirq-core[contrib]>=1.4.1; extra == 'cirq'
19
18
  Requires-Dist: qpsolvers[clarabel]>=4.7.0; extra == 'cirq'
20
19
  Provides-Extra: pyqrack-cuda
21
- Requires-Dist: pyqrack-cuda>=1.69.0; extra == 'pyqrack-cuda'
20
+ Requires-Dist: pyqrack-cuda>=1.69.1; extra == 'pyqrack-cuda'
22
21
  Provides-Extra: pyqrack-opencl
23
- Requires-Dist: pyqrack>=1.69.0; (sys_platform == 'darwin-arm64') and extra == 'pyqrack-opencl'
22
+ Requires-Dist: pyqrack>=1.69.1; extra == 'pyqrack-opencl'
24
23
  Provides-Extra: qasm2
25
24
  Requires-Dist: lark>=1.2.2; extra == 'qasm2'
26
25
  Provides-Extra: qbraid
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "bloqade-circuit"
3
- version = "0.7.7"
3
+ version = "0.7.8"
4
4
  description = "The software development toolkit for neutral atom arrays."
5
5
  readme = "README.md"
6
6
  authors = [
@@ -17,8 +17,7 @@ dependencies = [
17
17
  "rich>=13.9.4",
18
18
  "pydantic>=1.3.0,<2.11.0",
19
19
  "pandas>=2.2.3",
20
- "pyqrack>=1.69.0; sys_platform == 'darwin-arm64'",
21
- "pyqrack-cpu>=1.69.0; sys_platform != 'darwin-arm64'",
20
+ "pyqrack-cpu>=1.69.1",
22
21
  ]
23
22
 
24
23
  [project.optional-dependencies]
@@ -41,10 +40,10 @@ cirq = [
41
40
  "qpsolvers[clarabel]>=4.7.0",
42
41
  ]
43
42
  pyqrack-opencl = [
44
- "pyqrack>=1.69.0; sys_platform == 'darwin-arm64'",
43
+ "pyqrack>=1.69.1",
45
44
  ]
46
45
  pyqrack-cuda = [
47
- "pyqrack-cuda>=1.69.0",
46
+ "pyqrack-cuda>=1.69.1",
48
47
  ]
49
48
  stim = [
50
49
  "stim>=1.15.0",
@@ -2,7 +2,7 @@ from . import noise as noise
2
2
  from .parallelize import (
3
3
  transpile as transpile,
4
4
  parallelize as parallelize,
5
- no_similarity as no_similarity,
5
+ remove_tags as remove_tags,
6
6
  auto_similarity as auto_similarity,
7
7
  block_similarity as block_similarity,
8
8
  moment_similarity as moment_similarity,
@@ -357,9 +357,10 @@ class GeminiOneZoneNoiseModelConflictGraphMoves(GeminiOneZoneNoiseModel):
357
357
  def noisy_moment(self, moment, system_qubits):
358
358
  # Moment with original ops
359
359
  original_moment = moment
360
- assert np.all(
361
- [isinstance(q, cirq.GridQubit) for q in system_qubits]
362
- ), "Found a qubit that is not a GridQubit."
360
+ assert np.all([isinstance(q, cirq.GridQubit) for q in system_qubits]), (
361
+ "Found a qubit that is not a GridQubit. In order for the conflict graph to know the qubit geometry, "
362
+ "all qubits in the circuit must be defined as cirq.GridQubit objects."
363
+ )
363
364
  # Check if the moment is empty
364
365
  if len(moment.operations) == 0:
365
366
  move_moments = []
@@ -136,7 +136,7 @@ def auto_similarity(
136
136
  return cirq.Circuit(flattened_circuit), weights
137
137
 
138
138
 
139
- def no_similarity(circuit: cirq.Circuit) -> cirq.Circuit:
139
+ def remove_tags(circuit: cirq.Circuit) -> cirq.Circuit:
140
140
  """
141
141
  Removes all tags from the circuit
142
142
 
@@ -146,10 +146,11 @@ def no_similarity(circuit: cirq.Circuit) -> cirq.Circuit:
146
146
  Returns:
147
147
  [0] - cirq.Circuit - the circuit with all tags removed.
148
148
  """
149
- new_moments = []
150
- for moment in circuit.moments:
151
- new_moments.append([gate.untagged for gate in moment.operations])
152
- return cirq.Circuit(new_moments)
149
+
150
+ def remove_tag(op: cirq.Operation, _):
151
+ return op.untagged
152
+
153
+ return cirq.map_operations(circuit, remove_tag)
153
154
 
154
155
 
155
156
  def to_dag_circuit(circuit: cirq.Circuit, can_reorder=None) -> nx.DiGraph:
@@ -399,4 +400,6 @@ def parallelize(
399
400
  )
400
401
  # Convert the epochs to a cirq circuit.
401
402
  moments = map(cirq.Moment, epochs)
402
- return cirq.Circuit(moments)
403
+ circuit = cirq.Circuit(moments)
404
+
405
+ return remove_tags(circuit)
@@ -146,7 +146,13 @@ class PyQrackInterpreter(Interpreter, typing.Generic[MemoryType]):
146
146
  loss_m_result: Measurement = field(default=Measurement.One, kw_only=True)
147
147
  """The value of a measurement result when a qubit is lost."""
148
148
 
149
+ global_measurement_id: int = field(init=False, default=0)
150
+
149
151
  def initialize(self) -> Self:
150
152
  super().initialize()
151
153
  self.memory.reset() # reset allocated qubits
152
154
  return self
155
+
156
+ def set_global_measurement_id(self, m: Measurement):
157
+ m.measurement_id = self.global_measurement_id
158
+ self.global_measurement_id += 1
@@ -2,15 +2,20 @@ import enum
2
2
  from typing import TYPE_CHECKING
3
3
  from dataclasses import dataclass
4
4
 
5
+ from bloqade.types import MeasurementResult
5
6
  from bloqade.qasm2.types import Qubit
6
7
 
7
8
  if TYPE_CHECKING:
8
9
  from pyqrack import QrackSimulator
9
10
 
10
11
 
11
- class Measurement(enum.IntEnum):
12
+ class Measurement(MeasurementResult, enum.IntEnum):
12
13
  """Enumeration of measurement results."""
13
14
 
15
+ def __init__(self, measurement_id: int = 0) -> None:
16
+ super().__init__()
17
+ self.measurement_id = measurement_id
18
+
14
19
  Zero = 0
15
20
  One = 1
16
21
  Lost = enum.auto()
@@ -46,7 +46,7 @@ class QubitLossRuntime(OperatorRuntimeABC):
46
46
  return 1
47
47
 
48
48
  def apply(self, qubit: PyQrackQubit, adjoint: bool = False) -> None:
49
- if random.uniform(0.0, 1.0) < self.p:
49
+ if random.uniform(0.0, 1.0) <= self.p:
50
50
  qubit.state = QubitState.Lost
51
51
 
52
52
 
@@ -4,7 +4,7 @@ from kirin import interp
4
4
  from kirin.dialects import ilist
5
5
 
6
6
  from bloqade.squin import qubit
7
- from bloqade.pyqrack.reg import QubitState, PyQrackQubit
7
+ from bloqade.pyqrack.reg import QubitState, Measurement, PyQrackQubit
8
8
  from bloqade.pyqrack.base import PyQrackInterpreter
9
9
 
10
10
  from .runtime import OperatorRuntimeABC
@@ -41,9 +41,12 @@ class PyQrackMethods(interp.MethodTable):
41
41
 
42
42
  def _measure_qubit(self, qbit: PyQrackQubit, interp: PyQrackInterpreter):
43
43
  if qbit.is_active():
44
- return bool(qbit.sim_reg.m(qbit.addr))
44
+ m = Measurement(bool(qbit.sim_reg.m(qbit.addr)))
45
45
  else:
46
- return interp.loss_m_result
46
+ m = Measurement(interp.loss_m_result)
47
+
48
+ interp.set_global_measurement_id(m)
49
+ return m
47
50
 
48
51
  @interp.impl(qubit.MeasureQubitList)
49
52
  def measure_qubit_list(
@@ -63,3 +66,17 @@ class PyQrackMethods(interp.MethodTable):
63
66
  qbit: PyQrackQubit = frame.get(stmt.qubit)
64
67
  result = self._measure_qubit(qbit, interp)
65
68
  return (result,)
69
+
70
+ @interp.impl(qubit.QubitId)
71
+ def qubit_id(
72
+ self, interp: PyQrackInterpreter, frame: interp.Frame, stmt: qubit.QubitId
73
+ ):
74
+ qbit: PyQrackQubit = frame.get(stmt.qubit)
75
+ return (qbit.addr,)
76
+
77
+ @interp.impl(qubit.MeasurementId)
78
+ def measurement_id(
79
+ self, interp: PyQrackInterpreter, frame: interp.Frame, stmt: qubit.MeasurementId
80
+ ):
81
+ measurement: Measurement = frame.get(stmt.measurement)
82
+ return (measurement.measurement_id,)
@@ -144,6 +144,11 @@ class Squin(lowering.LoweringABC[CirqNode]):
144
144
  qbits = self.lower_qubit_getindices(state, node.qubits)
145
145
  return state.current_frame.push(qubit.Apply(operator=op_, qubits=qbits))
146
146
 
147
+ def visit_TaggedOperation(
148
+ self, state: lowering.State[CirqNode], node: cirq.TaggedOperation
149
+ ):
150
+ state.lower(node.untagged)
151
+
147
152
  def lower_measurement(
148
153
  self, state: lowering.State[CirqNode], node: cirq.GateOperation
149
154
  ):
@@ -79,6 +79,20 @@ class MeasureQubitList(ir.Statement):
79
79
  result: ir.ResultValue = info.result(ilist.IListType[MeasurementResultType])
80
80
 
81
81
 
82
+ @statement(dialect=dialect)
83
+ class QubitId(ir.Statement):
84
+ traits = frozenset({lowering.FromPythonCall(), ir.Pure()})
85
+ qubit: ir.SSAValue = info.argument(QubitType)
86
+ result: ir.ResultValue = info.result(types.Int)
87
+
88
+
89
+ @statement(dialect=dialect)
90
+ class MeasurementId(ir.Statement):
91
+ traits = frozenset({lowering.FromPythonCall(), ir.Pure()})
92
+ measurement: ir.SSAValue = info.argument(MeasurementResultType)
93
+ result: ir.ResultValue = info.result(types.Int)
94
+
95
+
82
96
  # NOTE: no dependent types in Python, so we have to mark it Any...
83
97
  @wraps(New)
84
98
  def new(n_qubits: int) -> ilist.IList[Qubit, Any]:
@@ -127,9 +141,10 @@ def measure(input: Any) -> Any:
127
141
  input: A qubit or a list of qubits to measure.
128
142
 
129
143
  Returns:
130
- bool | list[bool]: The result of the measurement. If a single qubit is measured,
131
- a single boolean is returned. If a list of qubits is measured, a list of booleans
144
+ MeasurementResult | list[MeasurementResult]: The result of the measurement. If a single qubit is measured,
145
+ a single result is returned. If a list of qubits is measured, a list of results
132
146
  is returned.
147
+ A MeasurementResult can represent both 0 and 1, but also atoms that are lost.
133
148
  """
134
149
  ...
135
150
 
@@ -169,3 +184,11 @@ def broadcast(operator: Op, *qubits: ilist.IList[Qubit, OpSize] | list[Qubit]) -
169
184
  None
170
185
  """
171
186
  ...
187
+
188
+
189
+ @wraps(QubitId)
190
+ def get_qubit_id(qubit: Qubit) -> int: ...
191
+
192
+
193
+ @wraps(MeasurementId)
194
+ def get_measurement_id(measurement: MeasurementResult) -> int: ...
@@ -6,7 +6,7 @@ import pytest
6
6
 
7
7
  from bloqade.cirq_utils import (
8
8
  parallelize,
9
- no_similarity,
9
+ remove_tags,
10
10
  block_similarity,
11
11
  moment_similarity,
12
12
  )
@@ -28,7 +28,7 @@ def test1():
28
28
  circuit_m, _ = moment_similarity(circuit, weight=1.0)
29
29
  # print(circuit_m)
30
30
  circuit_b, _ = block_similarity(circuit, weight=1.0, block_id=1)
31
- circuit_m2 = no_similarity(circuit_m)
31
+ circuit_m2 = remove_tags(circuit_m)
32
32
  print(circuit_m2)
33
33
  circuit2 = parallelize(circuit)
34
34
  # print(circuit2)
@@ -34,6 +34,11 @@ def basic_circuit():
34
34
  )
35
35
 
36
36
 
37
+ def tagged_circuit():
38
+ q = cirq.LineQubit.range(2)
39
+ return cirq.Circuit(cirq.H(q[0]).with_tags("FOO"), cirq.CX(*q).with_tags("BAR"))
40
+
41
+
37
42
  def controlled_gates():
38
43
  q0 = cirq.NamedQubit("q0")
39
44
  q1 = cirq.NamedQubit("q1")
@@ -166,6 +171,7 @@ def nested_circuit():
166
171
  "circuit_f",
167
172
  [
168
173
  basic_circuit,
174
+ tagged_circuit,
169
175
  controlled_gates,
170
176
  parity_gate_circuit,
171
177
  phased_gates,
@@ -0,0 +1,48 @@
1
+ from kirin import types
2
+
3
+ from bloqade import squin
4
+ from bloqade.pyqrack import StackMemorySimulator
5
+ from bloqade.pyqrack.reg import Measurement
6
+
7
+
8
+ def test_get_ids():
9
+ @squin.kernel
10
+ def main():
11
+ q = squin.qubit.new(3)
12
+
13
+ m = squin.qubit.measure(q)
14
+
15
+ qid = squin.qubit.get_qubit_id(q[0])
16
+ mid = squin.qubit.get_measurement_id(m[1])
17
+ return mid + qid
18
+
19
+ main.print()
20
+ assert main.return_type.is_subseteq(types.Int)
21
+
22
+ @squin.kernel
23
+ def main2():
24
+ q = squin.qubit.new(2)
25
+
26
+ qid = squin.qubit.get_qubit_id(q[0])
27
+ m1 = squin.qubit.measure(q[qid])
28
+
29
+ squin.gate.x(q[qid])
30
+ m2 = squin.qubit.measure(q[qid])
31
+
32
+ m1_id = squin.qubit.get_measurement_id(m1)
33
+ m2_id = squin.qubit.get_measurement_id(m2)
34
+
35
+ if m1_id != 0:
36
+ # do something that errors
37
+ squin.gate.x(q[4])
38
+
39
+ if m2_id != 1:
40
+ squin.gate.x(q[4])
41
+
42
+ return squin.qubit.measure(q)
43
+
44
+ sim = StackMemorySimulator(min_qubits=2)
45
+ result = sim.run(main2)
46
+ for i, res in enumerate(result):
47
+ assert isinstance(res, Measurement)
48
+ assert res.measurement_id == i + 2
@@ -103,7 +103,7 @@ wheels = [
103
103
 
104
104
  [[package]]
105
105
  name = "bloqade-circuit"
106
- version = "0.7.7"
106
+ version = "0.7.8"
107
107
  source = { editable = "." }
108
108
  dependencies = [
109
109
  { name = "kirin-toolchain" },
@@ -111,8 +111,7 @@ dependencies = [
111
111
  { name = "numpy", version = "2.3.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
112
112
  { name = "pandas" },
113
113
  { name = "pydantic" },
114
- { name = "pyqrack", marker = "sys_platform == 'darwin-arm64'" },
115
- { name = "pyqrack-cpu", marker = "sys_platform != 'darwin-arm64'" },
114
+ { name = "pyqrack-cpu" },
116
115
  { name = "rich" },
117
116
  { name = "scipy", version = "1.15.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },
118
117
  { name = "scipy", version = "1.16.2", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
@@ -128,7 +127,7 @@ pyqrack-cuda = [
128
127
  { name = "pyqrack-cuda" },
129
128
  ]
130
129
  pyqrack-opencl = [
131
- { name = "pyqrack", marker = "sys_platform == 'darwin-arm64'" },
130
+ { name = "pyqrack" },
132
131
  ]
133
132
  qasm2 = [
134
133
  { name = "lark" },
@@ -175,10 +174,9 @@ requires-dist = [
175
174
  { name = "numpy", specifier = ">=1.22.0" },
176
175
  { name = "pandas", specifier = ">=2.2.3" },
177
176
  { name = "pydantic", specifier = ">=1.3.0,<2.11.0" },
178
- { name = "pyqrack", marker = "sys_platform == 'darwin-arm64'", specifier = ">=1.69.0" },
179
- { name = "pyqrack", marker = "sys_platform == 'darwin-arm64' and extra == 'pyqrack-opencl'", specifier = ">=1.69.0" },
180
- { name = "pyqrack-cpu", marker = "sys_platform != 'darwin-arm64'", specifier = ">=1.69.0" },
181
- { name = "pyqrack-cuda", marker = "extra == 'pyqrack-cuda'", specifier = ">=1.69.0" },
177
+ { name = "pyqrack", marker = "extra == 'pyqrack-opencl'", specifier = ">=1.69.1" },
178
+ { name = "pyqrack-cpu", specifier = ">=1.69.1" },
179
+ { name = "pyqrack-cuda", marker = "extra == 'pyqrack-cuda'", specifier = ">=1.69.1" },
182
180
  { name = "pyqt5", marker = "sys_platform == 'darwin' and extra == 'vis'", specifier = ">=5.15.11" },
183
181
  { name = "pyqt5", marker = "sys_platform == 'linux' and extra == 'vis'", specifier = ">=5.15.11" },
184
182
  { name = "qbraid", marker = "extra == 'qbraid'", specifier = ">=0.9.3" },
@@ -2098,27 +2096,37 @@ wheels = [
2098
2096
 
2099
2097
  [[package]]
2100
2098
  name = "pyqrack"
2101
- version = "1.69.0"
2099
+ version = "1.69.1"
2102
2100
  source = { registry = "https://pypi.org/simple" }
2103
- sdist = { url = "https://files.pythonhosted.org/packages/e1/cd/1c1fae32cf9aa94eee05855b84c33debe85857a86c51960401349c0b8737/pyqrack-1.69.0.tar.gz", hash = "sha256:ce750789c5c47cd17c6cfb7d1f22d87a66cb294d0b4e487032828f97021cbba8", size = 49520 }
2101
+ sdist = { url = "https://files.pythonhosted.org/packages/3b/a1/cbd2d49419227c6490da01f3a412e1aabfbfc3755524493a9c9ebc5fa85f/pyqrack-1.69.1.tar.gz", hash = "sha256:1dbf935911426ff50f134057338790b8827f485a5c263a35be80693be92732e1", size = 49536 }
2102
+ wheels = [
2103
+ { url = "https://files.pythonhosted.org/packages/45/90/af624ee0f304732f13c5b2ce80694febefc5c7c5b932a88578c16f1ec871/pyqrack-1.69.1-py3-none-macosx_13_0_x86_64.whl", hash = "sha256:1354633c4e1dd601c2255c4665e6dd7f7a18e20dd34fb0d879709c63f8844fed", size = 2121483 },
2104
+ { url = "https://files.pythonhosted.org/packages/d3/c5/7a01662586e25d3bdeebe8f00f603ecef2e26c9f180ffd2ffb2e4aab4fe4/pyqrack-1.69.1-py3-none-macosx_14_0_arm64.whl", hash = "sha256:26c0a7178cabfb8e03c448d5ec30ee9151d82c718ad55c4c0043bc2ae7edff86", size = 1897027 },
2105
+ { url = "https://files.pythonhosted.org/packages/1a/d6/f511dadba6be690250b1d52e97c0670ebb4743b8969aa0c5a879a0a8d659/pyqrack-1.69.1-py3-none-macosx_15_0_arm64.whl", hash = "sha256:fddcb4129ef4a8ddf0cfcbda48198db002d37cd0a89c10eca09c15e0b0ef2396", size = 1876049 },
2106
+ { url = "https://files.pythonhosted.org/packages/91/36/a61865611455f15aef4f8024d60b0c97cca6ef4dd6bc98c3b15e817ea8cd/pyqrack-1.69.1-py3-none-manylinux_2_35_x86_64.whl", hash = "sha256:a265a2bea606e63d44987cf066683197b2757a7b632c0dff4308744803d02084", size = 3274523 },
2107
+ { url = "https://files.pythonhosted.org/packages/49/96/c939b3c7b945835e962a0150f11c43d1f0175ca12b2cccfe598703816f95/pyqrack-1.69.1-py3-none-manylinux_2_39_x86_64.whl", hash = "sha256:a00d715d690eb1fc785382840bafe74948be7e0350f2a8c3ed29b437cb175d56", size = 3307046 },
2108
+ { url = "https://files.pythonhosted.org/packages/1f/b7/ecb1fb7b3a935a07c5e8ad8db34df9f21eaaf22993d630f30cf6b5129865/pyqrack-1.69.1-py3-none-win_amd64.whl", hash = "sha256:7837ee6ac2b3db740fb0bfcf3beca5f5dd48bc8ef28a4b597d61947399ab3518", size = 1006772 },
2109
+ ]
2104
2110
 
2105
2111
  [[package]]
2106
2112
  name = "pyqrack-cpu"
2107
- version = "1.69.0"
2113
+ version = "1.69.1"
2108
2114
  source = { registry = "https://pypi.org/simple" }
2109
- sdist = { url = "https://files.pythonhosted.org/packages/69/ae/ff6977d4251284ea0e2a04c01c8a35693bddcdfc7789c0890fbcd08a9d0d/pyqrack_cpu-1.69.0.tar.gz", hash = "sha256:b1ff7a50111c5ccf2d9e26b7e19fc6636ef6bb2a6abe22b21fa32d2aef005372", size = 49610 }
2115
+ sdist = { url = "https://files.pythonhosted.org/packages/ba/44/7b663de655e700b83b86e9a907599b7b9842e4e283021a264afcc83d240a/pyqrack_cpu-1.69.1.tar.gz", hash = "sha256:62a2ebb00e6dc4b9cc4f4e950dc98dc1fb778204fbf228a2226ad9f303d5d63f", size = 49638 }
2110
2116
  wheels = [
2111
- { url = "https://files.pythonhosted.org/packages/f9/cc/a72373e4bf0292218a1103c2e04f539082baac8b80d50d744d63e9f5848d/pyqrack_cpu-1.69.0-py3-none-macosx_13_0_x86_64.whl", hash = "sha256:23d22a47199595f832f599bedc61f0cffc214002baa84ba97f25d9c96619a5c1", size = 2121614 },
2112
- { url = "https://files.pythonhosted.org/packages/b0/7f/e40f516d79e3ed11555e08b622299076c03840db038dcce8bb7c780f980a/pyqrack_cpu-1.69.0-py3-none-manylinux_2_35_x86_64.whl", hash = "sha256:fed68de8e75d1b9405c5d7631320246bef8a11c9aa8ee3528297e694b609552a", size = 2682422 },
2113
- { url = "https://files.pythonhosted.org/packages/9b/a0/3d6634f44f5ac38d6dfc755546044035f7bcb3a039ad54f93d9baf3afd50/pyqrack_cpu-1.69.0-py3-none-manylinux_2_39_x86_64.whl", hash = "sha256:38bd5d73433d635aae4a9c03810d80a5e6a917de79d9c49ddc4ca3dc36983fa0", size = 2712884 },
2114
- { url = "https://files.pythonhosted.org/packages/f7/92/36a0edbcc7cdd416a9e698b10545990dd9f4f7299cc84fcb1ddfe783ade5/pyqrack_cpu-1.69.0-py3-none-win_amd64.whl", hash = "sha256:3c72bbe099255201a613b35097aad91f57a35c1057e3d6966bfaad3992bcab02", size = 819362 },
2117
+ { url = "https://files.pythonhosted.org/packages/22/2e/e9ab02a36b139a052bb7d5e3cba3f72f730c2de36144e29db90d4254f4a4/pyqrack_cpu-1.69.1-py3-none-macosx_13_0_x86_64.whl", hash = "sha256:557c498965991bab3be9b4009f0cf8265a0cec331953f8e5ff6ba0b1a297bf16", size = 2121543 },
2118
+ { url = "https://files.pythonhosted.org/packages/ea/43/1ac3667a382a01951db3c3cb00473ae400bfc76d6d1c170b3f5f91e3c932/pyqrack_cpu-1.69.1-py3-none-macosx_14_0_arm64.whl", hash = "sha256:0123f6fb74a9c1b96ad67f434a25db141157f52aff88706b32b003a96b023fa5", size = 1897087 },
2119
+ { url = "https://files.pythonhosted.org/packages/1e/1b/0a1bf54a6016064728954079e5542116510f5aab7f33fca9a60ac26b44e8/pyqrack_cpu-1.69.1-py3-none-macosx_15_0_arm64.whl", hash = "sha256:2c91d696e7d6d4b846b921b4218e9e16a9d37c54025da96adfdd86e876c18a7d", size = 1876107 },
2120
+ { url = "https://files.pythonhosted.org/packages/11/26/9817a321ed68b26f5b892d926287cf03895597e8b782402a9afc531871db/pyqrack_cpu-1.69.1-py3-none-manylinux_2_35_x86_64.whl", hash = "sha256:0ab971bf5f0c69da7e51a7fe957a3d083e91d687ab9f83670ef539e0d2f1c24c", size = 2682403 },
2121
+ { url = "https://files.pythonhosted.org/packages/2f/7e/062dfbd222fc98f0c32ed32755a6f096e71daee287578cfc7c11297878df/pyqrack_cpu-1.69.1-py3-none-manylinux_2_39_x86_64.whl", hash = "sha256:11e4e0ef020fcecacf0440008b2af172623ed308f7616f0d6952f3f8c019c0d5", size = 2712876 },
2122
+ { url = "https://files.pythonhosted.org/packages/55/02/147a3ec52357cc3cb7ddfa7054788b1f56eeb5da5672f051e17a8004a2bc/pyqrack_cpu-1.69.1-py3-none-win_amd64.whl", hash = "sha256:d910ac73e2c8fb139c2f2040a28663a41680dadcbf8659db12032be1b4184bc1", size = 819230 },
2115
2123
  ]
2116
2124
 
2117
2125
  [[package]]
2118
2126
  name = "pyqrack-cuda"
2119
- version = "1.69.0"
2127
+ version = "1.69.1"
2120
2128
  source = { registry = "https://pypi.org/simple" }
2121
- sdist = { url = "https://files.pythonhosted.org/packages/47/d7/6aedb3f5a50dfbd2cb859db3bd0fde055a45f4008d752d2b286681b0c0f2/pyqrack_cuda-1.69.0.tar.gz", hash = "sha256:90fc7970491379ff8f4e771d8b6446308c8c444e103a12fa3153a22f5eabf7a1", size = 49619 }
2129
+ sdist = { url = "https://files.pythonhosted.org/packages/17/e3/b1c3142f6d799ff08c09a9746971e6422f70d6222e7e060a266045811d88/pyqrack_cuda-1.69.1.tar.gz", hash = "sha256:93f1751f6663733be4afb6beb3995d806bce1ec19c3fa9b6f136d6a794fef70b", size = 49620 }
2122
2130
 
2123
2131
  [[package]]
2124
2132
  name = "pyqt5"
File without changes