Skip to main content
KetQat

Appearance

Theorem · advanced

Parameters of hypergraph product codes

The hypergraph product of two parity-check matrices encodes k1k2 + k1Tk2T logical qubits and has distance at least the smallest of the four classical distances of the matrices and their transposes. Good classical LDPC inputs give constant rate and distance of order root n.

Peer-reviewed resultMachine-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 Q=HGP(H1,H2)Q = \mathrm{HGP}(H_1, H_2) be the hypergraph product of 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}. Then QQ is an [[n,k,d]][[n, k, d]] code with

n=n1n2+m1m2,k=k1k2+k1Tk2T,n = n_1 n_2 + m_1 m_2 , \qquad k = k_1 k_2 + k_1^T k_2^T ,

and its ZZ- and XX-distances satisfy

dZ≥min⁡(d1,d2T),dX≥min⁡(d2,d1T),henced≥min⁡(d1,d2,d1T,d2T).d_Z \ge \min(d_1, d_2^T) , \qquad d_X \ge \min(d_2, d_1^T) , \qquad\text{hence}\qquad d \ge \min(d_1, d_2, d_1^T, d_2^T) .

Conversely, dZ≤d1d_Z \le d_1 if k2>0k_2 > 0, dZ≤d2Td_Z \le d_2^T if k1T>0k_1^T > 0, dX≤d2d_X \le d_2 if k1>0k_1 > 0, and dX≤d1Td_X \le d_1^T if k2T>0k_2^T > 0. In particular, if H1=H2=HH_1 = H_2 = H is a full-rank (n0−k0)×n0(n_0 - k_0) \times n_0 parity-check matrix of an [n0,k0,d0][n_0, k_0, d_0] code, then kT=0k^T = 0 and QQ is an [[ n02+(n0−k0)2,  k02,  d0 ]][[\, n_0^2 + (n_0 - k_0)^2,\; k_0^2,\; d_0 \,]] code.

Taking HH from a family of classical LDPC codes with constant rate and linear distance gives quantum LDPC codes with constant rate and d=Θ(n)d = \Theta(\sqrt{n}). This is Theorem 15 and Theorem 1 of Tillich and Zémor, where the lower bound is also shown to be attained in further cases.

Holds when

  • Hi∈F2mi×niH_i \in \F_2^{m_i \times n_i}, i=1,2i = 1, 2, are arbitrary binary matrices (rows need not be independent).
  • ki=dim⁡ker⁡Hik_i = \dim \ker H_i, kiT=dim⁡ker⁡HiTk_i^T = \dim \ker H_i^T; did_i and diTd_i^T are the minimum weights of nonzero vectors in ker⁡Hi\ker H_i and ker⁡HiT\ker H_i^T, with the convention that the minimum over the zero space is ∞\infty.

Proof

Proof of the hypergraph product parametersMachine-checked

Use the matrix description of the hypergraph product: ZZ-type operators Z(A,B)Z(A, B) have XX-syndrome σX(A,B)=H1A+BH2\sigma_X(A, B) = H_1 A + B H_2, ZZ stabilizers are Z(EH2,H1E)Z(E H_2, H_1 E), XX-type operators X(A,B)X(A, B) have ZZ-syndrome σZ(A,B)=AH2T+H1TB\sigma_Z(A, B) = A H_2^T + H_1^T B, and XX stabilizers are X(H1TD,DH2T)X(H_1^T D, D H_2^T). We use one linear-algebra fact: for subspaces U⊆F2pU \subseteq \F_2^{p} and W⊆F2qW \subseteq \F_2^{q}, the matrices M∈F2p×qM \in \F_2^{p \times q} whose columns lie in UU and whose rows lie in WW form a space of dimension dim⁡U⋅dim⁡W\dim U \cdot \dim W (choose bases and write MM in them).

Length. The qubits are [n1]×[n2][n_1] \times [n_2] and [m1]×[m2][m_1] \times [m_2].

Dimension. By the CSS dimension formula, k=n−rank⁡HX−rank⁡HZk = n - \operatorname{rank} H_X - \operatorname{rank} H_Z. The map D↦(H1TD,DH2T)D \mapsto (H_1^T D, D H_2^T), defined on F2m1×n2\F_2^{m_1 \times n_2}, has rank rank⁡HX\operatorname{rank} H_X; its kernel consists of the DD with H1TD=0H_1^T D = 0 and DH2T=0D H_2^T = 0, that is, columns in ker⁡H1T\ker H_1^T and rows in ker⁡H2\ker H_2, of dimension k1Tk2k_1^T k_2. So rank⁡HX=m1n2−k1Tk2\operatorname{rank} H_X = m_1 n_2 - k_1^T k_2. In the same way the map E↦(EH2,H1E)E \mapsto (E H_2, H_1 E) on F2n1×m2\F_2^{n_1 \times m_2} has kernel of dimension k1k2Tk_1 k_2^T, so rank⁡HZ=n1m2−k1k2T\operatorname{rank} H_Z = n_1 m_2 - k_1 k_2^T. Hence

k=n1n2+m1m2−m1n2−n1m2+k1Tk2+k1k2T=(n1−m1)(n2−m2)+k1Tk2+k1k2T.k = n_1 n_2 + m_1 m_2 - m_1 n_2 - n_1 m_2 + k_1^T k_2 + k_1 k_2^T = (n_1 - m_1)(n_2 - m_2) + k_1^T k_2 + k_1 k_2^T .

Rank–nullity for HiH_i and HiTH_i^T gives ni−rank⁡Hi=kin_i - \operatorname{rank} H_i = k_i and mi−rank⁡Hi=kiTm_i - \operatorname{rank} H_i = k_i^T, so ni−mi=ki−kiTn_i - m_i = k_i - k_i^T, and expanding (k1−k1T)(k2−k2T)+k1Tk2+k1k2T=k1k2+k1Tk2T(k_1 - k_1^T)(k_2 - k_2^T) + k_1^T k_2 + k_1 k_2^T = k_1 k_2 + k_1^T k_2^T.

Lower bound on dZd_Z. Let Z(A,B)Z(A, B) have zero XX-syndrome, H1A=BH2H_1 A = B H_2 (signs are irrelevant over F2\F_2), and suppose ∣A∣+∣B∣<min⁡(d1,d2T)\abs{A} + \abs{B} < \min(d_1, d_2^T). We show it is a stabilizer. Let R⊆[n1]R \subseteq [n_1] be the set of rows of AA that contain a 1, and T⊆[m2]T \subseteq [m_2] the set of columns of BB that contain a 1; then ∣R∣≤∣A∣<d1\abs{R} \le \abs{A} < d_1 and ∣T∣≤∣B∣<d2T\abs{T} \le \abs{B} < d_2^T. Let H1′H_1' be H1H_1 restricted to the columns in RR and H2′H_2' be H2H_2 restricted to the rows in TT. A nonzero x∈ker⁡H1′x \in \ker H_1', padded with zeros, would be a nonzero vector of ker⁡H1\ker H_1 of weight at most ∣R∣<d1\abs{R} < d_1; so ker⁡H1′=0\ker H_1' = 0. Likewise ker⁡H2′T=0\ker H_2'^{T} = 0. By the dimension formula just proved, the hypergraph product of H1′H_1' and H2′H_2' encodes k1′k2′+k1′Tk2′T=0⋅k2′+k1′T⋅0=0k_1' k_2' + k_1'^T k_2'^T = 0 \cdot k_2' + k_1'^T \cdot 0 = 0 qubits, so in that smaller code every ZZ-type operator with zero XX-syndrome is a stabilizer. Let A′A' be the rows of AA indexed by RR and B′B' the columns of BB indexed by TT. Because AA vanishes outside the rows RR and BB outside the columns TT, H1′A′=H1AH_1' A' = H_1 A and B′H2′=BH2B' H_2' = B H_2, so Z(A′,B′)Z(A', B') has zero XX-syndrome in the smaller code. Hence A′=E′H2′A' = E' H_2' and B′=H1′E′B' = H_1' E' for some E′∈F2R×TE' \in \F_2^{R \times T}. Extending E′E' by zeros to E∈F2n1×m2E \in \F_2^{n_1 \times m_2} gives EH2=AE H_2 = A and H1E=BH_1 E = B, so Z(A,B)Z(A, B) is a stabilizer of QQ. Therefore every nontrivial ZZ-type logical operator has weight at least min⁡(d1,d2T)\min(d_1, d_2^T).

Lower bound on dXd_X. Transposing everything, X(A,B)X(A, B) has ZZ-syndrome AH2T+H1TBA H_2^T + H_1^T B, whose transpose is H2AT+BTH1H_2 A^T + B^T H_1, the XX-syndrome of Z(AT,BT)Z(A^T, B^T) in HGP(H2,H1)\mathrm{HGP}(H_2, H_1); the XX stabilizers of QQ transpose to the ZZ stabilizers of HGP(H2,H1)\mathrm{HGP}(H_2, H_1). The previous paragraph applied to HGP(H2,H1)\mathrm{HGP}(H_2, H_1) gives dX≥min⁡(d2,d1T)d_X \ge \min(d_2, d_1^T). Since the distance of a CSS code is min⁡(dX,dZ)\min(d_X, d_Z), d≥min⁡(d1,d2,d1T,d2T)d \ge \min(d_1, d_2, d_1^T, d_2^T).

Upper bounds. Suppose k2>0k_2 > 0 and let x∈ker⁡H1x \in \ker H_1 have weight d1d_1. Since ker⁡H2≠0\ker H_2 \ne 0, the row space of H2H_2 is a proper subspace of F2n2\F_2^{n_2}, so some unit vector eye_y is not in it. Put A=xeyTA = x e_y^T (weight d1d_1) and B=0B = 0. Then H1A=0H_1 A = 0, so Z(A,0)Z(A, 0) commutes with all XX checks. If it were a stabilizer, A=EH2A = E H_2 and 0=H1E0 = H_1 E for some EE; for any row ii with xi=1x_i = 1, row ii of AA is eyTe_y^T and equals (row ii of EE) H2\, H_2, which would put eye_y in the row space of H2H_2. So dZ≤d1d_Z \le d_1. The bound dZ≤d2Td_Z \le d_2^T when k1T>0k_1^T > 0 uses A=0A = 0 and B=eazTB = e_a z^T with z∈ker⁡H2Tz \in \ker H_2^T of weight d2Td_2^T and eae_a a unit vector outside the column space of H1H_1; the bounds on dXd_X follow by transposition as above.

The case H1=H2=HH_1 = H_2 = H of full row rank. Then kT=0k^T = 0, so k=k02k = k_0^2; the upper bound dZ≤d0d_Z \le d_0 applies since k0>0k_0 > 0, and the lower bound with dT=∞d^T = \infty gives d=d0d = d_0.

The restriction argument for the lower bound is that of Lemma 16 of Tillich and Zémor, recast in matrix notation; the dimension count follows their Proposition 14 and the upper bound their Lemma 17.

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. 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

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)

    Compared with Tillich and Zemor arXiv 0903.0566: Theorem 1 (full-rank H, length n^2+(n-k)^2, dimension k^2, distance d, square-root distance for good LDPC inputs), Proposition 14 (k = k1k2 + k1Tk2T), Theorem 15 and Lemma 16 (d >= min(d1,d2,d1T,d2T), with the separate bound min(d1,d2T) in the proof), Lemma 17 (d <= d_i when d_{3-i} finite, i.e. k_{3-i}>0). Brute-force numerical check over 134 random small (H1,H2) with k>0: k formula, d_Z >= min(d1,d2T), d_X >= min(d2,d1T) and all four conditional upper bounds hold.

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