← Atlas

Gates · Controlled gate

Controlled-Y gate

A controlled version of the Pauli-Y gate that flips the target bit and attaches a ±i phase exactly when the control qubit is |1⟩, completing the CX/CY/CZ family of controlled Paulis.

Exact & formalUpdated

View frozen graph

q[0]q[1]Step 1 of 1 · CY · on q[0], q[1]CY

1 step across 2 wires. Hover a step, or press play to go through them in order.

Expected outcomes

  • |10⟩ → i|11⟩100%
  • |11⟩ → -i|10⟩100%
  • Steps1
  • Wires2
  • Qubits2
  • Depth1 native / 3-gate decomposition (S†, CX, S)
  • Outcomesconditional bit-flip with phase
  • Papers2

Definition

CY=∣0⟩⟨0∣⊗I+∣1⟩⟨1∣⊗Y=(10000100000−i00i0)\mathrm{CY} = |0\rangle\langle 0|\otimes I + |1\rangle\langle 1|\otimes Y = \begin{pmatrix} 1&0&0&0\\0&1&0&0\\0&0&0&-i\\0&0&i&0 \end{pmatrix}

with the control as the first (leftmost) qubit. Like CX\mathrm{CX}, this matrix is a bit-flip on the target; unlike CX\mathrm{CX}, it also attaches a ±i\pm i phase, since Y∣0⟩=i∣1⟩Y|0\rangle = i|1\rangle and Y∣1⟩=−i∣0⟩Y|1\rangle = -i|0\rangle.

Action on basis states

CY∣0,t⟩=∣0,t⟩,CY∣1,0⟩=i∣1,1⟩,CY∣1,1⟩=−i∣1,0⟩\mathrm{CY}|0,t\rangle = |0,t\rangle, \qquad \mathrm{CY}|1,0\rangle = i|1,1\rangle, \qquad \mathrm{CY}|1,1\rangle = -i|1,0\rangle

The control is left untouched in every case; the target flips exactly when the control is ∣1⟩|1\rangle, exactly as with CX\mathrm{CX}, but the flipped amplitude also picks up a phase of ±i\pm i depending on direction.

Decomposition

Using the single-qubit identity Y=S X S†Y = S\,X\,S^\dagger (verified directly: SXS†=(0−ii0)=YS X S^\dagger = \begin{pmatrix}0&-i\\i&0\end{pmatrix} = Y), conjugating a plain CX\mathrm{CX}'s target by S†S^\dagger before and SS after reproduces CY\mathrm{CY} exactly:

CY=(I⊗S) CX (I⊗S†)\mathrm{CY} = (I\otimes S)\,\mathrm{CX}\,(I\otimes S^\dagger)

so the circuit applies S†S^\dagger to the target, then CX\mathrm{CX}, then SS to the target — a direct three-gate analogue of the CZ=(I⊗H) CX (I⊗H)\mathrm{CZ} = (I\otimes H)\,\mathrm{CX}\,(I\otimes H) identity elsewhere in this catalog.

Key identities

  • CY2=I⊗I\mathrm{CY}^2 = I\otimes I: CY\mathrm{CY} is its own inverse, since Y2=IY^2=I.
  • CY\mathrm{CY} is Clifford: it maps Pauli operators to Pauli operators under conjugation, just like CX\mathrm{CX} and CZ\mathrm{CZ}.
  • Together, CX\mathrm{CX}, CY\mathrm{CY}, and CZ\mathrm{CZ} are the three controlled-Pauli gates; any one can be built from either of the others plus single-qubit Clifford conjugation (HH for CZ↔CX\mathrm{CZ}\leftrightarrow\mathrm{CX}, SS for CY↔CX\mathrm{CY}\leftrightarrow\mathrm{CX}).

References

Exact & formal
  • Basis-state truth table
  • Unitary / matrix equivalence
  • Textbook / standard citation
Method
Apply CY to all four computational-basis inputs and confirm the target block for control=0 is identity and the block for control=1 is the Pauli-Y matrix.
Result
Pass · CY|0,t⟩ = |0,t⟩ and CY|1,0⟩ = i|1,1⟩, CY|1,1⟩ = -i|1,0⟩, matching Y exactly on the control-1 block.
OpenQASM 3 standard gate set ↗
Kind
curated reference
Reviewed by
Leona Quantum curation pass
License
CC BY 4.0-compatible reference metadata
controlled gatetwo qubitcliffordentanglement

Atlas stars stay in the public catalog. Saving this entry to your workspace starts an unstarred private copy.