Skip to main content
KetQat

Appearance

Definition · intermediate

CSS code

A stabilizer code whose generators are each a product of X operators only or of Z operators only, described by two binary check matrices with H_X H_Z^T = 0, equivalently by two nested classical codes or by a chain complex of length two.

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.

For v∈F2nv \in \F_2^n write X(v)=∏j:vj=1XjX(v) = \prod_{j : v_j = 1} X_j and Z(v)=∏j:vj=1ZjZ(v) = \prod_{j : v_j = 1} Z_j. Then X(u)X(u) and Z(v)Z(v) commute if and only if u⋅v=0u \cdot v = 0 over F2\F_2.

Check-matrix form. Let HX∈F2mX×nH_X \in \F_2^{m_X \times n} and HZ∈F2mZ×nH_Z \in \F_2^{m_Z \times n} satisfy

HXHZT=0.H_X H_Z^{T} = 0 .

The CSS code CSS(HX,HZ)\mathrm{CSS}(H_X, H_Z) is the stabilizer code on nn qubits whose stabilizer group is generated by X(h)X(h) for the rows hh of HXH_X and Z(h)Z(h) for the rows hh of HZH_Z. The condition HXHZT=0H_X H_Z^T = 0 says exactly that every XX-type generator commutes with every ZZ-type generator. An XX error X(e)X(e) has syndrome HZeH_Z e and a ZZ error Z(e)Z(e) has syndrome HXeH_X e, so the two kinds of error are detected by separate classical parity checks.

Nested-code form. Equivalently, take binary linear codes C2⊆C1⊆F2nC_2 \subseteq C_1 \subseteq \F_2^n, let HZH_Z be a parity-check matrix of C1C_1 (so C1=ker⁡HZC_1 = \ker H_Z) and HXH_X a generator matrix of C2C_2 (so C2C_2 is the row space of HXH_X). Then HXHZT=0H_X H_Z^T = 0 because C2⊆C1C_2 \subseteq C_1. This is the original formulation of Calderbank and Shor and Steane, usually written CSS(C1,C2)\mathrm{CSS}(C_1, C_2). The case C2=C⊥⊆C=C1C_2 = C^\perp \subseteq C = C_1 uses a single dual-containing code.

Chain-complex form. Matrices with HXHZT=0H_X H_Z^T = 0 are the same thing as a chain complex of F2\F_2-vector spaces of length two,

C2→  ∂2=HZT  C1=F2n→  ∂1=HX  C0,∂1∂2=0,C_2 \xrightarrow{\;\partial_2 = H_Z^{T}\;} C_1 = \F_2^{n} \xrightarrow{\;\partial_1 = H_X\;} C_0 , \qquad \partial_1 \partial_2 = 0 ,

with qubits on the basis of C1C_1, ZZ checks on the basis of C2C_2 and XX checks on the basis of C0C_0. The ZZ-type logical operators are then the first homology ker⁡∂1/im⁡∂2\ker \partial_1 / \operatorname{im} \partial_2 and the XX-type logical operators the first cohomology ker⁡∂2T/im⁡∂1T\ker \partial_2^T / \operatorname{im} \partial_1^T. A cellulated surface gives the homological code this way (Bombin and Martin-Delgado), and products of complexes give the hypergraph product and its successors (Breuckmann and Eberhardt). Which of HXH_X and HZH_Z is called ∂1\partial_1 is a convention; the opposite choice exchanges the roles of XX and ZZ.

Logical operators and distance. X(u)X(u) is a nontrivial logical operator exactly when u∈ker⁡HZu \in \ker H_Z and uu is not in the row space of HXH_X; Z(v)Z(v) is one exactly when v∈ker⁡HXv \in \ker H_X and vv is not in the row space of HZH_Z. The XX-distance and ZZ-distance are

dX=min⁡{∣u∣:u∈ker⁡HZ∖rs⁡HX},dZ=min⁡{∣v∣:v∈ker⁡HX∖rs⁡HZ},d_X = \min \bigl\{ \abs{u} : u \in \ker H_Z \setminus \operatorname{rs} H_X \bigr\} , \qquad d_Z = \min \bigl\{ \abs{v} : v \in \ker H_X \setminus \operatorname{rs} H_Z \bigr\} ,

where ∣⋅∣\abs{\cdot} is the Hamming weight and rs⁡\operatorname{rs} the row space; the distance of the code is min⁡(dX,dZ)\min(d_X, d_Z) (see the CSS parameter theorem). Not every stabilizer code is CSS: a stabilizer code is CSS precisely when its stabilizer group is generated by elements that are each purely XX-type or purely ZZ-type (up to sign), which fails for the five-qubit code.

Builds on
Instance of
Part of
Instances
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. 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
  2. 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
  3. Daniel Gottesman (1997). Stabilizer Codes and Quantum Error Correction. PhD thesis, California Institute of Technology. arXiv:quant-ph/9705052
  4. H. Bombin, M. A. Martin-Delgado (2007). Homological error correction: Classical and quantum codes. Journal of Mathematical Physics 48, 052105. doi:10.1063/1.2731356arXiv:quant-ph/0605094
  5. Nikolas P. Breuckmann, Jens Niklas Eberhardt (2021). Quantum Low-Density Parity-Check Codes. PRX Quantum 2, 040101. doi:10.1103/PRXQuantum.2.040101arXiv:2103.06309
  6. 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)

    Commutation criterion, check-matrix, nested-code and chain-complex forms, logical operators as homology/cohomology and d_X, d_Z definitions re-derived and checked for consistent conventions; CSS dimension and distances computed numerically for toric codes L = 2, 3 (numpy script); nested-code formulation compared with Calderbank-Shor, arXiv quant-ph/9512032 (construction with C2 in C1, Sec. 3); Crossref metadata of calderbank-shor-1996, bombin-martin-delgado-2007-homological, breuckmann-eberhardt-2021 checked. Nielsen-Chuang is not openly readable, so its section 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 ebc659bc89427383. Source file knowledge/records/definition/css-code.md in the content repository (readable there once it is public).