Skip to content

Make QASM as consistent as possible #5366

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 16, 2022
Merged

Conversation

dabacon
Copy link
Collaborator

@dabacon dabacon commented May 13, 2022

Fixes #1800

This attempts to make QASM as consistent as possible. If you do a cirq.S gate you should get an s in your qasm. Similarly if you ask for cirq.Rx(np.pi) you will get rx(pi*1.0) instead of x, since you asked for an rx gate.

In addition this expands support for cz, cy, cx, and ch constructed via ControledGate and also adds support for id for IdentityGate

@dabacon dabacon requested review from a team, vtomole and cduck as code owners May 13, 2022 20:56
@dabacon dabacon requested a review from 95-martin-orion May 13, 2022 20:56
@CirqBot CirqBot added the size: M 50< lines changed <250 label May 13, 2022
@dabacon dabacon merged commit 71abdb8 into quantumlib:master May 16, 2022
rht pushed a commit to rht/Cirq that referenced this pull request May 1, 2023
harry-phasecraft pushed a commit to PhaseCraft/Cirq that referenced this pull request Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: M 50< lines changed <250
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cirq.Rx/Ry/Rz(pi) has confusing QASM output since these are not gates on their own.
3 participants