Skip to content

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, cduck and vtomole 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