bloqade-circuit 0.6.6__tar.gz → 0.6.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.
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/PKG-INFO +1 -1
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/pyproject.toml +1 -1
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/pyqrack/device.py +96 -1
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/pyqrack/task.py +15 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/rewrite/rules/split_ifs.py +18 -1
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/analysis/nsites/impls.py +7 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/cirq/emit/op.py +19 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/cirq/emit/runtime.py +15 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/noise/rewrite.py +37 -8
- bloqade_circuit-0.6.8/test/pyqrack/runtime/test_qrack.py +368 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/pyqrack/squin/test_noise.py +19 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/passes/test_unroll_if.py +26 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/squin/analysis/test_nsites_analysis.py +16 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/squin/cirq/test_squin_to_cirq.py +26 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/uv.lock +4 -4
- bloqade_circuit-0.6.6/test/pyqrack/runtime/test_qrack.py +0 -164
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/.github/dependabot.yml +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/.github/workflows/ci.yml +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/.github/workflows/isort.yml +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/.github/workflows/lint.yml +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/.github/workflows/release.yml +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/.gitignore +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/.pre-commit-config.yaml +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/LICENSE +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/README.md +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/_typos.toml +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/justfile +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/analysis/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/analysis/address/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/analysis/address/analysis.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/analysis/address/impls.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/analysis/address/lattice.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/analysis/fidelity/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/analysis/fidelity/analysis.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/analysis/measure_id/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/analysis/measure_id/analysis.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/analysis/measure_id/impls.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/analysis/measure_id/lattice.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/cirq_utils/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/cirq_utils/lineprog.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/cirq_utils/noise/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/cirq_utils/noise/_two_zone_utils.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/cirq_utils/noise/conflict_graph.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/cirq_utils/noise/model.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/cirq_utils/noise/transform.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/cirq_utils/parallelize.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/device.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/pyqrack/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/pyqrack/base.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/pyqrack/noise/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/pyqrack/noise/native.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/pyqrack/qasm2/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/pyqrack/qasm2/core.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/pyqrack/qasm2/glob.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/pyqrack/qasm2/parallel.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/pyqrack/qasm2/uop.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/pyqrack/reg.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/pyqrack/squin/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/pyqrack/squin/noise/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/pyqrack/squin/noise/native.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/pyqrack/squin/op.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/pyqrack/squin/qubit.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/pyqrack/squin/runtime.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/pyqrack/squin/wire.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/pyqrack/target.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/_qasm_loading.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/_wrappers.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/dialects/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/dialects/core/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/dialects/core/_dialect.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/dialects/core/_emit.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/dialects/core/_typeinfer.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/dialects/core/address.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/dialects/core/stmts.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/dialects/expr/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/dialects/expr/_dialect.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/dialects/expr/_emit.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/dialects/expr/_from_python.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/dialects/expr/_interp.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/dialects/expr/stmts.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/dialects/glob.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/dialects/indexing.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/dialects/inline.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/dialects/noise/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/dialects/noise/_dialect.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/dialects/noise/fidelity.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/dialects/noise/model.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/dialects/noise/stmts.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/dialects/parallel.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/dialects/uop/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/dialects/uop/_dialect.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/dialects/uop/_emit.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/dialects/uop/schedule.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/dialects/uop/stmts.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/emit/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/emit/base.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/emit/gate.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/emit/impls/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/emit/impls/noise.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/emit/main.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/emit/target.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/glob.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/groups.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/noise.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/parallel.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/parse/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/parse/ast.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/parse/build.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/parse/lowering.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/parse/parser.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/parse/print.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/parse/qasm2.lark +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/parse/visitor.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/parse/visitor.pyi +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/passes/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/passes/fold.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/passes/glob.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/passes/lift_qubits.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/passes/noise.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/passes/parallel.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/passes/py2qasm.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/passes/qasm2py.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/passes/unroll_if.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/rewrite/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/rewrite/desugar.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/rewrite/glob.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/rewrite/insert_qubits.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/rewrite/native_gates.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/rewrite/noise/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/rewrite/noise/heuristic_noise.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/rewrite/noise/remove_noise.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/rewrite/parallel_to_glob.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/rewrite/parallel_to_uop.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/rewrite/register.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/rewrite/uop_to_parallel.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qasm2/types.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qbraid/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qbraid/lowering.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qbraid/schema.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qbraid/simulation_result.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/qbraid/target.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/rewrite/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/rewrite/passes/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/rewrite/passes/canonicalize_ilist.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/rewrite/rules/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/rewrite/rules/flatten_ilist.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/rewrite/rules/inline_getitem_ilist.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/_typeinfer.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/analysis/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/analysis/address_impl.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/analysis/nsites/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/analysis/nsites/analysis.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/analysis/nsites/lattice.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/analysis/schedule.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/cirq/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/cirq/emit/emit_circuit.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/cirq/emit/noise.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/cirq/emit/qubit.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/cirq/lowering.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/gate.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/groups.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/lowering.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/noise/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/noise/_dialect.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/noise/_wrapper.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/noise/stmts.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/op/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/op/_dialect.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/op/_wrapper.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/op/number.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/op/rewrite.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/op/stdlib.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/op/stmts.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/op/traits.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/op/types.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/parallel.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/qubit.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/rewrite/U3_to_clifford.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/rewrite/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/rewrite/canonicalize.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/rewrite/desugar.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/rewrite/remove_dangling_qubits.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/rewrite/wrap_analysis.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/types.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/squin/wire.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/_wrappers.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/dialects/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/dialects/auxiliary/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/dialects/auxiliary/_dialect.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/dialects/auxiliary/emit.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/dialects/auxiliary/interp.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/dialects/auxiliary/lowering.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/dialects/auxiliary/stmts/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/dialects/auxiliary/stmts/annotate.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/dialects/auxiliary/stmts/const.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/dialects/auxiliary/types.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/dialects/collapse/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/dialects/collapse/_dialect.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/dialects/collapse/emit_str.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/dialects/collapse/stmts/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/dialects/collapse/stmts/measure.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/dialects/collapse/stmts/pp_measure.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/dialects/collapse/stmts/reset.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/dialects/gate/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/dialects/gate/_dialect.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/dialects/gate/emit.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/dialects/gate/stmts/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/dialects/gate/stmts/base.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/dialects/gate/stmts/clifford_1q.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/dialects/gate/stmts/clifford_2q.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/dialects/gate/stmts/control_2q.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/dialects/gate/stmts/pp.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/dialects/noise/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/dialects/noise/_dialect.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/dialects/noise/emit.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/dialects/noise/stmts.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/emit/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/emit/stim_str.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/groups.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/parse/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/parse/lowering.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/passes/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/passes/simplify_ifs.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/passes/squin_to_stim.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/rewrite/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/rewrite/ifs_to_stim.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/rewrite/py_constant_to_stim.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/rewrite/qubit_to_stim.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/rewrite/squin_measure.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/rewrite/squin_noise.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/rewrite/util.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/rewrite/wire_identity_elimination.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/rewrite/wire_to_stim.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/upstream/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/stim/upstream/from_squin.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/task.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/test_utils.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/types.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/visual/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/visual/animation/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/visual/animation/animate.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/visual/animation/base.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/visual/animation/gate_event.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/visual/animation/runtime/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/visual/animation/runtime/aod.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/visual/animation/runtime/atoms.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/visual/animation/runtime/ppoly.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/visual/animation/runtime/qpustate.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/src/bloqade/visual/animation/runtime/utils.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/analysis/address/test_qubit_analysis.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/analysis/address/test_wire_analysis.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/analysis/address/util.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/analysis/fidelity/test_fidelity.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/analysis/measure_id/test_measure_id.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/cirq_utils/noise/test_noise_models.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/cirq_utils/noise/test_noisy_ghz.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/cirq_utils/noise/test_one_zone_correlated_noise.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/cirq_utils/test_lpsolvers.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/cirq_utils/test_parallelize.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/cirq_utils/test_transpile.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/pyqrack/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/pyqrack/runtime/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/pyqrack/runtime/noise/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/pyqrack/runtime/noise/qasm2/test_loss.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/pyqrack/runtime/noise/qasm2/test_pauli.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/pyqrack/runtime/test_dyn_memory.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/pyqrack/squin/test_kernel.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/pyqrack/test_target.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/analysis/test_dag.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/emit/test_extended.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/emit/test_extended_noise.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/emit/test_qasm2.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/emit/test_qasm2_emit.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/parse/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/parse/invalid_programs/invalid_if.qasm +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/parse/programs/README.md +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/parse/programs/global.qasm +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/parse/programs/iqft1.qasm +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/parse/programs/main.qasm +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/parse/programs/noise.qasm +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/parse/programs/para.qasm +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/parse/programs/process_tomo.qasm +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/parse/programs/qelib1.inc +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/parse/programs/qft.qasm +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/parse/programs/qft2.qasm +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/parse/programs/rb.qasm +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/parse/programs/rep_code.qasm +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/parse/programs/ripple_carry_adder.qasm +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/parse/programs/tele.qasm +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/parse/programs/valid_if.qasm +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/parse/test_ast.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/parse/test_roundtrip.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/passes/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/passes/test_global_to_parallel.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/passes/test_global_to_uop.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/passes/test_heuristic_noise.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/passes/test_parallel_to_global.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/passes/test_parallel_to_uop.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/passes/test_qasm2py.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/passes/test_uop_to_parallel.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/test_count.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/test_inline.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/test_lowering.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/test_native.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qasm2/test_two2one.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qbraid/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qbraid/test_clean_circuit.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qbraid/test_lowering.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/qbraid/test_target.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/sample/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/sample/test_noise_model.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/squin/cirq/test_cirq_to_squin.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/squin/cirq/test_squin_noise_to_cirq.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/squin/op/test_reset.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/squin/rewrite/test_U3_to_clifford.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/squin/rewrite/test_canonicalize.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/squin/rewrite/test_desugar.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/squin/rewrite/test_mult_rewrite.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/squin/test_constprop.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/squin/test_stdlib_shorthands.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/squin/test_sugar.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/squin/test_typeinfer.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/squin/wire/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/squin/wire/test_check.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/dialects/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/dialects/stim/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/dialects/stim/emit/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/dialects/stim/emit/base.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/dialects/stim/emit/test_stim_1q.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/dialects/stim/emit/test_stim_ctrl.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/dialects/stim/emit/test_stim_detector.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/dialects/stim/emit/test_stim_meas.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/dialects/stim/emit/test_stim_noise.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/dialects/stim/emit/test_stim_obs_inc.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/dialects/stim/emit/test_stim_ppmeas.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/dialects/stim/emit/test_stim_qubit_coords.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/dialects/stim/emit/test_stim_spp.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/dialects/stim/test_stim_circuits.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/dialects/stim/test_stim_const.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/parse/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/parse/base.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/parse/test_parse.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/parse/test_parse_clifford.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/parse/test_parse_control.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/parse/test_parse_custom.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/parse/test_parse_noise.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/parse/test_parse_spp.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/stim_reference_programs/noise/apply_depolarize1.stim +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/stim_reference_programs/noise/apply_loss.stim +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/stim_reference_programs/noise/apply_pauli_channel_1.stim +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/stim_reference_programs/noise/broadcast_depolarize1.stim +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/stim_reference_programs/noise/broadcast_depolarize2.stim +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/stim_reference_programs/noise/broadcast_iid_bit_flip_channel.stim +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/stim_reference_programs/noise/broadcast_iid_phase_flip_channel.stim +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/stim_reference_programs/noise/broadcast_iid_y_flip_channel.stim +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/stim_reference_programs/noise/broadcast_pauli_channel_1.stim +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/stim_reference_programs/noise/broadcast_pauli_channel_1_many_qubits.stim +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/stim_reference_programs/noise/broadcast_pauli_channel_1_reuse.stim +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/stim_reference_programs/noise/broadcast_pauli_channel_2.stim +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/stim_reference_programs/noise/broadcast_pauli_channel_2_reuse_on_4_qubits.stim +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/stim_reference_programs/pure_squin_rewrite.txt +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/stim_reference_programs/qubit/addition_assignment_measure.stim +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/stim_reference_programs/qubit/alias_with_measure_list.stim +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/stim_reference_programs/qubit/complex_storage_index_order.stim +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/stim_reference_programs/qubit/for_loop_nontrivial_index.stim +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/stim_reference_programs/qubit/nested_for_loop.stim +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/stim_reference_programs/qubit/nested_list.stim +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/stim_reference_programs/qubit/qubit.stim +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/stim_reference_programs/qubit/qubit_broadcast.stim +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/stim_reference_programs/qubit/qubit_loss.stim +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/stim_reference_programs/qubit/qubit_reset.stim +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/stim_reference_programs/qubit/record_index_order.stim +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/stim_reference_programs/qubit/simple_if_rewrite.stim +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/stim_reference_programs/qubit/u3_to_clifford.stim +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/stim_reference_programs/wire/wire.stim +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/stim_reference_programs/wire/wire_apply.stim +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/stim_reference_programs/wire/wire_apply_control.stim +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/stim_reference_programs/wire/wire_broadcast.stim +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/stim_reference_programs/wire/wire_broadcast_control.stim +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/stim_reference_programs/wire/wire_measure.stim +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/stim_reference_programs/wire/wire_multiple_apply.stim +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/stim_reference_programs/wire/wire_qubit_loss.stim +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/stim_reference_programs/wire/wire_reset.stim +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/test_squin_meas_to_stim.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/test_squin_noise_to_stim.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/test_squin_qubit_to_stim.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/passes/test_squin_wire_to_stim.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/test_measure_id_analysis.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/wrapper/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/stim/wrapper/test_wrapper.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/test_serialization.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/test_zone_model.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/visual/__init__.py +0 -0
- {bloqade_circuit-0.6.6 → bloqade_circuit-0.6.8}/test/visual/test_utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bloqade-circuit
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.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
|
|
@@ -4,6 +4,7 @@ from dataclasses import field, dataclass
|
|
|
4
4
|
import numpy as np
|
|
5
5
|
from kirin import ir
|
|
6
6
|
from kirin.passes import fold
|
|
7
|
+
from kirin.dialects.ilist import IList
|
|
7
8
|
|
|
8
9
|
from bloqade.squin import noise as squin_noise
|
|
9
10
|
from pyqrack.pauli import Pauli
|
|
@@ -18,6 +19,7 @@ from bloqade.pyqrack.base import (
|
|
|
18
19
|
_default_pyqrack_args,
|
|
19
20
|
)
|
|
20
21
|
from bloqade.pyqrack.task import PyQrackSimulatorTask
|
|
22
|
+
from pyqrack.qrack_simulator import QrackSimulator
|
|
21
23
|
from bloqade.squin.noise.rewrite import RewriteNoiseStmts
|
|
22
24
|
from bloqade.analysis.address.lattice import AnyAddress
|
|
23
25
|
from bloqade.analysis.address.analysis import AddressAnalysis
|
|
@@ -26,6 +28,55 @@ RetType = TypeVar("RetType")
|
|
|
26
28
|
Params = ParamSpec("Params")
|
|
27
29
|
|
|
28
30
|
|
|
31
|
+
def _pyqrack_reduced_density_matrix(
|
|
32
|
+
inds: tuple[int, ...], sim_reg: QrackSimulator, tol: float = 1e-12
|
|
33
|
+
) -> "np.linalg._linalg.EighResult":
|
|
34
|
+
"""
|
|
35
|
+
Extract the reduced density matrix representing the state of a list
|
|
36
|
+
of qubits from a PyQRack simulator register.
|
|
37
|
+
|
|
38
|
+
Inputs:
|
|
39
|
+
inds: A list of integers labeling the qubit registers to extract the reduced density matrix for
|
|
40
|
+
sim_reg: The PyQRack simulator register to extract the reduced density matrix from
|
|
41
|
+
tol: The tolerance for density matrix eigenvalues to be considered non-zero.
|
|
42
|
+
Outputs:
|
|
43
|
+
An eigh result containing the eigenvalues and eigenvectors of the reduced density matrix.
|
|
44
|
+
"""
|
|
45
|
+
# Identify the rest of the qubits in the register
|
|
46
|
+
N = sim_reg.num_qubits()
|
|
47
|
+
other = tuple(set(range(N)).difference(inds))
|
|
48
|
+
|
|
49
|
+
if len(set(inds)) != len(inds):
|
|
50
|
+
raise ValueError("Qubits must be unique.")
|
|
51
|
+
|
|
52
|
+
if max(inds) > N - 1:
|
|
53
|
+
raise ValueError(
|
|
54
|
+
f"Qubit indices {inds} exceed the number of qubits in the register {N}."
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
reordering = inds + other
|
|
58
|
+
# Fix pyqrack edannes to be consistent with Cirq.
|
|
59
|
+
reordering = tuple(N - 1 - x for x in reordering)
|
|
60
|
+
# Extract the statevector from the PyQRack qubits
|
|
61
|
+
statevector = np.array(sim_reg.out_ket())
|
|
62
|
+
# Reshape into a (2,2,2, ..., 2) tensor
|
|
63
|
+
vec_f = np.reshape(statevector, (2,) * N)
|
|
64
|
+
# Reorder the indexes to obey the order of the qubits
|
|
65
|
+
vec_p = np.transpose(vec_f, reordering)
|
|
66
|
+
# Rehape into a 2^N by 2^M matrix to compute the singular value decomposition
|
|
67
|
+
vec_svd = np.reshape(vec_p, (2 ** len(inds), 2 ** len(other)))
|
|
68
|
+
# The singular values and vectors are the eigenspace of the reduced density matrix
|
|
69
|
+
s, v, d = np.linalg.svd(vec_svd, full_matrices=False)
|
|
70
|
+
|
|
71
|
+
# Remove the negligable singular values
|
|
72
|
+
nonzero_inds = np.where(np.abs(v) > tol)[0]
|
|
73
|
+
s = s[:, nonzero_inds]
|
|
74
|
+
v = v[nonzero_inds] ** 2
|
|
75
|
+
# Forge into the correct result type
|
|
76
|
+
result = np.linalg._linalg.EighResult(eigenvalues=v, eigenvectors=s)
|
|
77
|
+
return result
|
|
78
|
+
|
|
79
|
+
|
|
29
80
|
@dataclass
|
|
30
81
|
class PyQrackSimulatorBase(AbstractSimulatorDevice[PyQrackSimulatorTask]):
|
|
31
82
|
"""PyQrack simulation device base class."""
|
|
@@ -50,7 +101,6 @@ class PyQrackSimulatorBase(AbstractSimulatorDevice[PyQrackSimulatorTask]):
|
|
|
50
101
|
kwargs: dict[str, Any],
|
|
51
102
|
memory: MemoryType,
|
|
52
103
|
) -> PyQrackSimulatorTask[Params, RetType, MemoryType]:
|
|
53
|
-
|
|
54
104
|
if squin_noise in mt.dialects:
|
|
55
105
|
# NOTE: rewrite noise statements
|
|
56
106
|
mt_ = mt.similar(mt.dialects)
|
|
@@ -112,6 +162,51 @@ class PyQrackSimulatorBase(AbstractSimulatorDevice[PyQrackSimulatorTask]):
|
|
|
112
162
|
|
|
113
163
|
return sim_reg.pauli_expectation(qubit_ids, pauli)
|
|
114
164
|
|
|
165
|
+
@staticmethod
|
|
166
|
+
def quantum_state(
|
|
167
|
+
qubits: list[PyQrackQubit] | IList[PyQrackQubit, Any], tol: float = 1e-12
|
|
168
|
+
) -> "np.linalg._linalg.EighResult":
|
|
169
|
+
"""
|
|
170
|
+
Extract the reduced density matrix representing the state of a list
|
|
171
|
+
of qubits from a PyQRack simulator register.
|
|
172
|
+
|
|
173
|
+
Inputs:
|
|
174
|
+
qubits: A list of PyQRack qubits to extract the reduced density matrix for
|
|
175
|
+
tol: The tolerance for density matrix eigenvalues to be considered non-zero.
|
|
176
|
+
Outputs:
|
|
177
|
+
An eigh result containing the eigenvalues and eigenvectors of the reduced density matrix.
|
|
178
|
+
"""
|
|
179
|
+
if len(qubits) == 0:
|
|
180
|
+
return np.linalg._linalg.EighResult(
|
|
181
|
+
eigenvalues=np.array([]), eigenvectors=np.array([]).reshape(0, 0)
|
|
182
|
+
)
|
|
183
|
+
sim_reg = qubits[0].sim_reg
|
|
184
|
+
|
|
185
|
+
if not all([x.sim_reg is sim_reg for x in qubits]):
|
|
186
|
+
raise ValueError("All qubits must be from the same simulator register.")
|
|
187
|
+
inds: tuple[int, ...] = tuple(qubit.addr for qubit in qubits)
|
|
188
|
+
|
|
189
|
+
return _pyqrack_reduced_density_matrix(inds, sim_reg, tol)
|
|
190
|
+
|
|
191
|
+
@classmethod
|
|
192
|
+
def reduced_density_matrix(
|
|
193
|
+
cls, qubits: list[PyQrackQubit] | IList[PyQrackQubit, Any], tol: float = 1e-12
|
|
194
|
+
) -> np.ndarray:
|
|
195
|
+
"""
|
|
196
|
+
Extract the reduced density matrix representing the state of a list
|
|
197
|
+
of qubits from a PyQRack simulator register.
|
|
198
|
+
|
|
199
|
+
Inputs:
|
|
200
|
+
qubits: A list of PyQRack qubits to extract the reduced density matrix for
|
|
201
|
+
tol: The tolerance for density matrix eigenvalues to be considered non-zero.
|
|
202
|
+
Outputs:
|
|
203
|
+
A dense 2^n x 2^n numpy array representing the reduced density matrix.
|
|
204
|
+
"""
|
|
205
|
+
rdm = cls.quantum_state(qubits, tol)
|
|
206
|
+
return np.einsum(
|
|
207
|
+
"ax,x,bx", rdm.eigenvectors, rdm.eigenvalues, rdm.eigenvectors.conj()
|
|
208
|
+
)
|
|
209
|
+
|
|
115
210
|
|
|
116
211
|
@dataclass
|
|
117
212
|
class StackMemorySimulator(PyQrackSimulatorBase):
|
|
@@ -2,6 +2,7 @@ from typing import TypeVar, ParamSpec, cast
|
|
|
2
2
|
from dataclasses import dataclass
|
|
3
3
|
|
|
4
4
|
from bloqade.task import AbstractSimulatorTask
|
|
5
|
+
from bloqade.pyqrack.reg import QubitState, PyQrackQubit
|
|
5
6
|
from bloqade.pyqrack.base import (
|
|
6
7
|
MemoryABC,
|
|
7
8
|
PyQrackInterpreter,
|
|
@@ -36,3 +37,17 @@ class PyQrackSimulatorTask(AbstractSimulatorTask[Param, RetType, MemoryType]):
|
|
|
36
37
|
"""Returns the state vector of the simulator."""
|
|
37
38
|
self.run()
|
|
38
39
|
return self.state.sim_reg.out_ket()
|
|
40
|
+
|
|
41
|
+
def qubits(self) -> list[PyQrackQubit]:
|
|
42
|
+
"""Returns the qubits in the simulator."""
|
|
43
|
+
try:
|
|
44
|
+
N = self.state.sim_reg.num_qubits()
|
|
45
|
+
return [
|
|
46
|
+
PyQrackQubit(
|
|
47
|
+
addr=i, sim_reg=self.state.sim_reg, state=QubitState.Active
|
|
48
|
+
)
|
|
49
|
+
for i in range(N)
|
|
50
|
+
]
|
|
51
|
+
except AttributeError:
|
|
52
|
+
Warning("Task has not been run, there are no qubits!")
|
|
53
|
+
return []
|
|
@@ -46,9 +46,13 @@ class SplitIfStmts(RewriteRule):
|
|
|
46
46
|
if not isinstance(node, scf.IfElse):
|
|
47
47
|
return RewriteResult()
|
|
48
48
|
|
|
49
|
+
# NOTE: only empty else bodies are allowed in valid QASM2
|
|
50
|
+
if not self._has_empty_else(node):
|
|
51
|
+
return RewriteResult()
|
|
52
|
+
|
|
49
53
|
*stmts, yield_or_return = node.then_body.stmts()
|
|
50
54
|
|
|
51
|
-
if len(stmts)
|
|
55
|
+
if len(stmts) <= 1:
|
|
52
56
|
return RewriteResult()
|
|
53
57
|
|
|
54
58
|
is_yield = isinstance(yield_or_return, scf.Yield)
|
|
@@ -71,3 +75,16 @@ class SplitIfStmts(RewriteRule):
|
|
|
71
75
|
node.delete()
|
|
72
76
|
|
|
73
77
|
return RewriteResult(has_done_something=True)
|
|
78
|
+
|
|
79
|
+
def _has_empty_else(self, node: scf.IfElse) -> bool:
|
|
80
|
+
else_stmts = list(node.else_body.stmts())
|
|
81
|
+
if len(else_stmts) > 1:
|
|
82
|
+
return False
|
|
83
|
+
|
|
84
|
+
if len(else_stmts) == 0:
|
|
85
|
+
return True
|
|
86
|
+
|
|
87
|
+
if not isinstance(else_stmts[0], scf.Yield):
|
|
88
|
+
return False
|
|
89
|
+
|
|
90
|
+
return len(else_stmts[0].values) == 0
|
|
@@ -81,6 +81,13 @@ class SquinOp(interp.MethodTable):
|
|
|
81
81
|
op_sites = frame.get(stmt.op)
|
|
82
82
|
return (op_sites,)
|
|
83
83
|
|
|
84
|
+
@interp.impl(op.stmts.PauliString)
|
|
85
|
+
def pauli_string(
|
|
86
|
+
self, interp: NSitesAnalysis, frame: interp.Frame, stmt: op.stmts.PauliString
|
|
87
|
+
):
|
|
88
|
+
s = stmt.string
|
|
89
|
+
return (NumberSites(sites=len(s)),)
|
|
90
|
+
|
|
84
91
|
|
|
85
92
|
@scf.dialect.register(key="op.nsites")
|
|
86
93
|
class ScfSquinOp(ScfTypeInfer):
|
|
@@ -9,6 +9,7 @@ from .runtime import (
|
|
|
9
9
|
SnRuntime,
|
|
10
10
|
SpRuntime,
|
|
11
11
|
U3Runtime,
|
|
12
|
+
RotRuntime,
|
|
12
13
|
KronRuntime,
|
|
13
14
|
MultRuntime,
|
|
14
15
|
ScaleRuntime,
|
|
@@ -123,3 +124,21 @@ class EmitCirqOpMethods(MethodTable):
|
|
|
123
124
|
self, emit: EmitCirq, frame: EmitCirqFrame, stmt: op.stmts.PauliString
|
|
124
125
|
):
|
|
125
126
|
return (PauliStringRuntime(stmt.string),)
|
|
127
|
+
|
|
128
|
+
@impl(op.stmts.Rot)
|
|
129
|
+
def rot(self, emit: EmitCirq, frame: EmitCirqFrame, stmt: op.stmts.Rot):
|
|
130
|
+
axis_op: HermitianRuntime = frame.get(stmt.axis)
|
|
131
|
+
angle = frame.get(stmt.angle)
|
|
132
|
+
|
|
133
|
+
axis_name = str(axis_op.gate).lower()
|
|
134
|
+
return (RotRuntime(axis=axis_name, angle=angle),)
|
|
135
|
+
|
|
136
|
+
@impl(op.stmts.SqrtX)
|
|
137
|
+
def sqrt_x(self, emit: EmitCirq, frame: EmitCirqFrame, stmt: op.stmts.SqrtX):
|
|
138
|
+
cirq_op = cirq.XPowGate(exponent=0.5)
|
|
139
|
+
return (UnitaryRuntime(cirq_op),)
|
|
140
|
+
|
|
141
|
+
@impl(op.stmts.SqrtY)
|
|
142
|
+
def sqrt_y(self, emit: EmitCirq, frame: EmitCirqFrame, stmt: op.stmts.SqrtY):
|
|
143
|
+
cirq_op = cirq.YPowGate(exponent=0.5)
|
|
144
|
+
return (UnitaryRuntime(cirq_op),)
|
|
@@ -240,3 +240,18 @@ class PauliStringRuntime(OperatorRuntimeABC):
|
|
|
240
240
|
qbit: pauli_label for (qbit, pauli_label) in zip(qubits, self.string)
|
|
241
241
|
}
|
|
242
242
|
return [cirq.PauliString(pauli_mapping)]
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
@dataclass
|
|
246
|
+
class RotRuntime(OperatorRuntimeABC):
|
|
247
|
+
axis: str
|
|
248
|
+
angle: float
|
|
249
|
+
|
|
250
|
+
def num_qubits(self) -> int:
|
|
251
|
+
return 1
|
|
252
|
+
|
|
253
|
+
def unsafe_apply(
|
|
254
|
+
self, qubits: Sequence[cirq.Qid], adjoint: bool = False
|
|
255
|
+
) -> list[cirq.Operation]:
|
|
256
|
+
rot = getattr(cirq, "R" + self.axis.lower())(rads=self.angle)
|
|
257
|
+
return [rot(*qubits)]
|
|
@@ -3,7 +3,7 @@ import itertools
|
|
|
3
3
|
from kirin import ir
|
|
4
4
|
from kirin.passes import Pass
|
|
5
5
|
from kirin.rewrite import Walk
|
|
6
|
-
from kirin.dialects import ilist
|
|
6
|
+
from kirin.dialects import py, ilist
|
|
7
7
|
from kirin.rewrite.abc import RewriteRule, RewriteResult
|
|
8
8
|
|
|
9
9
|
from .stmts import (
|
|
@@ -11,6 +11,7 @@ from .stmts import (
|
|
|
11
11
|
QubitLoss,
|
|
12
12
|
Depolarize,
|
|
13
13
|
PauliError,
|
|
14
|
+
Depolarize2,
|
|
14
15
|
NoiseChannel,
|
|
15
16
|
TwoQubitPauliChannel,
|
|
16
17
|
SingleQubitPauliChannel,
|
|
@@ -58,6 +59,18 @@ class _RewriteNoiseStmts(RewriteRule):
|
|
|
58
59
|
def rewrite_two_qubit_pauli_channel(
|
|
59
60
|
self, node: TwoQubitPauliChannel
|
|
60
61
|
) -> RewriteResult:
|
|
62
|
+
operator_list = self._insert_two_qubit_paulis_before_node(node)
|
|
63
|
+
stochastic_unitary = StochasticUnitaryChannel(
|
|
64
|
+
operators=operator_list, probabilities=node.params
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
node.replace_by(stochastic_unitary)
|
|
68
|
+
return RewriteResult(has_done_something=True)
|
|
69
|
+
|
|
70
|
+
@staticmethod
|
|
71
|
+
def _insert_two_qubit_paulis_before_node(
|
|
72
|
+
node: TwoQubitPauliChannel | Depolarize2,
|
|
73
|
+
) -> ir.ResultValue:
|
|
61
74
|
paulis = (Identity(sites=1), X(), Y(), Z())
|
|
62
75
|
for op in paulis:
|
|
63
76
|
op.insert_before(node)
|
|
@@ -71,12 +84,7 @@ class _RewriteNoiseStmts(RewriteRule):
|
|
|
71
84
|
operators.append(op.result)
|
|
72
85
|
|
|
73
86
|
(operator_list := ilist.New(values=operators)).insert_before(node)
|
|
74
|
-
|
|
75
|
-
operators=operator_list.result, probabilities=node.params
|
|
76
|
-
)
|
|
77
|
-
|
|
78
|
-
node.replace_by(stochastic_unitary)
|
|
79
|
-
return RewriteResult(has_done_something=True)
|
|
87
|
+
return operator_list.result
|
|
80
88
|
|
|
81
89
|
def rewrite_p_p_error(self, node: PPError) -> RewriteResult:
|
|
82
90
|
(operators := ilist.New(values=(node.op,))).insert_before(node)
|
|
@@ -95,8 +103,14 @@ class _RewriteNoiseStmts(RewriteRule):
|
|
|
95
103
|
op.insert_before(node)
|
|
96
104
|
operators.append(op.result)
|
|
97
105
|
|
|
106
|
+
# NOTE: need to divide the probability by 3 to get the correct total error rate
|
|
107
|
+
(three := py.Constant(3)).insert_before(node)
|
|
108
|
+
(p_over_3 := py.Div(node.p, three.result)).insert_before(node)
|
|
109
|
+
|
|
98
110
|
(operator_list := ilist.New(values=operators)).insert_before(node)
|
|
99
|
-
(ps := ilist.New(values=[
|
|
111
|
+
(ps := ilist.New(values=[p_over_3.result for _ in range(3)])).insert_before(
|
|
112
|
+
node
|
|
113
|
+
)
|
|
100
114
|
|
|
101
115
|
stochastic_unitary = StochasticUnitaryChannel(
|
|
102
116
|
operators=operator_list.result, probabilities=ps.result
|
|
@@ -105,6 +119,21 @@ class _RewriteNoiseStmts(RewriteRule):
|
|
|
105
119
|
|
|
106
120
|
return RewriteResult(has_done_something=True)
|
|
107
121
|
|
|
122
|
+
def rewrite_depolarize2(self, node: Depolarize2) -> RewriteResult:
|
|
123
|
+
operator_list = self._insert_two_qubit_paulis_before_node(node)
|
|
124
|
+
|
|
125
|
+
# NOTE: need to divide the probability by 15 to get the correct total error rate
|
|
126
|
+
(fifteen := py.Constant(15)).insert_before(node)
|
|
127
|
+
(p_over_15 := py.Div(node.p, fifteen.result)).insert_before(node)
|
|
128
|
+
(probs := ilist.New(values=[p_over_15.result] * 15)).insert_before(node)
|
|
129
|
+
|
|
130
|
+
stochastic_unitary = StochasticUnitaryChannel(
|
|
131
|
+
operators=operator_list, probabilities=probs.result
|
|
132
|
+
)
|
|
133
|
+
node.replace_by(stochastic_unitary)
|
|
134
|
+
|
|
135
|
+
return RewriteResult(has_done_something=True)
|
|
136
|
+
|
|
108
137
|
|
|
109
138
|
class RewriteNoiseStmts(Pass):
|
|
110
139
|
def unsafe_run(self, mt: ir.Method):
|