Sign in
← Atlas
Exact & formalGatesRotation gate

RZ rotation gate

A parametrized single-qubit rotation about the Z axis that adds a relative phase between |0⟩ and |1⟩ without changing measurement probabilities in the computational basis.

rotation gatesingle qubitphasevirtual z

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

RZ(θ) is often the cheapest gate on real hardware — on superconducting devices it can be implemented as a zero-duration frame change rather than a physical pulse.

Circuit & simulation
P(|0⟩) unchanged100%
P(|1⟩) unchanged0%
What this takes and returns
Takes1 qubitWhat joins here

Takes a 1-qubit register and states no assumption about what is on it. That is the whole condition: anything returning 1 qubits can feed it.

15 entries meet this end. Named below.

Returns1 qubitWhat joins here

Returns a 1-qubit register a next stage can take. This is the end that joins.

13 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

RZ(θ)=eiθZ/2=(eiθ/200eiθ/2)R_Z(\theta) = e^{-i\theta Z/2} = \begin{pmatrix} e^{-i\theta/2} & 0 \\ 0 & e^{i\theta/2} \end{pmatrix}

RZR_Z is diagonal in the computational basis, so it commutes with any other RZ(ϕ)R_Z(\phi) and with measurement in the ZZ basis.

Action on basis states

RZ(θ)0=eiθ/20,RZ(θ)1=eiθ/21R_Z(\theta)|0\rangle = e^{-i\theta/2}|0\rangle, \qquad R_Z(\theta)|1\rangle = e^{i\theta/2}|1\rangle

Each basis state only picks up a phase, so 0RZ(θ)02=1RZ(θ)12=1|\langle 0|R_Z(\theta)|0\rangle|^2 = |\langle 1|R_Z(\theta)|1\rangle|^2 = 1 for every θ\theta — a ZZ rotation is invisible to a ZZ-basis measurement on its own. Its effect only shows up on a qubit already in superposition, e.g. RZ(θ)12(0+1)=12(eiθ/20+eiθ/21)R_Z(\theta)\tfrac{1}{\sqrt2}(|0\rangle+|1\rangle) = \tfrac{1}{\sqrt2}(e^{-i\theta/2}|0\rangle + e^{i\theta/2}|1\rangle), which differs from the input by a relative phase of eiθe^{i\theta}.

Key identities

  • P(λ)=eiλ/2RZ(λ)P(\lambda) = e^{i\lambda/2}R_Z(\lambda): the OpenQASM phase gate PP is RZR_Z up to an overall phase — PP fixes the 0|0\rangle amplitude at exactly 11 instead of splitting the phase symmetrically.
  • S=RZ(π/2)S = R_Z(\pi/2) and T=RZ(π/4)T = R_Z(\pi/4) up to global phase, so RZR_Z generalizes the whole Clifford/non-Clifford phase-gate ladder to a continuous parameter.
  • RX(θ)=HRZ(θ)HR_X(\theta) = H R_Z(\theta) H and RY(θ)=RZ(π/2)RX(θ)RZ(π/2)R_Y(\theta) = R_Z(-\pi/2) R_X(\theta) R_Z(\pi/2): composing conjugations by HH and by RZ(±π/2)R_Z(\pm\pi/2) lets a compiler reach any rotation axis from RZR_Z alone.
  • On superconducting hardware, RZ(θ)R_Z(\theta) is frequently realized as a virtual zero-duration frame update rather than a physical microwave pulse, making it effectively free and noiseless compared to RXR_X/RYR_Y.
Implementation
Native
rz-rotation.qasm
OPENQASM 3.0;
include "stdgates.inc";
qubit q;
rz(pi/2) q;
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 single- and multi-qubit gate matrices, Euler-angle decomposition, and universal gate sets.

doi.org/10.1017/cbo9780511976667
Efficient Z-Gates for Quantum Computing2016 · David C. McKay, Christopher J. Wood, Sarah Sheldon, Jerry M. Chow, Jay M. Gambetta

Shows how a fixed physical X_{π/2} pulse (the SX gate) combined with zero-duration virtual Z rotations synthesizes any single-qubit unitary on superconducting hardware.

arxiv.org/abs/1612.00858