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
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
CY is less common as a native hardware gate than CX or CZ, but it completes the natural trio of controlled-Pauli gates and is a direct exercise in the general controlled-U-from-CX recipe, since Y is neither diagonal (like Z) nor real (like X).
Takes2 qubitsWhat joins here
Takes a 2-qubit register and states no assumption about what is on it. That is the whole condition: anything returning 2 qubits can feed it.
16 entries meet this end. Named below.
Returns2 qubitsWhat joins here
Returns a 2-qubit register a next stage can take. This is the end that joins.
11 entries meet this end. Named below.
A unitary. The same register goes in and comes out, and this entry states no assumption about what is on it — which is what lets anything of the same width feed it. See all 29 →
Definition
with the control as the first (leftmost) qubit. Like , this matrix is a bit-flip on the target; unlike , it also attaches a phase, since and .
Action on basis states
The control is left untouched in every case; the target flips exactly when the control is , exactly as with , but the flipped amplitude also picks up a phase of depending on direction.
Decomposition
Using the single-qubit identity (verified directly: ), conjugating a plain 's target by before and after reproduces exactly:
so the circuit applies to the target, then , then to the target — a direct three-gate analogue of the identity elsewhere in this catalog.
Key identities
- : is its own inverse, since .
- is Clifford: it maps Pauli operators to Pauli operators under conjugation, just like and .
- Together, , , and are the three controlled-Pauli gates; any one can be built from either of the others plus single-qubit Clifford conjugation ( for , for ).
Takes2 qubitsWhat joins here
Takes a 2-qubit register and states no assumption about what is on it. That is the whole condition: anything returning 2 qubits can feed it.
16 entries meet this end. Named below.
Returns2 qubitsWhat joins here
Returns a 2-qubit register a next stage can take. This is the end that joins.
11 entries meet this end. Named below.
A unitary. The same register goes in and comes out, and this entry states no assumption about what is on it — which is what lets anything of the same width feed it. See all 29 →
- Qubits
- 2
- Depth
- 1 native / 3-gate decomposition (S†, CX, S)
- Outcomes
- conditional bit-flip with phase
- Matrix
- block-diag(I₂, Y)
- Decomposition
- CY = (I⊗S)·CX·(I⊗S†)
- Self-inverse
- CY² = I
- Gate family
- Clifford
CYon q[0], q[1]
Quantum vs classical
Classical baseline
Use a classical state-vector or matrix simulation at the same width, precision, and measurement objective.
Quantum claim
The quantum record demonstrates a state or operator behavior; it does not make classical simulation or communication costs disappear.
How to compare
Compare fidelity, samples, gate depth, noise, memory, and the cost of preparing and reading the state.
Nobody has reviewed this record for gaps yet.
OPENQASM 3.0;
include "stdgates.inc";
qubit[2] q;
x q[0];
cy q[0], q[1];Related entries
- Controlled-X gate
Gates
- Controlled-Z gate
Gates
- Pauli-Y gate
Gates
- S phase gate
Gates
References
- Quantum Computation and Quantum Information: 10th Anniversary Edition
Michael A. Nielsen and Isaac L. Chuang · 2010
Standard reference for gate matrices, the Clifford/non-Clifford distinction, and controlled-gate constructions used throughout this record.
- OpenQASM 3: A broader and deeper quantum assembly language
Andrew W. Cross, Ali Javadi-Abhari, Thomas Alexander, Niel de Beaudrap, Lev S. Bishop, Steven Heidel, Colm A. Ryan, Prasahnt Sivarajah, John Smolin, Jay M. Gambetta, Blake R. Johnson · 2021
Defines the standard gate library (id, sdg, tdg, cy, crz, rxx, rzz, ccx, cx…) used natively by the code snippets on this record.