Clifford gates are the quantum operations that map Pauli operators to Pauli operators under conjugation, and together they form the Clifford group. In quantum gates & circuits, every Clifford operation on any number of qubits can be built from just three gates: the Hadamard gate, the phase gate S and the CNOT gate.
Clifford gates are central to quantum computing because they are easy to implement fault-tolerantly and efficient to simulate classically. That combination makes them the workhorse of error correction and benchmarking, while also explaining why they alone cannot deliver a quantum speedup.
How the Clifford group is defined
The Pauli group on n qubits consists of tensor products of the identity and the Pauli matrices X, Y and Z, with phase factors of plus or minus one and plus or minus i. A unitary operator U is a Clifford operation when, for every Pauli operator P, the product U P U-dagger is again a Pauli operator. Mathematically, the Clifford group is the normalizer of the Pauli group in the unitary group.
This property means a Clifford gate permutes Pauli operators rather than turning them into arbitrary superpositions of them. For example, the Hadamard gate exchanges X and Z, and the phase gate S maps X to Y while leaving Z unchanged. Tracking how these Pauli labels move is enough to describe the whole computation.
The table below shows how the three generators transform the basic Pauli operators.
| Gate | Maps X to | Maps Z to |
|---|---|---|
| Hadamard H | Z | X |
| Phase gate S | Y | Z |
| CNOT, control 1, target 2 | X1 to X1 X2, X2 to X2 | Z1 to Z1, Z2 to Z1 Z2 |
| Pauli X | X | Minus Z |
| Controlled-Z | X1 to X1 Z2, symmetric for qubit 2 | Z1 to Z1, Z2 to Z2 |
Members and size of the Clifford group
The Clifford group contains many familiar gates, including all Pauli gates, the Hadamard gate, the S gate, CNOT, controlled-Z, SWAP and iSWAP. Ignoring global phase, the single-qubit Clifford group has exactly 24 elements, corresponding to the rotational symmetries of a cube or octahedron on the Bloch sphere.
The group grows quickly with the number of qubits, but it remains finite for every n. This finiteness matters in practice, because it allows uniform random sampling of Clifford operations, a step used in benchmarking and in randomized compiling.
| Number of qubits | Number of Clifford elements | Practical consequence |
|---|---|---|
| One qubit | 24 | Easy to enumerate and tabulate |
| Two qubits | 11,520 | Still stored in lookup tables for benchmarking |
| Three qubits | About 92.9 million | Sampled algorithmically rather than enumerated |
| n qubits | Grows roughly as 2 to the power of 2n squared | Requires symplectic matrix representations |
Clifford gates and the Gottesman–Knill theorem
The Gottesman–Knill theorem states that a circuit consisting of computational basis preparation, Clifford gates and Pauli measurements can be simulated efficiently on a classical computer. The simulator tracks the stabilizer generators of the state as a binary table of about 2n squared bits, updating it in polynomial time after each gate.
This result has a sharp implication. Clifford circuits can create highly entangled states, such as Bell states and large GHZ states, yet entanglement alone is not enough for a quantum advantage. Some additional ingredient outside the Clifford group must be present for a computation to become classically hard.
Reaching universality beyond Clifford gates
Clifford gates are not a universal gate set. Adding a single non-Clifford gate, usually the T gate, a rotation of pi over 4 about the Z axis, produces the Clifford+T gate set, which can approximate any unitary to arbitrary precision. The Solovay–Kitaev theorem and newer synthesis methods guarantee that this approximation requires only a modest number of gates.
The comparison below shows how Clifford gates differ from the non-Clifford gates needed for universality.
| Property | Clifford gates | Non-Clifford gates such as T |
|---|---|---|
| Classical simulation cost | Polynomial in qubit count | Exponential in the number of non-Clifford gates |
| Fault-tolerant cost | Often transversal or cheap via lattice surgery | Requires magic state distillation |
| Universality | Not universal on their own | Universal when combined with Clifford gates |
| Typical examples | H, S, CNOT, CZ, SWAP | T, Toffoli, arbitrary rotations |
In fault-tolerant architectures, the T count, meaning the number of T gates in a circuit, often dominates the resource estimate. Compilers therefore try to minimize T gates and push as much logic as possible into cheap Clifford operations.
Where Clifford gates are used
Clifford gates appear throughout the quantum computing stack, from hardware characterization to logical algorithm design. The most important uses are listed below.
- Stabilizer error-correcting codes, including the surface code, use Clifford circuits for encoding, syndrome extraction and decoding.
- Randomized benchmarking applies random Clifford sequences to estimate the average gate error independently of state preparation and measurement errors.
- Measurement-based quantum computing starts from cluster states that Clifford circuits prepare efficiently.
- Classical shadows use random Clifford measurements to estimate many properties of a quantum state from few samples.
- Circuit optimization rewrites Clifford sections into compact canonical forms to reduce depth and two-qubit gate count.
A common mistake is assuming that a circuit containing only Clifford gates demonstrates quantum power. Such a circuit can be valuable for testing hardware, but any result it produces could be reproduced by a classical stabilizer simulator.
Stripped to the essentials
Clifford gates are a family of basic quantum operations. They are simple, reliable and easy to protect from errors.
Think of them as the moves that turn a Rubik’s cube by whole faces. You can scramble the cube in many ways. Yet an ordinary computer can always keep track of where every piece went. That is why Clifford gates alone cannot beat a classical computer.
To reach real quantum power, you need at least one extra move outside the family, usually the T gate. Clifford gates do most of the work, and the extra gate supplies the magic.
Where it is applied
A hardware calibration engineer at a superconducting quantum computing laboratory needs to know how good the two-qubit gates on a new chip really are. She runs two-qubit randomized benchmarking, drawing random elements from the 11,520-element two-qubit Clifford group, compiling each into native gates and appending one inverting Clifford so the ideal output returns to the starting state.
Sequences of lengths from 1 to about 200 Cliffords are each repeated with 30 random seeds and 1,000 shots. The survival probability decays exponentially with length, and the fitted decay gives an average error per Clifford of about 1.5 percent, which corresponds to roughly 0.6 percent per CZ gate after accounting for the average gate count.
The outcome is a reliable, SPAM-independent fidelity figure that the team uses to compare calibration strategies. Because the benchmark uses only Clifford gates, the expected outcome of every sequence is computed classically in milliseconds.