# Gottesman–Knill theorem

The **Gottesman–Knill theorem** is a result in quantum information theory stating that a quantum circuit built entirely from Clifford gates, which include the controlled-NOT (CNOT), Hadamard, and phase gates, together with single-qubit measurements, can be simulated efficiently on a classical computer.<sup>[1](https://doi.org/10.1103/PHYSREVA.70.052328)</sup> Such circuits are called stabilizer circuits, and the theorem shows that this large and highly entangling class of quantum computations offers no speedup over classical computation.<sup>[2](https://arxiv.org/abs/0811.0898)</sup>

| Key fact | Detail |
|---|---|
| Statement | Every stabilizer circuit, composed solely of CNOT, Hadamard, phase, and 1-qubit measurement gates, can be simulated efficiently on a classical computer<sup>[1](https://doi.org/10.1103/PHYSREVA.70.052328)</sup> |
| Origin | Attributed to Daniel Gottesman (arXiv:quant-ph/9807006, 1998) and Emanuel Knill<sup>[2](https://arxiv.org/abs/0811.0898)</sup> |
| Simulation cost | Tableau representation uses O(n²) bits; unitary gates update in O(n) time, measurements in O(n²) time with the Aaronson–Gottesman algorithm<sup>[3](https://www.scottaaronson.com/papers/chp6.pdf)</sup> |
| Complexity class | Simulating stabilizer circuits is complete for the classical class ⊕L, so stabilizer circuits are probably not even universal for classical computation<sup>[4](https://arxiv.org/abs/quant-ph/0406196)</sup> |
| Circuit compression | Any n-qubit stabilizer circuit has an equivalent circuit with at most O(n²/log n) gates<sup>[4](https://arxiv.org/abs/quant-ph/0406196)</sup> |
| State count | The number of pure stabilizer states on n qubits is 2^((1/2+o(1))n²)<sup>[4](https://arxiv.org/abs/quant-ph/0406196)</sup> |
| Non-Clifford extension | Clifford+T circuits can be simulated with runtime polynomial in qubits and Clifford gates but exponential in the number of T gates<sup>[5](https://arxiv.org/abs/1601.07601)</sup> |

## Stabilizer circuits and stabilizer states

A stabilizer circuit is a quantum circuit in which every gate is a CNOT, Hadamard, phase, or single-qubit measurement gate; a unitary stabilizer circuit, one without measurements, is also called a [Clifford group](https://www.edgepedia.org/clifford-group) circuit.<sup>[3](https://www.scottaaronson.com/papers/chp6.pdf)</sup> The Clifford group is the set of unitary operators that map Pauli operators to Pauli operators under conjugation, up to global phase.<sup>[6](https://docs.quantum.ibm.com/api/qiskit/qiskit.quantum_info.Clifford)</sup>

The theorem rests on the stabilizer formalism. A unitary U stabilizes a state |ψ⟩ if U|ψ⟩ = |ψ⟩. A stabilizer state is a state uniquely determined by the group of Pauli operators that stabilize it; equivalently, it is a state obtainable from |0⟩^⊗n by CNOT, Hadamard, and phase gates, and it is stabilized by exactly 2^n Pauli operators.<sup>[4](https://arxiv.org/abs/quant-ph/0406196)</sup> For example, |0⟩^n is uniquely stabilized by the n operators Z acting on each qubit, and the [Bell state](https://www.edgepedia.org/bell-state) |Φ⁺⟩ is stabilized by XX and ZZ.<sup>[7](https://link.springer.com/chapter/10.1007/978-3-031-98119-7_3)</sup>

The key point is that a stabilizer state on n qubits needs only n generators, each specified with 2n+1 bits (two bits per qubit for the Pauli matrix and one bit for the phase), so the whole state fits in n(2n+1) bits rather than the 2^n amplitudes of a general state vector.<sup>[4](https://arxiv.org/abs/quant-ph/0406196)</sup> Gottesman and Knill showed that these bits can be updated in polynomial time after each CNOT, Hadamard, phase, or measurement gate.<sup>[4](https://arxiv.org/abs/quant-ph/0406196)</sup>

## The tableau algorithm

The simulation represents the state as a binary tableau with variables x_ij, z_ij, and r_i, where each row encodes one Pauli operator: the bits 00, 01, 11, and 10 stand for I, X, Y, and Z on each qubit, and r_i records the sign.<sup>[4](https://arxiv.org/abs/quant-ph/0406196)</sup> Each Clifford gate updates the tableau with simple bitwise operations in O(n) time.<sup>[8](https://doi.org/10.1007/s40687-026-00626-x)</sup>

**Measurements** were the bottleneck in the original algorithm. Deciding whether a measurement yields a deterministic or random outcome takes O(n) time, and a random outcome updates the state in O(n²) time, but a deterministic outcome seemed to require inverting an n×n matrix, costing order n³ time in practice.<sup>[4](https://arxiv.org/abs/quant-ph/0406196)</sup> [Scott Aaronson](https://www.edgepedia.org/scott-aaronson), a computer scientist then at the [University of California](https://www.edgepedia.org/university-of-california), Berkeley and now at MIT, and [Daniel Gottesman](https://www.edgepedia.org/daniel-gottesman), a quantum information theorist at the Perimeter Institute, removed this bottleneck in 2004 by also storing n "destabilizer" generators, Pauli operators that together with the stabilizer generators generate the full Pauli group. This doubles the state representation to about 4n² bits but lets both deterministic and random measurements run in O(n²) time.<sup>[4](https://arxiv.org/abs/quant-ph/0406196)</sup>

They implemented the algorithm in a freely available program called CHP (CNOT-Hadamard-Phase), which can handle thousands of qubits easily, and it has been applied to simulations of quantum fault-tolerance circuits.<sup>[4](https://arxiv.org/abs/quant-ph/0406196)</sup> The tableau approach underlies modern stabilizer simulators, including the Clifford objects in [Qiskit](https://www.edgepedia.org/qiskit) and dedicated tools for quantum error correction.<sup>[6](https://docs.quantum.ibm.com/api/qiskit/qiskit.quantum_info.Clifford)</sup>

## Why the theorem matters

**Limited computational power.** Aaronson and Gottesman proved that simulating stabilizer circuits is complete for the classical complexity class ⊕L. Informally, any stabilizer circuit can be simulated using CNOT gates alone, with Hadamard and phase gates providing at most a polynomial advantage. This means stabilizer circuits are probably not even universal for classical computation, which removes some of the mystery about why they are classically simulable.<sup>[4](https://arxiv.org/abs/quant-ph/0406196)</sup>

**Entanglement is not the whole story.** Clifford circuits can generate a high degree of entanglement, yet remain efficiently simulable, so the presence of nontrivial entanglement in a quantum computation is not necessarily a signature of computational speedup.<sup>[2](https://arxiv.org/abs/0811.0898)</sup> The theorem thus serves as a boundary marker: the resource that separates quantum from classical computation lies not in entanglement alone but in leaving the stabilizer formalism.

**Universality requires non-Clifford gates.** The Clifford gates are not universal, but adding the [T gate](https://www.edgepedia.org/t-gate), the single-qubit 45-degree phase shift, yields a universal gate set.<sup>[9](https://qis.rwth-aachen.de/teaching/25ss/intro-quantum-computing/script/content/universalGates.html)</sup> This connection is quantified by later simulation algorithms: Sergey Bravyi and David Gosset, researchers at [IBM Quantum](https://www.edgepedia.org/ibm-quantum) and the [University of Waterloo](https://www.edgepedia.org/university-of-waterloo) respectively, extended classical simulation to Clifford+T circuits with runtime polynomial in the number of qubits and Clifford gates but exponential in the number of T gates (the T-count). They demonstrated a classical simulation of a hidden-shift algorithm with 40 qubits, a few hundred Clifford gates, and nearly 50 T gates.<sup>[5](https://arxiv.org/abs/1601.07601)</sup> In the magic state model of fault-tolerant quantum computing, where the only non-stabilizer elements are magic states (special non-stabilizer states enabling universal quantum computing), the runtime of such simulation algorithms is used to measure the "non-classicality" of a computation through magic monotones.<sup>[10](https://kups.ub.uni-koeln.de/50465/)</sup>

## Extensions and limits

The 2004 paper extends the simulation beyond the original theorem in several directions: to circuits acting on mixed states, to circuits containing a limited number of non-stabilizer gates, and to circuits acting on general tensor-product initial states with only a limited number of measurements. These extensions run in time polynomial in the number of qubits but exponential in the number of non-stabilizer gates or measurements.<sup>[4](https://arxiv.org/abs/quant-ph/0406196)</sup>

The theorem's scope is also narrower than it may first appear. Studies of extended Clifford circuits show that efficient classical simulation holds only in a suitably restricted setting: variants involving strong versus weak simulation, general product-state inputs, adaptive measurement choices, or multi-line outputs can fall outside the simulatable class, and some are hard under standard complexity assumptions such as P ≠ NP.<sup>[11](https://arxiv.org/abs/1305.6190)</sup> A related separation appears in Van den Nest's normal-form analysis: certain Clifford-derived circuits can be sampled from efficiently (weak simulation) while exactly computing their measurement outcome probabilities is #P-complete (strong simulation).<sup>[2](https://arxiv.org/abs/0811.0898)</sup>

The theorem also has a structural corollary. Any stabilizer circuit on n qubits has an equivalent circuit with only O(n²/log n) gates, arranged in the repeating layer sequence H-C-P-C-P-C-H-P-C-P-C, where H, C, and P stand for Hadamard, CNOT, and phase gates.<sup>[4](https://arxiv.org/abs/quant-ph/0406196)</sup>

## References

1. [Scott Aaronson, Daniel Gottesman (2004). Improved Simulation of Stabilizer Circuits. Phys. Rev. A 70, 052328.](https://doi.org/10.1103/PHYSREVA.70.052328)
2. [M. Van den Nest (2008). Classical simulation of quantum computation, the Gottesman-Knill theorem, and slightly beyond. arXiv:0811.0898.](https://arxiv.org/abs/0811.0898)
3. [Scott Aaronson. Lecture notes chapter on stabilizer circuits and the CHP algorithm.](https://www.scottaaronson.com/papers/chp6.pdf)
4. [Scott Aaronson, Daniel Gottesman (2004). Improved Simulation of Stabilizer Circuits. arXiv:quant-ph/0406196.](https://arxiv.org/abs/quant-ph/0406196)
5. [Sergey Bravyi, David Gosset (2016). Improved classical simulation of quantum circuits dominated by Clifford gates. arXiv:1601.07601.](https://arxiv.org/abs/1601.07601)
6. [qiskit.quantum_info.Clifford, IBM Quantum Documentation.](https://docs.quantum.ibm.com/api/qiskit/qiskit.quantum_info.Clifford)
7. [Quantum Mechanics (Springer, 2024), section on stabilizer states.](https://link.springer.com/chapter/10.1007/978-3-031-98119-7_3)
8. [Polyhedral classical simulators for quantum computation. Research in the Mathematical Sciences (2026).](https://doi.org/10.1007/s40687-026-00626-x)
9. [Universal set of gates, Introduction to Quantum Computing, RWTH Aachen.](https://qis.rwth-aachen.de/teaching/25ss/intro-quantum-computing/script/content/universalGates.html)
10. [On stabiliser techniques and their application to simulation and certification of quantum devices. Universität zu Köln dissertation.](https://kups.ub.uni-koeln.de/50465/)
11. [Classical simulation complexity of extended Clifford circuits. arXiv:1305.6190.](https://arxiv.org/abs/1305.6190)

---
*Topic: Encyclopedia › Physical world and mathematics › Physics › Quantum physics › Quantum information science › Quantum computing and algorithms › Quantum gates and circuits › Clifford gates and the Clifford group*

*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

*Copyright 2026 EdgeChat AI, a subsidiary of Biostate AI.*

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license
