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∈F2n write X(v)=∏j:vj=1Xj and Z(v)=∏j:vj=1Zj.
Then X(u) and Z(v) commute if and only if u⋅v=0 over F2.
Check-matrix form. Let HX∈F2mX×n and HZ∈F2mZ×n
satisfy
HXHZT=0.
The CSS codeCSS(HX,HZ) is the stabilizer code
on n qubits whose stabilizer group is generated by X(h) for the rows h of HX and
Z(h) for the rows h of HZ. The condition HXHZT=0 says exactly that every
X-type generator commutes with every Z-type generator. An X error X(e) has
syndrome HZe and a Z error Z(e) has syndrome HXe, so the two kinds of
error are detected by separate classical parity checks.
Nested-code form. Equivalently, take binary linear codes C2⊆C1⊆F2n,
let HZ be a parity-check matrix of C1 (so C1=kerHZ) and HX a generator
matrix of C2 (so C2 is the row space of HX). Then HXHZT=0 because
C2⊆C1. This is the original formulation of
Calderbank and Shor and
Steane, usually written CSS(C1,C2).
The case C2=C⊥⊆C=C1 uses a single dual-containing code.
Chain-complex form. Matrices with HXHZT=0 are the same thing as a chain
complex of F2-vector spaces of length two,
C2∂2=HZTC1=F2n∂1=HXC0,∂1∂2=0,
with qubits on the basis of C1, Z checks on the basis of C2 and X checks on the
basis of C0. The Z-type logical operators are then the first homology
ker∂1/im∂2 and the X-type logical operators the
first cohomology ker∂2T/im∂1T. 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
HX and HZ is called ∂1 is a convention; the opposite choice exchanges
the roles of X and Z.
Logical operators and distance.X(u) is a nontrivial logical operator exactly when
u∈kerHZ and u is not in the row space of HX; Z(v) is one exactly when
v∈kerHX and v is not in the row space of HZ. The X-distance and
Z-distance are
where ∣⋅∣ is the Hamming weight and rs the row space; the
distance of the code is min(dX,dZ) (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 X-type or purely Z-type (up to sign), which fails for
the five-qubit code.
Claude (AI drafting assistant)Writing, original draft (CRediT roles)
Review history
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
2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e
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).