Skip to content

Fixes OpenQASM circuit measurements and makes the exporter more composable - #595

Merged
thierry-martinez merged 19 commits into
TeamGraphix:masterfrom
thierry-martinez:fix_qasm3_measurements
Sep 9, 2026
Merged

Fixes OpenQASM circuit measurements and makes the exporter more composable#595
thierry-martinez merged 19 commits into
TeamGraphix:masterfrom
thierry-martinez:fix_qasm3_measurements

Conversation

@thierry-martinez

Copy link
Copy Markdown
Collaborator

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.

…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

codecov Bot commented Aug 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.46%. Comparing base (abdd1c0) to head (6578931).
⚠️ Report is 3 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@matulni matulni left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

Comment thread graphix/qasm3_exporter.py
Comment thread graphix/qasm3_exporter.py Outdated
Comment thread tests/test_qasm3_exporter_to_qiskit.py Outdated
@thierry-martinez

thierry-martinez commented Sep 2, 2026

Copy link
Copy Markdown
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 mgarnier59 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing to add, thanks!

@thierry-martinez
thierry-martinez merged commit 2ea820e into TeamGraphix:master Sep 9, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants