← Atlas

Gates · Controlled gate

Controlled-RZ gate (CRZ)

A parametrized controlled gate that applies an RZ(θ) rotation to the target exactly when the control is |1⟩, the entangling generalization of RZ used when a Z-rotation itself needs to be conditioned on another qubit.

Exact & formalUpdated

View frozen graph

q[0]q[1]Step 1 of 1 · CRZ(π/2) · on q[0], q[1]CRZ(π/2)

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

Expected outcomes

  • |11⟩ phase e^{iθ/2}100%
  • |10⟩ phase e^{-iθ/2}100%
  • Steps1
  • Wires2
  • Qubits2
  • Depth1 native / 4-gate decomposition (RZ, CX, RZ, CX)
  • Parameterθ (radians)
  • Papers2

Definition

CRZ(θ)=∣0⟩⟨0∣⊗I+∣1⟩⟨1∣⊗RZ(θ)=(1000010000e−iθ/20000eiθ/2)\mathrm{CRZ}(\theta) = |0\rangle\langle 0|\otimes I + |1\rangle\langle 1|\otimes R_Z(\theta) = \begin{pmatrix} 1&0&0&0\\0&1&0&0\\0&0&e^{-i\theta/2}&0\\0&0&0&e^{i\theta/2} \end{pmatrix}

with the control as the first (leftmost) qubit.

Action on basis states

CRZ(θ)∣0,t⟩=∣0,t⟩,CRZ(θ)∣1,0⟩=e−iθ/2∣1,0⟩,CRZ(θ)∣1,1⟩=eiθ/2∣1,1⟩\mathrm{CRZ}(\theta)|0,t\rangle = |0,t\rangle, \qquad \mathrm{CRZ}(\theta)|1,0\rangle = e^{-i\theta/2}|1,0\rangle, \qquad \mathrm{CRZ}(\theta)|1,1\rangle = e^{i\theta/2}|1,1\rangle

The control is untouched. When the control is ∣1⟩|1\rangle, both target values pick up a phase — ∣10⟩|10\rangle gets e−iθ/2e^{-i\theta/2}, not just 11 — which is the key difference from CP(θ)\mathrm{CP}(\theta), whose ∣10⟩|10\rangle amplitude is always left exactly at 11.

Decomposition

CRZ(θ)=(I⊗RZ(θ/2))  CX  (I⊗RZ(−θ/2))  CX\mathrm{CRZ}(\theta) = (I\otimes R_Z(\theta/2))\;\mathrm{CX}\;(I\otimes R_Z(-\theta/2))\;\mathrm{CX}

For control 00, both CNOTs act trivially and the target sees RZ(θ/2)RZ(−θ/2)=IR_Z(\theta/2)R_Z(-\theta/2)=I. For control 11, the first CNOT flips the target, the surrounding RZ(∓θ/2)R_Z(\mp\theta/2) gates pick up phases that depend on the (opposite-sign) bit values before and after the flip, and the second CNOT flips the target back — a direct phase-kickback calculation shows the two contributions add to exactly eiθ sign(t)/2e^{i\theta\,\mathrm{sign}(t)/2}, reproducing RZ(θ)R_Z(\theta) on the original target value tt.

Key identities

  • CRZ(θ)≠CP(θ)\mathrm{CRZ}(\theta) \ne \mathrm{CP}(\theta) in general: they agree on ∣00⟩,∣01⟩,∣11⟩|00\rangle,|01\rangle,|11\rangle only up to how each defines phase on ∣10⟩|10\rangle, and differ by a target-controlled global-phase factor overall.
  • CRZ(θ1) CRZ(θ2)=CRZ(θ1+θ2)\mathrm{CRZ}(\theta_1)\,\mathrm{CRZ}(\theta_2) = \mathrm{CRZ}(\theta_1+\theta_2): controlled Z-rotations on the same qubit pair compose additively, just like the underlying RZR_Z.
  • CRZ(2π)=I⊗I\mathrm{CRZ}(2\pi) = I\otimes I and CRZ(0)=I⊗I\mathrm{CRZ}(0) = I \otimes I, since RZ(2π)=RZ(0)=IR_Z(2\pi) = R_Z(0) = I up to global phase considerations that cancel in the controlled version.
  • CRZ\mathrm{CRZ} is the natural entangling primitive whenever an algorithm needs a data-dependent ZZ-rotation, e.g. controlled time-evolution steps in quantum simulation.

References

Exact & formal
  • Basis-state truth table
  • Unitary / matrix equivalence
  • Textbook / standard citation
Method
Apply CRZ(θ) to all four computational-basis inputs and confirm the control-0 block is identity while the control-1 block matches the RZ(θ) diagonal matrix.
Result
Pass · CRZ(θ)|0,t⟩ = |0,t⟩ for both t, and CRZ(θ)|1,t⟩ = e^{iθ(2t-1)/2}|1,t⟩, matching RZ(θ) on the target.
OpenQASM 3 standard gate set ↗
Kind
curated reference
Reviewed by
Leona Quantum curation pass
License
CC BY 4.0-compatible reference metadata
controlled gaterotationphasetwo qubit

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