-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
area/gatesarea/interoparea/qasmkind/bug-reportSomething doesn't seem to work.Something doesn't seem to work.status/needs-agreed-designWe want to do this, but it needs an agreed upon design before implementationWe want to do this, but it needs an agreed upon design before implementationtriage/acceptedA consensus emerged that this bug report, feature request, or other action should be worked onA consensus emerged that this bug report, feature request, or other action should be worked on
Description
as cirq.Rx() is just an XPowGate instantiation, Rx(pi) becomes x. This is just true up to a global phase, but also might be surprising for users. Also Rx(0) is not id, so it is not consistent.
Recommendations:
cirq.Rx/Ry/Rxwould become proper subclasses ofXPowGateinstead of just methods and override the_qasm_to keep therx(<angle>) q;QASM output form.XPowGate._qasm_should handle the identity case when _exponent == 0
Metadata
Metadata
Assignees
Labels
area/gatesarea/interoparea/qasmkind/bug-reportSomething doesn't seem to work.Something doesn't seem to work.status/needs-agreed-designWe want to do this, but it needs an agreed upon design before implementationWe want to do this, but it needs an agreed upon design before implementationtriage/acceptedA consensus emerged that this bug report, feature request, or other action should be worked onA consensus emerged that this bug report, feature request, or other action should be worked on