Sign in
← Atlas
Exact & formalGatesControlled 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.

controlled gaterotationphasetwo qubit

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

CRZ is easy to confuse with the controlled-phase gate CP, since both are parametrized two-qubit gates built around a single-qubit Z-axis operation — but they are genuinely different unitaries, and this record exists partly to make that distinction explicit.

Circuit & simulation
|11⟩ phase e^{iθ/2}100%
|10⟩ phase e^{-iθ/2}100%
What this takes and returns
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 →

How it works

Definition

CRZ(θ)=00I+11RZ(θ)=(1000010000eiθ/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=eiθ/21,0,CRZ(θ)1,1=eiθ/21,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 eiθ/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(θ)=(IRZ(θ/2))  CX  (IRZ(θ/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π)=II\mathrm{CRZ}(2\pi) = I\otimes I and CRZ(0)=II\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.
Implementation
Native
controlled-rz.qasm
OPENQASM 3.0;
include "stdgates.inc";
qubit[2] q;
x q[0];
crz(pi/2) 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.

Declared gaps

Nobody has reviewed this record for gaps yet.

Literature & references
Quantum Computation and Quantum Information: 10th Anniversary Edition2010 · Michael A. Nielsen and Isaac L. Chuang

Standard reference for gate matrices, the Clifford/non-Clifford distinction, and controlled-gate constructions used throughout this record.

doi.org/10.1017/cbo9780511976667
OpenQASM 3: A broader and deeper quantum assembly language2021 · 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

Defines the standard gate library (id, sdg, tdg, cy, crz, rxx, rzz, ccx, cx…) used natively by the code snippets on this record.

arxiv.org/abs/2104.14722