The dimension tensor formula for HGP: k = k₁k₂ + k₁ᵀk₂ᵀ #
The number of logical qubits of the Tillich–Zémor hypergraph product satisfies a Künneth-type tensor formula:
$$k(\mathrm{HGP}(H_1,H_2)) \;=\; k_1k_2 + k_1^\top k_2^\top,\qquad k_1 = \dim\ker H_1,\quad k_1^\top=\dim\ker H_1^\top,$$
where $k = n - \operatorname{rank}H_X - \operatorname{rank}H_Z$ ($n = n_1n_2+r_1r_2$). The first part gives the construction and the CSS orthogonality, the second the compression identity and the third the distance lower bound; this module supplies the dimension side, and with it the picture is complete: both the distance side and the dimension side are structural theorems for arbitrary inputs $H_1,H_2$.
Proof outline #
The rank of hgpHX is the rank of a block matrix:
$$\operatorname{rank}[,A\otimes I_s \mid I_p\otimes B^\top,] = \operatorname{rank}(A\otimes I_s) + \operatorname{rank}(I_p\otimes B^\top)
- \dim\big(\mathrm{im}(A\otimes I_s)\cap \mathrm{im}(I_p\otimes B^\top)\big),$$
and each of the three terms is a dimension fact from KunnethCore:
| term | identification | dimension |
|---|---|---|
im(A ⊗ I) | matrices with columns in col A (colsSub) | s · rank A (finrank_colsSub) |
im(I ⊗ Bᵀ) | matrices with rows in row B (rowsSub) | p · rank B (finrank_rowsSub) |
| intersection | columns in col A and rows in row B | rank A · rank B |
(`finrank_colsRows`, the tensor intersection of subspaces) |
For $H_Z$ the transport goes along the transpose code (mulVec_swap_eq from the third
part):
$H_Z(A,B)$ and $H_X(A^\top,B^\top)$ differ only by the block swap of the columns, so their
ranks agree, and the distance side runs on the same argument.
Main results #
1. The two block maps M ↦ A·M and N ↦ N·B #
2. The images of the two blocks: column and row constraints #
3. The rank of H_X #
The block action of H_X: H_X v = A·U + R·B (with U = blkL v and R = blkR v),
the "sum of matrices" form of the compression identity.
4. The rank of H_Z (transport along the transpose code) #
The rank of H_Z equals the rank of H_X on the transposed inputs: the two
matrices differ only by the block swap of the columns (mulVec_swap_eq from the third
part), so their images agree.
5. The dimension tensor formula #
Dimension tensor formula (integer form): rewrite k = n - rank H_X - rank H_Z
additively and do the polynomial arithmetic over ℤ (nlinarith), which avoids truncated
subtraction in ℕ.
Dimension tensor formula for HGP (Künneth): the number of logical qubits $k = n - \operatorname{rank}H_X - \operatorname{rank}H_Z$ is exactly $k_1k_2 + k_1^\top k_2^\top$ (the sum of the products of the kernel dimensions of the two classical codes).
This is the last piece: the distance side (the third part together with the dual side) and the dimension side (this theorem) together give the HGP family parameters for $n\ge144$ a structural assertion that does not rely on enumeration.