Skip to main content
KetQat

Appearance

Code · intermediate

Five-qubit code

The [[5,1,3]] stabilizer code with the four cyclic generators XZZXI, IXZZX, XIXZZ and ZXIXZ. It is the smallest qubit code that corrects an arbitrary single-qubit error and meets both the quantum Hamming and quantum Singleton bounds with equality.

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.

Stabilizer. Qubits 1,…,51, \dots, 5; generators

g1=X Z Z X I,g2=I X Z Z X,g3=X I X Z Z,g4=Z X I X Z.\begin{aligned} g_1 &= X\,Z\,Z\,X\,I, &\qquad g_2 &= I\,X\,Z\,Z\,X, \\ g_3 &= X\,I\,X\,Z\,Z, &\qquad g_4 &= Z\,X\,I\,X\,Z . \end{aligned}

Each is the cyclic shift of the previous one by one position, and the fifth shift Z Z X I XZ\,Z\,X\,I\,X equals the product g1g2g3g4g_1 g_2 g_3 g_4. Every pair of generators has non-identity Pauli matrices that differ on exactly two qubits, so every pair commutes; for instance g1g_1 and g2g_2 differ on qubits 2 and 4. The four binary vectors are linearly independent, so k=5−4=1k = 5 - 4 = 1. All 15 non-identity elements of the stabilizer group have weight 4. (Pairwise commutation, independence, the weight distribution and the distance below were checked by direct computation.)

Logical operators. Xˉ=X⊗5\bar X = X^{\otimes 5} and Zˉ=Z⊗5\bar Z = Z^{\otimes 5} commute with every generator and anticommute with each other. Lower-weight representatives exist: Z⊗5g1g3=−Z I X X IZ^{\otimes 5} g_1 g_3 = - Z\,I\,X\,X\,I, so Z I X X IZ\,I\,X\,X\,I acts on the code space as −Zˉ-\bar Z.

Parameters. [[5,1,3]][[5, 1, 3]]. No Pauli operator of weight 1 or 2 commutes with all four generators except the identity, and Z I X X IZ\,I\,X\,X\,I is a nontrivial logical operator of weight 3.

Syndromes. Writing the syndrome as (σ1σ2σ3σ4)(\sigma_1 \sigma_2 \sigma_3 \sigma_4) with σj=1\sigma_j = 1 when the error anticommutes with gjg_j:

qubit 1 2 3 4 5
XX 0001 1000 1100 0110 0011
ZZ 1010 0101 0010 1001 0100
YY 1011 1101 1110 1111 0111

The 15 single-qubit errors have the 15 distinct nonzero syndromes, so the code is perfect: it meets the quantum Hamming bound 2k(1+3n)≤2n2^{k}(1 + 3n) \le 2^{n} with equality, 2⋅16=32=252 \cdot 16 = 32 = 2^5. It also meets the quantum Singleton bound, n−k=4=2(d−1)n - k = 4 = 2(d-1), and is non-degenerate.

Properties. No element of the stabilizer group other than II is purely XX-type or purely ZZ-type, so this stabilizer is not of CSS form; by the quantum Singleton bound no code with n<5n < 5 encodes a qubit with distance 3. The stabilizer is invariant under cyclic shifts of the qubits. Under the GF(4) correspondence the stabilizer is closed under the relabelling X→Z→Y→XX \to Z \to Y \to X, which is multiplication by ω\omega, so it is an F4\F_4-linear code with 424^2 elements (Calderbank, Rains, Shor and Sloane); both facts were checked by enumerating the 16 group elements.

History. Found independently by Laflamme, Miquel, Paz and Zurek and by Bennett, DiVincenzo, Smolin and Wootters. The cyclic generators above are the form used by Gottesman and by Nielsen and Chuang.

Instance of
Part of
Mentioned in
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. Raymond Laflamme, Cesar Miquel, Juan Pablo Paz, Wojciech H. Zurek (1996). Perfect Quantum Error Correcting Code. Physical Review Letters 77, 198-201. doi:10.1103/PhysRevLett.77.198arXiv:quant-ph/9602019
  2. Charles H. Bennett, David P. DiVincenzo, John A. Smolin, William K. Wootters (1996). Mixed-state entanglement and quantum error correction. Physical Review A 54, 3824-3851. doi:10.1103/PhysRevA.54.3824
  3. Daniel Gottesman (1997). Stabilizer Codes and Quantum Error Correction. PhD thesis, California Institute of Technology. arXiv:quant-ph/9705052
  4. A. R. Calderbank, E. M. Rains, P. W. Shor, N. J. A. Sloane (1998). Quantum error correction via codes over GF(4). IEEE Transactions on Information Theory 44 (4), 1369-1387. doi:10.1109/18.681315arXiv:quant-ph/9608006
  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)

    Generators, commutation, independence, weight distribution (15 elements of weight 4), the product g1g2g3g4 = ZZXIX with sign +, Zbar g1 g3 = -ZIXXI, distance 3, the full syndrome table, absence of pure X/Z elements and closure under X->Z->Y->X (16 elements) all verified numerically (numpy script); GF(4) reading (X->omega, Z->omega-bar, Y->1, multiplication by omega) re-derived per Calderbank-Rains-Shor-Sloane conventions; history consistent with Gottesman thesis and BDSW arXiv quant-ph/9604024; laflamme-1996-perfect-code, calderbank-1998-gf4 metadata compared with Crossref.

    The relabelling was stored with a tab character in place of the LaTeX '\t' of '\to' ('X <tab>o Z ...'), which would render wrongly; restored to $X \to Z \to Y \to X$. No mathematical change.

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