Skip to content

Fix #3: Support for measurements - #16

Merged
thierry-martinez merged 4 commits into
TeamGraphix:mainfrom
thierry-martinez:fix/3-measurements
Sep 13, 2026
Merged

Fix #3: Support for measurements#16
thierry-martinez merged 4 commits into
TeamGraphix:mainfrom
thierry-martinez:fix/3-measurements

Conversation

@thierry-martinez

Copy link
Copy Markdown
Collaborator

This commit adds support for measurements.

Measurements of the form bit = measure qubit;, or the old syntax measure qubit -> bit, are supported.

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 matulni left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thanks for this addition. I'm not very familiar with the details of the parser, but overall it looks good to me.

Comment thread graphix_qasm_parser/parser.py Outdated
Comment thread graphix_qasm_parser/parser.py
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>
@thierry-martinez
thierry-martinez merged commit 59930ee into TeamGraphix:main Sep 13, 2026
15 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.

2 participants