Skip to main content
KetQat

Appearance

Code · introductory

Shor nine-qubit code

The first quantum error-correcting code, a [[9,1,3]] concatenation of the three-qubit phase-flip code with the three-qubit bit-flip code. It corrects any single-qubit error and is degenerate, with weight-two stabilizers.

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.

Code states. Group the qubits into blocks {1,2,3}\{1,2,3\}, {4,5,6}\{4,5,6\}, {7,8,9}\{7,8,9\} and put ∣±3⟩=(∣000⟩±∣111⟩)/2\ket{\pm_3} = (\ket{000} \pm \ket{111}) / \sqrt 2. Then

∣0ˉ⟩=∣+3⟩∣+3⟩∣+3⟩,∣1ˉ⟩=∣−3⟩∣−3⟩∣−3⟩.\ket{\bar 0} = \ket{+_3} \ket{+_3} \ket{+_3} , \qquad \ket{\bar 1} = \ket{-_3} \ket{-_3} \ket{-_3} .

The outer layer is the three-qubit phase-flip code across blocks and the inner layer is the three-qubit bit-flip repetition code inside each block.

Stabilizer. Eight generators:

Z1Z2, Z2Z3, Z4Z5, Z5Z6, Z7Z8, Z8Z9,X1X2X3X4X5X6,X4X5X6X7X8X9.\begin{gathered} Z_1 Z_2,\ Z_2 Z_3,\ Z_4 Z_5,\ Z_5 Z_6,\ Z_7 Z_8,\ Z_8 Z_9, \\ X_1 X_2 X_3 X_4 X_5 X_6, \qquad X_4 X_5 X_6 X_7 X_8 X_9 . \end{gathered}

Each ZZ-type generator meets each XX-type generator in zero or two qubits, so all commute; the eight are independent, so k=9−8=1k = 9 - 8 = 1. The stabilizer group contains 9 elements of weight 2 (the products ZiZjZ_i Z_j within a block). (Pairwise commutation, independence, the weight distribution and the distance were checked by direct computation.)

Logical operators. With the code states above, Xˉ=Z1Z4Z7\bar X = Z_1 Z_4 Z_7, which maps ∣0ˉ⟩\ket{\bar 0} to ∣1ˉ⟩\ket{\bar 1}, and Zˉ=X1X2X3\bar Z = X_1 X_2 X_3, which has eigenvalue +1+1 on ∣0ˉ⟩\ket{\bar 0} and −1-1 on ∣1ˉ⟩\ket{\bar 1}. Equivalent representatives are Z⊗9Z^{\otimes 9} and X⊗9X^{\otimes 9}. Some authors exchange the names of the two code states, which exchanges these roles.

Parameters. [[9,1,3]][[9, 1, 3]], degenerate. A bit flip XjX_j is located by the two ZZ-type checks of its block. A phase flip ZjZ_j changes the sign of its block, which is detected by the two XX-type checks; Z1Z_1, Z2Z_2 and Z3Z_3 have the same syndrome and act identically on the code space, because Z1Z2Z_1 Z_2 and Z2Z3Z_2 Z_3 are stabilizers. Of the 27 single-qubit errors, the 18 of type XX and YY have distinct syndromes and the 9 of type ZZ share 3 syndromes, giving 21 distinct nonzero syndromes in all.

Properties. It is a CSS code and the simplest example of code concatenation. It is degenerate, so it is not bounded by the quantum Hamming bound argument for non-degenerate codes, although with these parameters it satisfies the bound anyway.

History. Introduced by Shor as the first code protecting a qubit against arbitrary single-qubit errors. The stabilizer description is in Gottesman and section 10.2 of Nielsen and Chuang.

Instance of
Mentions
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. Peter W. Shor (1995). Scheme for reducing decoherence in quantum computer memory. Physical Review A 52, R2493-R2496. doi:10.1103/PhysRevA.52.R2493
  2. Michael A. Nielsen, Isaac L. Chuang (2010). Quantum Computation and Quantum Information (10th Anniversary Edition). Cambridge University Press. doi:10.1017/CBO9780511976667
  3. Daniel Gottesman (1997). Stabilizer Codes and Quantum Error Correction. PhD thesis, California Institute of Technology. arXiv:quant-ph/9705052

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)

    Code states, eight generators, commutation, independence, 9 weight-2 stabilizers, distance 3, logical operators Xbar = Z1Z4Z7 and Zbar = X1X2X3 acting on the stated code states, and the syndrome count (18 distinct X/Y syndromes, 3 shared Z syndromes, 21 nonzero in all) verified numerically (numpy script); degeneracy compared with Gottesman thesis, arXiv quant-ph/9705052, Sec. 3.2 (nine-qubit code is degenerate, sigma_z1 sigma_z2 in S); shor-1995 metadata compared with Crossref. 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 31126598fc3ad00c. Source file knowledge/records/code/shor-nine-qubit-code.md in the content repository (readable there once it is public).