Gates · Rotation 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.
Exact & formalUpdated
A small worked example, computed in your browser. It is not a result from this record's papers.
RZ(θ), a rotation that only moves phase
One qubit, put into |+⟩ = (|0⟩ + |1⟩)/√2 first, because on |0⟩ or |1⟩ alone this gate changes nothing a measurement or another gate can ever detect.
Step 1 of 2 · H
Probability of each outcome after this step
- 050%
- 150%
Puts the qubit into an equal superposition. Without this there is no second amplitude for the gate's phase to be measured against, and a phase on the whole state is not observable.
Probability spreads from 1 outcome to 2. All 2 are equally likely.
Multiplies the |1⟩ half of the state by a phase of π/2 at this angle, and leaves |0⟩ alone. RZ splits the angle between the two halves rather than putting all of it on |1⟩, so it differs from P by a phase on the whole state — which is to say, by nothing any measurement can find. The two outcomes stay equally likely — the difference is carried entirely in the phase between them, which is what the panel beside the bars shows.
The outcome probabilities do not move at all. What this step changes is phase — 2 distinct relative phases across the state now — which no measurement can see until a later step turns it back into probability.
Readout Measuring gives 0 or 1, each half the time — exactly as it did before the gate. A single measurement of this qubit cannot detect this gate at all. Its effect becomes visible only when the phase is turned back into probability by a later interference step, which is what every algorithm that uses it does.
Open in Studio- Steps1
- Wires1
- Qubits1
- Depth1 gate (often 0-duration on hardware)
- Parameterθ (radians)
- Papers2
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.
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 →
Definition
is diagonal in the computational basis, so it commutes with any other and with measurement in the basis.
Action on basis states
Each basis state only picks up a phase, so for every — a rotation is invisible to a -basis measurement on its own. Its effect only shows up on a qubit already in superposition, e.g. , which differs from the input by a relative phase of .
Key identities
- : the OpenQASM phase gate is up to an overall phase — fixes the amplitude at exactly instead of splitting the phase symmetrically.
- and up to global phase, so generalizes the whole Clifford/non-Clifford phase-gate ladder to a continuous parameter.
- and : composing conjugations by and by lets a compiler reach any rotation axis from alone.
- On superconducting hardware, is frequently realized as a virtual zero-duration frame update rather than a physical microwave pulse, making it effectively free and noiseless compared to /.
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 →
- Qubits
- 1
- Depth
- 1 gate (often 0-duration on hardware)
- Parameter
- θ (radians)
- Matrix
- diag(e^{-iθ/2}, e^{iθ/2})
- Rotation axis
- Z
- Generator
- exp(-iθZ/2)
- Gate family
- Diagonal / phase, commutes with Z measurement
RZ(π/2)on q[0]
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 q;
rz(pi/2) q;Related entries
- RX rotation gate
Gates
- RY rotation gate
Gates
- P phase gate
Gates
- S phase gate
Gates
- T phase gate
Gates
References
- 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.
- Efficient Z-Gates for Quantum Computing
David C. McKay, Christopher J. Wood, Sarah Sheldon, Jerry M. Chow, Jay M. Gambetta · 2016
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.