Skip to main content
KetQat

Appearance

Theorem · intermediate

Error correction and distance of stabilizer codes

A set of Pauli errors is correctable by a stabilizer code exactly when no product of two of them is a nontrivial logical operator. Consequently the distance is the minimum weight of a nontrivial logical operator, and a minimum-weight correction by syndrome corrects all errors of weight below d/2.

Established resultMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01

AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.

Let C(S)C(S) be a stabilizer code with stabilizer group SS, normalizer N(S)N(S) and k≥1k \ge 1, and write ⟨iI⟩S\langle iI \rangle S for SS together with its multiples by ±1,±i\pm 1, \pm i.

  1. Single operators. For E∈PnE \in \mathcal{P}_n, PEPP E P is proportional to PP if and only if E∉N(S)∖⟨iI⟩SE \notin N(S) \setminus \langle iI \rangle S. More precisely, PEP=0P E P = 0 if E∉N(S)E \notin N(S), PEP=λPP E P = \lambda P with ∣λ∣=1\abs{\lambda} = 1 if E∈⟨iI⟩SE \in \langle iI \rangle S, and PEPP E P is not a multiple of PP otherwise.
  2. Correctable sets. A set {Ea}⊆Pn\{E_a\} \subseteq \mathcal{P}_n is correctable (satisfies the Knill–Laflamme conditions) if and only if Ea†Eb∉N(S)∖⟨iI⟩SE_a\dagg E_b \notin N(S) \setminus \langle iI \rangle S for all a,ba, b.
  3. Distance. The distance of C(S)C(S) equals
d=min⁡{ wt⁡(E)  :  E∈N(S)∖⟨iI⟩S }.d = \min \bigl\{\, \operatorname{wt}(E) \;:\; E \in N(S) \setminus \langle iI \rangle S \,\bigr\} .
  1. Syndrome decoding. Let t=⌊(d−1)/2⌋t = \lfloor (d-1)/2 \rfloor. The recovery that measures the syndrome σ\sigma and applies a fixed Pauli operator RσR_\sigma of minimum weight among those with syndrome σ\sigma returns every state E∣ψ⟩E \ket{\psi}, ∣ψ⟩∈C(S)\ket{\psi} \in C(S), wt⁡(E)≤t\operatorname{wt}(E) \le t, to ∣ψ⟩\ket{\psi} up to a global phase.

Item 3 is how distances of stabilizer codes are defined and computed in practice (Gottesman; Theorem 10.8 and the surrounding discussion in Nielsen and Chuang). Item 4 needs no knowledge of which error occurred beyond its syndrome: two errors of weight at most tt with the same syndrome differ by an element of ⟨iI⟩S\langle iI \rangle S.

Holds when

  • C(S)C(S) is an [[n,k]][[n, k]] stabilizer code with k≥1k \ge 1 and projector PP.
  • The errors EaE_a are elements of the Pauli group Pn\mathcal{P}_n; general errors are handled by linearity.
  • Distance is meant in the general sense, the smallest support of an operator EE with PEPP E P not proportional to PP.

Proof

Proof of the error-correction condition for stabilizer codesMachine-checked

Let g1,…,gn−kg_1, \dots, g_{n-k} be independent generators of SS and P=∏j12(I+gj)P = \prod_j \tfrac12 (I + g_j) the code projector.

Item 1. Case E∉N(S)E \notin N(S). Then EE anticommutes with some generator gg. Since gP=Pg=Pg P = P g = P,

PEP=PEgP=−PgEP=−PEP,P E P = P E g P = - P g E P = - P E P ,

so PEP=0P E P = 0.

Case E∈N(S)E \in N(S). Then EE commutes with every generator, hence with PP, so PEP=EPP E P = E P. If E=λsE = \lambda s with s∈Ss \in S and ∣λ∣=1\abs{\lambda} = 1, then EP=λPE P = \lambda P.

Case E∈N(S)∖⟨iI⟩SE \in N(S) \setminus \langle iI \rangle S. In the binary representation the vector ee of EE lies in S⊥s\mathcal{S}^{\perp_s} but not in S\mathcal{S}, where S\mathcal{S} is the span of the generator vectors. Because the symplectic form is nondegenerate, (S⊥s)⊥s=S(\mathcal{S}^{\perp_s})^{\perp_s} = \mathcal{S}, so there is a vector q∈S⊥sq \in \mathcal{S}^{\perp_s} with ⟨e,q⟩s=1\langle e, q \rangle_s = 1. Let QQ be a Pauli operator with vector qq. Then Q∈N(S)Q \in N(S), so QQ commutes with PP, and QE=−EQQ E = - E Q. Suppose PEP=cPP E P = c P. Then

cP=PEP=PQ†QEP=−PQ†EQP=−Q†(PEP)Q=−c Q†PQ=−cP,c P = P E P = P Q\dagg Q E P = - P Q\dagg E Q P = - Q\dagg (P E P) Q = - c\, Q\dagg P Q = - c P ,

so c=0c = 0 and EP=PEP=0E P = P E P = 0. But EE is unitary and P≠0P \ne 0, so EP≠0E P \ne 0, a contradiction. Hence PEPP E P is not a multiple of PP.

Item 2. By item 1 applied to E=Ea†Eb∈PnE = E_a\dagg E_b \in \mathcal{P}_n, the condition PEa†EbP=cabPP E_a\dagg E_b P = c_{ab} P holds for every pair exactly when no product Ea†EbE_a\dagg E_b lies in N(S)∖⟨iI⟩SN(S) \setminus \langle iI \rangle S. The Knill–Laflamme theorem turns this into correctability.

Item 3. Let d′d' be the minimum weight in N(S)∖⟨iI⟩SN(S) \setminus \langle iI \rangle S; it exists because k≥1k \ge 1 makes this set nonempty. A minimum-weight element EE is an operator on d′d' qubits with PEP∝̸PP E P \not\propto P by item 1, so the distance is at most d′d'. Conversely, let FF be any operator supported on a set AA of fewer than d′d' qubits. The Pauli operators supported in AA span all operators on AA, so F=∑αfαEαF = \sum_\alpha f_\alpha E_\alpha with each EαE_\alpha a Pauli operator of weight less than d′d'. No such EαE_\alpha lies in N(S)∖⟨iI⟩SN(S) \setminus \langle iI \rangle S, so by item 1 each PEαPP E_\alpha P is a multiple of PP, and so is PFPP F P. Hence the distance is at least d′d'.

Item 4. Let wt⁡(E)≤t\operatorname{wt}(E) \le t and σ=σ(E)\sigma = \sigma(E). The fixed correction RσR_\sigma has syndrome σ\sigma and weight at most wt⁡(E)≤t\operatorname{wt}(E) \le t, by minimality. Then Rσ†ER_\sigma\dagg E has zero syndrome, so it lies in N(S)N(S), and its weight is at most 2t≤d−1<d2t \le d - 1 < d, so by item 3 it lies in ⟨iI⟩S\langle iI \rangle S. Measuring the generators on E∣ψ⟩E \ket{\psi} yields σ\sigma with certainty and leaves the state unchanged (dimension theorem, step 5), and Rσ†E∣ψ⟩=λ∣ψ⟩R_\sigma\dagg E \ket{\psi} = \lambda \ket{\psi} with ∣λ∣=1\abs{\lambda} = 1. Applying Rσ†R_\sigma\dagg (a Pauli operator, equal to RσR_\sigma up to phase) therefore restores ∣ψ⟩\ket{\psi} up to a global phase. Since the Pauli operators of weight at most tt form a correctable set by item 2, the Knill–Laflamme theorem extends correctability to every noise map whose operation elements are linear combinations of them.

This is the standard argument of Gottesman; see also Theorem 10.8 of Nielsen and Chuang.

Part of
Stated in

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. Daniel Gottesman (1997). Stabilizer Codes and Quantum Error Correction. PhD thesis, California Institute of Technology. arXiv:quant-ph/9705052
  2. Michael A. Nielsen, Isaac L. Chuang (2010). Quantum Computation and Quantum Information (10th Anniversary Edition). Cambridge University Press. doi:10.1017/CBO9780511976667

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    Items 1-4 re-proved (including the minimum-weight decoder argument: product of two errors of weight <= t has weight < d and zero syndrome); compared with Gottesman thesis, arXiv quant-ph/9705052, Sec. 3.2 (correctable iff E_a E_b in S or outside N(S); distance via N(S) - S); distances 3 computed by exhaustive search for the five-qubit, Steane and Shor codes. Nielsen-Chuang is not openly readable, so its section/theorem numbers were not checked.

Revision history

  1. 2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e
  2. 2026-11-30KetQat Commons: free learning paths, knowledge records, research problems, literature intake (#14)571c9b10

Current revision 2b8e31f6f3962a05. Source file knowledge/records/theorem/stabilizer-code-distance.md in the content repository (readable there once it is public).