Repository navigation
[MLIR] Support control flow ops in the ctrl-lowering pass - #3096
Merged
Merged
Conversation
maliasadi
force-pushed
the
ctrl-lowering-scf
branch
from
August 4, 2026 18:58
b202f91 to
71dc2c5
Compare
paul0403
approved these changes
Aug 10, 2026
Member
There was a problem hiding this comment.
Nice, thanks @maliasadi !
No major comments from me, other than mentioning again that this would be stupidly easy in reference semantics, especially with scf since in reference semantics all scf regions are just grabbing SSA qref.bit/reg values from above via clousure, and the semantics conversion pass handles all quantum value threading through scf for you!
paul0403
approved these changes
Aug 12, 2026
kipawaa
approved these changes
Aug 12, 2026
maliasadi
force-pushed
the
ctrl-lowering-scf
branch
from
August 12, 2026 20:22
914987e to
8576554
Compare
maliasadi
force-pushed
the
ctrl-lowering-scf
branch
from
August 12, 2026 20:23
8576554 to
99ed3b5
Compare
…nto ctrl-lowering-scf
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3096 +/- ##
==========================================
- Coverage 97.23% 96.67% -0.56%
==========================================
Files 40 166 +126
Lines 4522 19171 +14649
Branches 0 1822 +1822
==========================================
+ Hits 4397 18534 +14137
- Misses 125 475 +350
- Partials 0 162 +162 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context:
Add support for scf ops in
quantum.ctrlregions and thectrl-loweringpass following thequantum.adjoint/adjoint-loweringsupport forscf.if,scf.for,scf.while,scf.index_switchopsDescription of the Change:
Benefits:
Possible Drawbacks:
Related GitHub Issues:
[sc-125409]