The CSS code built from any two classical parity-check matrices by placing qubits on pairs of bits and pairs of checks. Sparse inputs give a quantum LDPC code; two cycle graphs give the toric code.
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.
Let H1∈F2m1×n1 and H2∈F2m2×n2 be arbitrary binary
matrices, viewed as parity-check matrices of classical codes. The hypergraph productHGP(H1,H2) is the CSS code on
n=n1n2+m1m2
qubits defined as follows. Arrange the qubits as two matrices: the left block,
indexed by pairs (bit of H1, bit of H2), holds a matrix A∈F2n1×n2,
and the right block, indexed by pairs (check of H1, check of H2), holds
B∈F2m1×m2. A Pauli error is described by such a pair of matrices.
X checks are indexed by [m1]×[n2]. A Z error Z(A,B) has
X-syndrome H1A+BH2∈F2m1×n2. The stabilizer generated by the
X checks is {X(H1TD,DH2T):D∈F2m1×n2}.
Z checks are indexed by [n1]×[m2]. An X error X(A,B) has
Z-syndrome AH2T+H1TB∈F2n1×m2. The stabilizer generated by
the Z checks is {Z(EH2,H1E):E∈F2n1×m2}.
The two families commute: the X-syndrome of a Z stabilizer is
H1EH2+H1EH2=0. In Kronecker form, with qubits ordered left block then right
block and matrices flattened row by row,
Homologically, HGP(H1,H2) is the middle level of the tensor product of the
two-term complexes F2ni→F2mi defined by Hi
(Breuckmann and Eberhardt).
Sparsity. If every row and column of Hi has weight at most wi, every row and
column of HX and HZ has weight at most w1+w2. So LDPC inputs give a
quantum LDPC family.
Examples. With H1=H2 the L×L incidence matrix of a cycle of length L
(rows ei+ei+1, indices mod L) one obtains the toric code [[2L2,2,L]]; with
the (L−1)×L parity-check matrix of the open repetition code one obtains the planar
surface code [[L2+(L−1)2,1,L]]. (Both were checked by computing ranks and, for
L=3, the distances.) With random or expander LDPC inputs of constant rate one obtains
the codes of Tillich and Zémor and the quantum expander codes of
Leverrier, Tillich and Zémor, with
constant rate and distance of order n; parameters are in the
hypergraph product theorem.
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)
Syndrome maps, stabilizer parametrisations, commutation and the Kronecker forms of H_X and H_Z re-derived (row-major flattening); sparsity bound w_1+w_2 checked. Numerical check: H_X H_Z^T = 0 and k = k_1k_2 + k_1^T k_2^T for 300 random small H_1, H_2; toric [[18,2,3]], [[32,2,.]] and planar [[13,1,3]], [[25,1,.]] reproduced (distance by brute force for L=3). Compared with Tillich and Zemor arXiv 0903.0566 (Def. of the product, Theorem 1, Prop. 14), Leverrier-Tillich-Zemor arXiv 1504.00822 abstract (constant-rate HGP codes, Omega(sqrt n) errors) and Breuckmann-Eberhardt arXiv 2103.06309 Sec. on tensor/hypergraph products (chain-complex view).
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 a36800b538bca7e1. Source file knowledge/records/definition/hypergraph-product-code.md in the content repository (readable there once it is public).