- Fundamentals
- Also: Z rotation
- Also: Rz(θ)
Rz Gate
A single-qubit rotation gate that rotates the qubit state by angle theta around the Z axis of the Bloch sphere, often implemented as a virtual (zero-cost) gate on superconducting hardware.
The Rz gate is a parameterized single-qubit gate that performs a rotation by angle around the axis of the Bloch sphere. Its matrix representation is:
The Rz gate is one of the most fundamental rotation gates and plays a special role in quantum computing because of two properties: it is diagonal in the computational basis (meaning it does not cause bit-flip transitions between and ), and on superconducting hardware it can often be implemented as a “virtual Z gate” with zero physical cost.
Relationship to other gates
Several common gates are special cases of up to a global phase:
| Gate | Rz equivalent | Angle |
|---|---|---|
| Z (Pauli-Z) | (up to global phase) | |
| S (Phase gate) | (up to global phase) | |
| T gate | (up to global phase) | |
| Identity |
More precisely, , , and . The global phase difference is physically unobservable for isolated gates, but it matters when the gate is used in controlled operations.
Virtual Z gates
On superconducting qubit platforms (IBM, Google, Rigetti), single-qubit gates are implemented by applying microwave pulses at the qubit’s resonant frequency. An or rotation requires a physical pulse, but an rotation can be absorbed into a change of the reference frame for subsequent pulses. This is called a “virtual Z gate” or “frame change.”
The idea is straightforward: rather than physically rotating the qubit’s state, the compiler adjusts the phase of all future microwave pulses on that qubit by . The net effect on the computation is identical to applying , but no physical operation occurs on the hardware. This means:
- Zero duration: Virtual Z gates add no time to the circuit execution.
- Zero error: No physical operation means no gate error.
- Unlimited precision: The angle can be any real number, with precision limited only by the classical control electronics (typically radians).
This makes Rz the ideal choice for parameterized rotations in variational algorithms. On IBM hardware, the native gate set consists of the CX (CNOT) gate, the gate (SX), and the virtual Rz gate. On Google hardware, the native set uses the or Sycamore gate alongside virtual Rz.
Rz in the Clifford+T framework
For fault-tolerant quantum computing, arbitrary-angle Rz rotations must be synthesized from the Clifford+T gate set, because the T gate is the lowest-cost non-Clifford gate that can be implemented fault-tolerantly (via magic state distillation).
The Solovay-Kitaev theorem guarantees that any single-qubit rotation can be approximated to precision using gates from Clifford+T, where . More efficient synthesis algorithms (Ross-Selinger, gridsynth) achieve this with fewer T gates in practice. For example, approximating to precision requires roughly 50 T gates using modern synthesis algorithms.
This is a striking contrast with the NISQ setting, where Rz is “free.” In the fault-tolerant setting, Rz becomes one of the most expensive operations, with each instance requiring dozens of T gates and, consequently, dozens of magic states from the ancilla factory.
Rz in variational algorithms
In VQE, QAOA, and quantum machine learning circuits, Rz gates (along with Rx and Ry) are the parameterized components whose angles are optimized by a classical optimizer. The parameter shift rule allows exact gradient computation for Rz gates:
Each gradient evaluation requires two circuit executions with shifted parameters.
Why it matters for learners
The Rz gate illustrates how the same mathematical operation can have vastly different physical costs depending on the execution context. On NISQ hardware, it is free (virtual Z). In fault-tolerant circuits, it is expensive (T gate synthesis). This duality is important for algorithm design: NISQ variational circuits freely use continuous rotations, while fault-tolerant algorithms must carefully minimize the number of non-Clifford rotations. Understanding Rz also builds intuition about the Bloch sphere, the relationship between rotation gates and Pauli gates, and the structure of single-qubit unitaries.