← Atlas

Gates · Controlled gate

Controlled-Hadamard gate

A controlled version of the Hadamard gate that puts the target into superposition only when the control qubit is |1⟩, a canonical example of promoting a single-qubit gate to a controlled operation.

Exact & formalUpdated

View frozen graph

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

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

Expected outcomes

  • Control 0 → target unchanged100%
  • Control 1 → P(target 0)50%
  • Control 1 → P(target 1)50%
  • Steps1
  • Wires2
  • Qubits2
  • Depth1 native / 2 CNOT decomposition
  • Outcomesconditional superposition
  • Papers2

Definition

CH=∣0⟩⟨0∣⊗I+∣1⟩⟨1∣⊗H=(100001000012120012−12)\mathrm{CH} = |0\rangle\langle 0|\otimes I + |1\rangle\langle 1|\otimes H = \begin{pmatrix} 1&0&0&0\\0&1&0&0\\0&0&\tfrac{1}{\sqrt2}&\tfrac{1}{\sqrt2}\\0&0&\tfrac{1}{\sqrt2}&-\tfrac{1}{\sqrt2} \end{pmatrix}

with the control as the first (leftmost) qubit. Unlike CZ\mathrm{CZ} or CP\mathrm{CP}, this matrix is not diagonal, and unlike CX\mathrm{CX}, the applied operation HH is not a Pauli matrix.

Action on basis states

CH∣0,t⟩=∣0,t⟩,CH∣1,0⟩=∣1⟩⊗∣0⟩+∣1⟩2,CH∣1,1⟩=∣1⟩⊗∣0⟩−∣1⟩2\mathrm{CH}|0,t\rangle = |0,t\rangle, \qquad \mathrm{CH}|1,0\rangle = |1\rangle\otimes\tfrac{|0\rangle+|1\rangle}{\sqrt2}, \qquad \mathrm{CH}|1,1\rangle = |1\rangle\otimes\tfrac{|0\rangle-|1\rangle}{\sqrt2}

When the control is ∣0⟩|0\rangle the target is left completely untouched; when the control is ∣1⟩|1\rangle the target is put into superposition exactly as a bare HH would.

Decomposition

Because HH is neither diagonal nor Pauli, CH\mathrm{CH} is not directly native on most hardware and is built with the general controlled-UU recipe of Barenco et al. (1995): find single-qubit gates A,B,CA,B,C with

ABC=I,AXBXC=H (up to global phase)ABC = I, \qquad AXBXC = H \text{ (up to global phase)}

and implement controlled-HH as CC–CNOT–BB–CNOT–AA on the target, conditioned on the control via two CNOTs. A common concrete choice uses A=RY(π/4)A = R_Y(\pi/4), B=RY(−π/4)B = R_Y(-\pi/4), and a compensating phase gate for CC, giving a 2-CNOT circuit.

Key identities

  • CH2=I\mathrm{CH}^2 = I: applying the same controlled-Hadamard twice restores the input, since H2=IH^2 = I.
  • CH\mathrm{CH} conditioned on ∣+⟩|+\rangle on the control produces genuine entanglement between control and target, unlike CZ\mathrm{CZ}/CP\mathrm{CP} acting on product states, because HH mixes the target's basis rather than only phasing it.

References

  • Elementary gates for quantum computation

    Adriano Barenco, Charles H. Bennett, Richard Cleve, David P. DiVincenzo, Norman Margolus, Peter Shor, Tycho Sleator, John A. Smolin, Harald Weinfurter · 1995

    Shows that single-qubit U(2) gates plus CNOT are universal and gives explicit decompositions for controlled-U, Toffoli, and Fredkin gates.

  • Quantum Computation and Quantum Information: 10th Anniversary Edition

    Michael A. Nielsen and Isaac L. Chuang · 2010

    Standard reference for single- and multi-qubit gate matrices, Euler-angle decomposition, and universal gate sets.

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

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