Skip to main content
KetQat

Appearance

Code · intermediate

Steane code

The [[7,1,3]] CSS code built from the classical [7,4,3] Hamming code for both X and Z checks. It corrects any single-qubit error, has six weight-four generators, and admits transversal implementations of the logical Clifford gates.

Established definitionMachine-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.

Classical code. Let HH be the parity-check matrix of the Hamming code [7,4,3][7, 4, 3] whose jj-th column is the binary expansion of jj:

H=(000111101100111010101).H = \begin{pmatrix} 0 & 0 & 0 & 1 & 1 & 1 & 1 \\ 0 & 1 & 1 & 0 & 0 & 1 & 1 \\ 1 & 0 & 1 & 0 & 1 & 0 & 1 \end{pmatrix} .

Its row space is the [7,3,4][7, 3, 4] simplex code C⊥C^\perp, contained in the Hamming code CC.

Stabilizer. One XX-type and one ZZ-type generator for each row of HH:

g1X=I I I X X X X,g2X=I X X I I X X,g3X=X I X I X I X,g1Z=I I I Z Z Z Z,g2Z=I Z Z I I Z Z,g3Z=Z I Z I Z I Z.\begin{aligned} g_1^X &= I\,I\,I\,X\,X\,X\,X, & g_2^X &= I\,X\,X\,I\,I\,X\,X, & g_3^X &= X\,I\,X\,I\,X\,I\,X, \\ g_1^Z &= I\,I\,I\,Z\,Z\,Z\,Z, & g_2^Z &= I\,Z\,Z\,I\,I\,Z\,Z, & g_3^Z &= Z\,I\,Z\,I\,Z\,I\,Z . \end{aligned}

An XX-type and a ZZ-type generator overlap on an even number of qubits (two, or four for gjX,gjZg_j^X, g_j^Z), because any two rows of HH are orthogonal over F2\F_2 and each row has even weight; so all six commute. They are independent, so k=7−6=1k = 7 - 6 = 1. The stabilizer group has 21 elements of weight 4 and 42 of weight 6. (These facts and the distance were checked by direct computation.)

Code states.

∣0ˉ⟩=18∑c∈C⊥∣c⟩,∣1ˉ⟩=X⊗7∣0ˉ⟩=18∑c∈C⊥∣c⊕1111111⟩.\ket{\bar 0} = \frac{1}{\sqrt 8} \sum_{c \in C^\perp} \ket{c}, \qquad \ket{\bar 1} = X^{\otimes 7} \ket{\bar 0} = \frac{1}{\sqrt 8} \sum_{c \in C^\perp} \ket{c \oplus 1111111} .

Logical operators. Xˉ=X⊗7\bar X = X^{\otimes 7} and Zˉ=Z⊗7\bar Z = Z^{\otimes 7}; weight-3 representatives are X1X2X3X_1 X_2 X_3 and Z1Z2Z3Z_1 Z_2 Z_3, since 11100001110000 is a Hamming codeword not in C⊥C^\perp.

Parameters. [[7,1,3]][[7, 1, 3]], non-degenerate. The syndrome of the ZZ-type checks on an XX error at qubit jj is the column jj of HH, the binary expansion of jj, and likewise for the XX-type checks on a ZZ error; a YY error lights both. All 21 single-qubit errors have distinct nonzero syndromes.

Properties. It is the CSS code of the pair (C,C)(C, C) with C⊥⊆CC^\perp \subseteq C (CSS codes). Bitwise CNOT between two blocks implements the logical CNOT, and bitwise HH implements the logical HH because the XX and ZZ checks are identical. Since every word of C⊥C^\perp has weight 0 or 4 and every word of its complement has weight 3 or 7, the bitwise phase gate S⊗7S^{\otimes 7} multiplies ∣0ˉ⟩\ket{\bar 0} by 1 and ∣1ˉ⟩\ket{\bar 1} by −i-i: it implements the logical Sˉ†\bar S\dagg, and (S†)⊗7(S\dagg)^{\otimes 7} implements Sˉ\bar S. So the whole logical Clifford group is transversal (Gottesman). It is the smallest member of the triangular two-dimensional color codes; see the transversal Clifford theorem.

History. Introduced by Steane (see also), alongside the general construction of Calderbank and Shor. A textbook treatment is in chapter 10 of Nielsen and Chuang.

Instance of
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. Andrew Steane (1996). Multiple Particle Interference and Quantum Error Correction. Proceedings of the Royal Society A 452, 2551. doi:10.1098/rspa.1996.0136arXiv:quant-ph/9601029
  2. Andrew M. Steane (1996). Error Correcting Codes in Quantum Theory. Physical Review Letters 77, 793-797. doi:10.1103/PhysRevLett.77.793
  3. A. R. Calderbank, Peter W. Shor (1996). Good quantum error-correcting codes exist. Physical Review A 54, 1098-1105. doi:10.1103/PhysRevA.54.1098
  4. Daniel Gottesman (1998). Theory of fault-tolerant quantum computation. Physical Review A 57, 127-137. doi:10.1103/PhysRevA.57.127arXiv:quant-ph/9702029
  5. 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 with notes · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    H, generators, commutation, independence, weight distribution (21 of weight 4, 42 of weight 6), distance 3, 21 distinct single-qubit syndromes, code states, weight-3 logicals and the action of S^(x7) on the code states (|0bar> -> |0bar>, |1bar> -> -i|1bar>) verified numerically (numpy script); transversal CNOT/H/phase compared with Gottesman, arXiv quant-ph/9702029, Sec. on the seven-qubit code; origin compared with Steane, arXiv quant-ph/9601029 (which credits the 7-qubit scheme to Steane 1996a, the PRL); Crossref metadata of all cited papers checked.

    The history line credited the code to the Proc. R. Soc. A paper (steane-1996-multiple-particle) with the PRL as 'see also'; that paper itself attributes the 7-qubit code to the PRL 'Error correcting codes in quantum theory'. Swapped the two citations.

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 b3e83392744c956c. Source file knowledge/records/code/steane-code.md in the content repository (readable there once it is public).