Skip to main content
KetQat

Appearance

Definition · advanced

Hypergraph product code

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×n1H_1 \in \F_2^{m_1 \times n_1} and H2∈F2m2×n2H_2 \in \F_2^{m_2 \times n_2} be arbitrary binary matrices, viewed as parity-check matrices of classical codes. The hypergraph product HGP(H1,H2)\mathrm{HGP}(H_1, H_2) is the CSS code on

n=n1n2+m1m2n = n_1 n_2 + m_1 m_2

qubits defined as follows. Arrange the qubits as two matrices: the left block, indexed by pairs (bit of H1H_1, bit of H2H_2), holds a matrix A∈F2n1×n2A \in \F_2^{n_1 \times n_2}, and the right block, indexed by pairs (check of H1H_1, check of H2H_2), holds B∈F2m1×m2B \in \F_2^{m_1 \times m_2}. A Pauli error is described by such a pair of matrices.

  • XX checks are indexed by [m1]×[n2][m_1] \times [n_2]. A ZZ error Z(A,B)Z(A, B) has XX-syndrome H1A+BH2∈F2m1×n2H_1 A + B H_2 \in \F_2^{m_1 \times n_2}. The stabilizer generated by the XX checks is {X(H1TD,  DH2T):D∈F2m1×n2}\{ X(H_1^T D,\; D H_2^T) : D \in \F_2^{m_1 \times n_2} \}.
  • ZZ checks are indexed by [n1]×[m2][n_1] \times [m_2]. An XX error X(A,B)X(A, B) has ZZ-syndrome AH2T+H1TB∈F2n1×m2A H_2^T + H_1^T B \in \F_2^{n_1 \times m_2}. The stabilizer generated by the ZZ checks is {Z(EH2,  H1E):E∈F2n1×m2}\{ Z(E H_2,\; H_1 E) : E \in \F_2^{n_1 \times m_2} \}.

The two families commute: the XX-syndrome of a ZZ stabilizer is H1EH2+H1EH2=0H_1 E H_2 + H_1 E H_2 = 0. In Kronecker form, with qubits ordered left block then right block and matrices flattened row by row,

HX=( H1⊗In2  ∣  Im1⊗H2T ),HZ=( In1⊗H2  ∣  H1T⊗Im2 ).H_X = \bigl(\, H_1 \otimes I_{n_2} \;\big|\; I_{m_1} \otimes H_2^T \,\bigr) , \qquad H_Z = \bigl(\, I_{n_1} \otimes H_2 \;\big|\; H_1^T \otimes I_{m_2} \,\bigr) .

Homologically, HGP(H1,H2)\mathrm{HGP}(H_1, H_2) is the middle level of the tensor product of the two-term complexes F2ni→F2mi\F_2^{n_i} \to \F_2^{m_i} defined by HiH_i (Breuckmann and Eberhardt).

Sparsity. If every row and column of HiH_i has weight at most wiw_i, every row and column of HXH_X and HZH_Z has weight at most w1+w2w_1 + w_2. So LDPC inputs give a quantum LDPC family.

Examples. With H1=H2H_1 = H_2 the L×LL \times L incidence matrix of a cycle of length LL (rows ei+ei+1e_i + e_{i+1}, indices mod LL) one obtains the toric code [[2L2,2,L]][[2L^2, 2, L]]; with the (L−1)×L(L-1) \times L parity-check matrix of the open repetition code one obtains the planar surface code [[L2+(L−1)2,1,L]][[L^2 + (L-1)^2, 1, L]]. (Both were checked by computing ranks and, for L=3L = 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\sqrt n; parameters are in the hypergraph product theorem.

Builds on
Instance of
Part of
Generalized by
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. Jean-Pierre Tillich, Gilles Zémor (2014). Quantum LDPC Codes With Positive Rate and Minimum Distance Proportional to the Square Root of the Blocklength. IEEE Transactions on Information Theory 60 (2), 1193-1202. doi:10.1109/TIT.2013.2292061arXiv:0903.0566
  2. Anthony Leverrier, Jean-Pierre Tillich, Gilles Zémor (2015). Quantum Expander Codes. 2015 IEEE 56th Annual Symposium on Foundations of Computer Science, 810-824. doi:10.1109/FOCS.2015.55arXiv:1504.00822
  3. 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

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)

    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

  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 a36800b538bca7e1. Source file knowledge/records/definition/hypergraph-product-code.md in the content repository (readable there once it is public).