Fix #3: Support for measurements - #16
Merged
thierry-martinez merged 4 commits intoSep 13, 2026
Merged
Conversation
This commit adds support for measurements. Measurements of the form `bit = measure qubit;`, or the old syntax `measure qubit -> bit`, are supported.
thierry-martinez
added a commit
to thierry-martinez/graphix
that referenced
this pull request
Aug 28, 2026
…sable This commit fixes the export of circuit measurements to OpenQASM and makes the exporter more composable. Exporting circuit measurements is tested with a round-trip using TeamGraphix/graphix-qasm-parser#16.
thierry-martinez
added a commit
to thierry-martinez/graphix
that referenced
this pull request
Aug 28, 2026
matulni
approved these changes
Sep 1, 2026
matulni
left a comment
There was a problem hiding this comment.
Thanks for this addition. I'm not very familiar with the details of the parser, but overall it looks good to me.
thierry-martinez
added a commit
to TeamGraphix/graphix
that referenced
this pull request
Sep 9, 2026
…sable (#595) Exporting circuit measurements is tested with a round-trip using TeamGraphix/graphix-qasm-parser#16. The version of `graphix-qasm-parser` is set in `.github/qasm-parser-requirements.txt` for both nox and coverage. The gate `RZZ` does not belong to the OpenQASM standard set of gates and was incorrectly exported as `crz`. See TeamGraphix/graphix-qasm-parser#12 for more details. --------- Co-authored-by: matulni <m.uldemolins@gmail.com>
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 commit adds support for measurements.
Measurements of the form
bit = measure qubit;, or the old syntaxmeasure qubit -> bit, are supported.