Table 3 — gross code
OpenBBCode.gross_paramsThe gross code of Bravyi et al.
Let and let
in . The bivariate-bicycle code with check matrices and is an
code in both sectors:
- it acts on qubits;
- it encodes logical qubits: ;
- its X-distance is exactly : some with and has weight , and every such has weight at least ;
- its Z-distance is exactly (dually, with and exchanged).
Formalization Note Polynomials are Finsets of monomials in ZMod l × ZMod m; IsCode A B n k d is defined in BBCode_Setting.
import Mathlib import Definitions.Def_BBCode_Setting
namespace BBCode
theorem gross_params :
IsCode (l := 12) (m := 6) {(3, 0), (0, 1), (0, 2)} {(0, 3), (1, 0), (2, 0)} 144 12 12 := by
sorry
end BBCodeRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
This statement concerns one specific bivariate-bicycle code with , , so has elements and there are qubits. The two polynomials are
each a set of three distinct monomials (no exponent pair collides after reduction mod and mod ).
Unfolded definitions used below. For write ; an element stands for the monomial , and a "polynomial" is a finite subset (its support, coefficients in ). The circulant is the matrix over with iff and otherwise. The qubit set is (a left block and a right block , ). The check matrices (rows indexed by , columns by ) are
with the first block on and the second on . A vector is a nontrivial Z-logical if and (the -span of the rows of ); it is a nontrivial X-logical if and . The weight is the number of nonzero coordinates of .
Assertion. The code of satisfies all four of the following simultaneously:
- (a purely arithmetic identity).
- , i.e. the number of logical qubits is (stated additively, so no truncated subtraction is involved).
- X-distance exactly : there exists a nontrivial X-logical with , and every nontrivial X-logical has .
- Z-distance exactly : there exists a nontrivial Z-logical with , and every nontrivial Z-logical has .
So it claims an exact value for both sectors (a lower bound and attainment), not merely an upper or lower bound. Nothing is asserted about the connectivity of the Tanner graph or about any other code; the predicate does not include a connectivity condition.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.