-
Notifications
You must be signed in to change notification settings - Fork 1
Code Generation for QASM2 #555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…its and quantum bits in/out of paranthesis).
…ses to fit updated way of calling emit.
…and update related tests.
|
@zhenrongliew is this PR ready to review? the CI is failing tho |
Seems like not yet. I will take a look at the failing tests |
…ring in Squin to Stim conversion tests
…od in EmitStimFrame
|
@Roger-luo @kaihsin It seems the CI is failiing because it cannot import "kirin.dialects.ssacfg". Is this because the CI is tied to Kirin 0.17? |
…ode generation base `EmitABC` now contains them.
|
@Roger-luo @kaihsin, this is PR should be ready for review. The codegen for The CI complaints is due to some changes in Further errors are due to MeasureID and AddressAnalysis still being refactored. |
david-pl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty solid.
@Roger-luo @kaihsin just remember when reviewing that we are not merging into main, but another intermediate branch. So failing tests are fine.
Removed commented `Method` constructor Co-authored-by: David Plankensteiner <[email protected]>
Simplified the code gen classes. Moved the symbol table to `EmitABC`. Moved `ssa` and `block` fields into base `EmitABC` class for reusability. Also moved `run` method. Changes made alongside QuEraComputing/bloqade-circuit#555
79f3168 to
d3b41f5
Compare
55686c3
into
david/571-kirin-upgrade-branch
Refactor QASM2's code generation to use the new Emit APIs.