bloqade-circuit 0.6.4__tar.gz → 0.6.5__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.4 → bloqade_circuit-0.6.5}/PKG-INFO +1 -1
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/pyproject.toml +1 -1
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/pyqrack/base.py +1 -1
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/__init__.py +4 -0
- bloqade_circuit-0.6.5/src/bloqade/squin/gate.py +193 -0
- bloqade_circuit-0.6.5/src/bloqade/squin/parallel.py +200 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/pyqrack/squin/test_kernel.py +32 -0
- bloqade_circuit-0.6.5/test/squin/test_stdlib_shorthands.py +158 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/uv.lock +1 -1
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/.github/dependabot.yml +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/.github/workflows/ci.yml +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/.github/workflows/isort.yml +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/.github/workflows/lint.yml +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/.github/workflows/release.yml +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/.gitignore +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/.pre-commit-config.yaml +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/LICENSE +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/README.md +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/_typos.toml +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/justfile +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/analysis/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/analysis/address/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/analysis/address/analysis.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/analysis/address/impls.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/analysis/address/lattice.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/analysis/fidelity/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/analysis/fidelity/analysis.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/analysis/measure_id/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/analysis/measure_id/analysis.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/analysis/measure_id/impls.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/analysis/measure_id/lattice.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/cirq_utils/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/cirq_utils/lineprog.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/cirq_utils/noise/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/cirq_utils/noise/_two_zone_utils.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/cirq_utils/noise/conflict_graph.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/cirq_utils/noise/model.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/cirq_utils/noise/transform.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/cirq_utils/parallelize.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/device.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/pyqrack/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/pyqrack/device.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/pyqrack/noise/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/pyqrack/noise/native.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/pyqrack/qasm2/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/pyqrack/qasm2/core.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/pyqrack/qasm2/glob.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/pyqrack/qasm2/parallel.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/pyqrack/qasm2/uop.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/pyqrack/reg.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/pyqrack/squin/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/pyqrack/squin/noise/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/pyqrack/squin/noise/native.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/pyqrack/squin/op.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/pyqrack/squin/qubit.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/pyqrack/squin/runtime.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/pyqrack/squin/wire.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/pyqrack/target.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/pyqrack/task.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/_qasm_loading.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/_wrappers.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/dialects/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/dialects/core/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/dialects/core/_dialect.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/dialects/core/_emit.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/dialects/core/_typeinfer.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/dialects/core/address.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/dialects/core/stmts.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/dialects/expr/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/dialects/expr/_dialect.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/dialects/expr/_emit.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/dialects/expr/_from_python.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/dialects/expr/_interp.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/dialects/expr/stmts.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/dialects/glob.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/dialects/indexing.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/dialects/inline.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/dialects/noise/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/dialects/noise/_dialect.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/dialects/noise/fidelity.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/dialects/noise/model.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/dialects/noise/stmts.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/dialects/parallel.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/dialects/uop/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/dialects/uop/_dialect.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/dialects/uop/_emit.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/dialects/uop/schedule.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/dialects/uop/stmts.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/emit/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/emit/base.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/emit/gate.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/emit/impls/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/emit/impls/noise.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/emit/main.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/emit/target.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/glob.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/groups.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/noise.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/parallel.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/parse/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/parse/ast.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/parse/build.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/parse/lowering.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/parse/parser.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/parse/print.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/parse/qasm2.lark +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/parse/visitor.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/parse/visitor.pyi +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/passes/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/passes/fold.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/passes/glob.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/passes/lift_qubits.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/passes/noise.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/passes/parallel.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/passes/py2qasm.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/passes/qasm2py.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/passes/unroll_if.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/rewrite/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/rewrite/desugar.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/rewrite/glob.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/rewrite/insert_qubits.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/rewrite/native_gates.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/rewrite/noise/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/rewrite/noise/heuristic_noise.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/rewrite/noise/remove_noise.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/rewrite/parallel_to_glob.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/rewrite/parallel_to_uop.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/rewrite/register.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/rewrite/uop_to_parallel.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qasm2/types.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qbraid/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qbraid/lowering.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qbraid/schema.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qbraid/simulation_result.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/qbraid/target.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/rewrite/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/rewrite/passes/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/rewrite/passes/canonicalize_ilist.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/rewrite/rules/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/rewrite/rules/flatten_ilist.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/rewrite/rules/inline_getitem_ilist.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/rewrite/rules/split_ifs.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/_typeinfer.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/analysis/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/analysis/address_impl.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/analysis/nsites/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/analysis/nsites/analysis.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/analysis/nsites/impls.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/analysis/nsites/lattice.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/analysis/schedule.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/cirq/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/cirq/emit/emit_circuit.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/cirq/emit/noise.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/cirq/emit/op.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/cirq/emit/qubit.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/cirq/emit/runtime.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/cirq/lowering.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/groups.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/lowering.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/noise/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/noise/_dialect.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/noise/_wrapper.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/noise/rewrite.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/noise/stmts.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/op/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/op/_dialect.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/op/_wrapper.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/op/number.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/op/rewrite.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/op/stdlib.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/op/stmts.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/op/traits.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/op/types.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/qubit.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/rewrite/U3_to_clifford.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/rewrite/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/rewrite/canonicalize.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/rewrite/desugar.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/rewrite/remove_dangling_qubits.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/rewrite/wrap_analysis.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/types.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/squin/wire.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/_wrappers.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/dialects/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/dialects/auxiliary/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/dialects/auxiliary/_dialect.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/dialects/auxiliary/emit.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/dialects/auxiliary/interp.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/dialects/auxiliary/lowering.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/dialects/auxiliary/stmts/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/dialects/auxiliary/stmts/annotate.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/dialects/auxiliary/stmts/const.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/dialects/auxiliary/types.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/dialects/collapse/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/dialects/collapse/_dialect.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/dialects/collapse/emit_str.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/dialects/collapse/stmts/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/dialects/collapse/stmts/measure.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/dialects/collapse/stmts/pp_measure.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/dialects/collapse/stmts/reset.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/dialects/gate/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/dialects/gate/_dialect.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/dialects/gate/emit.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/dialects/gate/stmts/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/dialects/gate/stmts/base.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/dialects/gate/stmts/clifford_1q.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/dialects/gate/stmts/clifford_2q.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/dialects/gate/stmts/control_2q.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/dialects/gate/stmts/pp.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/dialects/noise/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/dialects/noise/_dialect.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/dialects/noise/emit.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/dialects/noise/stmts.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/emit/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/emit/stim_str.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/groups.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/parse/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/parse/lowering.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/passes/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/passes/simplify_ifs.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/passes/squin_to_stim.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/rewrite/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/rewrite/ifs_to_stim.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/rewrite/py_constant_to_stim.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/rewrite/qubit_to_stim.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/rewrite/squin_measure.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/rewrite/squin_noise.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/rewrite/util.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/rewrite/wire_identity_elimination.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/rewrite/wire_to_stim.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/upstream/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/stim/upstream/from_squin.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/task.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/test_utils.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/types.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/visual/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/visual/animation/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/visual/animation/animate.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/visual/animation/base.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/visual/animation/gate_event.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/visual/animation/runtime/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/visual/animation/runtime/aod.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/visual/animation/runtime/atoms.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/visual/animation/runtime/ppoly.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/visual/animation/runtime/qpustate.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/src/bloqade/visual/animation/runtime/utils.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/analysis/address/test_qubit_analysis.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/analysis/address/test_wire_analysis.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/analysis/address/util.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/analysis/fidelity/test_fidelity.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/analysis/measure_id/test_measure_id.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/cirq_utils/noise/test_noise_models.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/cirq_utils/noise/test_noisy_ghz.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/cirq_utils/noise/test_one_zone_correlated_noise.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/cirq_utils/test_lpsolvers.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/cirq_utils/test_parallelize.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/cirq_utils/test_transpile.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/pyqrack/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/pyqrack/runtime/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/pyqrack/runtime/noise/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/pyqrack/runtime/noise/qasm2/test_loss.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/pyqrack/runtime/noise/qasm2/test_pauli.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/pyqrack/runtime/test_dyn_memory.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/pyqrack/runtime/test_qrack.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/pyqrack/squin/test_noise.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/pyqrack/test_target.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/analysis/test_dag.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/emit/test_extended.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/emit/test_extended_noise.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/emit/test_qasm2.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/emit/test_qasm2_emit.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/parse/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/parse/invalid_programs/invalid_if.qasm +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/parse/programs/README.md +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/parse/programs/global.qasm +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/parse/programs/iqft1.qasm +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/parse/programs/main.qasm +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/parse/programs/noise.qasm +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/parse/programs/para.qasm +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/parse/programs/process_tomo.qasm +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/parse/programs/qelib1.inc +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/parse/programs/qft.qasm +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/parse/programs/qft2.qasm +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/parse/programs/rb.qasm +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/parse/programs/rep_code.qasm +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/parse/programs/ripple_carry_adder.qasm +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/parse/programs/tele.qasm +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/parse/programs/valid_if.qasm +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/parse/test_ast.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/parse/test_roundtrip.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/passes/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/passes/test_global_to_parallel.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/passes/test_global_to_uop.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/passes/test_heuristic_noise.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/passes/test_parallel_to_global.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/passes/test_parallel_to_uop.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/passes/test_qasm2py.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/passes/test_unroll_if.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/passes/test_uop_to_parallel.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/test_count.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/test_inline.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/test_lowering.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/test_native.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qasm2/test_two2one.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qbraid/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qbraid/test_clean_circuit.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qbraid/test_lowering.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/qbraid/test_target.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/sample/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/sample/test_noise_model.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/squin/analysis/test_nsites_analysis.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/squin/cirq/test_cirq_to_squin.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/squin/cirq/test_squin_noise_to_cirq.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/squin/cirq/test_squin_to_cirq.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/squin/op/test_reset.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/squin/rewrite/test_U3_to_clifford.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/squin/rewrite/test_canonicalize.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/squin/rewrite/test_desugar.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/squin/rewrite/test_mult_rewrite.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/squin/test_constprop.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/squin/test_sugar.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/squin/test_typeinfer.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/squin/wire/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/squin/wire/test_check.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/dialects/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/dialects/stim/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/dialects/stim/emit/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/dialects/stim/emit/base.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/dialects/stim/emit/test_stim_1q.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/dialects/stim/emit/test_stim_ctrl.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/dialects/stim/emit/test_stim_detector.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/dialects/stim/emit/test_stim_meas.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/dialects/stim/emit/test_stim_noise.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/dialects/stim/emit/test_stim_obs_inc.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/dialects/stim/emit/test_stim_ppmeas.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/dialects/stim/emit/test_stim_qubit_coords.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/dialects/stim/emit/test_stim_spp.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/dialects/stim/test_stim_circuits.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/dialects/stim/test_stim_const.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/parse/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/parse/base.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/parse/test_parse.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/parse/test_parse_clifford.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/parse/test_parse_control.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/parse/test_parse_custom.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/parse/test_parse_noise.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/parse/test_parse_spp.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/stim_reference_programs/noise/apply_depolarize1.stim +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/stim_reference_programs/noise/apply_loss.stim +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/stim_reference_programs/noise/apply_pauli_channel_1.stim +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/stim_reference_programs/noise/broadcast_depolarize1.stim +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/stim_reference_programs/noise/broadcast_depolarize2.stim +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/stim_reference_programs/noise/broadcast_iid_bit_flip_channel.stim +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/stim_reference_programs/noise/broadcast_iid_phase_flip_channel.stim +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/stim_reference_programs/noise/broadcast_iid_y_flip_channel.stim +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/stim_reference_programs/noise/broadcast_pauli_channel_1.stim +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/stim_reference_programs/noise/broadcast_pauli_channel_1_many_qubits.stim +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/stim_reference_programs/noise/broadcast_pauli_channel_1_reuse.stim +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/stim_reference_programs/noise/broadcast_pauli_channel_2.stim +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/stim_reference_programs/noise/broadcast_pauli_channel_2_reuse_on_4_qubits.stim +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/stim_reference_programs/pure_squin_rewrite.txt +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/stim_reference_programs/qubit/addition_assignment_measure.stim +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/stim_reference_programs/qubit/alias_with_measure_list.stim +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/stim_reference_programs/qubit/complex_storage_index_order.stim +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/stim_reference_programs/qubit/for_loop_nontrivial_index.stim +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/stim_reference_programs/qubit/nested_for_loop.stim +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/stim_reference_programs/qubit/nested_list.stim +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/stim_reference_programs/qubit/qubit.stim +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/stim_reference_programs/qubit/qubit_broadcast.stim +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/stim_reference_programs/qubit/qubit_loss.stim +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/stim_reference_programs/qubit/qubit_reset.stim +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/stim_reference_programs/qubit/record_index_order.stim +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/stim_reference_programs/qubit/simple_if_rewrite.stim +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/stim_reference_programs/qubit/u3_to_clifford.stim +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/stim_reference_programs/wire/wire.stim +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/stim_reference_programs/wire/wire_apply.stim +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/stim_reference_programs/wire/wire_apply_control.stim +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/stim_reference_programs/wire/wire_broadcast.stim +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/stim_reference_programs/wire/wire_broadcast_control.stim +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/stim_reference_programs/wire/wire_measure.stim +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/stim_reference_programs/wire/wire_multiple_apply.stim +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/stim_reference_programs/wire/wire_qubit_loss.stim +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/stim_reference_programs/wire/wire_reset.stim +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/test_squin_meas_to_stim.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/test_squin_noise_to_stim.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/test_squin_qubit_to_stim.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/passes/test_squin_wire_to_stim.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/test_measure_id_analysis.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/wrapper/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/stim/wrapper/test_wrapper.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/test_serialization.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/test_zone_model.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/test/visual/__init__.py +0 -0
- {bloqade_circuit-0.6.4 → bloqade_circuit-0.6.5}/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.5
|
|
4
4
|
Summary: The software development toolkit for neutral atom arrays.
|
|
5
5
|
Author-email: Roger-luo <rluo@quera.com>, kaihsin <khwu@quera.com>, weinbe58 <pweinberg@quera.com>, johnzl-777 <jlong@quera.com>
|
|
6
6
|
License-File: LICENSE
|
|
@@ -9,6 +9,10 @@ from . import (
|
|
|
9
9
|
)
|
|
10
10
|
from .groups import wired as wired, kernel as kernel
|
|
11
11
|
|
|
12
|
+
# NOTE: it's important to keep these imports here since they import squin.kernel
|
|
13
|
+
# we skip isort here
|
|
14
|
+
from . import gate as gate, parallel as parallel # isort: skip
|
|
15
|
+
|
|
12
16
|
try:
|
|
13
17
|
# NOTE: make sure optional cirq dependency is installed
|
|
14
18
|
import cirq as cirq_package # noqa: F401
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
from bloqade.types import Qubit
|
|
2
|
+
|
|
3
|
+
from . import op as _op, qubit as _qubit
|
|
4
|
+
from .groups import kernel
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
@kernel
|
|
8
|
+
def x(qubit: Qubit) -> None:
|
|
9
|
+
"""x gate applied to qubit."""
|
|
10
|
+
op = _op.x()
|
|
11
|
+
_qubit.apply(op, qubit)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@kernel
|
|
15
|
+
def y(qubit: Qubit) -> None:
|
|
16
|
+
"""y gate applied to qubit."""
|
|
17
|
+
op = _op.y()
|
|
18
|
+
_qubit.apply(op, qubit)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
@kernel
|
|
22
|
+
def z(qubit: Qubit) -> None:
|
|
23
|
+
"""z gate applied to qubit."""
|
|
24
|
+
op = _op.z()
|
|
25
|
+
_qubit.apply(op, qubit)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
@kernel
|
|
29
|
+
def sqrt_x(qubit: Qubit) -> None:
|
|
30
|
+
"""Square root x gate applied to qubit."""
|
|
31
|
+
op = _op.sqrt_x()
|
|
32
|
+
_qubit.apply(op, qubit)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
@kernel
|
|
36
|
+
def sqrt_x_adj(qubit: Qubit) -> None:
|
|
37
|
+
"""Adjoint sqrt_x gate applied to qubit."""
|
|
38
|
+
op = _op.sqrt_x()
|
|
39
|
+
_qubit.apply(_op.adjoint(op), qubit)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
@kernel
|
|
43
|
+
def sqrt_y(qubit: Qubit) -> None:
|
|
44
|
+
"""Square root y gate applied to qubit."""
|
|
45
|
+
op = _op.sqrt_y()
|
|
46
|
+
_qubit.apply(op, qubit)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
@kernel
|
|
50
|
+
def sqrt_y_adj(qubit: Qubit) -> None:
|
|
51
|
+
"""Adjoint sqrt_y gate applied to qubit."""
|
|
52
|
+
op = _op.sqrt_y()
|
|
53
|
+
_qubit.apply(_op.adjoint(op), qubit)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
@kernel
|
|
57
|
+
def sqrt_z(qubit: Qubit) -> None:
|
|
58
|
+
"""Square root z gate applied to qubit."""
|
|
59
|
+
op = _op.s()
|
|
60
|
+
_qubit.apply(op, qubit)
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
@kernel
|
|
64
|
+
def sqrt_z_adj(qubit: Qubit) -> None:
|
|
65
|
+
"""Adjoint square root z gate applied to qubit."""
|
|
66
|
+
op = _op.s()
|
|
67
|
+
_qubit.apply(_op.adjoint(op), qubit)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
@kernel
|
|
71
|
+
def h(qubit: Qubit) -> None:
|
|
72
|
+
"""Hadamard gate applied to qubit."""
|
|
73
|
+
op = _op.h()
|
|
74
|
+
_qubit.apply(op, qubit)
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
@kernel
|
|
78
|
+
def s(qubit: Qubit) -> None:
|
|
79
|
+
"""s gate applied to qubit."""
|
|
80
|
+
op = _op.s()
|
|
81
|
+
_qubit.apply(op, qubit)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
@kernel
|
|
85
|
+
def s_adj(qubit: Qubit) -> None:
|
|
86
|
+
"""Adjoint s gate applied to qubit."""
|
|
87
|
+
op = _op.s()
|
|
88
|
+
_qubit.apply(_op.adjoint(op), qubit)
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
@kernel
|
|
92
|
+
def t(qubit: Qubit) -> None:
|
|
93
|
+
"""t gate applied to qubit."""
|
|
94
|
+
op = _op.t()
|
|
95
|
+
_qubit.apply(op, qubit)
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
@kernel
|
|
99
|
+
def t_adj(qubit: Qubit) -> None:
|
|
100
|
+
"""Adjoint t gate applied to qubit."""
|
|
101
|
+
op = _op.t()
|
|
102
|
+
_qubit.apply(_op.adjoint(op), qubit)
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
@kernel
|
|
106
|
+
def p0(qubit: Qubit) -> None:
|
|
107
|
+
"""Projector on 0 applied to qubit."""
|
|
108
|
+
op = _op.p0()
|
|
109
|
+
_qubit.apply(op, qubit)
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
@kernel
|
|
113
|
+
def p1(qubit: Qubit) -> None:
|
|
114
|
+
"""Projector on 1 applied to qubit."""
|
|
115
|
+
op = _op.p1()
|
|
116
|
+
_qubit.apply(op, qubit)
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
@kernel
|
|
120
|
+
def spin_n(qubit: Qubit) -> None:
|
|
121
|
+
"""Spin lowering gate applied to qubit."""
|
|
122
|
+
op = _op.spin_n()
|
|
123
|
+
_qubit.apply(op, qubit)
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
@kernel
|
|
127
|
+
def spin_p(qubit: Qubit) -> None:
|
|
128
|
+
"""Spin raising gate applied to qubit."""
|
|
129
|
+
op = _op.spin_p()
|
|
130
|
+
_qubit.apply(op, qubit)
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
@kernel
|
|
134
|
+
def reset(qubit: Qubit) -> None:
|
|
135
|
+
"""Reset qubit to 0."""
|
|
136
|
+
op = _op.reset()
|
|
137
|
+
_qubit.apply(op, qubit)
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
@kernel
|
|
141
|
+
def cx(control: Qubit, target: Qubit) -> None:
|
|
142
|
+
"""Controlled x gate applied to control and target"""
|
|
143
|
+
op = _op.cx()
|
|
144
|
+
_qubit.apply(op, control, target)
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
@kernel
|
|
148
|
+
def cy(control: Qubit, target: Qubit) -> None:
|
|
149
|
+
"""Controlled y gate applied to control and target"""
|
|
150
|
+
op = _op.cy()
|
|
151
|
+
_qubit.apply(op, control, target)
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
@kernel
|
|
155
|
+
def cz(control: Qubit, target: Qubit) -> None:
|
|
156
|
+
"""Controlled z gate applied to control and target"""
|
|
157
|
+
op = _op.cz()
|
|
158
|
+
_qubit.apply(op, control, target)
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
@kernel
|
|
162
|
+
def ch(control: Qubit, target: Qubit) -> None:
|
|
163
|
+
"""Controlled Hadamard gate applied to control and target"""
|
|
164
|
+
op = _op.ch()
|
|
165
|
+
_qubit.apply(op, control, target)
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
@kernel
|
|
169
|
+
def u(theta: float, phi: float, lam: float, qubit: Qubit) -> None:
|
|
170
|
+
"""3D rotation gate applied to control and target"""
|
|
171
|
+
op = _op.u(theta, phi, lam)
|
|
172
|
+
_qubit.apply(op, qubit)
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
@kernel
|
|
176
|
+
def rx(theta: float, qubit: Qubit) -> None:
|
|
177
|
+
"""Rotation X gate applied to qubit."""
|
|
178
|
+
op = _op.rot(_op.x(), theta)
|
|
179
|
+
_qubit.apply(op, qubit)
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
@kernel
|
|
183
|
+
def ry(theta: float, qubit: Qubit) -> None:
|
|
184
|
+
"""Rotation Y gate applied to qubit."""
|
|
185
|
+
op = _op.rot(_op.y(), theta)
|
|
186
|
+
_qubit.apply(op, qubit)
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
@kernel
|
|
190
|
+
def rz(theta: float, qubit: Qubit) -> None:
|
|
191
|
+
"""Rotation Z gate applied to qubit."""
|
|
192
|
+
op = _op.rot(_op.z(), theta)
|
|
193
|
+
_qubit.apply(op, qubit)
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
from typing import Any, TypeVar
|
|
2
|
+
|
|
3
|
+
from kirin.dialects import ilist
|
|
4
|
+
|
|
5
|
+
from bloqade.types import Qubit
|
|
6
|
+
|
|
7
|
+
from . import op as _op, qubit as _qubit
|
|
8
|
+
from .groups import kernel
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@kernel
|
|
12
|
+
def x(qubits: ilist.IList[Qubit, Any]) -> None:
|
|
13
|
+
"""x gate applied to qubits in parallel."""
|
|
14
|
+
op = _op.x()
|
|
15
|
+
_qubit.broadcast(op, qubits)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
@kernel
|
|
19
|
+
def y(qubits: ilist.IList[Qubit, Any]) -> None:
|
|
20
|
+
"""y gate applied to qubits in parallel."""
|
|
21
|
+
op = _op.y()
|
|
22
|
+
_qubit.broadcast(op, qubits)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
@kernel
|
|
26
|
+
def z(qubits: ilist.IList[Qubit, Any]) -> None:
|
|
27
|
+
"""z gate applied to qubits in parallel."""
|
|
28
|
+
op = _op.z()
|
|
29
|
+
_qubit.broadcast(op, qubits)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
@kernel
|
|
33
|
+
def sqrt_x(qubits: ilist.IList[Qubit, Any]) -> None:
|
|
34
|
+
"""Square root x gate applied to qubits in parallel."""
|
|
35
|
+
op = _op.sqrt_x()
|
|
36
|
+
_qubit.broadcast(op, qubits)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
@kernel
|
|
40
|
+
def sqrt_y(qubits: ilist.IList[Qubit, Any]) -> None:
|
|
41
|
+
"""Square root y gate applied to qubits in parallel."""
|
|
42
|
+
op = _op.sqrt_y()
|
|
43
|
+
_qubit.broadcast(op, qubits)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
@kernel
|
|
47
|
+
def sqrt_z(qubits: ilist.IList[Qubit, Any]) -> None:
|
|
48
|
+
"""Square root gate applied to qubits in parallel."""
|
|
49
|
+
op = _op.s()
|
|
50
|
+
_qubit.broadcast(op, qubits)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
@kernel
|
|
54
|
+
def h(qubits: ilist.IList[Qubit, Any]) -> None:
|
|
55
|
+
"""Hadamard gate applied to qubits in parallel."""
|
|
56
|
+
op = _op.h()
|
|
57
|
+
_qubit.broadcast(op, qubits)
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
@kernel
|
|
61
|
+
def s(qubits: ilist.IList[Qubit, Any]) -> None:
|
|
62
|
+
"""s gate applied to qubits in parallel."""
|
|
63
|
+
op = _op.s()
|
|
64
|
+
_qubit.broadcast(op, qubits)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
@kernel
|
|
68
|
+
def t(qubits: ilist.IList[Qubit, Any]) -> None:
|
|
69
|
+
"""t gate applied to qubits in parallel."""
|
|
70
|
+
op = _op.t()
|
|
71
|
+
_qubit.broadcast(op, qubits)
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
@kernel
|
|
75
|
+
def p0(qubits: ilist.IList[Qubit, Any]) -> None:
|
|
76
|
+
"""Projector on 0 applied to qubits in parallel."""
|
|
77
|
+
op = _op.p0()
|
|
78
|
+
_qubit.broadcast(op, qubits)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
@kernel
|
|
82
|
+
def p1(qubits: ilist.IList[Qubit, Any]) -> None:
|
|
83
|
+
"""Projector on 1 applied to qubits in parallel."""
|
|
84
|
+
op = _op.p1()
|
|
85
|
+
_qubit.broadcast(op, qubits)
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
@kernel
|
|
89
|
+
def spin_n(qubits: ilist.IList[Qubit, Any]) -> None:
|
|
90
|
+
"""Spin lowering gate applied to qubits in parallel."""
|
|
91
|
+
op = _op.spin_n()
|
|
92
|
+
_qubit.broadcast(op, qubits)
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
@kernel
|
|
96
|
+
def spin_p(qubits: ilist.IList[Qubit, Any]) -> None:
|
|
97
|
+
"""Spin raising gate applied to qubits in parallel."""
|
|
98
|
+
op = _op.spin_p()
|
|
99
|
+
_qubit.broadcast(op, qubits)
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
@kernel
|
|
103
|
+
def reset(qubits: ilist.IList[Qubit, Any]) -> None:
|
|
104
|
+
"""Reset qubit to 0."""
|
|
105
|
+
op = _op.reset()
|
|
106
|
+
_qubit.broadcast(op, qubits)
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
N = TypeVar("N")
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
@kernel
|
|
113
|
+
def cx(controls: ilist.IList[Qubit, N], targets: ilist.IList[Qubit, N]) -> None:
|
|
114
|
+
"""Controlled x gate applied to controls and targets in parallel."""
|
|
115
|
+
op = _op.cx()
|
|
116
|
+
_qubit.broadcast(op, controls, targets)
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
@kernel
|
|
120
|
+
def cy(controls: ilist.IList[Qubit, N], targets: ilist.IList[Qubit, N]) -> None:
|
|
121
|
+
"""Controlled y gate applied to controls and targets in parallel."""
|
|
122
|
+
op = _op.cy()
|
|
123
|
+
_qubit.broadcast(op, controls, targets)
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
@kernel
|
|
127
|
+
def cz(controls: ilist.IList[Qubit, N], targets: ilist.IList[Qubit, N]) -> None:
|
|
128
|
+
"""Controlled z gate applied to controls and targets in parallel."""
|
|
129
|
+
op = _op.cz()
|
|
130
|
+
_qubit.broadcast(op, controls, targets)
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
@kernel
|
|
134
|
+
def ch(controls: ilist.IList[Qubit, N], targets: ilist.IList[Qubit, N]) -> None:
|
|
135
|
+
"""Controlled Hadamard gate applied to controls and targets in parallel."""
|
|
136
|
+
op = _op.ch()
|
|
137
|
+
_qubit.broadcast(op, controls, targets)
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
@kernel
|
|
141
|
+
def u(theta: float, phi: float, lam: float, qubits: ilist.IList[Qubit, Any]) -> None:
|
|
142
|
+
"""3D rotation gate applied to controls and targets in parallel."""
|
|
143
|
+
op = _op.u(theta, phi, lam)
|
|
144
|
+
_qubit.broadcast(op, qubits)
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
@kernel
|
|
148
|
+
def rx(theta: float, qubits: ilist.IList[Qubit, Any]) -> None:
|
|
149
|
+
"""Rotation X gate applied to qubits in parallel."""
|
|
150
|
+
op = _op.rot(_op.x(), theta)
|
|
151
|
+
_qubit.broadcast(op, qubits)
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
@kernel
|
|
155
|
+
def ry(theta: float, qubits: ilist.IList[Qubit, Any]) -> None:
|
|
156
|
+
"""Rotation Y gate applied to qubits in parallel."""
|
|
157
|
+
op = _op.rot(_op.y(), theta)
|
|
158
|
+
_qubit.broadcast(op, qubits)
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
@kernel
|
|
162
|
+
def rz(theta: float, qubits: ilist.IList[Qubit, Any]) -> None:
|
|
163
|
+
"""Rotation Z gate applied to qubits in parallel."""
|
|
164
|
+
op = _op.rot(_op.z(), theta)
|
|
165
|
+
_qubit.broadcast(op, qubits)
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
@kernel
|
|
169
|
+
def sqrt_x_adj(qubits: ilist.IList[Qubit, Any]) -> None:
|
|
170
|
+
"""Adjoint sqrt_x gate applied to qubits in parallel."""
|
|
171
|
+
op = _op.sqrt_x()
|
|
172
|
+
_qubit.broadcast(_op.adjoint(op), qubits)
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
@kernel
|
|
176
|
+
def sqrt_y_adj(qubits: ilist.IList[Qubit, Any]) -> None:
|
|
177
|
+
"""Adjoint sqrt_y gate applied to qubits in parallel."""
|
|
178
|
+
op = _op.sqrt_y()
|
|
179
|
+
_qubit.broadcast(_op.adjoint(op), qubits)
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
@kernel
|
|
183
|
+
def sqrt_z_adj(qubits: ilist.IList[Qubit, Any]) -> None:
|
|
184
|
+
"""Adjoint square root z gate applied to qubits in parallel."""
|
|
185
|
+
op = _op.s()
|
|
186
|
+
_qubit.broadcast(_op.adjoint(op), qubits)
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
@kernel
|
|
190
|
+
def s_adj(qubits: ilist.IList[Qubit, Any]) -> None:
|
|
191
|
+
"""Adjoint s gate applied to qubits in parallel."""
|
|
192
|
+
op = _op.s()
|
|
193
|
+
_qubit.broadcast(_op.adjoint(op), qubits)
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
@kernel
|
|
197
|
+
def t_adj(qubits: ilist.IList[Qubit, Any]) -> None:
|
|
198
|
+
"""Adjoint t gate applied to qubits in parallel."""
|
|
199
|
+
op = _op.t()
|
|
200
|
+
_qubit.broadcast(_op.adjoint(op), qubits)
|
|
@@ -519,3 +519,35 @@ def test_reset():
|
|
|
519
519
|
|
|
520
520
|
assert math.isclose(abs(ket[3]), 1, abs_tol=1e-6)
|
|
521
521
|
assert ket[0] == ket[1] == ket[2] == 0
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
def test_feed_forward():
|
|
525
|
+
@squin.kernel
|
|
526
|
+
def main():
|
|
527
|
+
q = squin.qubit.new(3)
|
|
528
|
+
h = squin.op.h()
|
|
529
|
+
squin.qubit.apply(h, q[0])
|
|
530
|
+
squin.qubit.apply(h, q[1])
|
|
531
|
+
|
|
532
|
+
cx = squin.op.cx()
|
|
533
|
+
squin.qubit.apply(cx, q[0], q[2])
|
|
534
|
+
squin.qubit.apply(cx, q[1], q[2])
|
|
535
|
+
|
|
536
|
+
squin.qubit.measure(q[2])
|
|
537
|
+
|
|
538
|
+
sim = StackMemorySimulator(min_qubits=3)
|
|
539
|
+
|
|
540
|
+
ket = sim.state_vector(main)
|
|
541
|
+
|
|
542
|
+
print(ket)
|
|
543
|
+
|
|
544
|
+
zero_count = 0
|
|
545
|
+
half_count = 0
|
|
546
|
+
|
|
547
|
+
for k in ket:
|
|
548
|
+
k_abs2 = abs(k) ** 2
|
|
549
|
+
zero_count += k_abs2 == 0
|
|
550
|
+
half_count += math.isclose(k_abs2, 0.5, abs_tol=1e-4)
|
|
551
|
+
|
|
552
|
+
assert zero_count == 6
|
|
553
|
+
assert half_count == 2
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import pytest
|
|
2
|
+
|
|
3
|
+
from bloqade import squin
|
|
4
|
+
from bloqade.types import Qubit
|
|
5
|
+
from bloqade.pyqrack import StackMemorySimulator
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
@pytest.mark.parametrize(
|
|
9
|
+
"op_name",
|
|
10
|
+
[
|
|
11
|
+
"x",
|
|
12
|
+
"y",
|
|
13
|
+
"z",
|
|
14
|
+
"sqrt_x",
|
|
15
|
+
"sqrt_y",
|
|
16
|
+
"sqrt_z",
|
|
17
|
+
"sqrt_x_adj",
|
|
18
|
+
"sqrt_y_adj",
|
|
19
|
+
"sqrt_z_adj",
|
|
20
|
+
"h",
|
|
21
|
+
"s",
|
|
22
|
+
"s_adj",
|
|
23
|
+
"t",
|
|
24
|
+
"t_adj",
|
|
25
|
+
"p0",
|
|
26
|
+
"p1",
|
|
27
|
+
"spin_n",
|
|
28
|
+
"spin_p",
|
|
29
|
+
"reset",
|
|
30
|
+
],
|
|
31
|
+
)
|
|
32
|
+
def test_single_qubit_apply(op_name: str):
|
|
33
|
+
@squin.kernel
|
|
34
|
+
def main():
|
|
35
|
+
q = squin.qubit.new(1)
|
|
36
|
+
getattr(squin.gate, op_name)(q[0])
|
|
37
|
+
|
|
38
|
+
main.print()
|
|
39
|
+
|
|
40
|
+
sim = StackMemorySimulator(min_qubits=1)
|
|
41
|
+
|
|
42
|
+
sim.run(main)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
@pytest.mark.parametrize(
|
|
46
|
+
"op_name",
|
|
47
|
+
[
|
|
48
|
+
"cx",
|
|
49
|
+
"cy",
|
|
50
|
+
"cz",
|
|
51
|
+
"ch",
|
|
52
|
+
],
|
|
53
|
+
)
|
|
54
|
+
def test_control_apply(op_name: str):
|
|
55
|
+
@squin.kernel
|
|
56
|
+
def main():
|
|
57
|
+
q = squin.qubit.new(2)
|
|
58
|
+
getattr(squin.gate, op_name)(q[0], q[1])
|
|
59
|
+
|
|
60
|
+
main.print()
|
|
61
|
+
sim = StackMemorySimulator(min_qubits=2)
|
|
62
|
+
sim.run(main)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
@pytest.mark.parametrize(
|
|
66
|
+
"op_name",
|
|
67
|
+
[
|
|
68
|
+
"x",
|
|
69
|
+
"y",
|
|
70
|
+
"z",
|
|
71
|
+
"sqrt_x",
|
|
72
|
+
"sqrt_y",
|
|
73
|
+
"sqrt_z",
|
|
74
|
+
"sqrt_x_adj",
|
|
75
|
+
"sqrt_y_adj",
|
|
76
|
+
"sqrt_z_adj",
|
|
77
|
+
"h",
|
|
78
|
+
"s",
|
|
79
|
+
"s_adj",
|
|
80
|
+
"t",
|
|
81
|
+
"t_adj",
|
|
82
|
+
"p0",
|
|
83
|
+
"p1",
|
|
84
|
+
"spin_n",
|
|
85
|
+
"spin_p",
|
|
86
|
+
"reset",
|
|
87
|
+
],
|
|
88
|
+
)
|
|
89
|
+
def test_single_qubit_broadcast(op_name: str):
|
|
90
|
+
@squin.kernel
|
|
91
|
+
def main():
|
|
92
|
+
q = squin.qubit.new(4)
|
|
93
|
+
getattr(squin.parallel, op_name)(q)
|
|
94
|
+
|
|
95
|
+
main.print()
|
|
96
|
+
|
|
97
|
+
sim = StackMemorySimulator(min_qubits=4)
|
|
98
|
+
|
|
99
|
+
sim.run(main)
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
@pytest.mark.parametrize(
|
|
103
|
+
"op_name",
|
|
104
|
+
[
|
|
105
|
+
"cx",
|
|
106
|
+
"cy",
|
|
107
|
+
"cz",
|
|
108
|
+
"ch",
|
|
109
|
+
],
|
|
110
|
+
)
|
|
111
|
+
def test_control_broadcast(op_name: str):
|
|
112
|
+
@squin.kernel
|
|
113
|
+
def main():
|
|
114
|
+
controls = squin.qubit.new(3)
|
|
115
|
+
targets = squin.qubit.new(3)
|
|
116
|
+
getattr(squin.parallel, op_name)(controls, targets)
|
|
117
|
+
|
|
118
|
+
main.print()
|
|
119
|
+
sim = StackMemorySimulator(min_qubits=6)
|
|
120
|
+
sim.run(main)
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
def test_nested_kernel_inline():
|
|
124
|
+
@squin.kernel
|
|
125
|
+
def subkernel(q: Qubit):
|
|
126
|
+
squin.gate.x(q)
|
|
127
|
+
|
|
128
|
+
@squin.kernel
|
|
129
|
+
def main():
|
|
130
|
+
q = squin.qubit.new(1)
|
|
131
|
+
subkernel(q[0])
|
|
132
|
+
|
|
133
|
+
main.print()
|
|
134
|
+
sim = StackMemorySimulator(min_qubits=1)
|
|
135
|
+
sim.run(main)
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
@pytest.mark.parametrize(
|
|
139
|
+
"op_name",
|
|
140
|
+
[
|
|
141
|
+
"rx",
|
|
142
|
+
"ry",
|
|
143
|
+
"rz",
|
|
144
|
+
],
|
|
145
|
+
)
|
|
146
|
+
def test_parameter_gates(op_name: str):
|
|
147
|
+
@squin.kernel
|
|
148
|
+
def main():
|
|
149
|
+
q = squin.qubit.new(4)
|
|
150
|
+
theta = 0.123
|
|
151
|
+
getattr(squin.gate, op_name)(theta, q[0])
|
|
152
|
+
|
|
153
|
+
getattr(squin.parallel, op_name)(theta, q)
|
|
154
|
+
|
|
155
|
+
main.print()
|
|
156
|
+
|
|
157
|
+
sim = StackMemorySimulator(min_qubits=4)
|
|
158
|
+
sim.run(main)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|