Stabilizer Formalism
The stabilizer formalism describes quantum subspaces using commuting Pauli constraints. It replaces many amplitude calculations with binary linear algebra, while retaining the signs needed to identify the state or code. The same language describes error syndromes, logical operators, Clifford gates and ideal Pauli measurements. A code’s stabilizers specify its allowed subspace; they do not specify an arbitrary logical state inside that subspace.
Helpful background. Pauli group and stabilizers develops signed products and small examples. Why error correction is possible gives the Knill–Laflamme criterion, and multi-qubit gates supplies controlled gates and conjugation.
We use ordered qubits and binary row vectors. Physical noise, syndrome-extraction circuits and decoder design are developed in syndrome measurement and decoders; the calculations here describe ideal operators and measurements.
The Qubit Pauli Group
Section titled “The Qubit Pauli Group”For ordered qubits, the Pauli group is
The phases and make the set closed under multiplication. Every Pauli string is unitary. A Pauli string with phase is Hermitian. A nonidentity Hermitian string has eigenvalues ; and have only their single fixed eigenvalue.
Two Pauli strings either commute or anticommute. On one qubit,
while equal Pauli factors commute. Tensor-product strings commute exactly when the number of positions containing different nonidentity Pauli factors is even.
Global phase is irrelevant to the support and commutation pattern, but signs are not disposable in a stabilizer description. The constraints
and
select opposite eigenspaces of the same observable.
Binary Symplectic Representation
Section titled “Binary Symplectic Representation”Ignore phase temporarily and represent a Pauli string by a binary row vector
On qubit ,
| Pauli factor | |
|---|---|
| up to phase |
A convenient Hermitian representative is
where
Vector addition is modulo two, but the exponent of uses the integer overlap count modulo four. For example, . Reducing that overlap count modulo two too early would give the wrong sign.
Multiplication adds the binary vectors and produces a separate phase. Writing and , let as an integer. Then
where the exponent is evaluated modulo four:
The vector sum inside is first taken modulo two; the dot product in this exponent is an integer. The extra arises from moving past . For commuting Hermitian rows, is even, so a product’s sign is updated by modulo two, together with the two original sign bits. This is the information that an unsigned row operation would lose.
Commutation is a symplectic product
Section titled “Commutation is a symplectic product”For
define
Then
Thus the strings commute when and anticommute when .
Introduce the matrix
For row vectors,
This binary symplectic form is the common algebra behind commuting checks, syndrome extraction, logical operators, and Clifford conjugation.
Stabilizer Groups and Code Spaces
Section titled “Stabilizer Groups and Code Spaces”A qubit stabilizer group is an abelian subgroup of such that
The stabilized subspace is
The exclusion of is essential. If both were required, the only solution would be the zero vector.
Suppose has independent commuting Hermitian generators,
Independence means that no nonempty product of generators equals . Every group element is a product
so
The binary generator matrix
has one row per generator. Pairwise commutation is equivalent to
or
The row space is therefore an isotropic subspace: every pair of its vectors has zero symplectic product. Its rank cannot exceed . These binary equations test commutation, but a dependent signed list still needs a phase check to exclude , as the Bell-state example shows.
Projector and dimension
Section titled “Projector and dimension”Each commuting generator contributes a -eigenspace projector:
Their product projects onto the common code space:
Only the identity Pauli has nonzero trace, with . Therefore
An stabilizer code has
independent stabilizer generators. When , the code space is one-dimensional and defines a pure stabilizer state. When , it encodes logical qubits.
For a stabilizer state , the density operator has the compact expansion
For a code with , the same expression is the maximally mixed encoded state:
Generator lists are not unique
Section titled “Generator lists are not unique”Replacing a generator by its product with another generator does not change . Binary row operations on , with the corresponding product signs updated, therefore change the generating set while preserving the code. This freedom is useful for Gaussian elimination, measurement updates, and circuit design.
The abstract code may be unchanged, but generator choice can matter physically. Different generating sets can have different Pauli weights, geometrical supports, ancilla schedules, and fault-propagation behavior.
Worked Example: The Four-Qubit Detection Code
Section titled “Worked Example: The Four-Qubit Detection Code”Consider four physical qubits with
The generators commute because they anticommute at four qubit positions. They are independent, so and
The code is an stabilizer code. Its projector is
Every one-qubit Pauli error anticommutes with at least one generator:
| Error on any qubit | syndrome |
|---|---|
The code detects every single-qubit Pauli error. It does not locate the damaged qubit because all four errors, for example, have the same syndrome. For a general single-qubit channel, a no-error component can also remain in the code; detection does not promise a flag on every run.
One valid choice of logical Pauli representatives is
Each operator commutes with and . The designated logical pairs anticommute, while cross pairs commute. None belongs to .
Because weight- logical Paulis exist and all weight- Paulis are detectable,
The code detects one arbitrary qubit error and can correct one known-location erasure, but it cannot correct an arbitrary unknown-location one-qubit error. This is a useful warning: a nonzero syndrome can certify that an error occurred without providing enough information for deterministic recovery.
Logical Operators and the Pauli Normalizer
Section titled “Logical Operators and the Pauli Normalizer”Let
be the Pauli centralizer of . In stabilizer-code language this set is commonly called the Pauli normalizer . Here the Pauli normalizer equals the centralizer: Pauli conjugation sends a stabilizer to or , and cannot also belong to when is excluded.
There are three possibilities for a Pauli operator :
- anticommutes with some . It maps the code to an orthogonal syndrome sector.
- up to phase. It acts as a scalar phase on every code vector, leaving density operators unchanged.
- up to phase. It preserves the code but acts nontrivially on logical information.
The logical Pauli group is represented by the quotient
which retains the scalar Pauli phases. A phase-free description is particularly convenient: set and let denote its symplectic orthogonal complement. Then
Thus there are logical labels, including the identity. In statements below involving , membership is understood modulo scalar phases; a global is not a nontrivial logical error. For an code, one can choose representatives
that commute with every stabilizer and satisfy
Multiplying a logical representative by any stabilizer produces the same logical operation on the code:
This equivalence is the algebraic source of stabilizer-code degeneracy.
Distance
Section titled “Distance”For a stabilizer code with , distance is the minimum weight of a nontrivial logical Pauli:
Here weight counts the qubit positions with . For , the quotient has no nontrivial logical label and this minimum is empty; one must state a separate convention if assigning a distance to a stabilizer state.
The definition also explains why low-weight stabilizers do not reduce distance. A low-weight stabilizer is undetectable but logically trivial. Degenerate codes can therefore have stabilizers whose weight is below .
Syndromes as Linear Algebra
Section titled “Syndromes as Linear Algebra”Let an error Pauli have binary vector
Its syndrome against the generator rows is
Equivalently,
The measured eigenvalue of generator is
for an ideal code state after error , because
The syndrome map is linear:
Two Pauli errors and have the same syndrome exactly when
up to phase. That fact divides same-syndrome pairs into two very different classes:
- if , the errors are degenerate and have the same logical action;
- if , they differ by a logical Pauli and cannot both be corrected by the same recovery.
A decoder therefore does not merely invert the syndrome map. It estimates an error equivalence class modulo stabilizers and must avoid choosing the wrong logical class. Decoders turns this algebraic statement into a posterior inference problem.
Knill–Laflamme in Stabilizer Language
Section titled “Knill–Laflamme in Stabilizer Language”The general exact-correction criterion is developed in Why Quantum Error Correction Is Possible. For a stabilizer code and a Pauli error set , it becomes especially concrete:
for every , up to phase.
To see why, write .
If anticommutes with a stabilizer , then
so
The two errors occupy orthogonal syndrome sectors.
If is a stabilizer up to phase, then
The errors may share a syndrome, but they have the same action on the code.
Only the third case fails: if , then is a nontrivial logical Pauli, so is not proportional to . The same syndrome has hidden a logical ambiguity.
This criterion is also the reason a distance- stabilizer code corrects arbitrary errors on
unknown qubits.
Clifford Operations
Section titled “Clifford Operations”The -qubit Clifford group is the normalizer of the Pauli group in the unitary group:
Thus a Clifford unitary maps every Pauli string to another Pauli string under conjugation. Standard generators are Hadamard, the phase gate , and CNOT.
| Gate | Image of | Image of |
|---|---|---|
For CNOT with control and target ,
Signs must be updated as well. For example,
If is stabilized by , then is stabilized by
This is the stabilizer analogue of Heisenberg evolution: update a compact list of observables instead of expanding the state vector.
Binary Clifford action
Section titled “Binary Clifford action”Ignoring phases, Clifford conjugation induces a linear transformation
on binary row vectors. Commutation must be preserved, so
Such an is a binary symplectic matrix. The full Clifford operation requires both and phase data; the symplectic matrix alone cannot distinguish Cliffords that have the same action modulo Pauli signs.
Bell-state preparation by generator propagation
Section titled “Bell-state preparation by generator propagation”Start from , stabilized by
Apply :
Then apply :
These are the generators of . The computation never required writing its four amplitudes.
Code-preserving versus code-changing Cliffords
Section titled “Code-preserving versus code-changing Cliffords”An arbitrary physical Clifford maps one stabilizer code to another code with conjugated stabilizer group. It implements a logical operation on the same code only when it preserves the code space, equivalently when
It then maps logical Pauli representatives to logical Pauli representatives and induces a logical Clifford. A Clifford physical circuit is not automatically a valid fault-tolerant logical gate; error propagation and the code architecture still matter.
Pauli Measurement Updates
Section titled “Pauli Measurement Updates”Let be a Hermitian Pauli, measured with projectors for outcomes . For a state supported on a stabilizer code, there are three possibilities.
A fixed check. If , the result is ; if , it is . The encoded state is unchanged.
A logical measurement. If commutes with every stabilizer but , the result depends on the logical state:
For a nonzero-probability outcome, append as a new independent stabilizer. The allowed subspace halves in dimension, and one logical degree of freedom has been measured. The old stabilizers alone do not determine . For the maximally mixed code state the outcomes are equal; for a logical eigenstate one is certain.
A measurement anticommuting with a check. If some anticommutes with , then . Both outcomes have probability for every code state. Multiply each other anticommuting generator by , then replace by . The number of independent generators remains . Moreover,
Each normalized branch is an isometry from the old code to the new one. Conditional on its known outcome, this measurement preserves the logical information, including entanglement with a reference. Ignoring the outcome can discard information needed to undo a branch-dependent change.
Two measurements of the same encoded state
Section titled “Two measurements of the same encoded state”For , the checks are and . Measuring anticommutes with the first check. For , the normalized output is
where . Both outcomes have probability . Applying when restores the same two-qubit encoding on carriers 2 and 3.
Measuring instead commutes with both checks and acts as logical . It returns with probability and with probability , leaving or . Those branches no longer contain the unknown relative amplitude and phase.
Ideal measurements on the same repetition encoding have different effects. Measuring changes the stabilizer group while retaining both amplitudes in each branch. Measuring measures a logical observable. The first measurement has input-independent probabilities and retains the logical state in each conditional output; the second reveals logical .
These update rules describe ideal projective instruments. Syndrome measurement develops ancilla circuits, repeated noisy records and fault propagation.
Stabilizer Tableaus
Section titled “Stabilizer Tableaus”A stabilizer tableau stores generator data as a binary matrix plus phase bits:
For a pure -qubit stabilizer state, one may track independent stabilizer rows. Simulation algorithms often add destabilizer rows or another canonical completion so that measurement outcomes and updates can be computed without repeating full Gaussian elimination.
The basic operations are:
- generator multiplication: binary row addition plus phase update;
- Clifford gate: local column and phase updates;
- Pauli measurement: commutation test, deterministic evaluation or random outcome, then row replacement;
- partial trace or mixed-state extension: reduce or augment the stored stabilizer data according to the chosen algorithm.
Tracking rows of bits plus signs uses bits. For a code, these rows describe the code subspace or its maximally mixed state; tracking an arbitrary encoded state requires additional logical-state information. Exact runtime depends on the tableau representation, operation sequence, sparsity, and requested output.
Gottesman–Knill Theorem
Section titled “Gottesman–Knill Theorem”The Gottesman–Knill theorem states that circuits composed of:
- stabilizer-state preparations;
- Clifford gates;
- Pauli measurements;
- classical control conditioned on measurement outcomes, with polynomial-time classical processing;
can be simulated efficiently on a classical computer for standard sampling and stabilizer-tracking tasks.
These circuits can generate large entangled states, so entanglement alone does not imply difficult classical simulation. The theorem concerns specified simulation tasks and stabilizer inputs; it does not make every property of every quantum circuit easy, nor make an encoded Clifford gate automatically fault tolerant (Gottesman, 1998; Aaronson and Gottesman, 2004).
The reason for efficient updates is closure: Pauli descriptions remain Pauli descriptions. For example, the gate is non-Clifford because
which is not proportional to a Pauli operator. Adding nonstabilizer states, non-Clifford gates, or non-Pauli measurements breaks the basic tableau closure, though specialized algorithms can still exploit a small amount of nonstabilizer structure.
Extensions and physical implementations
Section titled “Extensions and physical implementations”For subsystem codes, a gauge group can be noncommuting. Its central commuting constraints, with consistent signs and scalar phases removed, specify the stabilizer; gauge and protected logical degrees of freedom must be distinguished. Prime-dimensional qudits have a related construction over a finite field, while composite dimensions require modular and module methods (Hostens, Dehaene and De Moor, 2005). Bosonic codes require oscillator-specific operators and finite-energy considerations.
A sampled Pauli channel can be incorporated by applying randomly chosen Pauli updates. Generic coherent non-Clifford noise, amplitude damping or leakage does not preserve pure stabilizer states and needs an additional representation or approximation. Stabilizer simulation develops practical algorithms and noise sampling.
Finally, the same abstract stabilizer may be measured by circuits with different connectivity, depth and fault propagation. A decoder uses a noise model and often repeated outcomes to infer an error class. The algebra supplies exact code relations; those circuits and assumptions determine physical performance. Fault-tolerant gates connects the two.
Exercises
Section titled “Exercises”1. Symplectic commutation test
Section titled “1. Symplectic commutation test”Represent
as binary vectors, determine whether they commute, and calculate the full product including its phase.
Solution
For ,
For ,
The symplectic product is
The strings commute. Directly, they anticommute on qubits 1 and 2, giving two minus signs. Their product is
The binary phase rule gives , , and , hence .
2. Projector and code dimension
Section titled “2. Projector and code dimension”Let be generated by three independent commuting nonidentity Paulis on five qubits, with . Write the code projector and find the number of encoded qubits.
Solution
The projector is
There are independent checks on qubits, so
The code encodes
logical qubits.
3. Check the logical Pauli representatives
Section titled “3. Check the logical Pauli representatives”For the four-qubit code with checks and , verify that
have the required logical commutation relations.
Solution
Every listed operator has even overlap between its support and the support of , or between its support and . Hence all commute with both stabilizers.
and overlap with different nonidentity Pauli factors only on qubit 2, so they anticommute. Likewise, and overlap only on qubit 3 and anticommute.
The cross pair has no conflicting overlap, so it commutes. The cross pair has conflicting overlap on qubits 2 and 3, giving two minus signs, so it also commutes. Same-type logical operators commute.
All representatives have weight and none is a stabilizer. Since every weight- Pauli is detected, this also confirms .
4. Pauli measurement update
Section titled “4. Pauli measurement update”Start from with stabilizers and measure . Find updated generators for outcomes and identify the postmeasurement states.
Solution
anticommutes with both and . Choose . Replace the other anticommuting generator by
which commutes with . Replace by . The updated stabilizer group is
For , the state is
For , the state is
Each outcome has probability .
5. Same syndrome, different logical class
Section titled “5. Same syndrome, different logical class”In the code, show that and have the same syndrome but cannot both be corrected by one syndrome-conditioned recovery.
Solution
Both errors commute with and anticommute with , so each has syndrome
Their relative product is
This operator belongs to and acts as a nontrivial logical Pauli. If one recovery corrects , applying that same recovery after leaves a logical error, or vice versa. Equal syndromes are safe only when the relative product is a stabilizer, not a logical operator.
6. A non-Clifford test
Section titled “6. A non-Clifford test”Explain why
proves that is not a Clifford gate. Does applying it always turn a stabilizer state into a nonstabilizer state?
Solution
A Clifford unitary must map every Pauli operator to another Pauli operator under conjugation. The operator
is a coherent linear combination of two distinct Pauli matrices and is not proportional to , , , or . Therefore does not normalize the Pauli group and is non-Clifford. But remains a stabilizer state. In contrast, has Bloch vector , outside the six single-qubit pure stabilizer directions. Non-Clifford gates do not preserve the entire set; they need not take every member outside it.
References
Section titled “References”- S. Aaronson and D. Gottesman, “Improved simulation of stabilizer circuits,” Physical Review A 70, 052328 (2004), arXiv:quant-ph/0406196 — tableau simulation and measurement updates.
- J. Dehaene and B. De Moor, “Clifford group, stabilizer states, and linear and quadratic operations over GF(2),” Physical Review A 68, 042318 (2003), arXiv:quant-ph/0304125 — binary and phase descriptions of Clifford operations.
- D. Gottesman, Stabilizer Codes and Quantum Error Correction, Ph.D. thesis, California Institute of Technology (1997), arXiv:quant-ph/9705052 — code projectors, logical operators, distance and error correction.
- D. Gottesman, “The Heisenberg representation of quantum computers,” in Group22: Proceedings of the XXII International Colloquium on Group Theoretical Methods in Physics (1999), arXiv:quant-ph/9807006 — observable propagation and efficient simulation.
- E. Hostens, J. Dehaene and B. De Moor, “Stabilizer states and Clifford operations for systems of arbitrary dimensions and modular arithmetic,” Physical Review A 71, 042315 (2005), doi:10.1103/PhysRevA.71.042315 — extension beyond qubits.