bloqade-circuit 0.7.4__tar.gz → 0.7.6__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.7.4 → bloqade_circuit-0.7.6}/PKG-INFO +1 -1
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/pyproject.toml +1 -1
- bloqade_circuit-0.7.6/src/bloqade/native/__init__.py +24 -0
- bloqade_circuit-0.7.6/src/bloqade/native/_prelude.py +45 -0
- bloqade_circuit-0.7.6/src/bloqade/native/dialects/gates/__init__.py +3 -0
- bloqade_circuit-0.7.6/src/bloqade/native/dialects/gates/_dialect.py +3 -0
- bloqade_circuit-0.7.6/src/bloqade/native/dialects/gates/_interface.py +32 -0
- bloqade_circuit-0.7.6/src/bloqade/native/dialects/gates/stmts.py +31 -0
- bloqade_circuit-0.7.6/src/bloqade/native/stdlib/broadcast.py +246 -0
- bloqade_circuit-0.7.6/src/bloqade/native/stdlib/simple.py +219 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/pyqrack/__init__.py +1 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/pyqrack/device.py +95 -5
- bloqade_circuit-0.7.6/src/bloqade/pyqrack/native.py +49 -0
- bloqade_circuit-0.7.6/src/bloqade/pyqrack/task.py +147 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/cirq/emit/qubit.py +1 -3
- bloqade_circuit-0.7.6/test/native/test_stdlib.py +75 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/pyqrack/runtime/test_qrack.py +86 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/squin/cirq/test_squin_to_cirq.py +16 -0
- bloqade_circuit-0.7.6/test/stim/passes/__init__.py +0 -0
- bloqade_circuit-0.7.6/test/stim/wrapper/__init__.py +0 -0
- bloqade_circuit-0.7.6/test/visual/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/uv.lock +4 -4
- bloqade_circuit-0.7.4/src/bloqade/pyqrack/task.py +0 -53
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/.github/dependabot.yml +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/.github/workflows/ci.yml +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/.github/workflows/isort.yml +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/.github/workflows/lint.yml +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/.github/workflows/release.yml +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/.gitignore +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/.pre-commit-config.yaml +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/LICENSE +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/README.md +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/_typos.toml +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/justfile +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/analysis/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/analysis/address/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/analysis/address/analysis.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/analysis/address/impls.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/analysis/address/lattice.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/analysis/fidelity/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/analysis/fidelity/analysis.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/analysis/measure_id/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/analysis/measure_id/analysis.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/analysis/measure_id/impls.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/analysis/measure_id/lattice.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/cirq_utils/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/cirq_utils/lineprog.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/cirq_utils/noise/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/cirq_utils/noise/_two_zone_utils.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/cirq_utils/noise/conflict_graph.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/cirq_utils/noise/model.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/cirq_utils/noise/transform.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/cirq_utils/parallelize.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/device.py +0 -0
- {bloqade_circuit-0.7.4/src/bloqade/pyqrack/noise → bloqade_circuit-0.7.6/src/bloqade/native/dialects}/__init__.py +0 -0
- {bloqade_circuit-0.7.4/src/bloqade/pyqrack/qasm2 → bloqade_circuit-0.7.6/src/bloqade/native/stdlib}/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/pyqrack/base.py +0 -0
- {bloqade_circuit-0.7.4/src/bloqade/pyqrack/squin → bloqade_circuit-0.7.6/src/bloqade/pyqrack/noise}/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/pyqrack/noise/native.py +0 -0
- {bloqade_circuit-0.7.4/src/bloqade/qasm2/rewrite/noise → bloqade_circuit-0.7.6/src/bloqade/pyqrack/qasm2}/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/pyqrack/qasm2/core.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/pyqrack/qasm2/glob.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/pyqrack/qasm2/parallel.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/pyqrack/qasm2/uop.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/pyqrack/reg.py +0 -0
- {bloqade_circuit-0.7.4/src/bloqade/rewrite → bloqade_circuit-0.7.6/src/bloqade/pyqrack/squin}/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/pyqrack/squin/noise/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/pyqrack/squin/noise/native.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/pyqrack/squin/op.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/pyqrack/squin/qubit.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/pyqrack/squin/runtime.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/pyqrack/squin/wire.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/pyqrack/target.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/_qasm_loading.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/_wrappers.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/dialects/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/dialects/core/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/dialects/core/_dialect.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/dialects/core/_emit.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/dialects/core/_typeinfer.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/dialects/core/address.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/dialects/core/stmts.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/dialects/expr/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/dialects/expr/_dialect.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/dialects/expr/_emit.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/dialects/expr/_from_python.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/dialects/expr/_interp.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/dialects/expr/stmts.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/dialects/glob.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/dialects/indexing.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/dialects/inline.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/dialects/noise/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/dialects/noise/_dialect.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/dialects/noise/fidelity.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/dialects/noise/model.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/dialects/noise/stmts.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/dialects/parallel.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/dialects/uop/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/dialects/uop/_dialect.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/dialects/uop/_emit.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/dialects/uop/schedule.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/dialects/uop/stmts.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/emit/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/emit/base.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/emit/gate.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/emit/impls/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/emit/impls/noise.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/emit/main.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/emit/target.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/glob.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/groups.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/noise.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/parallel.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/parse/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/parse/ast.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/parse/build.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/parse/lowering.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/parse/parser.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/parse/print.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/parse/qasm2.lark +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/parse/visitor.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/parse/visitor.pyi +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/passes/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/passes/fold.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/passes/glob.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/passes/lift_qubits.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/passes/noise.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/passes/parallel.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/passes/py2qasm.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/passes/qasm2py.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/passes/unroll_if.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/rewrite/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/rewrite/desugar.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/rewrite/glob.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/rewrite/insert_qubits.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/rewrite/native_gates.py +0 -0
- {bloqade_circuit-0.7.4/src/bloqade/squin/stdlib → bloqade_circuit-0.7.6/src/bloqade/qasm2/rewrite/noise}/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/rewrite/noise/heuristic_noise.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/rewrite/noise/remove_noise.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/rewrite/parallel_to_glob.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/rewrite/parallel_to_uop.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/rewrite/register.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/rewrite/uop_to_parallel.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qasm2/types.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qbraid/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qbraid/lowering.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qbraid/schema.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qbraid/simulation_result.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/qbraid/target.py +0 -0
- {bloqade_circuit-0.7.4/src/bloqade/visual/animation → bloqade_circuit-0.7.6/src/bloqade/rewrite}/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/rewrite/passes/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/rewrite/passes/canonicalize_ilist.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/rewrite/rules/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/rewrite/rules/flatten_ilist.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/rewrite/rules/inline_getitem_ilist.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/rewrite/rules/split_ifs.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/_typeinfer.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/analysis/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/analysis/address_impl.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/analysis/nsites/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/analysis/nsites/analysis.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/analysis/nsites/impls.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/analysis/nsites/lattice.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/analysis/schedule.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/cirq/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/cirq/emit/emit_circuit.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/cirq/emit/noise.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/cirq/emit/op.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/cirq/emit/runtime.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/cirq/lowering.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/groups.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/lowering.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/noise/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/noise/_dialect.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/noise/_wrapper.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/noise/rewrite.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/noise/stmts.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/op/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/op/_dialect.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/op/_wrapper.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/op/number.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/op/rewrite.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/op/stdlib.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/op/stmts.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/op/traits.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/op/types.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/parallel.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/qubit.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/rewrite/U3_to_clifford.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/rewrite/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/rewrite/canonicalize.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/rewrite/desugar.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/rewrite/remove_dangling_qubits.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/rewrite/wrap_analysis.py +0 -0
- {bloqade_circuit-0.7.4/src/bloqade/visual/animation/runtime → bloqade_circuit-0.7.6/src/bloqade/squin/stdlib}/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/stdlib/channel.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/stdlib/gate.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/types.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/squin/wire.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/_wrappers.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/dialects/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/dialects/auxiliary/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/dialects/auxiliary/_dialect.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/dialects/auxiliary/emit.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/dialects/auxiliary/interp.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/dialects/auxiliary/lowering.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/dialects/auxiliary/stmts/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/dialects/auxiliary/stmts/annotate.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/dialects/auxiliary/stmts/const.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/dialects/auxiliary/types.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/dialects/collapse/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/dialects/collapse/_dialect.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/dialects/collapse/emit_str.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/dialects/collapse/stmts/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/dialects/collapse/stmts/measure.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/dialects/collapse/stmts/pp_measure.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/dialects/collapse/stmts/reset.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/dialects/gate/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/dialects/gate/_dialect.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/dialects/gate/emit.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/dialects/gate/stmts/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/dialects/gate/stmts/base.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/dialects/gate/stmts/clifford_1q.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/dialects/gate/stmts/clifford_2q.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/dialects/gate/stmts/control_2q.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/dialects/gate/stmts/pp.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/dialects/noise/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/dialects/noise/_dialect.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/dialects/noise/emit.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/dialects/noise/stmts.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/emit/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/emit/stim_str.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/groups.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/parse/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/parse/lowering.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/passes/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/passes/simplify_ifs.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/passes/squin_to_stim.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/rewrite/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/rewrite/ifs_to_stim.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/rewrite/py_constant_to_stim.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/rewrite/qubit_to_stim.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/rewrite/squin_measure.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/rewrite/squin_noise.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/rewrite/util.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/rewrite/wire_identity_elimination.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/rewrite/wire_to_stim.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/upstream/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/stim/upstream/from_squin.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/task.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/test_utils.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/types.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/visual/__init__.py +0 -0
- {bloqade_circuit-0.7.4/test → bloqade_circuit-0.7.6/src/bloqade/visual/animation}/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/visual/animation/animate.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/visual/animation/base.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/visual/animation/gate_event.py +0 -0
- {bloqade_circuit-0.7.4/test/pyqrack → bloqade_circuit-0.7.6/src/bloqade/visual/animation/runtime}/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/visual/animation/runtime/aod.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/visual/animation/runtime/atoms.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/visual/animation/runtime/ppoly.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/visual/animation/runtime/qpustate.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/src/bloqade/visual/animation/runtime/utils.py +0 -0
- {bloqade_circuit-0.7.4/test/pyqrack/runtime → bloqade_circuit-0.7.6/test}/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/analysis/address/test_qubit_analysis.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/analysis/address/test_wire_analysis.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/analysis/address/util.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/analysis/fidelity/test_fidelity.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/analysis/measure_id/test_measure_id.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/cirq_utils/noise/test_noise_models.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/cirq_utils/noise/test_noisy_ghz.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/cirq_utils/noise/test_one_zone_correlated_noise.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/cirq_utils/test_lpsolvers.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/cirq_utils/test_parallelize.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/cirq_utils/test_transpile.py +0 -0
- {bloqade_circuit-0.7.4/test/pyqrack/runtime/noise → bloqade_circuit-0.7.6/test/native}/__init__.py +0 -0
- {bloqade_circuit-0.7.4/test/qasm2 → bloqade_circuit-0.7.6/test/pyqrack}/__init__.py +0 -0
- {bloqade_circuit-0.7.4/test/qasm2/parse → bloqade_circuit-0.7.6/test/pyqrack/runtime}/__init__.py +0 -0
- {bloqade_circuit-0.7.4/test/qasm2/passes → bloqade_circuit-0.7.6/test/pyqrack/runtime/noise}/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/pyqrack/runtime/noise/qasm2/test_loss.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/pyqrack/runtime/noise/qasm2/test_pauli.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/pyqrack/runtime/test_dyn_memory.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/pyqrack/squin/test_kernel.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/pyqrack/squin/test_noise.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/pyqrack/test_target.py +0 -0
- {bloqade_circuit-0.7.4/test/qbraid → bloqade_circuit-0.7.6/test/qasm2}/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qasm2/analysis/test_dag.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qasm2/emit/test_extended.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qasm2/emit/test_extended_noise.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qasm2/emit/test_qasm2.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qasm2/emit/test_qasm2_emit.py +0 -0
- {bloqade_circuit-0.7.4/test/sample → bloqade_circuit-0.7.6/test/qasm2/parse}/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qasm2/parse/invalid_programs/invalid_if.qasm +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qasm2/parse/programs/README.md +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qasm2/parse/programs/global.qasm +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qasm2/parse/programs/iqft1.qasm +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qasm2/parse/programs/main.qasm +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qasm2/parse/programs/noise.qasm +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qasm2/parse/programs/para.qasm +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qasm2/parse/programs/process_tomo.qasm +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qasm2/parse/programs/qelib1.inc +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qasm2/parse/programs/qft.qasm +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qasm2/parse/programs/qft2.qasm +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qasm2/parse/programs/rb.qasm +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qasm2/parse/programs/rep_code.qasm +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qasm2/parse/programs/ripple_carry_adder.qasm +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qasm2/parse/programs/tele.qasm +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qasm2/parse/programs/valid_if.qasm +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qasm2/parse/test_ast.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qasm2/parse/test_roundtrip.py +0 -0
- {bloqade_circuit-0.7.4/test/squin/wire → bloqade_circuit-0.7.6/test/qasm2/passes}/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qasm2/passes/test_global_to_parallel.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qasm2/passes/test_global_to_uop.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qasm2/passes/test_heuristic_noise.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qasm2/passes/test_parallel_to_global.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qasm2/passes/test_parallel_to_uop.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qasm2/passes/test_qasm2py.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qasm2/passes/test_unroll_if.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qasm2/passes/test_uop_to_parallel.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qasm2/test_count.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qasm2/test_inline.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qasm2/test_lowering.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qasm2/test_native.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qasm2/test_two2one.py +0 -0
- {bloqade_circuit-0.7.4/test/stim → bloqade_circuit-0.7.6/test/qbraid}/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qbraid/test_clean_circuit.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qbraid/test_lowering.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/qbraid/test_target.py +0 -0
- {bloqade_circuit-0.7.4/test/stim/dialects → bloqade_circuit-0.7.6/test/sample}/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/sample/test_noise_model.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/squin/analysis/test_nsites_analysis.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/squin/cirq/test_cirq_to_squin.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/squin/cirq/test_squin_noise_to_cirq.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/squin/op/test_reset.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/squin/rewrite/test_U3_to_clifford.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/squin/rewrite/test_canonicalize.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/squin/rewrite/test_desugar.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/squin/rewrite/test_mult_rewrite.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/squin/test_constprop.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/squin/test_stdlib_shorthands.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/squin/test_sugar.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/squin/test_typeinfer.py +0 -0
- {bloqade_circuit-0.7.4/test/stim/dialects/stim → bloqade_circuit-0.7.6/test/squin/wire}/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/squin/wire/test_check.py +0 -0
- {bloqade_circuit-0.7.4/test/stim/dialects/stim/emit → bloqade_circuit-0.7.6/test/stim}/__init__.py +0 -0
- {bloqade_circuit-0.7.4/test/stim/parse → bloqade_circuit-0.7.6/test/stim/dialects}/__init__.py +0 -0
- {bloqade_circuit-0.7.4/test/stim/passes → bloqade_circuit-0.7.6/test/stim/dialects/stim}/__init__.py +0 -0
- {bloqade_circuit-0.7.4/test/stim/wrapper → bloqade_circuit-0.7.6/test/stim/dialects/stim/emit}/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/dialects/stim/emit/base.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/dialects/stim/emit/test_stim_1q.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/dialects/stim/emit/test_stim_ctrl.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/dialects/stim/emit/test_stim_detector.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/dialects/stim/emit/test_stim_meas.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/dialects/stim/emit/test_stim_noise.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/dialects/stim/emit/test_stim_obs_inc.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/dialects/stim/emit/test_stim_ppmeas.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/dialects/stim/emit/test_stim_qubit_coords.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/dialects/stim/emit/test_stim_spp.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/dialects/stim/test_stim_circuits.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/dialects/stim/test_stim_const.py +0 -0
- {bloqade_circuit-0.7.4/test/visual → bloqade_circuit-0.7.6/test/stim/parse}/__init__.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/parse/base.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/parse/test_parse.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/parse/test_parse_clifford.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/parse/test_parse_control.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/parse/test_parse_custom.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/parse/test_parse_noise.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/parse/test_parse_spp.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/noise/apply_depolarize1.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/noise/apply_loss.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/noise/apply_pauli_channel_1.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/noise/broadcast_depolarize1.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/noise/broadcast_depolarize2.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/noise/broadcast_iid_bit_flip_channel.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/noise/broadcast_iid_phase_flip_channel.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/noise/broadcast_iid_y_flip_channel.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/noise/broadcast_pauli_channel_1.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/noise/broadcast_pauli_channel_1_many_qubits.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/noise/broadcast_pauli_channel_1_reuse.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/noise/broadcast_pauli_channel_2.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/noise/broadcast_pauli_channel_2_reuse_on_4_qubits.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/noise/wire_apply_pauli_channel_1.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/pure_squin_rewrite.txt +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/qubit/addition_assignment_measure.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/qubit/alias_with_measure_list.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/qubit/complex_storage_index_order.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/qubit/for_loop_nontrivial_index.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/qubit/measure_desugar.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/qubit/nested_for_loop.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/qubit/nested_list.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/qubit/non_pure_loop_iterator.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/qubit/pick_if_else.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/qubit/qubit.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/qubit/qubit_broadcast.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/qubit/qubit_loss.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/qubit/qubit_reset.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/qubit/record_index_order.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/qubit/simple_if_rewrite.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/qubit/u3_to_clifford.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/wire/wire.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/wire/wire_apply.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/wire/wire_apply_control.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/wire/wire_broadcast.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/wire/wire_broadcast_control.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/wire/wire_measure.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/wire/wire_multiple_apply.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/wire/wire_qubit_loss.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/stim_reference_programs/wire/wire_reset.stim +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/test_squin_meas_to_stim.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/test_squin_noise_to_stim.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/test_squin_qubit_to_stim.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/passes/test_squin_wire_to_stim.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/test_measure_id_analysis.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/stim/wrapper/test_wrapper.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/test_serialization.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/test/test_zone_model.py +0 -0
- {bloqade_circuit-0.7.4 → bloqade_circuit-0.7.6}/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.7.
|
|
3
|
+
Version: 0.7.6
|
|
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
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from .stdlib import broadcast as broadcast
|
|
2
|
+
from ._prelude import kernel as kernel
|
|
3
|
+
from .stdlib.simple import (
|
|
4
|
+
h as h,
|
|
5
|
+
s as s,
|
|
6
|
+
t as t,
|
|
7
|
+
x as x,
|
|
8
|
+
y as y,
|
|
9
|
+
z as z,
|
|
10
|
+
cx as cx,
|
|
11
|
+
cy as cy,
|
|
12
|
+
cz as cz,
|
|
13
|
+
rx as rx,
|
|
14
|
+
ry as ry,
|
|
15
|
+
rz as rz,
|
|
16
|
+
u3 as u3,
|
|
17
|
+
rot as rot,
|
|
18
|
+
s_dag as s_dag,
|
|
19
|
+
shift as shift,
|
|
20
|
+
sqrt_x as sqrt_x,
|
|
21
|
+
sqrt_y as sqrt_y,
|
|
22
|
+
sqrt_x_adj as sqrt_x_adj,
|
|
23
|
+
sqrt_y_adj as sqrt_y_adj,
|
|
24
|
+
)
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
from typing import Annotated
|
|
2
|
+
|
|
3
|
+
from kirin import ir
|
|
4
|
+
from kirin.passes import Default
|
|
5
|
+
from kirin.prelude import structural_no_opt
|
|
6
|
+
from typing_extensions import Doc
|
|
7
|
+
|
|
8
|
+
from bloqade.squin import qubit
|
|
9
|
+
|
|
10
|
+
from .dialects import gates
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@ir.dialect_group(structural_no_opt.union([gates, qubit]))
|
|
14
|
+
def kernel(self):
|
|
15
|
+
"""Compile a function to a native kernel."""
|
|
16
|
+
|
|
17
|
+
def run_pass(
|
|
18
|
+
mt,
|
|
19
|
+
*,
|
|
20
|
+
verify: Annotated[
|
|
21
|
+
bool, Doc("run `verify` before running passes, default is `True`")
|
|
22
|
+
] = True,
|
|
23
|
+
typeinfer: Annotated[
|
|
24
|
+
bool,
|
|
25
|
+
Doc(
|
|
26
|
+
"run type inference and apply the inferred type to IR, default `False`"
|
|
27
|
+
),
|
|
28
|
+
] = False,
|
|
29
|
+
fold: Annotated[bool, Doc("run folding passes")] = True,
|
|
30
|
+
aggressive: Annotated[
|
|
31
|
+
bool, Doc("run aggressive folding passes if `fold=True`")
|
|
32
|
+
] = False,
|
|
33
|
+
no_raise: Annotated[bool, Doc("do not raise exception during analysis")] = True,
|
|
34
|
+
) -> None:
|
|
35
|
+
default_pass = Default(
|
|
36
|
+
self,
|
|
37
|
+
verify=verify,
|
|
38
|
+
fold=fold,
|
|
39
|
+
aggressive=aggressive,
|
|
40
|
+
typeinfer=typeinfer,
|
|
41
|
+
no_raise=no_raise,
|
|
42
|
+
)
|
|
43
|
+
default_pass.fixpoint(mt)
|
|
44
|
+
|
|
45
|
+
return run_pass
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import typing
|
|
2
|
+
|
|
3
|
+
from kirin import lowering
|
|
4
|
+
from kirin.dialects import ilist
|
|
5
|
+
|
|
6
|
+
from bloqade.squin import qubit
|
|
7
|
+
|
|
8
|
+
from .stmts import CZ, R, Rz
|
|
9
|
+
|
|
10
|
+
Len = typing.TypeVar("Len")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@lowering.wraps(CZ)
|
|
14
|
+
def cz(
|
|
15
|
+
ctrls: ilist.IList[qubit.Qubit, Len],
|
|
16
|
+
qargs: ilist.IList[qubit.Qubit, Len],
|
|
17
|
+
): ...
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
@lowering.wraps(R)
|
|
21
|
+
def r(
|
|
22
|
+
inputs: ilist.IList[qubit.Qubit, typing.Any],
|
|
23
|
+
axis_angle: float,
|
|
24
|
+
rotation_angle: float,
|
|
25
|
+
): ...
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
@lowering.wraps(Rz)
|
|
29
|
+
def rz(
|
|
30
|
+
inputs: ilist.IList[qubit.Qubit, typing.Any],
|
|
31
|
+
rotation_angle: float,
|
|
32
|
+
): ...
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
from kirin import ir, types, lowering
|
|
2
|
+
from kirin.decl import info, statement
|
|
3
|
+
from kirin.dialects import ilist
|
|
4
|
+
|
|
5
|
+
from bloqade.squin import qubit
|
|
6
|
+
|
|
7
|
+
from ._dialect import dialect
|
|
8
|
+
|
|
9
|
+
N = types.TypeVar("N")
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@statement(dialect=dialect)
|
|
13
|
+
class CZ(ir.Statement):
|
|
14
|
+
traits = frozenset({lowering.FromPythonCall()})
|
|
15
|
+
ctrls: ir.SSAValue = info.argument(ilist.IListType[qubit.QubitType, N])
|
|
16
|
+
qargs: ir.SSAValue = info.argument(ilist.IListType[qubit.QubitType, N])
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
@statement(dialect=dialect)
|
|
20
|
+
class R(ir.Statement):
|
|
21
|
+
traits = frozenset({lowering.FromPythonCall()})
|
|
22
|
+
inputs: ir.SSAValue = info.argument(ilist.IListType[qubit.QubitType, types.Any])
|
|
23
|
+
axis_angle: ir.SSAValue = info.argument(types.Float)
|
|
24
|
+
rotation_angle: ir.SSAValue = info.argument(types.Float)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
@statement(dialect=dialect)
|
|
28
|
+
class Rz(ir.Statement):
|
|
29
|
+
traits = frozenset({lowering.FromPythonCall()})
|
|
30
|
+
inputs: ir.SSAValue = info.argument(ilist.IListType[qubit.QubitType, types.Any])
|
|
31
|
+
rotation_angle: ir.SSAValue = info.argument(types.Float)
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import math
|
|
2
|
+
from typing import Any, TypeVar
|
|
3
|
+
|
|
4
|
+
from kirin.dialects import ilist
|
|
5
|
+
|
|
6
|
+
from bloqade.squin import qubit
|
|
7
|
+
from bloqade.native._prelude import kernel
|
|
8
|
+
from bloqade.native.dialects.gates import _interface as native
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@kernel
|
|
12
|
+
def _radian_to_turn(angle: float) -> float:
|
|
13
|
+
"""Convert an angle from radians to turns.
|
|
14
|
+
|
|
15
|
+
Args:
|
|
16
|
+
angle (float): Angle in radians.
|
|
17
|
+
|
|
18
|
+
Returns:
|
|
19
|
+
float: Equivalent angle in turns.
|
|
20
|
+
"""
|
|
21
|
+
return angle / (2 * math.pi)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
@kernel
|
|
25
|
+
def rx(angle: float, qubits: ilist.IList[qubit.Qubit, Any]):
|
|
26
|
+
"""Apply an RX rotation gate on a group of qubits.
|
|
27
|
+
|
|
28
|
+
Args:
|
|
29
|
+
angle (float): Rotation angle in radians.
|
|
30
|
+
qubits (ilist.IList[qubit.Qubit, Any]): Target qubits.
|
|
31
|
+
"""
|
|
32
|
+
native.r(qubits, 0.0, _radian_to_turn(angle))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
@kernel
|
|
36
|
+
def x(qubits: ilist.IList[qubit.Qubit, Any]):
|
|
37
|
+
"""Apply a Pauli-X gate on a group of qubits.
|
|
38
|
+
|
|
39
|
+
Args:
|
|
40
|
+
qubits (ilist.IList[qubit.Qubit, Any]): Target qubits.
|
|
41
|
+
"""
|
|
42
|
+
rx(math.pi, qubits)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
@kernel
|
|
46
|
+
def sqrt_x(qubits: ilist.IList[qubit.Qubit, Any]):
|
|
47
|
+
"""Apply a sqrt(X) gate on a group of qubits.
|
|
48
|
+
|
|
49
|
+
Args:
|
|
50
|
+
qubits (ilist.IList[qubit.Qubit, Any]): Target qubits.
|
|
51
|
+
"""
|
|
52
|
+
rx(math.pi / 2.0, qubits)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
@kernel
|
|
56
|
+
def sqrt_x_adj(qubits: ilist.IList[qubit.Qubit, Any]):
|
|
57
|
+
"""Apply the adjoint of sqrt(X) on a group of qubits.
|
|
58
|
+
|
|
59
|
+
Args:
|
|
60
|
+
qubits (ilist.IList[qubit.Qubit, Any]): Target qubits.
|
|
61
|
+
"""
|
|
62
|
+
rx(-math.pi / 2.0, qubits)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
@kernel
|
|
66
|
+
def ry(angle: float, qubits: ilist.IList[qubit.Qubit, Any]):
|
|
67
|
+
"""Apply an RY rotation gate on a group of qubits.
|
|
68
|
+
|
|
69
|
+
Args:
|
|
70
|
+
angle (float): Rotation angle in radians.
|
|
71
|
+
qubits (ilist.IList[qubit.Qubit, Any]): Target qubits.
|
|
72
|
+
"""
|
|
73
|
+
native.r(qubits, 0.25, _radian_to_turn(angle))
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
@kernel
|
|
77
|
+
def y(qubits: ilist.IList[qubit.Qubit, Any]):
|
|
78
|
+
"""Apply a Pauli-Y gate on a group of qubits.
|
|
79
|
+
|
|
80
|
+
Args:
|
|
81
|
+
qubits (ilist.IList[qubit.Qubit, Any]): Target qubits.
|
|
82
|
+
"""
|
|
83
|
+
ry(math.pi, qubits)
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
@kernel
|
|
87
|
+
def sqrt_y(qubits: ilist.IList[qubit.Qubit, Any]):
|
|
88
|
+
"""Apply a sqrt(Y) gate on a group of qubits.
|
|
89
|
+
|
|
90
|
+
Args:
|
|
91
|
+
qubits (ilist.IList[qubit.Qubit, Any]): Target qubits.
|
|
92
|
+
"""
|
|
93
|
+
ry(-math.pi / 2.0, qubits)
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
@kernel
|
|
97
|
+
def sqrt_y_adj(qubits: ilist.IList[qubit.Qubit, Any]):
|
|
98
|
+
"""Apply the adjoint of sqrt(Y) on a group of qubits.
|
|
99
|
+
|
|
100
|
+
Args:
|
|
101
|
+
qubits (ilist.IList[qubit.Qubit, Any]): Target qubits.
|
|
102
|
+
"""
|
|
103
|
+
ry(math.pi / 2.0, qubits)
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
@kernel
|
|
107
|
+
def rz(angle: float, qubits: ilist.IList[qubit.Qubit, Any]):
|
|
108
|
+
"""Apply an RZ rotation gate on a group of qubits.
|
|
109
|
+
|
|
110
|
+
Args:
|
|
111
|
+
angle (float): Rotation angle in radians.
|
|
112
|
+
qubits (ilist.IList[qubit.Qubit, Any]): Target qubits.
|
|
113
|
+
"""
|
|
114
|
+
native.rz(qubits, _radian_to_turn(angle))
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
@kernel
|
|
118
|
+
def z(qubits: ilist.IList[qubit.Qubit, Any]):
|
|
119
|
+
"""Apply a Pauli-Z gate on a group of qubits.
|
|
120
|
+
|
|
121
|
+
Args:
|
|
122
|
+
qubits (ilist.IList[qubit.Qubit, Any]): Target qubits.
|
|
123
|
+
"""
|
|
124
|
+
rz(math.pi, qubits)
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
@kernel
|
|
128
|
+
def s(qubits: ilist.IList[qubit.Qubit, Any]):
|
|
129
|
+
"""Apply an S gate on a group of qubits.
|
|
130
|
+
|
|
131
|
+
Args:
|
|
132
|
+
qubits (ilist.IList[qubit.Qubit, Any]): Target qubits.
|
|
133
|
+
"""
|
|
134
|
+
rz(math.pi / 2.0, qubits)
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
@kernel
|
|
138
|
+
def s_adj(qubits: ilist.IList[qubit.Qubit, Any]):
|
|
139
|
+
"""Apply the adjoint of the S gate on a group of qubits.
|
|
140
|
+
|
|
141
|
+
Args:
|
|
142
|
+
qubits (ilist.IList[qubit.Qubit, Any]): Target qubits.
|
|
143
|
+
"""
|
|
144
|
+
rz(-math.pi / 2.0, qubits)
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
@kernel
|
|
148
|
+
def h(qubits: ilist.IList[qubit.Qubit, Any]):
|
|
149
|
+
"""Apply a Hadamard gate on a group of qubits.
|
|
150
|
+
|
|
151
|
+
Args:
|
|
152
|
+
qubits (ilist.IList[qubit.Qubit, Any]): Target qubits.
|
|
153
|
+
"""
|
|
154
|
+
s(qubits)
|
|
155
|
+
sqrt_x(qubits)
|
|
156
|
+
s(qubits)
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
@kernel
|
|
160
|
+
def t(qubits: ilist.IList[qubit.Qubit, Any]):
|
|
161
|
+
"""Apply a T gate on a group of qubits.
|
|
162
|
+
|
|
163
|
+
Args:
|
|
164
|
+
qubits (ilist.IList[qubit.Qubit, Any]): Target qubits.
|
|
165
|
+
"""
|
|
166
|
+
rz(math.pi / 4.0, qubits)
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
@kernel
|
|
170
|
+
def shift(angle: float, qubits: ilist.IList[qubit.Qubit, Any]):
|
|
171
|
+
"""Apply a phase shift to the |1> state on a group of qubits.
|
|
172
|
+
|
|
173
|
+
Args:
|
|
174
|
+
angle (float): Phase shift angle in radians.
|
|
175
|
+
qubits (ilist.IList[qubit.Qubit, Any]): Target qubits.
|
|
176
|
+
"""
|
|
177
|
+
rz(angle / 2.0, qubits)
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
@kernel
|
|
181
|
+
def rot(phi: float, theta: float, omega: float, qubits: ilist.IList[qubit.Qubit, Any]):
|
|
182
|
+
"""Apply a general single-qubit rotation on a group of qubits.
|
|
183
|
+
|
|
184
|
+
Args:
|
|
185
|
+
phi (float): Z rotation before Y (radians).
|
|
186
|
+
theta (float): Y rotation (radians).
|
|
187
|
+
omega (float): Z rotation after Y (radians).
|
|
188
|
+
qubits (ilist.IList[qubit.Qubit, Any]): Target qubits.
|
|
189
|
+
"""
|
|
190
|
+
rz(phi, qubits)
|
|
191
|
+
ry(theta, qubits)
|
|
192
|
+
rz(omega, qubits)
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
@kernel
|
|
196
|
+
def u3(theta: float, phi: float, lam: float, qubits: ilist.IList[qubit.Qubit, Any]):
|
|
197
|
+
"""Apply the U3 gate on a group of qubits.
|
|
198
|
+
|
|
199
|
+
Args:
|
|
200
|
+
theta (float): Rotation around Y axis (radians).
|
|
201
|
+
phi (float): Global phase shift component (radians).
|
|
202
|
+
lam (float): Z rotations in decomposition (radians).
|
|
203
|
+
qubits (ilist.IList[qubit.Qubit, Any]): Target qubits.
|
|
204
|
+
"""
|
|
205
|
+
rot(lam, theta, -lam, qubits)
|
|
206
|
+
shift(phi + lam, qubits)
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
N = TypeVar("N")
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
@kernel
|
|
213
|
+
def cz(controls: ilist.IList[qubit.Qubit, N], qubits: ilist.IList[qubit.Qubit, N]):
|
|
214
|
+
"""Apply a controlled-Z gate on a pairs of qubits.
|
|
215
|
+
|
|
216
|
+
Args:
|
|
217
|
+
controls (ilist.IList[qubit.Qubit, N]): Control qubits.
|
|
218
|
+
qubits (ilist.IList[qubit.Qubit, N]): Target qubits.
|
|
219
|
+
"""
|
|
220
|
+
native.cz(controls, qubits)
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
@kernel
|
|
224
|
+
def cx(controls: ilist.IList[qubit.Qubit, N], targets: ilist.IList[qubit.Qubit, N]):
|
|
225
|
+
"""Apply a controlled-X gate on a pairs of qubits.
|
|
226
|
+
|
|
227
|
+
Args:
|
|
228
|
+
controls (ilist.IList[qubit.Qubit, N]): Control qubits.
|
|
229
|
+
targets (ilist.IList[qubit.Qubit, N]): Target qubits.
|
|
230
|
+
"""
|
|
231
|
+
sqrt_y_adj(targets)
|
|
232
|
+
cz(controls, targets)
|
|
233
|
+
sqrt_y(targets)
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
@kernel
|
|
237
|
+
def cy(controls: ilist.IList[qubit.Qubit, N], targets: ilist.IList[qubit.Qubit, N]):
|
|
238
|
+
"""Apply a controlled-Y gate on a pairs of qubits.
|
|
239
|
+
|
|
240
|
+
Args:
|
|
241
|
+
controls (ilist.IList[qubit.Qubit, N]): Control qubits.
|
|
242
|
+
targets (ilist.IList[qubit.Qubit, N]): Target qubits.
|
|
243
|
+
"""
|
|
244
|
+
sqrt_x(targets)
|
|
245
|
+
cz(controls, targets)
|
|
246
|
+
sqrt_x_adj(targets)
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
from kirin.dialects import ilist
|
|
2
|
+
|
|
3
|
+
from bloqade.squin import qubit
|
|
4
|
+
|
|
5
|
+
from . import broadcast
|
|
6
|
+
from .._prelude import kernel
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@kernel
|
|
10
|
+
def rx(angle: float, qubit: qubit.Qubit):
|
|
11
|
+
"""Apply an RX rotation gate on a single qubit.
|
|
12
|
+
|
|
13
|
+
Args:
|
|
14
|
+
angle (float): Rotation angle in radians.
|
|
15
|
+
qubit (qubit.Qubit): The qubit to apply the rotation to.
|
|
16
|
+
"""
|
|
17
|
+
broadcast.rx(angle, ilist.IList([qubit]))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
@kernel
|
|
21
|
+
def x(qubit: qubit.Qubit):
|
|
22
|
+
"""Apply a Pauli-X gate on a single qubit.
|
|
23
|
+
|
|
24
|
+
Args:
|
|
25
|
+
qubit (qubit.Qubit): The qubit to apply the X gate to.
|
|
26
|
+
"""
|
|
27
|
+
broadcast.x(ilist.IList([qubit]))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
@kernel
|
|
31
|
+
def sqrt_x(qubit: qubit.Qubit):
|
|
32
|
+
"""Apply a sqrt(X) gate on a single qubit.
|
|
33
|
+
|
|
34
|
+
Args:
|
|
35
|
+
qubit (qubit.Qubit): The qubit to apply the sqrt(X) gate to.
|
|
36
|
+
"""
|
|
37
|
+
broadcast.sqrt_x(ilist.IList([qubit]))
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
@kernel
|
|
41
|
+
def sqrt_x_adj(qubit: qubit.Qubit):
|
|
42
|
+
"""Apply the adjoint of sqrt(X) on a single qubit.
|
|
43
|
+
|
|
44
|
+
Args:
|
|
45
|
+
qubit (qubit.Qubit): The qubit to apply the adjoint sqrt(X) gate to.
|
|
46
|
+
"""
|
|
47
|
+
broadcast.sqrt_x_adj(ilist.IList([qubit]))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
@kernel
|
|
51
|
+
def ry(angle: float, qubit: qubit.Qubit):
|
|
52
|
+
"""Apply an RY rotation gate on a single qubit.
|
|
53
|
+
|
|
54
|
+
Args:
|
|
55
|
+
angle (float): Rotation angle in radians.
|
|
56
|
+
qubit (qubit.Qubit): The qubit to apply the rotation to.
|
|
57
|
+
"""
|
|
58
|
+
broadcast.ry(angle, ilist.IList([qubit]))
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
@kernel
|
|
62
|
+
def y(qubit: qubit.Qubit):
|
|
63
|
+
"""Apply a Pauli-Y gate on a single qubit.
|
|
64
|
+
|
|
65
|
+
Args:
|
|
66
|
+
qubit (qubit.Qubit): The qubit to apply the Y gate to.
|
|
67
|
+
"""
|
|
68
|
+
broadcast.y(ilist.IList([qubit]))
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
@kernel
|
|
72
|
+
def sqrt_y(qubit: qubit.Qubit):
|
|
73
|
+
"""Apply a sqrt(Y) gate on a single qubit.
|
|
74
|
+
|
|
75
|
+
Args:
|
|
76
|
+
qubit (qubit.Qubit): The qubit to apply the sqrt(Y) gate to.
|
|
77
|
+
"""
|
|
78
|
+
broadcast.sqrt_y(ilist.IList([qubit]))
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
@kernel
|
|
82
|
+
def sqrt_y_adj(qubit: qubit.Qubit):
|
|
83
|
+
"""Apply the adjoint of sqrt(Y) on a single qubit.
|
|
84
|
+
|
|
85
|
+
Args:
|
|
86
|
+
qubit (qubit.Qubit): The qubit to apply the adjoint sqrt(Y) gate to.
|
|
87
|
+
"""
|
|
88
|
+
broadcast.sqrt_y_adj(ilist.IList([qubit]))
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
@kernel
|
|
92
|
+
def rz(angle: float, qubit: qubit.Qubit):
|
|
93
|
+
"""Apply an RZ rotation gate on a single qubit.
|
|
94
|
+
|
|
95
|
+
Args:
|
|
96
|
+
angle (float): Rotation angle in radians.
|
|
97
|
+
qubit (qubit.Qubit): The qubit to apply the rotation to.
|
|
98
|
+
"""
|
|
99
|
+
broadcast.rz(angle, ilist.IList([qubit]))
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
@kernel
|
|
103
|
+
def z(qubit: qubit.Qubit):
|
|
104
|
+
"""Apply a Pauli-Z gate on a single qubit.
|
|
105
|
+
|
|
106
|
+
Args:
|
|
107
|
+
qubit (qubit.Qubit): The qubit to apply the Z gate to.
|
|
108
|
+
"""
|
|
109
|
+
broadcast.z(ilist.IList([qubit]))
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
@kernel
|
|
113
|
+
def s(qubit: qubit.Qubit):
|
|
114
|
+
"""Apply an S gate on a single qubit.
|
|
115
|
+
|
|
116
|
+
Args:
|
|
117
|
+
qubit (qubit.Qubit): The qubit to apply the S gate to.
|
|
118
|
+
"""
|
|
119
|
+
broadcast.s(ilist.IList([qubit]))
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
@kernel
|
|
123
|
+
def s_dag(qubit: qubit.Qubit):
|
|
124
|
+
"""Apply the adjoint of the S gate on a single qubit.
|
|
125
|
+
|
|
126
|
+
Args:
|
|
127
|
+
qubit (qubit.Qubit): The qubit to apply the adjoint S gate to.
|
|
128
|
+
"""
|
|
129
|
+
broadcast.s_adj(ilist.IList([qubit]))
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
@kernel
|
|
133
|
+
def h(qubit: qubit.Qubit):
|
|
134
|
+
"""Apply a Hadamard gate on a single qubit.
|
|
135
|
+
|
|
136
|
+
Args:
|
|
137
|
+
qubit (qubit.Qubit): The qubit to apply the Hadamard gate to.
|
|
138
|
+
"""
|
|
139
|
+
broadcast.h(ilist.IList([qubit]))
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
@kernel
|
|
143
|
+
def t(qubit: qubit.Qubit):
|
|
144
|
+
"""Apply a T gate on a single qubit.
|
|
145
|
+
|
|
146
|
+
Args:
|
|
147
|
+
qubit (qubit.Qubit): The qubit to apply the T gate to.
|
|
148
|
+
"""
|
|
149
|
+
broadcast.t(ilist.IList([qubit]))
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
@kernel
|
|
153
|
+
def shift(angle: float, qubit: qubit.Qubit):
|
|
154
|
+
"""Apply a phase shift on the |1> state of a single qubit.
|
|
155
|
+
|
|
156
|
+
Args:
|
|
157
|
+
angle (float): Shift angle in radians.
|
|
158
|
+
qubit (qubit.Qubit): The qubit to apply the shift to.
|
|
159
|
+
"""
|
|
160
|
+
broadcast.shift(angle, ilist.IList([qubit]))
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
@kernel
|
|
164
|
+
def rot(phi: float, theta: float, omega: float, qubit: qubit.Qubit):
|
|
165
|
+
"""Apply a general single-qubit rotation on a single qubit.
|
|
166
|
+
|
|
167
|
+
Args:
|
|
168
|
+
phi (float): Z rotation before Y (radians).
|
|
169
|
+
theta (float): Y rotation (radians).
|
|
170
|
+
omega (float): Z rotation after Y (radians).
|
|
171
|
+
qubit (qubit.Qubit): The qubit to apply the rotation to.
|
|
172
|
+
"""
|
|
173
|
+
broadcast.rot(phi, theta, omega, ilist.IList([qubit]))
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
@kernel
|
|
177
|
+
def u3(theta: float, phi: float, lam: float, qubit: qubit.Qubit):
|
|
178
|
+
"""Apply the U3 gate on a single qubit.
|
|
179
|
+
|
|
180
|
+
Args:
|
|
181
|
+
theta (float): Rotation angle around the Y axis in radians.
|
|
182
|
+
phi (float): Rotation angle around the Z axis in radians.
|
|
183
|
+
lam (float): Rotation angle around the Z axis in radians.
|
|
184
|
+
qubit (qubit.Qubit): The qubit to apply the U3 gate to.
|
|
185
|
+
"""
|
|
186
|
+
broadcast.u3(theta, phi, lam, ilist.IList([qubit]))
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
@kernel
|
|
190
|
+
def cz(control: qubit.Qubit, target: qubit.Qubit):
|
|
191
|
+
"""Apply a controlled-Z gate on two qubits.
|
|
192
|
+
|
|
193
|
+
Args:
|
|
194
|
+
control (qubit.Qubit): The control qubit.
|
|
195
|
+
target (qubit.Qubit): The target qubit.
|
|
196
|
+
"""
|
|
197
|
+
broadcast.cz(ilist.IList([control]), ilist.IList([target]))
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
@kernel
|
|
201
|
+
def cx(control: qubit.Qubit, target: qubit.Qubit):
|
|
202
|
+
"""Apply a controlled-X gate on two qubits.
|
|
203
|
+
|
|
204
|
+
Args:
|
|
205
|
+
control (qubit.Qubit): The control qubit.
|
|
206
|
+
target (qubit.Qubit): The target qubit.
|
|
207
|
+
"""
|
|
208
|
+
broadcast.cx(ilist.IList([control]), ilist.IList([target]))
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
@kernel
|
|
212
|
+
def cy(control: qubit.Qubit, targets: qubit.Qubit):
|
|
213
|
+
"""Apply a controlled-Y gate on two qubits.
|
|
214
|
+
|
|
215
|
+
Args:
|
|
216
|
+
control (qubit.Qubit): The control qubit.
|
|
217
|
+
targets (qubit.Qubit): The target qubit.
|
|
218
|
+
"""
|
|
219
|
+
broadcast.cy(ilist.IList([control]), ilist.IList([targets]))
|