[Circuit diagrams] 4 - Show conditionals in circuits based on RIR debug metadata#2943
Open
minestarks wants to merge 56 commits intomainfrom
Open
[Circuit diagrams] 4 - Show conditionals in circuits based on RIR debug metadata#2943minestarks wants to merge 56 commits intomainfrom
minestarks wants to merge 56 commits intomainfrom
Conversation
…ks/rir-debug-metadata
…ks/circuit-ascii-groups
There was a problem hiding this comment.
devskim found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
6d0da64 to
48d9f1f
Compare
source/compiler/qsc_circuit/src/rir_to_circuit/tests/logical_stack_trace.rs
Fixed
Show fixed
Hide fixed
source/compiler/qsc_circuit/src/rir_to_circuit/tests/logical_stack_trace.rs
Fixed
Show fixed
Hide fixed
source/compiler/qsc_circuit/src/rir_to_circuit/tests/logical_stack_trace.rs
Fixed
Show fixed
Hide fixed
source/compiler/qsc_circuit/src/rir_to_circuit/tests/logical_stack_trace.rs
Fixed
Show fixed
Hide fixed
source/compiler/qsc_circuit/src/rir_to_circuit/tests/logical_stack_trace.rs
Fixed
Show fixed
Hide fixed
source/compiler/qsc_circuit/src/rir_to_circuit/tests/logical_stack_trace.rs
Fixed
Show fixed
Hide fixed
… into minestarks/rir-and-conditionals
…control' into minestarks/rir-and-conditionals
…nditionals-working
minestarks
commented
Feb 23, 2026
…d-conditionals-working
…tarks/circuit-ux-classical-control
…tarks/rir-and-conditionals-working
…ks/circuit-ux-classical-control
…s/rir-and-conditionals
…nto minestarks/rir-and-conditionals
…hub.com/microsoft/qdk into minestarks/rir-and-conditionals-working
…nditionals-working
…tarks/rir-and-conditionals
…s/rir-and-conditionals
…d-conditionals-working
…tarks/rir-and-conditionals-working
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.
This PR completes the feature for rendering classical control flow and conditionals in quantum circuit diagrams. The changes span the compiler, code generation, circuit visualization, and VS Code integration.
Circuit Generation from RIR
VS Code Extension Fallback Logic
Usage Example
For Q# code with measurement-based conditionals:
The circuit diagram now displays the conditional control flow structure, showing which gates execute based on measurement outcomes, alongside the quantum operations.