Skip to content

Commit

Permalink
No qudit Y gate (quantumlib#5814)
Browse files Browse the repository at this point in the history
  • Loading branch information
viathor authored and rht committed May 1, 2023
1 parent 78833cb commit ca46f04
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cirq-core/cirq/ops/common_gates.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,16 @@ class YPowGate(eigen_gate.EigenGate):
parameter when initializing.
`cirq.Y`, the Pauli Y gate, is an instance of this gate at `exponent=1`.
Unlike `cirq.XPowGate` and `cirq.ZPowGate`, this gate has no generalization
to qudits and hence does not take the dimension argument. Ignoring the
global phase all generalized Pauli operators on a d-level system may be
written as X**a Z**b for a,b=0,1,...,d-1. For a qubit, there is only one
"mixed" operator: XZ, conventionally denoted -iY. However, when d > 2 there
are (d-1)*(d-1) > 1 such "mixed" operators (still ignoring the global phase).
Due to this ambiguity, qudit Y gate is not well defined. The "mixed" operators
for qudits are generally not referred to by name, but instead are specified in
terms of X and Z.
"""

def _num_qubits_(self) -> int:
Expand Down

0 comments on commit ca46f04

Please sign in to comment.