Skip to content

Conversation

@david-pl
Copy link
Collaborator

No description provided.

@david-pl david-pl changed the title Bump kirin version Upgrade to kirin v0.20 Oct 27, 2025
@david-pl david-pl self-assigned this Oct 27, 2025
@weinbe58 weinbe58 mentioned this pull request Oct 28, 2025
david-pl and others added 11 commits October 29, 2025 13:43
In this PR I port the `CallGraphPass` originally in Kirin 0.17 to the
passes here in bloqade-circuit. I have also updated them to use the new
Kirin APIs so they are not compatible with Kirin 0.20.

Unfortunately the tests are currently breaking because of some import
issues so the CI will not be able to pass for the tests until those are
fixed.

Co-authored-by: David Plankensteiner <[email protected]>
Refactor QASM2's code generation to use the new Emit APIs.

---------

Co-authored-by: David Plankensteiner <[email protected]>
CI is blocked by:

* Requires kirin main
* This kirin PR: QuEraComputing/kirin#563
* This kirin issue: QuEraComputing/kirin#564

Other than that, we should be good. I'm still targeting the kirin
upgrade branch to make review easier, but this once the above issues are
resolved, this can actually go into `main`.

@weinbe58 please have a look at the address analysis, specifically at
the `run_lattice` method. I had to change the signature a bit.

---------

Co-authored-by: kaihsin <[email protected]>
@github-actions
Copy link
Contributor

github-actions bot commented Nov 7, 2025

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
10142 8896 88% 0% 🟢

New Files

File Coverage Status
src/bloqade/rewrite/passes/callgraph.py 87% 🟢
TOTAL 87% 🟢

Modified Files

File Coverage Status
src/bloqade/analysis/address/analysis.py 89% 🟢
src/bloqade/analysis/address/impls.py 82% 🟢
src/bloqade/analysis/fidelity/analysis.py 100% 🟢
src/bloqade/analysis/measure_id/analysis.py 100% 🟢
src/bloqade/analysis/measure_id/impls.py 95% 🟢
src/bloqade/cirq_utils/emit/base.py 95% 🟢
src/bloqade/cirq_utils/emit/gate.py 99% 🟢
src/bloqade/cirq_utils/emit/noise.py 83% 🟢
src/bloqade/cirq_utils/emit/qubit.py 100% 🟢
src/bloqade/cirq_utils/lowering.py 91% 🟢
src/bloqade/gemini/analysis/logical_validation/analysis.py 100% 🟢
src/bloqade/native/upstream/_init_.py 100% 🟢
src/bloqade/native/upstream/squin2native.py 100% 🟢
src/bloqade/pyqrack/device.py 80% 🟢
src/bloqade/pyqrack/target.py 77% 🟢
src/bloqade/pyqrack/task.py 100% 🟢
src/bloqade/qasm2/_qasm_loading.py 92% 🟢
src/bloqade/qasm2/dialects/expr/_emit.py 79% 🟢
src/bloqade/qasm2/dialects/expr/stmts.py 95% 🟢
src/bloqade/qasm2/dialects/noise/fidelity.py 100% 🟢
src/bloqade/qasm2/emit/base.py 98% 🟢
src/bloqade/qasm2/emit/gate.py 69% 🟢
src/bloqade/qasm2/emit/main.py 80% 🟢
src/bloqade/qasm2/emit/target.py 80% 🟢
src/bloqade/qasm2/groups.py 98% 🟢
src/bloqade/qasm2/parse/lowering.py 76% 🟢
src/bloqade/qasm2/passes/glob.py 100% 🟢
src/bloqade/qasm2/passes/noise.py 100% 🟢
src/bloqade/qasm2/passes/parallel.py 95% 🟢
src/bloqade/qasm2/rewrite/uop_to_parallel.py 70% 🟢
src/bloqade/qbraid/lowering.py 95% 🟢
src/bloqade/qbraid/schema.py 81% 🟢
src/bloqade/rewrite/passes/_init_.py 100% 🟢
src/bloqade/squin/analysis/schedule.py 89% 🟢
src/bloqade/stim/dialects/auxiliary/emit.py 100% 🟢
src/bloqade/stim/dialects/collapse/emit_str.py 100% 🟢
src/bloqade/stim/dialects/gate/emit.py 100% 🟢
src/bloqade/stim/dialects/noise/emit.py 100% 🟢
src/bloqade/stim/emit/impls.py 100% 🟢
src/bloqade/stim/emit/stim_str.py 90% 🟢
src/bloqade/stim/groups.py 93% 🟢
src/bloqade/stim/parse/lowering.py 94% 🟢
src/bloqade/stim/passes/squin_to_stim.py 100% 🟢
src/bloqade/test_utils.py 48% 🟢
src/bloqade/validation/analysis/analysis.py 100% 🟢
src/bloqade/validation/kernel_validation.py 65% 🟢
TOTAL 91% 🟢

updated for commit: 29d7e96 by action🐍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants