The dimension follows from computing the kernels of the transposed check matrices as tensor products of classical kernels. The distance lower bound restricts a short logical operator to a sub-product whose classical factors have trivial kernels, where every logical operator is a stabilizer.
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.
Use the matrix description of the
hypergraph product: Z-type operators
Z(A,B) have X-syndrome σX(A,B)=H1A+BH2, Z stabilizers are
Z(EH2,H1E), X-type operators X(A,B) have Z-syndrome
σZ(A,B)=AH2T+H1TB, and X stabilizers are X(H1TD,DH2T). We
use one linear-algebra fact: for subspaces U⊆F2p and
W⊆F2q, the matrices M∈F2p×q whose columns lie in U and
whose rows lie in W form a space of dimension dimU⋅dimW (choose bases and
write M in them).
Length. The qubits are [n1]×[n2] and [m1]×[m2].
Dimension. By the CSS dimension formula,
k=n−rankHX−rankHZ. The map
D↦(H1TD,DH2T), defined on F2m1×n2, has rank
rankHX; its kernel consists of the D with H1TD=0 and
DH2T=0, that is, columns in kerH1T and rows in kerH2, of dimension
k1Tk2. So rankHX=m1n2−k1Tk2. In the same way the map
E↦(EH2,H1E) on F2n1×m2 has kernel of dimension k1k2T,
so rankHZ=n1m2−k1k2T. Hence
Rank–nullity for Hi and HiT gives ni−rankHi=ki and
mi−rankHi=kiT, so ni−mi=ki−kiT, and expanding
(k1−k1T)(k2−k2T)+k1Tk2+k1k2T=k1k2+k1Tk2T.
Lower bound on dZ. Let Z(A,B) have zero X-syndrome, H1A=BH2 (signs are
irrelevant over F2), and suppose ∣A∣+∣B∣<min(d1,d2T). We show it is a
stabilizer. Let R⊆[n1] be the set of rows of A that contain a 1, and
T⊆[m2] the set of columns of B that contain a 1; then ∣R∣≤∣A∣<d1
and ∣T∣≤∣B∣<d2T. Let H1′ be H1 restricted to the columns in R and
H2′ be H2 restricted to the rows in T. A nonzero x∈kerH1′, padded with
zeros, would be a nonzero vector of kerH1 of weight at most ∣R∣<d1; so
kerH1′=0. Likewise kerH2′T=0. By the dimension formula just proved, the
hypergraph product of H1′ and H2′ encodes k1′k2′+k1′Tk2′T=0⋅k2′+k1′T⋅0=0
qubits, so in that smaller code every Z-type operator with zero X-syndrome is a
stabilizer. Let A′ be the rows of A indexed by R and B′ the columns of B indexed
by T. Because A vanishes outside the rows R and B outside the columns T,
H1′A′=H1A and B′H2′=BH2, so Z(A′,B′) has zero X-syndrome in the smaller
code. Hence A′=E′H2′ and B′=H1′E′ for some E′∈F2R×T. Extending
E′ by zeros to E∈F2n1×m2 gives EH2=A and H1E=B, so
Z(A,B) is a stabilizer of Q. Therefore every nontrivial Z-type logical operator has
weight at least min(d1,d2T).
Lower bound on dX. Transposing everything, X(A,B) has Z-syndrome
AH2T+H1TB, whose transpose is H2AT+BTH1, the X-syndrome of
Z(AT,BT) in HGP(H2,H1); the X stabilizers of Q transpose to the Z
stabilizers of HGP(H2,H1). The previous paragraph applied to
HGP(H2,H1) gives dX≥min(d2,d1T). Since the distance of a CSS code is
min(dX,dZ), d≥min(d1,d2,d1T,d2T).
Upper bounds. Suppose k2>0 and let x∈kerH1 have weight d1. Since
kerH2=0, the row space of H2 is a proper subspace of F2n2, so some unit
vector ey is not in it. Put A=xeyT (weight d1) and B=0. Then
H1A=0, so Z(A,0) commutes with all X checks. If it were a stabilizer, A=EH2
and 0=H1E for some E; for any row i with xi=1, row i of A is eyT and
equals (row i of E)H2, which would put ey in the row space of H2. So
dZ≤d1. The bound dZ≤d2T when k1T>0 uses A=0 and B=eazT
with z∈kerH2T of weight d2T and ea a unit vector outside the column space
of H1; the bounds on dX follow by transposition as above.
The case H1=H2=H of full row rank. Then kT=0, so k=k02; the upper
bound dZ≤d0 applies since k0>0, and the lower bound with dT=∞ gives
d=d0.
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.
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)
Proof checked line by line: rank of H_X and H_Z via kernels of D -> (H1^T D, D H2^T) and E -> (E H2, H1 E) with the dimension-of-matrices-with-constrained-rows-and-columns fact; algebra (n_i - m_i = k_i - k_i^T) leading to k1k2 + k1Tk2T; restriction argument for d_Z (H1' A' = H1 A, B' H2' = B H2, zero-padded E' reproduces A and B); transposition for d_X; explicit logical operators for the upper bounds. Compared with Tillich and Zemor arXiv 0903.0566 Proposition 14, Lemma 16 and Lemma 17 (same restriction-to-subgraph argument). Numerical brute-force check of all stated bounds on random small inputs (same script as for the theorem).
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 706872df96843553. Source file knowledge/records/proof/hypergraph-product-code-parameters.md in the content repository (readable there once it is public).