A stabilizer group excludes , so each element squares to and is Hermitian; an imaginary-phase Pauli element would square to . A nonidentity stabilizer contains at least one nonidentity local Pauli matrix and has zero trace, since the trace of a tensor product is the product of local traces. Its eigenvalues are therefore with equal multiplicities. This trace fact also gives from the stabilizer-projector formula.
A subspace is isotropic when the symplectic pairing vanishes between every pair of its vectors. Its binary Pauli labels therefore commute. Nondegeneracy identifies the ambient space with its dual, so the map to is surjective and . Since , it follows that . This explains the maximum number of independent generators of a stabilizer group.
The Pauli group includes scalar phases . For a nonzero stabilizer code, its Abelian subgroup must satisfy . Otherwise a common positive eigenvector would satisfy and vanish; for example is Abelian but yields no nonzero stabilizer code. We impose this standard admissibility condition.
Every element of such a stabilizer group is Hermitian and squares to : an imaginary-phase Pauli with square is excluded. The associated stabilizer code and its orthogonal projector are
The group multiplication proves , Hermiticity gives , and its range is exactly the common positive eigenspace. If has independent generators, . Every nonidentity element has trace zero, while , so
Thus it encodes logical qubits.
For the symplectic representation of a stabilizer code, label by , ignoring scalar phase. Products add labels, and
This is the nondegenerate alternating form on the binary symplectic space of Pauli labels. The image of is an r-dimensional isotropic subspace of a binary symplectic space, since the generators commute and no nontrivial scalar lies in . Consequently and . A binary generator matrix satisfies . Conversely an isotropic subspace can be lifted by choosing commuting Hermitian generators with independent labels; their products cannot equal , and the orthogonal projector formula supplies the stabilizer code. The labels of the centralizer of a stabilizer group are , with nontrivial logical actions represented by .
For an example, the three-qubit bit-flip repetition code has and . Its two binary rows have zero X part and Z parts . The errors have respective error syndromes , so all single bit flips can be corrected. This is not a stabilizer code correcting every single-qubit error: acts as a nontrivial logical phase error.
Let denote the Pauli centralizer. The exact Pauli error criterion for a stabilizer code is
Equivalently, no difference of error labels lies in . The scalar phases in are essential: an error product is harmless even though it is not in .
We prove the criterion. For outside , some anticommutes with . Since , we have , hence . If , then . If , it restricts to a unitary operator on the stabilizer code, but
no is scalar. A scalar restriction would have scalar coefficient zero by this trace equation, contradicting unitarity. Thus this third case is not scalar.
To justify why scalar compressions are exactly what correction requires, suppose one recovery corrects every . Dilate that recovery to an isometry including its auxiliary system. Correct recovery of every pure stabilizer code state gives . The auxiliary state is independent of : linearity on basis states and their superpositions forces their auxiliary vectors to coincide. Preservation of inner products then gives
which is the Knill--Laflamme condition . The three cases above prove necessity of the boxed criterion.
For sufficiency, put errors in the same class when . They act identically on the stabilizer code up to scalar phase, so give the same error-image subspace. Under the criterion, different classes give mutually orthogonal subspaces , because their cross-compressions vanish. Measure which of these subspaces is occupied and apply the inverse of a representative error. This returns every stabilizer code state unchanged; extend the recovery on the orthogonal complement by preparing any fixed stabilizer code state. Linearity also corrects any valid noise channel whose Kraus operators are linear combinations of the specified errors: within each syndrome all amplitudes multiply the same logical state, and trace preservation normalizes the recovered state. This proves sufficiency, including degenerate error classes.
The physical space of qubits is . An error operator is a linear operator on this space, for example one Kraus operator of a noise quantum channel. The usual channel description assumes initially uncorrelated system and environment, with the environment subsequently ignored; more general initial correlations need not define a channel on arbitrary system inputs. Finite dimension and the tensor decomposition into identifiable qubits allow an exact Pauli expansion of a quantum error. No independence between errors on different qubits is assumed by this expansion.
The tensor products of form an orthogonal basis of the operator space under the Hilbert-Schmidt inner product. Equivalently, absorbing phases into coefficients, every error has an expansion
For a computational basis vector labelled by , this gives
where addition and the dot product in the exponent are modulo two. Thus changes a bit, changes its phase, and performs both up to a scalar phase. A general error is a coherent linear combination of such actions; it need not be a classical random choice of Pauli operators. A restriction to at most faulty qubits is an additional locality assumption, expressed by the span of Pauli operators of weight at most .
The weight of a Pauli operator is the number of tensor factors different from , ignoring global phase. Let be the orthogonal projector onto a -dimensional code . Quantum error detection means
Indeed, a projective measurement of flags departure from the code, while its code-space outcome acts as the scalar on every encoded state and hence does not change logical information. Harmless scalar actions are included in this criterion. The quantum code distance is
Thus every Pauli operator of weight at most is detectable. The condition is linear in , so it holds for any error in their span. This proves detection of arbitrary errors affecting at most qubits, including coherent errors.
For correction, put and take all phase-free Pauli operators of weight at most . Their pairwise products satisfy
These are the Knill--Laflamme conditions. Here is their recovery construction, rather than merely using the criterion's name. For any normalized code state , the matrix is a Gram matrix, since , and is therefore positive semidefinite. Choose linear combinations of the errors diagonalizing this matrix, so that
For , the operators are isometries from the code into mutually orthogonal error-image subspaces: . Measure the projectors and, on outcome , apply . Complete this recovery arbitrarily on the remaining orthogonal subspace to make a trace-preserving quantum channel.
For an error and any encoded density operator , the recovered contribution is
Terms with annihilate the code. For a physical noise channel whose Kraus operators belong to this span, summing the displayed scalar over those operators gives one by trace preservation. The resulting recovered state is exactly . This proves the constructive recovery from the Knill-Laflamme condition and the requested guarantee
This argument allows degenerate codes; distinct physical errors may have identical actions on the code.
For the Shor code, define . Its two normalized basis codewords are
Six stabilizer generators are ; the two phase checks are
All eight have eigenvalue on both basis codewords. A phase error commutes with the six checks and anticommutes with both and . Their projective measurements therefore return
The two negative phase checks identify the middle three-qubit block. Apply the Pauli Z gate to restore the state, since . This procedure acts identically on every logical superposition, and the checks reveal no logical amplitudes. The syndrome cannot distinguish from or , but all three have the same action on the code: their pairwise products lie in the stabilizer group. Correcting with any one of them is sufficient. Thus the degeneracy in the syndrome is harmless.
The -qubit Pauli group is
A stabilizer group is an abelian subgroup of excluding . Its associated stabilizer code is the common positive eigenspace
The exclusion of is necessary for a nonzero code, since no nonzero vector has eigenvalue under .
Every is a signed Hermitian tensor product of Pauli matrices. An imaginary-phase Pauli element would have , contradicting closure of and exclusion of ; hence and . If , it cannot be a nontrivial scalar Pauli element, and at least one of its local factors is or . Each of these has trace zero. Using gives .
The spectral theorem for Hermitian operators and show that all eigenvalues are or . If their multiplicities are and , then
Thus the balanced spectrum of a nonidentity stabilizer is
This concerns a nonidentity stabilizer acting on the entire physical space; on the code every stabilizer acts with eigenvalue .
Because all elements commute and square to , is a vector space over under multiplication. Its independent stabilizer generators satisfy that no nonempty product is ; all products are distinct. The stabilizer-projector formula is
To verify it, group multiplication gives , Hermiticity gives , and for every . Conversely every code vector is fixed by this average, so its range is exactly . All nonidentity stabilizers have trace zero by the preceding proof. Therefore
For a code of dimension , the number of independent generators is consequently . One can list additional redundant generators, but an independent generating set has exactly this size.
For a correctable Pauli error , define the syndrome bit to be zero when commutes with and one when it anticommutes. On an encoded state,
Measure the commuting stabilizer generators; their eigenvalues reveal the error syndrome without revealing logical amplitudes. In a nondegenerate quantum code, the distinct specified correctable errors have orthogonal images of the code and distinct syndromes. A syndrome therefore identifies the error representative, and applying the inverse Pauli operator restores the encoded state.
If an actual error operator is a coherent linear combination of the specified errors, its state is a sum of these orthogonal syndrome components. Syndrome measurement selects one component, followed by the same inverse operation. The linearity of coherent quantum error correction ensures the logical state is recovered in every outcome. The same procedure handles noise Kraus operators in that error span; it does not require a probabilistic Pauli-noise assumption.
A Pauli error commuting with every stabilizer has the all-zero syndrome and preserves the code space. If it is a stabilizer up to global phase, this silent action is harmless. If it lies in the centralizer of a stabilizer group but is not a stabilizer up to phase, it acts as a nontrivial logical operator, and syndrome measurements cannot detect it. More generally, a non-scalar component of an error is an undetectable logical action. This distinguishes harmful undetected errors from scalar actions that satisfy quantum error detection algebraically.
The three-qubit bit-flip repetition code has basis and generators
A single phase flip commutes with both and has zero syndrome, but
It is a nontrivial logical phase operation. In particular, is not scalar, so the error set violates the Knill--Laflamme condition and cannot be corrected. Thus the code corrects single bit flips but not single phase flips; its distance against arbitrary quantum errors is one.
The state has independent stabilizer generators , , and . Its complete stabilizer group is
For , take the generators , , and . Their products give
In particular , which accounts for the two minus signs.
An -qubit stabilizer state is the unique simultaneous eigenstate of an abelian group of Pauli operators having elements and not containing . The group is the state's stabilizer group; equivalently, it is generated by independent commuting Hermitian Pauli operators.
Choose a Clifford operation with and absorb into the circuit. Push each subsequent Clifford gate forward through the computation. A computational-basis measurement made after a Clifford prefix becomes a Pauli measurement
on the initial state, because Clifford conjugation preserves the Pauli group. Adaptivity merely makes the next Pauli depend on earlier classical outcomes.
It remains to eliminate the stabilizer qubits. Maintain their current stabilizer group. For a Pauli to be measured, there are two cases.
  • If commutes with every stabilizer generator, its action on the one-dimensional stabilizer sector reduces to a Pauli operator on the remaining qubits, possibly with a known sign. Measure that effective Pauli on .
  • If anticommutes with some stabilizer , its outcome is uniformly random. Sample for an ordinary measurement, or set when the original measurement is postselected. The Clifford operator
maps the old stabilizer sector into the eigenspace of . Updating the Clifford frame by removes this measurement while conjugating every later Pauli to another Pauli.
Iterating this procedure leaves an adaptive Pauli-based computation on . The same classical outcomes determine every adaptive choice and final output, so this gives a weak classical simulation. Every postselected outcome becomes either a fixed classical branch or a postselected Pauli measurement, as required.
If and , then
Thus conjugating the state conjugates its entire stabilizer group.
The triangle is obtained from the path by local complementation of a graph state at vertex , which toggles the edge between its neighbors and . The corresponding Local Clifford operation is
Direct conjugation gives
These three commuting operators generate exactly the same stabilizer group as . Therefore
for an irrelevant global phase .
The commuting terms
are independent stabilizer generators. Since , every ground state has . The resulting two-dimensional stabilizer subspace is
the phase-flip repetition code. A convenient pair of logical Pauli operators is
Indeed, they commute with every stabilizer, anticommute with each other, and are not stabilizers.
For phase-flip errors and , the operator entering the Knill--Laflamme condition is and has weight at most . Every nonempty proper product of anticommutes with some unless it is the full logical operator . The Knill--Laflamme conditions therefore hold whenever , and fail once two allowed errors can differ by . Thus
Each physical commutes with all stabilizers, and is a product of stabilizers. Hence every acts on the code as the undetectable logical operator . The code cannot detect, and therefore cannot correct, even a single bit flip.
Stabilizer code Created 2026-09-24 Updated 2026-10-14
A stabilizer code is the common eigenspace of a stabilizer group , an abelian subgroup of the Pauli group excluding . Choose independent stabilizer generators on physical qubits. They are commuting Hermitian operators, each squaring to . The stabilizer subspace and its orthogonal projector are
The stabilizer-projector formula gives , so logical qubits remain. Independent here means that no nonempty product of the chosen stabilizer generators is . Excluding is necessary: a vector cannot simultaneously be fixed by and unless it is zero.
For the three-qubit bit-flip repetition code, take and , with the Pauli Z gate on site and identities elsewhere. The stabilizer group is . Both stabilizer generators have eigenvalue exactly on the span of and , giving dimensions for one logical qubit. A projective measurement of these checks distinguishes four orthogonal two-dimensional sectors rather than eight individual computational basis states.
A Pauli error that anticommutes with a stabilizer generator changes that check's sign, producing an error syndrome. A Pauli operator commuting with every check can still act on the logical qubits; the centralizer of a stabilizer group describes these possibilities. Thus the number of checks determines the encoded dimension, while the quantum code distance determines protection against arbitrary local errors. The five-qubit error correcting code, for instance, has four stabilizer generators and quantum code distance three; the three-qubit bit-flip repetition code has two checks but quantum code distance one because a single phase flip is unflagged. [ref].
Stabilizer generator Created 2026-09-28 Updated 2026-10-14
A set of stabilizer generators is an independent commuting family of Hermitian Pauli operators whose products form a stabilizer group.
For a stabilizer group , the orthogonal projector onto its stabilizer subspace is
A stabilizer group with independent generators maps injectively to an r-dimensional isotropic subspace of the binary symplectic space of Pauli labels. For generator rows , commutation is over . Its stabilizer subspace has dimension . The labels of the centralizer of a stabilizer group form ; labels in act as nontrivial logical Pauli operators.