Quantum low-density parity-check codes encode quantum information using sparse parity constraints. A standard way to construct them is to translate binary chain complexes into Calderbank--Shor--Steane codes and to combine complexes by tensor product. Homology identifies the logical operators of the resulting code, while the smallest Hamming weight of a nontrivial homology class controls one of its distances. Determining how this distance behaves under a tensor product is therefore a basic structural question, not merely a parameter calculation.
Weilei Zeng and Leonid P. Pryadko studied products in which one factor is an arbitrary finite binary chain complex and the other is the one-complex induced by a binary matrix. Their paper was published as “Higher-Dimensional Quantum Hypergraph-Product Codes with Finite Rates,” Physical Review Letters 122, 230501 (2019). Its main distance result is Eq. (13) in the arXiv version: for this particular tensor factor, the usual product upper bound is always exact. The result extends the familiar two-complex setting of quantum hypergraph-product codes to the local structure occurring in complexes of any dimension.
A based binary chain complex consists of finite-dimensional vector spaces over , each equipped with a specified coordinate basis, and linear boundary maps
such that . Its degree- homology is . The homological distance is measured in the chosen basis:
Following the paper, the minimum of an empty set is . Thus when is trivial.
The endpoint convention is also the one stated explicitly after Eq. (1). For an -complex, is the zero matrix and is the zero matrix. Consequently
and
For an binary matrix , the one-complex has in degree one, in degree zero, and boundary . Its two distances are
and
In particular, unless has full row rank, in which case . The degree- chain group of is
with the standard tensor-product boundary. Over the usual sign in that boundary has no effect.
The first milestone is Eq. (11) for two arbitrary finite-length based binary chain complexes:
Let and . The second milestone is Theorem 1, including both of its cases:
and
The goal is Eq. (13):
No full-rank hypothesis is imposed on .
The equality determines the product distance exactly from four component distances. General tensor-product arguments immediately provide the upper bound, but an exact formula requires ruling out lower-weight homology classes that mix the two direct-sum blocks. Once established, the formula can be applied repeatedly to tensor products of one-complexes, which is the step used in the paper to obtain higher-dimensional quantum hypergraph-product code families and to compute their distances.
For formalization, the mission contributes reusable definitions of finite based binary chain data, homological distance valued in , the one-complex of a binary matrix, and the relevant tensor-product boundary maps. Mathlib contains Hamming weight and general homological-algebra infrastructure, while QECLean contains a closely related based length-three homological-code interface. Neither the selected Mathlib environment nor the inspected QECLean development currently supplies this rank-sensitive exact distance theorem.
The central issue is that Hamming weight depends on the chosen bases and is not preserved by arbitrary homological isomorphisms. A Künneth isomorphism describes the product homology and readily produces low-weight representatives, which is enough for the upper bound, but it does not by itself exclude a still lighter representative obtained by cancellation between the two tensor blocks. The lower bound must also remain valid at the endpoints of the complex and in singular cases where one or more homology groups vanish and the relevant distance is .
The theorem cannot be reduced to a dimension calculation. It must reason about supports and Hamming weights of based representatives while respecting the quotient by boundaries, and it must cover both and .
The Lean development works over ZMod 2. A finite basis in degree is
represented by Fin (dimension i), and a chain group is the function space
from that coordinate type to ZMod 2. BasedBinaryChainComplex stores the
dimension and boundary in every nonnegative degree, the chain condition, and a
finite length above which all dimensions are zero. Thus the first milestone
quantifies over genuinely arbitrary finite lengths for both and
, rather than over a local window or a one-complex specialization.
If the stored length is , the zero-dimensional source in degree
makes the unique zero map, just as the
zero-dimensional target below degree zero makes
the unique zero map. Hence both singular endpoint
cases in Eqs. (1) and (4) are represented directly.
Distances use WithTop ℕ. Their definitions are actual minima of Hamming
weights of nontrivial representatives, with ⊤ produced by the empty-set
case; infinite distance is not an extra hypothesis or a separately hard-coded
branch. Coordinate types may be empty, which covers missing endpoint blocks.
The binary matrix is represented as a linear map between two finite based
function spaces. Its row and column coordinate types need not be nonempty,
and no injectivity or surjectivity assumption is added.
The degree- product group is indexed by the disjoint union of all coordinate products for . Consequently its Hamming norm is the sum of the weights of all tensor-degree blocks. The product boundary is the standard signed tensor boundary; its sign disappears over . A formal proof verifies that every pair of consecutive product boundaries composes to zero; the cancellation of the two mixed terms uses characteristic two. Thus the product distance is taken from an actual chain complex, rather than from unrelated adjacent linear maps. A basis-free tensor product or an abstract homology group alone is insufficient for the target, because either would discard the weight data on which the statement depends. The mission does not formalize the asymptotic code-family construction later in the paper, the transposed cohomological distance, or the CSS-code parameter translation. Those are natural downstream missions; they should reuse rather than alter the present based-chain definitions.
namespace ZengPryadko2019
/--
Zeng--Pryadko, arXiv:1810.01519, Eq. (13): when one tensor factor is the
one-complex `K(P)`, the upper bound on homological distance is exact.
-/
theorem exactDistanceWithOneComplex
(A : BasedBinaryChainComplex) {r c : ℕ}
(P : BinaryWord (Fin c) →ₗ[ZMod 2] BinaryWord (Fin r)) (j : ℕ) :
tensorProductDistanceAt A (oneComplex P) j =
min (chainDistanceBefore A j * chainDistanceAt (oneComplex P) 1)
(chainDistanceAt A j * chainDistanceAt (oneComplex P) 0) := by
sorry
end ZengPryadko2019Let be a finite based binary chain complex and let be the one-complex induced by a binary matrix . Then
This is the main theorem stated as Eq. (13) in the arXiv version of Weilei Zeng and Leonid P. Pryadko, Higher-Dimensional Quantum Hypergraph-Product Codes with Finite Rates. Distances take values in , and the distance of a trivial homology group is .
Formalization Note. The theorem is not restricted to a CSS-code degree or to full-rank . It includes both the full-row-rank and non-full-row-rank cases and allows empty chain groups at the endpoints. At , the predecessor distance is interpreted as .
No open leaves. Every sub-goal is proved or awaiting decomposition.