betaFeedback

WorksPhysics and Astronomy

High-Rate Quantum Codes with Proven Distance and Low-Weight Measurements

Abstract

We study a family of quantum subsystem codes defined on rectangular coordinate grids of any dimension, with even side lengths of at least four. The directly measured operators act along coordinate lines. For every member of the family, we derive the number of protected logical qubits and prove its dressed distance without a numerical search. To illustrate the resulting design choices, we impose a budget of at most 10,000 data qubits and determine the complete tradeoff between encoding rate and measurement weight within this family at distances 16, 32, and 64. At distance 16, one code protects 4,096 logical qubits among 10,000 data qubits using weight-ten measurements. At distances 32 and 64, codes with 7,776 and 9,216 data qubits protect 1,024 and 256 logical qubits, respectively, using weight-six measurements. We include and explain Lean code snippets throughout the paper to guide readers through the formal verification of our subsystem-code construction and its dressed and bare distances.

Introduction

How many logical qubits can a finite quantum memory protect if the operators measured to obtain error information must have low weight? Encoding rate, distance, and measurement weight constrain different parts of this question. Rate determines the protected capacity of a block. Distance sets the minimum support of an undetectable logical Pauli error. Measurement weight counts the data qubits touched by one measured operator. A useful finite construction should make the relation between these quantities explicit.

Subsystem codes allow syndrome information to be obtained by measuring gauge operators that need not commute with one another. Only the protected subsystem must be preserved; the gauge subsystem can change during error correction [1, 2]. This distinction can replace a heavy stabilizer measurement by several lighter gauge measurements. It also changes the distance problem: multiplying a logical operator by a gauge operator can reduce its support, so the minimum must be taken over dressed logical operators.

We study this problem for coordinate-line gauge measurements on rectangular grids. For every number of axes L≥1L \ge1 and every even tuple q1,…,qL≥4q_1,\ldots,q_L \ge4, we prove

N=∏i=1Lqi,K=∏i=1L(qi−2)(1)\begin{aligned} N &= \prod_{i=1}^{L} q_i, & K &= \prod_{i=1}^{L}(q_i-2) \tag*{(1)} \end{aligned}
g=N+K−2∏i=1L(qi−1),D=2L.(2)\begin{aligned} g &= N+K-2\prod_{i=1}^{L}(q_i-1), & D &= 2^L. \tag*{(2)} \end{aligned}

Here NN is the number of data qubits, KK the number of protected logical qubits, gg the number of gauge qubits, and DD the dressed distance. The largest measured gauge has weight w=max⁡iqiw=\max_i q_i. The distance depends only on the number of axes, whereas the rate and measurement weight depend on their lengths. This separates the choice of distance from the remaining finite optimization problem.

The construction extends the coordinate-line description of subsystem many-hypercube codes. Goto introduced many-hypercube codes based on concatenated even-length error-detecting codes [3]. Nakai and Goto subsequently developed their subsystem versions, including the uniform side-four and side-six families [4]. Their follow-up studies neural decoding and gauge-measurement order under circuit-level noise for selected uniform side-four codes [5]. Mixed-side ordinary many-hypercube concatenations were also studied in Ref. [6]. We treat all even rectangular tuples in a common algebraic description, prove the dressed distance by a quotient-space argument, determine the minimum nonidentity stabilizer weight, and solve the resulting finite rate–weight optimization.

The matching distance bounds are constructive. For the upper bound, choose two coordinate values on every axis and apply XX to their 2L2^L Cartesian-product points. For the lower bound, take an arbitrary Pauli commuting with all stabilizers and quotient out the line gauges. For a nonzero logical class, a suitable binary labeling of the coordinates forces all 2L2^L labels to occur in its support. Thus no choice of gauge representative can reduce its weight below 2L2^L. The same corner operator commutes with every gauge, so the bare distance is also 2L2^L.

As an application, impose a budget of 10,000 data qubits. At distances 16, 32, and 64, the maximum-rate tuples are respectively 10410^4, 656^5, and 4624^{6^2}, where exponents denote repeated side lengths. Their parameters are

[[10000,4096,974,16]],[[7776,1024,2550,32]],[[9216,256,5422,64]].(3)\left[\left[10000,4096,974,16\right]\right],\qquad\left[\left[7776,1024,2550,32\right]\right],\qquad\left[\left[9216,256,5422,64\right]\right]. \tag*{(3)}

The complete frontier includes the lighter-measurement alternatives as well. The budget is an illustrative finite constraint, not a restriction on the construction. These optimality statements concern this family and the objectives of protected rate and maximum gauge weight.

We connect these arguments to the supplied Lean formalization. Lean is an interactive theorem prover: a theorem declaration states a mathematical proposition, and its proof supplies a term that the prover checks against that proposition [7]. The accompanying subsystem modules build on Lean-QECC and mathlib [8, 9]. They define the Pauli and binary descriptions of the code and prove the dressed and bare distance for the constructed subsystem record. We explain selected declarations beside the corresponding mathematics, including the meaning of their assumptions. The full-center equality, rank formulas, minimum stabilizer weight, and finite optimization are proved here in ordinary mathematical form; they are not claimed as formalized by the supplied subsystem modules.

Low gauge weight has a cost. We prove that every nonidentity stabilizer has weight at least 2L−1min⁡iqi2^{L-1}\min_i q_i. Each qubit participates in 2L2L gauges in the full-line presentation, and the coordinate grid need not be geometrically local in a physical device. Consequently, the growing-distance sequence is not a conventional quantum low-density parity-check (QLDPC) stabilizer family. Asymptotically good QLDPC constructions achieve constant rate and linear distance with bounded check weights and degrees [10, 11]. Our result instead gives exact finite parameters and a family-specific optimization. The ideal measurement counts below do not establish fault-tolerant circuit distance or a logical error rate.

Subsystem codes and their Lean representation

Gauge equivalence and dressed distance

We use the binary symplectic description of Pauli operators [1, 12]. Ignoring scalar phases, a Pauli on NN qubits is specified by (x,z)∈F2N⊕F2N(x,z)\in\mathbb{F}_2^N\oplus\mathbb{F}_2^N, representing X(x)Z(z)X(x)Z(z). Its weight is ∣supp⁡(x)∪supp⁡(z)∣|\operatorname{supp}(x)\cup\operatorname{supp}(z)|.

Commutation is determined by

⟨(x,z),(x′,z′)⟩=x⋅z′+z⋅x′.(4)\langle(x,z), (x',z')\rangle= x \cdot z' + z \cdot x'. \tag*{(4)}

All vector-space orthogonal complements below use the binary dot product.

A subsystem code specifies a gauge group G\mathcal{G} and a stabilizer group S\mathcal{S}. In binary notation, the stabilizer is the radical of the gauge space, namely the gauge vectors commuting with all gauge vectors. Physical stabilizer representatives are chosen with consistent phases so that −I∉S-I \notin\mathcal{S}. This phase convention matters: the literal center of a Pauli gauge group may contain scalar operators that cannot be imposed as +1+1 stabilizers. Whenever we write a center rank or support space, phases are omitted.

The stabilized Hilbert space [13] decomposes as Hlogical⊗Hgauge\mathcal{H}_{\mathrm{logical}} \otimes\mathcal{H}_{\mathrm{gauge}}, with dimensions 2K2^K and 2g2^g. If rGr_G and rSr_S are the binary ranks of gauge and stabilizer groups, then

K=N−rG+rS2,g=rG−rS2.(5)K = N - \frac{r_G + r_S}{2}, \qquad g = \frac{r_G-r_S}{2}. \tag*{(5)}

We denote the parameters by [[N,K,g,D]][[N,K,g,D]]; gauge qubits are not included in the protected count KK.

A dressed logical commutes with every stabilizer and is not a gauge operator up to phase. Its distance is

D=min⁡{wt⁡(P):P∈Z(S)∖G},(6)D = \min\{\operatorname{wt}(P) : P \in\mathcal{Z}(\mathcal{S}) \setminus\mathcal{G}\}, \tag*{(6)}

where the set difference is understood modulo scalar phases. A bare logical additionally commutes with every gauge. Thus the dressed distance never exceeds the bare distance. These are properties of a static code; the number of faulty circuit locations needed to cause a logical error is a separate quantity.

Reading the Lean source

The excerpts1 retain the variables from their surrounding source: C denotes a subsystem code, r a rectangular grid, and l the dimension LL. They are excerpts from modules, rather than standalone input files. A few conventions suffice. The command def introduces a definition, theorem introduces a statement with its proof, and structure collects data together with properties that the data must satisfy. A colon means “has type”: for example, q : Fin l → ℕ specifies one natural number for each of the ll coordinate directions. Here Fin l is the set {0,…,l−1}\{0,\ldots,l-1\}. The type ZMod 2 is the binary field. A variable followed by a dot selects one of its fields or an associated construction. Names beginning with h conventionally denote hypotheses or proofs.

The formal subsystem record extends an existing stabilizer code with a gauge group:

structure SubsystemCode (n : ℕ) extends StabCode n where
  gauge : Subgroup (@PauliGroup_group n)
  h_stab_le : stabs ≤ gauge
  h_stab_central :
    gauge ≤ Subgroup.centralizer
      (stabs : Set (PauliGroup_group n))

The two hypotheses express S⊆G\mathcal{S} \subseteq\mathcal{G} and G⊆C(S)\mathcal{G} \subseteq C(\mathcal{S}). For the rectangular construction, the supplied proofs show that box stabilizers are products of gauge lines and commute with every gauge line. This record does not require that S\mathcal{S} be the full center of G\mathcal{G} modulo phases. The equality with the full center follows from the separate linear-algebra argument in this paper; it is not among the formal theorems in the supplied source.

The formalization includes scalar phases explicitly. It defines trivialDressed as the subgroup generated by the gauge group and the scalar Pauli phases. The dressed-logical predicate is the following complete definition from Subsystem/Basic.lean:

def undetectable (E : PauliGroup n) : Prop :=
  E ∈ C.normalizerGroup ∧
  E ∉ C.trivialDressed ∧ PauliGroup.normalized E

The first condition says that EE commutes with every stabilizer. The second says that it is not a gauge operator, even after a scalar phase is removed. The third selects a fixed phase representative and has no effect on weight. This is the distinction between a nontrivial logical error and an error that changes only the gauge subsystem.

The distance is the minimum weight of these errors. The definition returns N+1N + 1 if there is no such error; this convention has no effect for our family because the cube construction supplies a nontrivial logical operator. The word noncomputable, used in several definitions, permits classical mathematical constructions. It does not stand for a missing proof or assert the existence of an efficient search procedure.

The equal-sector CSS case

The present code is of Calderbank–Shor–Steane (CSS) type: its gauge group is generated by pure XX and pure ZZ operators [14, 15]. Both sectors have the same support space A⊆F2NA \subseteq\mathbb{F}_2^N. The stabilizer support in either sector is therefore

S0=A∩A⊥.(7)S_0 = A \cap A^\perp. \tag*{(7)}

Writing a=dim⁡Aa = \dim A and s=dim⁡S0s = \dim S_0, we obtain rG=2ar_G = 2a, rS=2sr_S = 2s, and

K=N−a−s,g=a−s.(8)K = N - a - s, \qquad g = a - s. \tag*{(8)}

Pure XX dressed logical classes form S0⊥/AS_0^\perp/A, while pure XX bare logical classes form A⊥/S0A^\perp/S_0. The ZZ sectors are identical. Keeping these quotients distinct is essential: a lower bound proved only for bare operators need not bound dressed distance in a general subsystem code.

Coordinate-line gauge measurements

Rectangular grids and line operators

Let L≥1L \ge1 and let every qi≥4q_i \ge4 be even. Place one qubit at each point of

Ω=[q1]×⋯×[qL],[q]={0,…,q−1}.(9)\Omega= [q_1] \times\cdots\times[q_L], \qquad[q] = \{0, \ldots, q - 1\}. \tag*{(9)}

An axis-ii line fixes every coordinate except the iith. Include the full-line operators X(ℓ)X(\ell) and Z(ℓ)Z(\ell) in the gauge generators for every such line ℓ\ell. We call the resulting code RLG⁡(q1,…,qL)\operatorname{RLG}(q_1,\ldots,q_L).

A line has qiq_i sites. Two parallel lines are either equal or disjoint. Hence opposite-Pauli line operators on the same axis commute, because any nonempty overlap has even size. Lines on different axes can intersect at a single site, in which case opposite-Pauli operators anticommute. These are allowed gauge measurements; they are not a commuting stabilizer generating set. For L=1L = 1, the construction reduces to the detector [[q1,q1−2,2]][[q_1, q_1 - 2, 2]] stabilized by X⊗q1X^{\otimes q_1} and Z⊗q1Z^{\otimes q_1}.

The grid in Lean

The following complete record from RLG.lean stores the side lengths and their hypotheses.

structure RLG (l : ℕ) where
  q : Fin l → ℕ
  h_ge4 : ∀ i, 4 ≤ q i
  h_even : ∀ i, Even (q i)
``

Thus an object r : RLG l contains both the rectangular grid and proofs that every side is even and at least four. These conditions are available wherever the object is used. They cannot be dropped accidentally when a later theorem is applied.

A coordinate is a function assigning a permitted value to each axis:

def n : ℕ := ∏ i, r.q i
abbrev Coord := (i : Fin l) → Fin (r.q i)
def coordEquiv : r.Coord ≃ Fin r.n := finPiFinEquiv

The last line supplies a bijection between grid points and the flat labels 0,…,N−10,\ldots,N-1. This relabeling allows a geometric proof about lines and boxes to be used with the Pauli library, which indexes qubits by Fin r.n. It preserves supports and Hamming weights.

Boxes of parallel lines

For an axis ii, choose two distinct values on each other axis and include every value on axis ii. The resulting support is a box of 2L−12^{L-1} parallel lines. Its indicator vector has the form

hi⊗⨂j≠i(eaj+ebj),aj≠bj,(10)h_i \otimes\bigotimes_{j\ne i}(e_{a_j}+e_{b_j}), \qquad a_j\ne b_j, \tag*{(10)}

with factors placed in their coordinate order and hi=(1,…,1)h_i=(1,\ldots,1). A same-axis line either misses this box or has even overlap qiq_i. A transverse line either misses it or meets it at two sites. Consequently, the XX and ZZ operators supported on such boxes commute with every line gauge. They are also products of gauge lines. We will prove that these boxes span the full stabilizer support, rather than only a commuting subgroup of the gauge group.

Line–box commutation in Lean

The geometric commutation argument becomes a statement over F2\mathbb{F}_2. A line support and a box support have zero binary dot product:

theorem line_dot_box (i i' : Fin l) (c a b : r.Coord) :
    r.lineVec i c ·ᵥ r.boxVec i' a b = 0 := by
  unfold lineVec boxVec
  split_ifs with hnd
  · by_cases h : i = i'
    · subst h
      apply r.axisBox_dot_eq_zero _ _ i
      rw [lineSet_self, boxSet_self, inter_self,
        card_univ, Fintype.card_fin]
      exact r.h_even i
    · apply r.axisBox_dot_eq_zero _ _ i
      rw [lineSet_self, r.boxSet_ne _ _ h, univ_inter,
        card_pair (hnd i h)]
      exact even_two
  · simp

Here ⋅v\cdot_v denotes the dot product modulo two. The proof has the same two cases as the geometric argument. If the line and box have the same direction, their overlap in that direction has even size qiq_i; the final command uses r.h_even i. If their directions differ, the relevant overlap contains the two transverse values defining the box. A degenerate box was defined to have zero support, which accounts for the final case. The commands rw replace an expression by an equal one, apply reduces a goal to the hypotheses of a known result, and exact supplies the required proof.

The results stabs_le_gauge and gauge_le_centralizer then assemble the subsystem record. Commutation is therefore proved for every allowed grid, without generating a large check matrix for each block size.

Figure 1. Three supports in the 4 × 4 code. (a) A row and a column meet once, so the indicated opposite-Pauli gauge operators anticommute. Each has weight four. (b) The four highlighted sites support a minimum logical operator. (c) Two parallel rows support a weight-eight stabilizer. The colors specify supports; panels (b) and (c) can be used in either pure Pauli sector.

The 4-by-4 example

On a 4 × 4 grid there are four rows and four columns, each measured in both Pauli sectors. The eight line supports per sector have one dependency: the sum of all rows equals the sum of all columns. Thus the gauge rank per sector is seven. The stabilizer rank per sector is five, as the general calculation below will show. Equations (8) then give

RLG⁡(4,4)=[16,4,2,4].(11)\operatorname{RLG}(4,4) = [16,4,2,4]. \tag*{(11)}

The product of two parallel rows is a weight-eight stabilizer. An XX operator on a 2×22 \times2 corner has weight four and commutes with every gauge line, but is not a product of line gauges. It is a bare and dressed logical. The lower-bound proof excludes all lighter dressed logicals.

Gauge rank, stabilizer rank, and protected dimension

The coordinate construction becomes a tensor-product calculation over F2\mathbb{F}_2. Set

Vi=F2qi,Bi=⟨hi⟩,Ci=hi⊥,V=⨂i=1LVi.(12)V_i = \mathbb{F}_2^{q_i}, \quad B_i = \langle h_i\rangle, \quad C_i = h_i^\perp, \quad V = \bigotimes_{i=1}^{L} V_i. \tag*{(12)}

Here CiC_i is the even-parity code of dimension qi−1q_i - 1 and distance two. Evenness of qiq_i gives Bi⊆CiB_i \subseteq C_i, and therefore dim⁡(Ci/Bi)=qi−2\dim(C_i/B_i) = q_i - 2. Tensor basis vectors label physical grid sites. The gauge support is

A=∑i=1LV1⊗⋯⊗Bi⊗⋯⊗VL.(13)A = \sum_{i=1}^{L} V_1 \otimes\cdots\otimes B_i \otimes\cdots\otimes V_L. \tag*{(13)}

Each summand is the span of all lines parallel to one axis.

Theorem 4.1 (Ranks and encoded subsystems). For every even tuple qi≥4q_i \ge4, the gauge and stabilizer ranks per Pauli sector are

a=N−∏i(qi−1),(14)a = N - \prod_i (q_i - 1), \tag*{(14)}
s=∏i(qi−1)−∏i(qi−2).(15)s = \prod_i (q_i - 1) - \prod_i (q_i - 2). \tag*{(15)}

The full stabilizer support is spanned by the boxes in (10) and equals

S0=∑i=1LC1⊗⋯⊗Bi⊗⋯⊗CL.(16)S_0 = \sum_{i=1}^{L} C_1 \otimes\cdots\otimes B_i \otimes\cdots\otimes C_L. \tag*{(16)}

The code protects K=∏i(qi−2)K = \prod_i(q_i - 2) logical qubits and has g=N+K−2∏i(qi−1)g = N + K - 2\prod_i(q_i - 1) gauge qubits.

Proof. Let πi:Vi→Vi/Bi\pi_i: V_i \to V_i/B_i be the quotient map. The kernel of π=⨂iπi\pi= \bigotimes_i \pi_i is AA. One way to see this is to choose a complement to BiB_i in each ViV_i: in the resulting tensor decomposition, π\pi kills precisely the summands containing at least one BiB_i factor. Its image has dimension ∏i(qi−1)\prod_i(q_i - 1), proving (14).

The orthogonal complement of the line span is

A⊥=⨂iCi.(17)A^\perp= \bigotimes_i C_i. \tag*{(17)}

Indeed, orthogonality to every axis-ii line requires even parity on every such line. Intersecting these conditions for all axes gives the tensor product of the local even-parity spaces.

Restrict π\pi to ⨂iCi\bigotimes_i C_i. Its image is ⨂i(Ci/Bi)\bigotimes_i(C_i/B_i) and its kernel is the sum on the right of (16). The same kernel is A∩A⊥=S0A \cap A^\perp= S_0. This proves both the stabilizer formula and

A⊥/S0≅⨂i(Ci/Bi).(18)A^\perp/S_0 \cong\bigotimes_i(C_i/B_i). \tag*{(18)}

Every CiC_i is spanned by vectors ea+ebe_a + e_b with a≠ba \ne b. Hence the summands in (16) are spanned by the box supports of (10); no additional stabilizer directions are missing. Subtracting the image dimension gives (15). Finally, substitution into (8) yields the stated KK and gg.

The proof also connects the two presentations used in this paper. The mathematical definition takes the full center of the line-gauge space. The Lean construction starts from box stabilizers and line gauges. Equation (16) identifies their binary support spaces. The formal coverage of these statements is recorded in § 10.

There are ∑iN/qi\sum_i N/q_i raw line measurements per sector. This is generally larger than aa: measuring every line retains algebraic redundancy. The Lean indexing of generators may repeat the same line for different anchor points, so the number of formal indices is not a hardware measurement count.

Dressed and bare logical operators

The rank calculation counts protected logical qubits, but it does not determine their distance. A dressed logical may be multiplied by any gauge operator without changing its action on the protected subsystem. We must therefore bound the weight of every representative of a nonzero logical class, including representatives that do not commute with the individual gauge generators.

Lemma 5.1 (Weight in the dressed quotient). Let L≥1L \ge1 and let qi≥4q_i \ge4 be even. Set Vi=F2qiV_i = \mathbb{F}_2^{q_i}, Bi=⟨hi⟩B_i = \langle h_i\rangle, and Ci=hi⊥C_i = h_i^\perp, where hih_i is the all-ones vector, and define

A=∑i=1LV1⊗⋯⊗Bi⊗⋯⊗VL.A = \sum_{i=1}^{L} V_1 \otimes\cdots\otimes B_i \otimes\cdots\otimes V_L.

Every vector representing a nonzero class in

A+⨂iCiA≅⨂i(Ci/Bi)\frac{A + \bigotimes_i C_i}{A} \cong\bigotimes_i (C_i/B_i)

has Hamming weight at least 2L2^L. The bound is attained by ⨂i(e0+e1)\bigotimes_i(e_0 + e_1).

The linear functionals in the proof divide physical sites into 2L2^L classes; nontrivial logical action forces every class to contain an occupied site.

Proof. Write Wi=Vi/BiW_i = V_i/B_i, let πi:Vi→Wi\pi_i: V_i \to W_i be the quotient map, and set Qi=Ci/BiQ_i = C_i/B_i. Since qiq_i is even, the parity functional v↦∑avav \mapsto\sum_a v_a vanishes on BiB_i and descends to a functional ϕi:Wi→F2\phi_i: W_i \to\mathbb{F}_2. It satisfies

Qi=ker⁡ϕi,ϕi(πi(ea))=1for every coordinate a.Q_i = \ker\phi_i,\qquad\phi_i(\pi_i(e_a)) = 1 \quad\text{for every coordinate } a.

The map π=⨂iπi\pi= \bigotimes_i \pi_i has kernel AA. Moreover, π(⨂iCi)=⨂iQi\pi(\bigotimes_i C_i) = \bigotimes_i Q_i, so a vector xx represents a nonzero class in the displayed quotient exactly when

0≠z=π(x)∈⨂iQi.0 \ne z = \pi(x) \in\bigotimes_i Q_i.

Choose linear functionals fi:Qi→F2f_i: Q_i \to\mathbb{F}_2 such that (⨂ifi)(z)=1(\bigotimes_i f_i)(z) = 1. Such a choice exists: expand zz in tensor-product bases, choose a nonzero coefficient, and use the coordinate functional for that basis element in each factor. Extend each fif_i to a functional f~i:Wi→F2\widetilde{f}_i: W_i \to\mathbb{F}_2.

These functionals assign an LL-bit label to each physical site a=(a1,…,aL)a = (a_1,\ldots,a_L):

γ(a)=(f~1(π1(ea1)),…,f~L(πL(eaL))).\gamma(a) = (\widetilde{f}_1(\pi_1(e_{a_1})),\ldots,\widetilde{f}_L(\pi_L(e_{a_L}))).

We show that the support of xx contains a site with each of the 2L2^L possible labels. For b∈{0,1}Lb \in\{0,1\}^L, define

Fb=⨂i=1Lgi,bi,gi,1=f~i,gi,0=ϕi+f~i.F_b = \bigotimes_{i=1}^{L} g_{i,b_i},\qquad g_{i,1} = \widetilde{f}_i,\qquad g_{i,0} = \phi_i + \widetilde{f}_i.

Both gi,0g_{i,0} and gi,1g_{i,1} restrict to fif_i on QiQ_i. Consequently Fb(z)=1F_b(z) = 1 for every bb. On a projected physical basis vector, however, FbF_b equals one precisely when the site has label bb: the factor with bi=0b_i = 0 takes the value 1+f~i(πi(eai))1 + \widetilde{f}_i(\pi_i(e_{a_i})). Writing xx as the sum of its occupied basis vectors gives

1=Fb(z)=∣{a∈supp⁡(x):γ(a)=b}∣(mod2).1 = F_b(z) = \lvert\{a \in\operatorname{supp}(x) : \gamma(a) = b\}\rvert\pmod2.

Each label therefore occurs an odd, and hence positive, number of times. The 2L2^L label classes are disjoint, proving wt⁡(x)≥2L\operatorname{wt}(x) \ge2^L.

For the matching upper bound, each e0+e1e_0 + e_1 lies in Ci∖BiC_i \setminus B_i because qi≥4q_i \ge4. Its class in QiQ_i is nonzero, and the tensor product of these nonzero classes is nonzero. Thus ⨂i(e0+e1)\bigotimes_i(e_0 + e_1) is a nontrivial class of weight 2L2^L.

The lemma gives the minimum over all nonzero classes; individual classes can have larger minimum weight. Its use of π(x)\pi(x) is essential: adding a gauge word changes xx but leaves this label unchanged, so the lower bound already includes every gauge dressing.

Theorem 5.2 (Exact dressed distance). The rectangular coordinate-line subsystem code with even side lengths qi≥4q_i \ge4 has

DX=DZ=D=2L.D_X = D_Z = D = 2^L.

The same distance is obtained when mixed XX–ZZ Pauli operators are allowed.

Proof. The gauge support is AA in both Pauli sectors, and the center support is S0=A∩A⊥S_0 = A \cap A^\perp. An XX-type operator commutes with every center stabilizer precisely when its support lies in

S0⊥=A+A⊥=A+⨂iCi.S_0^\perp= A + A^\perp= A + \bigotimes_i C_i.

Its action on the protected subsystem is nontrivial precisely when its support does not lie in AA. The dressed XX-logical classes therefore form the quotient in Lemma 5.1. That lemma proves DX=2LD_X = 2^L. Interchanging XX and ZZ gives DZ=2LD_Z = 2^L.

A mixed Pauli has binary components (x,z)(x,z) and physical support supp⁡(x)∪supp⁡(z)\operatorname{supp}(x) \cup\operatorname{supp}(z). To commute with the center, both components must belong to S0⊥S_0^\perp. To act nontrivially on the protected subsystem, at least one component must lie outside AA. That component has weight at least 2L2^L, and its support is contained in the mixed support. The pure-sector corner operator supplies equality for the full Pauli distance. □

Corollary 5.3 (Bare distance). The minimum weight of a nontrivial bare logical operator is also 2L2^L.*

Proof. A bare logical commutes with every gauge operator. In one Pauli sector its support lies in A⊥A^\perp, and it is nontrivial when it lies outside S0=A∩A⊥S_0 = A \cap A^\perp. It is consequently also a nontrivial dressed logical, so its weight is at least 2L2^L. The corner tensor ⨂i(e0+e1)\bigotimes_i(e_0 + e_1) belongs to ⨂iCi=A⊥\bigotimes_i C_i = A^\perp and lies outside AA by the lemma. It is therefore a bare logical of weight 2L2^L. The same union of supports argument treats mixed Pauli operators. □

The distance lower bound in Lean

The Lean source proves the lower bound by induction on the number of coordinates. We describe that argument because it explains why the distance doubles with each added coordinate and why the even-side hypothesis matters.

Let WLW_L be the binary span of the coordinate lines and let SLS_L be the span of the box supports. For z∈SL⊥∖WLz \in S_L^\perp\setminus W_L, split the array along the first coordinate into slices zuz_u, each on an (L−1)(L - 1)-dimensional grid. Let W′W' denote the line span on this smaller grid. Two slices are called equivalent if zu+zv∈W′z_u + z_v \in W'. This is ordinary gauge equivalence for their difference.

Two consequences of the box constraints control the induction. First, every difference zu+zvz_u + z_v commutes with the smaller box checks. Second,

∑uzu∈W′.(19)\sum_u z_u \in W'. \tag*{(19)}

To obtain the second statement, consider the boxes whose full side lies in the slicing direction. Their constraints say that the slice sum has even parity on every set containing two chosen values in each remaining coordinate. The auxiliary theorem Grid.mem_lineSpan_of_cubeSum proves that any array with all these parities zero belongs to W′W'.

If all slices were equivalent, choose a reference slice zu0z_{u_0}. Each difference zu+zu0z_u + z_{u_0} could be generated by lines within slice uu, while the repeated array zu0z_{u_0} could be generated by lines in the first direction. These two contributions reconstruct zz, contradicting z∉WLz \notin W_L. There is consequently an inequivalent pair. For every such pair, the induction hypothesis and the Hamming-weight triangle inequality give

wt⁡(zu)+wt⁡(zv)≥wt⁡(zu+zv)≥2L−1.(20)\operatorname{wt}(z_u) + \operatorname{wt}(z_v) \ge\operatorname{wt}(z_u + z_v) \ge2^{L-1}. \tag*{(20)}

It remains to find two disjoint inequivalent pairs. Pass to the quotient by W′W', and write au=[zu]a_u = [z_u]. The cosets are not all equal and satisfy ∑uau=0\sum_u a_u = 0. Since the number of slices is even, they cannot consist of one exceptional coset and an otherwise constant list: the sum would be the difference between the exceptional and common cosets. With at least four slices, every other nonconstant list has two disjoint unequal pairs. Indeed, start with one unequal pair. If the remaining entries contain an unequal pair, we are done. Otherwise all remaining entries equal one coset; either both selected entries differ from that coset and can be paired with two remaining entries, or there is just one exceptional entry. The latter case was excluded. Summing the two pair bounds gives wt⁡(z)≥2L\operatorname{wt}(z) \ge2^L.

The formal statement below is reproduced from GridLines.lean; its proof body is omitted from this excerpt.

theorem two_pow_le_hammingNorm :
  ∀ (l : ℕ) (α : Fin l → Type u)
    [∀ i, Fintype (α i)] [∀ i, DecidableEq (α i)],
    (∀ i, Even (Fintype.card (α i)) ∧
      4 ≤ Fintype.card (α i)) →
    ∀ z : Vec α, Cent z → z ∉ lineSpan α →
      2 ^ l ≤ hammingNorm z

Here Fintype specifies finite coordinate sets, Cent z is the box-commutation condition, and hammingNorm z is its support size. The statement is independent of the side lengths apart from their parity and lower bound. The formal proof starts at dimension zero, where a nonzero binary vector on the single grid point has weight one.

Combining the two distance bounds

The cube support contains two chosen values in each coordinate and therefore has 2L2^L points. It meets every coordinate line in zero or two points, so its XX operator commutes with every gauge operator. To show that it is not a product of gauge lines, choose a second cube sharing exactly one corner with it. Every gauge line has even overlap with the second cube, whereas the first cube has odd overlap. This supplies the required witness outside the gauge group.

The final dressed-distance proof in RLGDistance.lean is short because the witness and lower bound have already been established:

theorem distance_eq :
    r.toSubsystemCode.distance = 2 ^ l := by
  obtain ⟨a, b, hab⟩ := r.exists_cube
  exact SubsystemCode.distance_eq_of _
    (r.cube_undetectable hab) (r.pauli_weight_cube hab)
    (fun F hF => r.two_pow_le_pauli_weight F hF)

The first line of the proof chooses a nondegenerate cube. The underscore asks Lean to infer an argument; fun F hF introduces an arbitrary Pauli FF and a hypothesis hF that it is a dressed logical. The next lines supply three facts to distance_eq_of: this cube is a nontrivial dressed logical, its weight is 2L2^L, and every dressed logical has at least that weight. The proof applies to mixed XX, YY, and ZZ errors as well: at least one binary Pauli component lies outside the line span, and its Hamming weight is no larger than the Pauli support.

The same cube commutes with the entire gauge group and hence is also a bare logical. Since every bare logical is a dressed logical, the same lower bound gives bare distance 2L2^L. The source records this equality as RLG.bareDistance_eq.

Minimum stabilizer weight

The distance concerns logical operators. A different minimum determines whether the code also has a low-weight commuting stabilizer presentation. In the present family, gauge operators can be much lighter than every nonidentity stabilizer.

Theorem 6.1 (Minimum nonidentity stabilizer weight). For L≥1L \ge1 and even side lengths qi≥4q_i \ge4, the minimum weight of a nonzero word in the stabilizer support is

d(S0)=2L−1min⁡iqi.(21)d(S_0) = 2^{L-1} \min_i q_i. \tag*{(21)}

This is also the minimum weight of a nonidentity Pauli stabilizer, including mixed Pauli operators.

Proof. For L=1L=1, the stabilizer support is B1B_1, whose unique nonzero word has weight q1q_1. Suppose the claim holds in L−1L-1 dimensions. Write C<L=⨂i<LCiC_{<L}=\bigotimes_{i<L} C_i and let S<LS_{<L} be the smaller stabilizer support. Separating the last tensor factor in (16) gives

S0=C<L⊗BL+S<L⊗CL.(22)S_0 = C_{<L} \otimes B_L + S_{<L} \otimes C_L. \tag*{(22)}

View a nonzero word of S0S_0 as qLq_L slices in C<LC_{<L}. Equation (22) implies that all slices have the same coset modulo S<LS_{<L} and their sum is zero.

The tensor product C<LC_{<L} has minimum distance 2L−12^{L-1}. For completeness, the usual product-distance argument is inductive: a nonzero coordinate fiber of a tensor-code word occupies at least the distance of one factor, and each resulting nonzero slice is a word in the remaining tensor code. Product minimum words attain the bound.

If the common slice coset is nonzero, all qLq_L slices are nonzero, giving weight at least qL2L−1q_L2^{L-1}. If the common coset is zero, every slice lies in S<LS_{<L}, and at least two are nonzero because their sum vanishes. Induction then gives weight at least 2L−1min⁡i<Lqi2^{L-1}\min_{i<L}q_i. The smaller of these two bounds is (21).

Choose a shortest axis jj. The box

hj⊗⨂i≠j(e0+e1)(23)h_j \otimes\bigotimes_{i\ne j}(e_0+e_1) \tag*{(23)}

has weight qj2L−1q_j2^{L-1} and attains the bound. Finally, a mixed stabilizer has support equal to the union of its two binary components. At least one component is a nonzero word of S0S_0, so a mixed stabilizer cannot be lighter.

For RLG(656^5), the measured gauges have weight six, whereas the lightest nonidentity stabilizer has weight 96. For RLG(44624^4 6^2), the corresponding weights are six and 128. No choice of stabilizer generating basis can avoid this lower bound. The result explains precisely what the gauge freedom reduces: the supports of the directly measured operators, while the stabilizer constraints remain heavy. The supplied Lean code constructs these box stabilizers and proves their commutation; it does not include the minimum-weight theorem for their span.

The finite rate–measurement-weight tradeoff

For a fixed distance D=2LD=2^L, the rate and maximum gauge weight are

R(q1,…,qL)=∏i(1−2qi),w(q1,…,qL)=max⁡iqi.(24)R(q_1,\ldots,q_L)=\prod_i\left(1-\frac{2}{q_i}\right), \qquad w(q_1,\ldots,q_L)=\max_i q_i. \tag*{(24)}

A tuple dominates another if it has at least as large a rate and at most as large a weight, with one strict inequality. The Pareto frontier consists of tuples not dominated by another allowed tuple. We identify tuples up to axis permutations. Capacity KK is a different objective from rate K/NK/N.

Theorem 7.1 (Complete frontier at distances 16, 32, and 64). Among even rectangular tuples with qi≥4q_i \ge4 and N≤10,000N \le10{,}000, the complete frontiers for maximizing RR and minimizing ww are

Dside tuples, up to permutation1644, 64, 84, 104,3245, 65,6446, 4462.(25)\begin{array}{c|l} D & \text{side tuples, up to permutation} \\ 16 & 4^4,\ 6^4,\ 8^4,\ 10^4, \\ 32 & 4^5,\ 6^5, \\ 64 & 4^6,\ 4^4 6^2. \tag*{(25)} \end{array}

The last tuple in each row uniquely maximizes the protected rate at that distance. No member under this data-qubit budget has distance 128 or greater.

Proof. Since N≥4LN \ge4^L, the budget gives L≤6L \le6. This proves the maximum-distance statement.

For L=4L = 4, the function h(y)=log⁡(1−2e−y)h(y) = \log(1 - 2e^{-y}) is increasing and strictly concave for y>log⁡2y > \log2. Hence

log⁡R≤4h(14∑ilog⁡qi)≤4h(log⁡10).(26)\log R \le4h\left(\frac{1}{4}\sum_i \log q_i\right) \le4h(\log10). \tag*{(26)}

Equality requires qi=10q_i = 10 for every axis. Under weight caps four, six, and eight, the corresponding uniform tuples are feasible and maximize each increasing factor in (24). Tuples with weight above ten are dominated by 10410^4. This gives the distance-16 row.

For L=5L = 5, a tuple with no side four has every side at least six. Any side at least eight would force N≥8⋅64=10,368N \ge8 \cdot6^4 = 10{,}368. Thus 656^5 is the only such tuple, with rate 32/24332/243.

If exactly one side is four, the product of the remaining four sides is at most 2,500. At least two of those sides equal six: otherwise the product would be at least 6⋅83>2,5006 \cdot8^3 > 2{,}500. After fixing two sixes, the last sorted even pair has product below 70. Its possibilities are (6,6)(6, 6), (6,8)(6, 8), (6,10)(6, 10), and (8,8)(8, 8). The last pair gives the largest rate, namely

12(23)2(34)2=18.(27)\frac{1}{2}\left(\frac{2}{3}\right)^2\left(\frac{3}{4}\right)^2 = \frac{1}{8}. \tag*{(27)}

If at least two sides are four, fix two of them. The other three have product at most 625. The same concavity bound gives

R≤14(1−26253)3<14(79)3<18.(28)R \le\frac{1}{4}\left(1 - \frac{2}{\sqrt[3]{625}}\right)^3 < \frac{1}{4}\left(\frac{7}{9}\right)^3 < \frac{1}{8}. \tag*{(28)}

Since 1/8<32/2431/8 < 32/243, the unique rate maximum is 656^5. Every weight-at-least-six alternative is dominated by it. The tuple 454^5 has the smallest possible weight and remains on the frontier.

For L=6L = 6, three sides above four would imply N≥4363=13,824N \ge4^3 6^3 = 13{,}824. If two sides exceed four, both must be six, because 44⋅6⋅8>10,0004^4 \cdot6 \cdot8 > 10{,}000. If exactly one side exceeds four, it is six or eight. The complete list is therefore

46,456,458,4462,(29)4^6,\quad4^5 6,\quad4^5 8,\quad4^4 6^2, \tag*{(29)}

with rates 1/641/64, 1/481/48, 3/1283/128, and 1/361/36. The last tuple dominates the middle two, and 464^6 has smaller measured weight. This proves the remaining row.

For a strict measured-weight cap w<10w < 10, the maximum-rate distance-16 member becomes RLG(84)(8^4); the distance-32 and distance-64 optima are unchanged. At distance 32, the tuple (4,6,6,8,8)(4, 6, 6, 8, 8) protects 1,152 qubits, more than the 1,024 protected by 656^5, but has lower rate 1/81/8 and larger measured weight eight. It is therefore absent from the rate–weight frontier. This example shows why the objective must be specified when claiming an optimum.

These finite results use the distance theorem rather than a distance search. An independent exact-arithmetic enumeration gives 514, 55, and 4 sorted tuples for L=4,5,6L = 4, 5, 6, respectively, and reproduces (25). The independent verification program also reconstructs small binary gauge matrices and checks their ranks and witnesses. The enumeration procedure appears in Appendix § 12.

Figure 2. Exact rate–weight frontiers at fixed distance under 10,000 data qubits. The points are the discrete choices in Table 1; line segments guide the eye and do not represent intermediate codes. Increasing the number of axes raises distance and reduces the maximum achievable rate under this budget.

SidesNNKKggDDK/NK/Nwwd(S0)d(S_0)
444^425616110161/161/16432
646^41,2962563021616/8116/81648
848^44,0961,2965901681/25681/256864
10410^410,0004,09697416256/625256/6251080
454^51,02432570321/321/32464
656^57,7761,0242,5503232/24332/243696
464^64,096642,702641/641/644128
44624^4 6^29,2162565,422641/361/366128

Table 1. The complete frontiers under N≤10,000N \le10,000. The column ww is the largest measured gauge weight; d(S0)d(S_0) is the minimum nonidentity stabilizer weight. Exponents denote repeated side lengths.

Quantity10410^4656^544624^4 6^2
Distinct gauge measurements MM8,00012,96024,576
Gauge rank 2a2a6,8789,30214,382
Stabilizer rank 2s2s4,9304,2023,538
Row dependencies M−2aM - 2a1,1223,65810,194
Data–gauge incidences EE80,00077,760110,592
Total data degree 2L2L81012
Reusable ancillas Amax⁡A_{\max}1,0001,2962,304
Data + ancillas11,0009,07211,520
Axis/Pauli batches81012
Ideal two-qubit gate layers806056

Table 2. Counts for the three maximum-rate examples. Dependencies include both Pauli sectors. “Data + ancillas” uses the reusable pool in (32); it is not a fault-tolerant footprint.

Measurement counts and ideal schedules

A line-gauge presentation specifies both how many operators are measured and how often each data qubit participates. These counts are distinct from the number of independent gauge generators.

Proposition 8.1 (Full-line measurement counts). For RLG(q1,…,qLq_1,\ldots,q_L), the numbers of distinct full-line operators are

MX=MZ=∑iNqi,M=2∑iNqi(30)M_X=M_Z=\sum_i \frac{N}{q_i}, \qquad M=2\sum_i \frac{N}{q_i} \tag*{(30)}
E=2LN,ΔX=ΔZ=L.(31)E=2LN, \qquad\Delta_X=\Delta_Z=L. \tag*{(31)}

Here EE counts data–gauge incidences and ΔX+ΔZ=2L\Delta_X+\Delta_Z=2L is the total data degree. There are MX−aM_X-a binary row dependencies per sector.

Consider an ideal circuit using one reusable ancilla per active line, with all lines of one axis measured in parallel. Measure every X-axis batch before the Z-axis batches. The schedule uses

Amax⁡=Nmin⁡iqi,2L batches,2∑iqi two-qubit gate layers.(32)A_{\max}=\frac{N}{\min_i q_i}, \qquad2L\ \text{batches}, \qquad2\sum_i q_i\ \text{two-qubit gate layers}. \tag*{(32)}

The layer count assumes direct ancilla–data interactions and excludes preparation, readout, reset, routing, and protection against fault propagation.

Proof. The lines parallel to axis ii partition the grid into N/qiN/q_i disjoint supports. Summing over axes and sectors proves (30). Each qubit belongs to one line per axis in each sector, proving (31). Subtracting the rank aa gives the dependency count.

Within an axis batch, disjoint lines can use separate ancillas without gate collisions. Each line ancilla interacts with its qiq_i data qubits in qiq_i successive layers. Reusing the same ancilla pool across batches gives (32). All XX gauges commute with one another, as do all ZZ gauges, so this sector ordering allows products of same-Pauli outcomes to infer their stabilizer products in the ideal circuit.

A data-qubit cap and a live-qubit cap yield different optimizations. Under N+Amax⁡≤10,000N+A_{\max}\le10{,}000, exact enumeration gives maximum-rate tuples (8,10,10,10)(8,10,10,10), 656^5, and 44624^4 6^2 at distances 16, 32, and 64. Their data-plus-ancilla counts are 9,000, 9,072, and 7,680, respectively. This calculation uses precisely the ideal ancilla policy in (32).

A smaller ancilla pool trades space for time. With only 512 reusable line ancillas, RLG(44624^{4}6^{2}) fits in 9,728 data-plus-ancilla qubits. Each length-four axis must be split into five subbatches, and each length-six axis into three, giving 52 subbatches and 232 ideal two-qubit layers across both sectors. The code parameters are unchanged.

In a noisy circuit, a single ancilla fault can propagate to several data qubits. Gauge outcomes from different times also cannot be multiplied indiscriminately to create error detectors. Flags, verified ancillas, measurement repetition, and an explicit circuit analysis may change both the footprint and time. Equations (30)–(32) are exact counts for the stated ideal schedule; they are not a claim that the circuit inherits distance 2L2^{L}.

Relation to existing codes

The uniform q=4q=4 and q=6q=6 members are subsystem many-hypercube codes [4]. Neural decoding and gauge-measurement scheduling have been studied under circuit-level noise for selected uniform side-four members [5]; those results do not establish the performance of the optimized rectangular codes considered here. Mixed side lengths have also been considered for ordinary concatenated many-hypercube codes [6]. The present analysis treats the full-line gauge group for arbitrary even rectangular tuples, determines its complete stabilizer support, and proves the dressed-distance lower bound for every gauge representative. The finite optimization then selects a tuple using proved parameters rather than estimating distance separately for each candidate.

Subsystem products provide a useful comparison with a different relation between rate and distance. For two classical [ni,ki,di][n_i,k_i,d_i] codes with k1,k2>0k_1,k_2>0, the standard subsystem product has N=n1n2N=n_1n_2, K=k1k2K=k_1k_2, and dressed distance min⁡(d1,d2)\min(d_1,d_2) [16, 17]. Applying this construction to two binary simplex codes produces the SHYPS family [18],

[[(2r−1)2,r2,(2r−1−r)2,2r−1]],(33)\left[\left[(2^{r}-1)^{2},r^{2},(2^{r}-1-r)^{2},2^{r-1}\right]\right], \tag*{(33)}

with weight-three gauge generators for r≥3r\geq3. At r=6r=6, it gives [[3969,36,3249,32]][[3969,36,3249,32]]. The uniform 656^{5} line-gauge code has the same static distance and a protected rate 32/243≃13.17%32/243\simeq13.17\%, compared with 36/3969≃0.91%36/3969\simeq0.91\% for SHYPS(6). It also uses more data qubits and doubles the gauge weight from three to six. The SHYPS work develops logical Clifford operations and circuit-level simulations, which are outside the results established here. Static parameter comparisons do not determine which code is preferable for a complete computation.

High-rate stabilizer constructions, including bivariate bicycle codes [19], measure commuting checks rather than the noncommuting gauges used here. Hong constructs balanced-product QLDPC codes with design rate 1/51/5 and weight-nine checks, and evaluates their decoding performance under idling-free circuit-level noise [20]. Their measured generators should therefore be compared with our gauges only together with a specified extraction circuit. A numerical logical witness proves an upper bound on distance. A finite exhaustive certificate proves an exact distance when accompanied by a matching witness. Such a certificate is as rigorous for its stated instance as a symbolic proof; the advantage of the present formula is that it applies to every allowed tuple without repeating a finite-instance distance computation.

For a uniform fixed side length qq and growing LL,

N=qL,K=Nlog⁡q(q−2),D=Nlog⁡q2,R=Nlog⁡q(1−2/q).(34)N=q^{L},\qquad K=N^{\log_{q}(q-2)},\qquad D=N^{\log_{q}2},\qquad R=N^{\log_{q}(1-2/q)}. \tag*{(34)}

The rate tends to zero, the full-line data degree is 2log⁡qN2\log_{q}N, and the lightest stabilizer has weight (q/2)D(q/2)D. Thus this family does not have the asymptotic guarantees of good QLDPC stabilizer codes [10, 11]. Its useful feature is the direct control of finite rate, exact distance, and gauge weight, with a simple description of every measured support.

Formalization and reproducibility

The Lean source is available in the Lean-QEC GitHub repository. The four subsystem modules used here, Basic.lean, RLG.lean, GridLines.lean, and RLGDistance.lean, are fixed at commit eccb50c389b4d5d9feab3e29809b23aa1761fa14. This snapshot also records the Lean toolchain and dependency revisions.

The formal proof establishes dressed and bare distance for the constructed subsystem record. The full-center equality, rank formulas, minimum stabilizer weight, measurement counts, and finite frontiers are established in this paper and are not claimed as Lean theorems.

Discussion

We prove that the dressed distance of rectangular coordinate-line subsystem codes is fixed entirely by the number of axes, despite the freedom to modify logical operators by gauge multiplication. For every grid with even side lengths of at least four, the distance is exactly 2L2^{L}. At fixed distance, the side lengths can therefore be chosen to balance encoding rate and measurement weight using explicit formulas. The 10,000-qubit frontiers demonstrate how this structure turns code selection into a finite optimization with proved parameters. The same approach applies to other qubit budgets and measurement-weight constraints.

The stabilizer analysis reveals where the benefit of gauge measurements arises. Although each measured operator acts along a single coordinate line, every nonidentity stabilizer has weight at least 2L−1min⁡iqi2^{L-1}\min_i q_i. Gauge freedom thus allows the information carried by increasingly heavy stabilizers to be accessed through lighter measurements. This distinction also identifies a central implementation challenge: recovering that information reliably requires control of errors in both the data and the measurement record. The minimum stabilizer weight makes clear that choosing a different stabilizer basis cannot remove this challenge.

The Lean development provides a complementary proof of the distance theorem by induction on the number of axes, with explicit treatment of Pauli phases and gauge equivalence. Extending it to the full-center equality and rank formulas would yield a complete formal verification of the code parameters. For implementation, the next step is to develop and evaluate decoders and fault-tolerant extraction circuits for the rectangular choices studied here, building on the decoding and measurement-order studies for uniform subsystem many-hypercube codes [4, 5]. These must account for the timing of gauge measurements, propagation of ancilla faults, and the connectivity available in a physical device. The resulting circuit distance and logical error rates may favor different side lengths from those selected by static rate and measurement weight alone. Establishing this connection would determine when the encoding advantage translates into a reduction in the resources needed for a reliable quantum memory.

Exact finite enumeration

For fixed LL, every allowed tuple can be enumerated in nondecreasing order. At a recursion node, let pp be the product of the chosen sides and let rr sides remain. A candidate next side qq can be accepted only if pqr≤Bp q^r \le B, where BB is the data-qubit budget. All later sides must be at least qq, so this condition is also an exact stopping test. No floating-point root or distance search is needed.

An exact-arithmetic implementation of this recursion compares rates as rational numbers. For B=10,000B = 10{,}000, it enumerates 514, 55, and 4 tuples at L=4,5,6L = 4,5,6. Grouping the middle case by the number of sides equal to four gives The program also checks gauge and stabilizer rank identities, the raw measurement counts and weight histograms, both qubit-budget policies, and small explicit binary line matrices. It exhausts the dressed quotient for the [ ⁣[4,2,0,2] ⁣][\![4, 2, 0, 2]\!] and [ ⁣[16,4,2,4] ⁣][\![16, 4, 2, 4]\!] examples. These finite checks passed. They support the numerical transcription and small instances; the general distance claim rests on the proofs in the text and the source declarations described above.

Number of foursTuplesLargest-rate tuple in the groupRate
01656^{5}32/243
14(4, 6, 6, 8, 8)1/8
211(4, 4, 6, 10, 10)8/75
321(4, 4, 4, 12, 12)25/288
417(4, 4, 4, 38)9/152
51454^{5}1/32

Table 3.

References

  1. [1]David Poulin. Stabilizer formalism for operator quantum error correction. Physical Review Letters, 95:230504, 2005. doi: 10.1103/PhysRevLett.95.230504. URL https://arxiv.org/abs/quant-ph/0508131.
  2. [2]Dave Bacon. Operator quantum error-correcting subsystems for self-correcting quantum memories. Physical Review A, 73:012340, 2006. doi: 10.1103/PhysRevA.73.012340. URL https://arxiv.org/abs/quant-ph/0506023.
  3. [3]Hayato Goto. High-performance fault-tolerant quantum computing with many-hypercube codes. Science Advances, 10:eadp6388, 2024. doi: 10.1126/sciadv.adp6388. URL https://arxiv.org/abs/2403.16054.
  4. [4]Ryota Nakai and Hayato Goto. Subsystem many-hypercube codes: High-rate concatenated codes with low-weight syndrome measurements. Physical Review Applied, 25:014032, 2026. doi: 10.1103/xbzn-vn37. URL https://arxiv.org/abs/2510.04526.
  5. [5]Ryota Nakai and Hayato Goto. Neural decoders for subsystem many-hypercube codes, 2026. URL https://arxiv.org/abs/2608.13975.
  6. [6]Hayato Goto. Optimized many-hypercube codes toward lower logical error rates and earlier realization, 2025. URL https://arxiv.org/abs/2512.00561.
  7. [7]Leonardo de Moura and Sebastian Ullrich. The Lean 4 theorem prover and programming language. In Automated Deduction—CADE 28, volume 12699 of Lecture Notes in Computer Science, pages 625–635. Springer, 2021. doi: 10.1007/978-3-030-79876-5_37. URL https://lean-lang.org/papers/lean4.pdf.DOI
  8. [8]Mattias Ehatamm, Yi Lee, Xiaodi Wu, and Runzhou Tao. End-to-end formalization of quantum error correction, 2026. URL https://arxiv.org/abs/2605.16523.
  9. [9]The mathlib Community. The Lean mathematical library. In Proceedings of the 9th ACM SIGPLAN International Conference on Certified Programs and Proofs, pages 367–381, 2020. doi: 10.1145/3372885.3373824. URL https://arxiv.org/abs/1910.09336.
  10. [10]Pavel Panteleev and Gleb Kalachev. Asymptotically good quantum and locally testable classical LDPC codes. In Proceedings of the 54th Annual ACM SIGACT Symposium on Theory of Computing, pages 375–388, 2022. doi: 10.1145/3519935.3520017. URL https://arxiv.org/abs/2111.03654.
  11. [11]Anthony Leverrier and Gilles Zémor. Quantum Tanner codes. In 2022 IEEE 63rd Annual Symposium on Foundations of Computer Science (FOCS), pages 872–883, 2022. doi: 10.1109/FOCS54457.2022.000117. URL https://arxiv.org/abs/2202.13641.
  12. [12]Daniel Gottesman. Stabilizer Codes and Quantum Error Correction. PhD thesis, California Institute of Technology, 1997. URL https://arxiv.org/abs/quant-ph/9705052.
  13. [13]David W. Kribs, Raymond Laflamme, David Poulin, and Maia Lesosky. Operator quantum error correction. Quantum Information and Computation, 6:382–399, 2006. URL https://arxiv.org/abs/quant-ph/0504189.
  14. [14]A. Robert Calderbank and Peter W. Shor. Good quantum error-correcting codes exist. Physical Review A, 54:1098–1105, 1996. doi: 10.1103/PhysRevA.54.1098. URL https://arxiv.org/abs/quant-ph/9512032.
  15. [15]Andrew M. Steane. Multiple-particle interference and quantum error correction. Proceedings of the Royal Society of London. Series A, 452:2551–2577, 1996. doi: 10.1098/rspa.1996.0136. URL https://arxiv.org/abs/quant-ph/9601029.
  16. [16]Dave Bacon and Andrea Casaccino. Quantum error correcting subsystem codes from two classical linear codes, 2006. URL https://arxiv.org/abs/quant-ph/0610088.
  17. [17]Muvuan Li and Theodore J. Yoder. A numerical study of Bravyi–Bacon–Shor and subsystem hypergraph product codes, 2020. URL https://arxiv.org/abs/2002.06257.
  18. [18]Alexander J. Malcolm, Andrew N. Glaudell, Patricio Fuentes, Daryus Chandra, Alexis Schotte, Colby DeLisle, Rafael Haenel, Amir Ebrahimi, Joschka Roffe, Armanda O. Quintavalle, Stefanie J. Beale, Nicholas R. Lee-Hone, and Stephanie Simmons. Computing efficiently in QLDPC codes. Nature Communications, 17:7286, 2026. doi: 10.1038/s41467-026-73061-9. URL https://arxiv.org/abs/2502.07150.
  19. [19]Sergey Bravyi, Andrew W. Cross, Jay M. Gambetta, Dmitri Maslov, Patrick Rall, and Theodore J. Yoder. High-threshold and low-overhead fault-tolerant quantum memory. Nature, 627:778–782, 2024. doi: 10.1038/s41586-024-07107-7. URL https://arxiv.org/abs/2308.07915.
  20. [20]Yifan Hong. Quantum LDPC codes with design rate 1/5 and good performance below 1000 physical qubits, 2026. URL https://arxiv.org/abs/2607.27644.

Paper details

vlnc:W_65663f6m
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Physics and Astronomy

Not recorded for this paper

View statement
Looking for related papers…
Contents