Fixes OpenQASM circuit measurements and makes the exporter more composable - #595
Merged
thierry-martinez merged 19 commits intoSep 9, 2026
Merged
Conversation
…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.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #595 +/- ##
==========================================
+ Coverage 89.29% 89.46% +0.17%
==========================================
Files 49 49
Lines 7799 7805 +6
==========================================
+ Hits 6964 6983 +19
+ Misses 835 822 -13 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
`uv` ignores `pip`-installed packages.
matulni
approved these changes
Sep 1, 2026
Co-authored-by: matulni <m.uldemolins@gmail.com>
Collaborator
Author
|
I narrowed this PR to keep only the RZZ transpilation part, since the rest was only motivated in anticipation of matulni#17. |
mgarnier59
approved these changes
Sep 8, 2026
mgarnier59
left a comment
Contributor
There was a problem hiding this comment.
Nothing to add, thanks!
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 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.