Introduction
Fault-tolerant quantum computation requires non-Clifford logical gates. Magic-state distillation remains the standard route to such gates, but it introduces a substantial space-time overhead [3 , 4 , 5 ] . Transversal-gate constructions address the overhead by designing codes whose physical phase rotations implement a desired logical diagonal gate directly [6 , 7 , 8 ] . Examples include color-code and topological constructions [9 , 10 ] and CSS-T codes [11 , 12 ] . Hu, Liang, and Calderbank characterize diagonal gates on CSS codes [13 ] . Rengaswamy et al. give necessary conditions for fixed physical T / T † T/T^\dagger T / T † patterns on stabilizer codes [14 Thm. 6] , and Campbell and Howard give sufficient overlap conditions for CCZ [6 ] . Related CSS constructions use the diagonal Clifford hierarchy or divisible coset weights [15 , 16 ] . Concurrent work develops codes over binary extension fields [17 ] . For a single logical qubit and the T T T gate, the shortest known such codes are the divisible and triorthogonal families of [18 ] . A recurring requirement in these constructions is that the code generated by the X X X -type stabilizers be triply even , meaning every codeword weight is a multiple of 8 [19 ] . Such a code is also called 8-divisible, and the two terms are used interchangeably.
The present work focuses on finding Calderbank-Shor-Steane (CSS) codes with three logical qubits that implement a non-Clifford logical CCZ gate by physical T T T and T † T^\dagger T † rotations applied directly to the data block of a distance-d d d code. A CSS code is specified by nested classical binary codes
C 2 = rowspan ( S ) ⊂ C 1 = rowspan ( G ) , G = [ K S ] . C_2 = \operatorname{rowspan}(S) \subset C_1 = \operatorname{rowspan}(G), \qquad G = \begin{bmatrix} K \\ S \end{bmatrix}. C 2 = rowspan ( S ) ⊂ C 1 = rowspan ( G ) , G = [ K S ] .
Here the s s s rows of S S S generate the X X X -type stabilizers, the k = 3 k = 3 k = 3 rows of K K K represent the X X X -logical generators, and the n n n columns index the physical qubits. The quantity s = rank S = dim C 2 s = \operatorname{rank} S = \dim C_2 s = rank S = dim C 2 is the (X) stabilizer rank. For a binary vector or Boolean function f f f , ∣ f ∣ |f| ∣ f ∣ denotes its Hamming weight, and for a set A A A , ∣ A ∣ |A| ∣ A ∣ denotes its cardinality. The X X X -logicals are the vectors of C 1 ∖ C 2 C_1 \setminus C_2 C 1 ∖ C 2 and the Z Z Z -logicals those of C 2 ⊥ ∖ C 1 ⊥ C_2^\perp\setminus C_1^\perp C 2 ⊥ ∖ C 1 ⊥ , so the code distances are d X = min { ∣ v ∣ : v ∈ C 1 ∖ C 2 } d_X = \min\{ |v| : v \in C_1 \setminus C_2 \} d X = min { ∣ v ∣ : v ∈ C 1 ∖ C 2 } and d Z = min { ∣ v ∣ : v ∈ C 2 ⊥ ∖ C 1 ⊥ } d_Z = \min\{ |v| : v \in C_2^\perp\setminus C_1^\perp\} d Z = min { ∣ v ∣ : v ∈ C 2 ⊥ ∖ C 1 ⊥ } .
Throughout the paper, C 2 C_2 C 2 denotes the classical code and S S S denotes only its chosen generator matrix.
The logical computational-basis state with label x ⃗ ∈ F 2 3 \vec{x} \in\mathbb{F}_2^3 x ∈ F 2 3 is the uniform superposition over the coset K T x ⃗ + C 2 K^\mathsf{T}\vec{x} + C_2 K T x + C 2 of C 2 C_2 C 2 in C 1 C_1 C 1 ,
∣ x ⃗ L ⟩ = 1 2 s / 2 ∑ y ⃗ ∈ F 2 s ∣ K T x ⃗ + S T y ⃗ ⟩ = 1 2 s / 2 ∑ y ⃗ ∈ F 2 s ∣ G T z ⃗ ⟩ , z ⃗ = ( x ⃗ , y ⃗ ) ∈ F 2 3 + s , (1) |\vec{x}_L\rangle= \frac{1}{2^{s/2}} \sum_{\vec{y}\in\mathbb{F}_2^s} |K^\mathsf{T}\vec{x} + S^\mathsf{T}\vec{y}\rangle= \frac{1}{2^{s/2}} \sum_{\vec{y}\in\mathbb{F}_2^s} |G^\mathsf{T}\vec{z}\rangle,\qquad\vec{z}=(\vec{x},\vec{y})\in\mathbb{F}_2^{3+s}, \tag*{(1)} ∣ x L ⟩ = 2 s /2 1 y ∈ F 2 s ∑ ∣ K T x + S T y ⟩ = 2 s /2 1 y ∈ F 2 s ∑ ∣ G T z ⟩ , z = ( x , y ) ∈ F 2 3 + s , (1)
following the notation of Campbell and Howard [6 ] . Applying T ⊗ n T^{\otimes n} T ⊗ n to ∣ x ⃗ L ⟩ |\vec{x}_L\rangle ∣ x L ⟩ multiplies the term indexed by y ⃗ \vec{y} y by ω ∣ G T z ⃗ ∣ \omega^{|G^\mathsf{T}\vec{z}|} ω ∣ G T z ∣ with ω = e 2 π i / 8 \omega= e^{2\pi i/8} ω = e 2 π i /8 , so a diagonal gate’s logical action is governed by ∣ G T z ⃗ ∣ m o d 8 |G^\mathsf{T}\vec{z}| \bmod8 ∣ G T z ∣ mod 8 . The Bravyi–Haah parity identity [3 , 6 , 20 ] decomposes this weight mod 8 into single-row weights, pairwise overlaps and triple overlaps: for any full-rank G G G with rows g 1 , … , g r g^1,\ldots,g^r g 1 , … , g r and any z ⃗ ∈ F 2 r \vec{z}\in\mathbb{F}_2^r z ∈ F 2 r , with i i i , i ′ i' i ′ , i ′ ′ i'' i ′′ ranging over all r r r rows of G G G ,
∣ G T z ⃗ ∣ = ∑ i ∣ g i ∣ z i − 2 ∑ i < i ′ ∣ g i ∧ g i ′ ∣ z i z i ′ + 4 ∑ i < i ′ < i ′ ′ ∣ g i ∧ g i ′ ∧ g i ′ ′ ∣ z i z i ′ z i ′ ′ ( m o d 8 ) . (2) \begin{aligned}
|G^\mathsf{T}\vec{z}| ={}& \sum_i |g^i|z_i - 2\sum_{i<i'} |g^i \wedge g^{i'}|z_i z_{i'} \\
&+ 4\sum_{i<i'<i''} |g^i \wedge g^{i'} \wedge g^{i''}|z_i z_{i'}z_{i''}\pmod8. \tag*{(2)}
\end{aligned} ∣ G T z ∣ = i ∑ ∣ g i ∣ z i − 2 i < i ′ ∑ ∣ g i ∧ g i ′ ∣ z i z i ′ + 4 i < i ′ < i ′′ ∑ ∣ g i ∧ g i ′ ∧ g i ′′ ∣ z i z i ′ z i ′′ ( mod 8 ) . (2)
where ∣ g i ∧ g i ′ ∣ = ∑ j g j i g j i ′ |g^i \wedge g^{i'}| = \sum_j g^i_jg^{i'}_j ∣ g i ∧ g i ′ ∣ = ∑ j g j i g j i ′ is the overlap (shared support) of two rows, and similarly for triple overlaps1 .
For a target diagonal gate U F = ∑ x ⃗ ω F ( x ⃗ ) ∣ x ⃗ ⟩ ⟨ x ⃗ ∣ U_F = \sum_{\vec{x}}\omega^{F(\vec{x})}|\vec{x}\rangle\langle\vec{x}| U F = ∑ x ω F ( x ) ∣ x ⟩ ⟨ x ∣ , we consider the case where a diagonal Clifford correction C C C , applied after the transversal T T T rotations, i.e. C T ⊗ n CT^{\otimes n} C T ⊗ n , realizes logical U F U_F U F on the codespace. For U F = C C Z U_F = \mathrm{CCZ} U F = CCZ on k = 3 k = 3 k = 3 logical qubits the target is F C C Z ( x ⃗ ) = 4 x 1 x 2 x 3 F_{\mathrm{CCZ}}(\vec{x}) = 4x_1x_2x_3 F CCZ ( x ) = 4 x 1 x 2 x 3 , and the constraint reads
∣ K T x ⃗ + S T y ⃗ ∣ + 2 h ( K T x ⃗ + S T y ⃗ ) ≡ 4 x 1 x 2 x 3 ( m o d 8 ) ∀ x ⃗ , y ⃗ , (3) |K^\mathsf{T}\vec{x} + S^\mathsf{T}\vec{y}| + 2h(K^\mathsf{T}\vec{x} + S^\mathsf{T}\vec{y}) \equiv4x_1x_2x_3 \pmod8 \qquad\forall\ \vec{x},\vec{y}, \tag*{(3)} ∣ K T x + S T y ∣ + 2 h ( K T x + S T y ) ≡ 4 x 1 x 2 x 3 ( mod 8 ) ∀ x , y , (3)
where the function h h h collects the phases contributed by C C C : a linear term for each S S S -gate and a quadratic term for each C Z CZ C Z -gate. h h h is explicitly defined in Eq. (13) . Two regimes are considered:
quasi-transversal CCZ [6 ] : C C C is any diagonal Clifford, so the correction may still contain entangling C Z CZ C Z gates on pairs of qubits and gates acting on the logical qubits.
single-qubit transversal CCZ (Definition 3.4 ) is implemented by a physical T / T † T/T^\dagger T / T † pattern. Equivalently, apply T ⊗ n T^{\otimes n} T ⊗ n followed by S † S^\dagger S † on selected qubits, using T S † = T † TS^\dagger= T^\dagger T S † = T † .
Equation (3) fixes the undetermined coefficients of (2) , one monomial of degree ≤ 3 \le3 ≤ 3 at a time, yielding nine conditions on the row overlaps of G G G , i.e. the Campbell–Howard (CH) conditions [6 ] . The conditions are necessary as well as sufficient (Theorem 3.3 ). Table 1 lists all nine conditions.
Table 1. The nine Campbell–Howard conditions [6 ] , grouped like the rows of G = [ K ; S ] G = [K; S] G = [ K ; S ] : conditions on logical rows (K1–K3), conditions mixing logical and stabilizer rows (KS1–KS3), and conditions on stabilizer rows (S1–S3). Indices range over 1 ≤ i < i ′ ≤ 3 1 \le i < i' \le3 1 ≤ i < i ′ ≤ 3 and 1 ≤ l < l ′ < l ′ ′ ≤ s 1 \le l < l' < l'' \le s 1 ≤ l < l ′ < l ′′ ≤ s . K3 is the single odd parity.
Classical coding theory constructs codes from finite geometry by indexing code coordinates with points over a finite field and deriving weight properties from intersections with subspaces [21 , 22 ] . The construction uses the binary projective geometry P G ( s − 1 , 2 ) \mathrm{PG}(s-1, 2) PG ( s − 1 , 2 ) , the 2 s − 1 2^s - 1 2 s − 1 distinct nonzero vectors of F 2 s \mathbb{F}_2^s F 2 s .
An 8-divisible C 2 C_2 C 2 satisfies the stabilizer-only CH conditions, and choosing S S S with distinct nonzero columns guarantees d Z ≥ 3 d_Z \ge3 d Z ≥ 3 for every choice of logical rows since every weight-1 Z Z Z error has a distinct syndrome.
The logical K K K -row search is encoded as a Boolean satisfiability (SAT) problem, which has been widely adopted in solving constraint satisfaction problems in quantum error correction [1 , 23 ] . Because C 2 C_2 C 2 is fixed and already guarantees d Z ≥ 3 d_Z \ge3 d Z ≥ 3 , the SAT encoding has no distance constraints, and S1–S3 impose no constraints on the logical labels. The remaining conditions give 3 n 3n 3 n Boolean label variables and 7 + 6 s + 3 ( s 2 ) = O ( s 2 ) 7 + 6s + 3\binom{s}{2} = O(s^2) 7 + 6 s + 3 ( 2 s ) = O ( s 2 ) parity constraints: respectively, K1, K2, K3, KS1, KS2, and KS3.
Here, geometry fixes C 2 C_2 C 2 and guarantees d Z ≥ 3 d_Z \ge3 d Z ≥ 3 before the SAT search for logical rows, which is followed by the physical-sign test for transversal CCZ. Jacinto et al. [1 ] use SAT to find compact magic-state distillation protocols and to prove lower bounds on their qubit count.
For FG48, the resulting G G G matrix generates the single-qubit transversal code Q 48 Q_{48} Q 48 , a new [ [ 48 , 3 , 3 ] ] [\![48, 3, 3]\!] [ [ 48 , 3 , 3 ] ] CSS code with C 2 C_2 C 2 equal to FG48, whose logical CCZ is implemented by physical T T T and T † T^\dagger T † rotations. We encode the geometric construction with the column indicator of S S S and the logical-row search with the column indicator of G G G . Nezami and Haah introduced this indicator-polynomial representation to classify small triorthogonal codes [20 ] .
Furthermore, we prove that no CSS code with k = 3 k = 3 k = 3 and d Z ≥ 3 d_Z \ge3 d Z ≥ 3 satisfying the nine CH conditions exists at length n ≤ 38 n \le38 n ≤ 38 , with any number of X X X -stabilizer generators (Theorem 4.5). The CH conditions involving only stabilizer generators limit the valid block lengths to the weight spectrum of a Reed–Muller code, and each admissible length is then decided exactly. The ⟦ 47 , 3 , 3 ⟧ \llbracket47,3,3\rrbracket [ [ 47 , 3 , 3 ] ] code of Jacinto et al. [1 ] is the smallest code of this class, as certified by the classification of Wills, Jain, and Singh [2 ] , and Q 48 Q_{48} Q 48 is the smallest known single-qubit transversal one.
§ 2 gives the geometric construction, § 3 the single-qubit transversal criteria, § 4 the length lower bound, and § 5 summarizes our results and lists open problems, including extensions to other non-Clifford gates and more logical qubits. The appendices contain the search details and deferred proofs.
Subspace-complement construction of stabilizers
In this section, we find geometric constructions that satisfy the stabilizer-only CH conditions. An 8-divisible C 2 C_2 C 2 satisfies the stabilizer-only conditions S1–S3 of Table 1 . 8-divisibility is a stronger condition:
∣ S l ∣ ≡ 0 ( m o d 8 ) , ∣ S l ∧ S l ′ ∣ ≡ 0 ( m o d 4 ) , ∣ S l ∧ S l ′ ∧ S l ′ ′ ∣ ≡ 0 ( m o d 2 ) . (4) \begin{aligned}
|S_l| &\equiv0 \pmod{8}, \qquad|S_l \wedge S_{l'}| \equiv0 \pmod{4}, \\
|S_l \wedge S_{l'} \wedge S_{l''}| &\equiv0 \pmod{2}. \tag*{(4)}
\end{aligned} ∣ S l ∣ ∣ S l ∧ S l ′ ∧ S l ′′ ∣ ≡ 0 ( mod 8 ) , ∣ S l ∧ S l ′ ∣ ≡ 0 ( mod 4 ) , ≡ 0 ( mod 2 ) . (4)
Conditions S1–S3 only impose the conditions mod 2. Codes satisfying these conditions without being 8-divisible are known [18 , 20 ] .
By imposing 8-divisibility, we can borrow from classical constructions. Divisible codes are a well-developed subject [24 ] , and two-weight codes from subspace complements are among the simplest ways to produce one. The stabilizer support is then fixed by geometry rather than found by search, while the logical rows and physical signs remain to be chosen.
8-divisibility is the first of two requirements this section places on C 2 C_2 C 2 . The second is the distance requirement d Z ≥ 3 d_Z \ge3 d Z ≥ 3 , which we now reduce to a condition on the columns of S S S .
Write each column of G = [ K ; S ] G=[K;S] G = [ K ; S ] as a pair ( α , β ) ∈ F 2 3 × F 2 5 (\alpha,\beta)\in\mathbb{F}_2^3\times\mathbb{F}_2^5 ( α , β ) ∈ F 2 3 × F 2 5 , where α \alpha α is its logical label (the column of K K K ) and β \beta β is its syndrome (the column of S S S , i.e. the X X X -stabilizer syndrome of a Z Z Z error on that qubit). The Z Z Z -logicals are C 2 ⊥ ∖ C 1 ⊥ C_2^\perp\setminus C_1^\perp C 2 ⊥ ∖ C 1 ⊥ (§ 1 ), so the Z Z Z -distance is
d Z = min { ∣ v ∣ : v ∈ C 2 ⊥ ∖ C 1 ⊥ } = min { ∣ v ∣ : S v = 0 , K v ≠ 0 } , (5) d_Z=\min\{\,|v|:v\in C_2^\perp\setminus C_1^\perp\,\}=\min\{\,|v|:Sv=0,\ Kv\ne0\,\}, \tag*{(5)} d Z = min { ∣ v ∣ : v ∈ C 2 ⊥ ∖ C 1 ⊥ } = min { ∣ v ∣ : S v = 0 , K v = 0 } , (5)
the minimum weight of a vector with zero syndrome and nonzero logical label.
Lemma 2.1 (Multiplicity-free support = d Z ≥ 3 =d_Z\ge3 = d Z ≥ 3 ). The following are equivalent: (a) d Z ≥ 3 d_Z\ge3 d Z ≥ 3 ; (b) no column has β = 0 \beta=0 β = 0 with α ≠ 0 \alpha\ne0 α = 0 , and no two columns share the same nonzero β \beta β with different labels α \alpha α . A support satisfying (b) is called multiplicity-free.
Proof. A Z Z Z error of weight at most two is determined by its support columns. For such v v v , the syndrome S v Sv S v and label K v Kv K v are the sums of at most two columns, and d Z ≤ 2 d_Z\le2 d Z ≤ 2 means some such string satisfies S v = 0 Sv=0 S v = 0 with K v ≠ 0 Kv\ne0 K v = 0 . The only candidates are
v = e j : ( S v , K v ) = ( β j , α j ) ; v = e i + e j : ( S v , K v ) = ( β i + β j , α i + α j ) . v=e_j:\ (Sv,Kv)=(\beta_j,\alpha_j);\qquad v=e_i+e_j:\ (Sv,Kv)=(\beta_i+\beta_j,\alpha_i+\alpha_j). v = e j : ( S v , K v ) = ( β j , α j ) ; v = e i + e j : ( S v , K v ) = ( β i + β j , α i + α j ) . So a weight-one Z Z Z -logical is a column with zero syndrome but nonzero label, and a weight-two Z Z Z -logical is a pair of columns sharing a syndrome but not a label. Condition (b) forbids exactly these two configurations, hence is equivalent to d Z ≥ 3 d_Z\ge3 d Z ≥ 3 , which is (a). □ \square □
The code C 2 C_2 C 2 is called projective when the columns of its generator matrix S S S are distinct and nonzero, equivalently when d ( C 2 ⊥ ) ≥ 3 d(C_2^\perp) \ge3 d ( C 2 ⊥ ) ≥ 3 . The columns β 1 , … , β n ∈ F 2 s \beta_1,\ldots,\beta_n \in\mathbb{F}_2^s β 1 , … , β n ∈ F 2 s then form a projective set [24 , 25 ] P ⊆ F 2 s ∖ { 0 } \mathcal{P} \subseteq\mathbb{F}_2^s \setminus\{0\} P ⊆ F 2 s ∖ { 0 } of n ≤ 2 s − 1 n \le2^s - 1 n ≤ 2 s − 1 points, where we write PG ( s − 1 , 2 ) \operatorname{PG}(s-1,2) PG ( s − 1 , 2 ) for the set of 2 s − 1 2^s-1 2 s − 1 nonzero vectors of F 2 s \mathbb{F}_2^s F 2 s . Projectivity excludes both failures in Lemma 2.1 , so it guarantees d Z ≥ 3 d_Z \ge3 d Z ≥ 3 for every choice of K K K . For the existence and length-lower-bound searches, it is enough to consider projective C 2 C_2 C 2 . Every G G G with d Z ≥ 3 d_Z \ge3 d Z ≥ 3 satisfying the nine CH conditions can be punctured, by deleting a zero column or a repeated pair of columns, to one that contains a projective C 2 C_2 C 2 . The punctured code satisfies the same nine CH conditions, d Z ≥ 3 d_Z \ge3 d Z ≥ 3 , and possesses the same number of logicals k k k (see Lemma D.1 , Appendix § 11 .§ 1 ). The search therefore fixes a projective C 2 C_2 C 2 and varies only the logical rows K K K .
FG48 and its subspace-complement family are constructed from projective geometry [24 §2] , where codeword weights are read from hyperplane sections. A nonzero vector a ∈ F 2 s a \in\mathbb{F}_2^s a ∈ F 2 s selects the codeword c a = a 1 S 1 + ⋯ + a s S s ∈ F 2 n c_a = a_1S_1 + \cdots+ a_sS_s \in\mathbb{F}_2^n c a = a 1 S 1 + ⋯ + a s S s ∈ F 2 n , whose j j j -th coordinate is the dot product a ⋅ β j a \cdot\beta_j a ⋅ β j . The same a a a defines the hyperplane H a = { β ∈ F 2 s ∖ { 0 } : a ⋅ β = 0 } \mathcal{H}_a = \{\beta\in\mathbb{F}_2^s \setminus\{0\}: a \cdot\beta= 0\} H a = { β ∈ F 2 s ∖ { 0 } : a ⋅ β = 0 } , and the points of P \mathcal{P} P lying on it form the hyperplane section P ∩ H a \mathcal{P} \cap\mathcal{H}_a P ∩ H a . A hyperplane of PG ( s − 1 , 2 ) \operatorname{PG}(s-1,2) PG ( s − 1 , 2 ) has 2 s − 1 − 1 2^{s-1}-1 2 s − 1 − 1 points (31 when s = 6 s=6 s = 6 ). Coordinate j j j is nonzero exactly when β j \beta_j β j lies outside H a \mathcal{H}_a H a , so
∣ c a ∣ = ∑ β ∈ P a ⋅ β = n − ∣ P ∩ H a ∣ . (6) \lvert c_a\rvert= \sum_{\beta\in\mathcal{P}} a \cdot\beta= n - \lvert\mathcal{P} \cap\mathcal{H}_a\rvert. \tag*{(6)} ∣ c a ∣ = β ∈ P ∑ a ⋅ β = n − ∣ P ∩ H a ∣ . (6)
The code is two-weight when only two distinct nonzero codeword weights occur [26 , 27 ] . By (6) this is the same as the hyperplane sections P ∩ H a \mathcal{P}\cap\mathcal{H}_a P ∩ H a taking only two distinct sizes [24 Thm. 2.18] . One way to construct such two-weight point sets is by using complements of subspaces, defined below:
Definition 2.2 (Subspace complements [27 §19.7.1] ). For a p p p -dimensional vector subspace P ⊆ F 2 s P \subseteq\mathbb{F}_2^s P ⊆ F 2 s (so P ≅ F 2 p P \cong\mathbb{F}_2^p P ≅ F 2 p ), the subspace-complement point set is
P = PG ( s − 1 , 2 ) ∖ ( P ∖ { 0 } ) , \mathcal{P} = \operatorname{PG}(s-1,2) \setminus(P \setminus\{0\}), P = PG ( s − 1 , 2 ) ∖ ( P ∖ { 0 }) , the projective points of F 2 s \mathbb{F}_2^s F 2 s not in P P P (see Calderbank–Kantor [26 ] for this family’s place in the two-weight literature).
Set ( s , p ) = ( 6 , 4 ) (s,p)=(6,4) ( s , p ) = ( 6 , 4 ) in Definition 2.2 . Removing the 15 nonzero points of a four-dimensional subspace, a solid PG ( 3 , 2 ) \operatorname{PG}(3,2) PG ( 3 , 2 ) , from the 63 points of PG ( 5 , 2 ) \operatorname{PG}(5,2) PG ( 5 , 2 ) leaves 48 points. The classical code with these 48 points as columns is denoted $\mathrm{FG48}2 $.
Proposition 2.3 (Uniqueness of the projective 8-divisible [ 48 , 6 ] [48,6] [ 48 , 6 ] code [24 , 26 , 27 ] ). Up to a permutation of coordinates, the only projective 8-divisible [ 48 , 6 ] [48,6] [ 48 , 6 ] code is F G 48 \mathrm{FG48} FG48 , the two-weight complement of a solid, with column set PG ( 5 , 2 ) ∖ PG ( 3 , 2 ) \operatorname{PG}(5,2) \setminus\operatorname{PG}(3,2) PG ( 5 , 2 ) ∖ PG ( 3 , 2 ) , the code C 2 C_2 C 2 of Q 48 Q_{48} Q 48 .
Proof. The 48 columns of C 2 C_2 C 2 occupy 48 of the 63 points of PG ( 5 , 2 ) \operatorname{PG}(5,2) PG ( 5 , 2 ) , missing 15. Each hyperplane H a \mathcal{H}_a H a has 31 points, so it meets the column set in at least 31 − 15 = 16 31-15=16 31 − 15 = 16 points and at most 31. By (6) the nonzero codeword c a c_a c a has weight 48 minus this section size, and 8-divisibility forces the section size to be a multiple of 8. In the range [ 16 , 31 ] [16,31] [ 16 , 31 ] the only multiples of 8 are 16 and 24, giving codeword weights 32 and 24. To determine how many hyperplanes give each weight, we count incidences in two ways. There are 63 hyperplanes in PG ( 5 , 2 ) \operatorname{PG}(5,2) PG ( 5 , 2 ) (one per nonzero a ∈ F 2 6 a \in\mathbb{F}_2^6 a ∈ F 2 6 ), and each of the 48 points lies on 31 of them. For m ∈ { 16 , 24 } m \in\{16,24\} m ∈ { 16 , 24 } , let N m N_m N m be the number of hyperplanes whose intersection with the 48-point column set has size m m m . Then
N 16 + N 24 = 63 , 16 N 16 + 24 N 24 = 48 ⋅ 31 , N_{16}+N_{24}=63,\qquad16N_{16}+24N_{24}=48\cdot31, N 16 + N 24 = 63 , 16 N 16 + 24 N 24 = 48 ⋅ 31 ,
so N 16 = 3 N_{16}=3 N 16 = 3 and N 24 = 60 N_{24}=60 N 24 = 60 . Thus, our code has 3 codewords of weight 32 and 60 codewords of weight 24.
Every projective 8-divisible [ 48 , 6 ] [48,6] [ 48 , 6 ] code has this enumerator. The solid complement of Definition 2.2 attains it (Calderbank–Kantor Example SU1 [26 §7] ), and among projective codes the enumerator has no other realization, by the classification of projective 8-divisible codes of length at most 48 [19 , 24 , 28 ] .
To write an explicit generator matrix S S S for F G 48 \mathrm{FG}_{48} FG 48 , we choose coordinates ( u , w ) ∈ F 2 4 ⊕ F 2 2 (u,w)\in\mathbb{F}_2^4\oplus\mathbb{F}_2^2 ( u , w ) ∈ F 2 4 ⊕ F 2 2 with the removed subspace given by w = 0 w=0 w = 0 . The surviving points have w ≠ 0 w\ne0 w = 0 and split into three cosets, one for each nonzero value of w w w . Ordering the columns of S S S coset by coset, and within each coset by the 16 values of u u u , gives (7) . The columns of A A A are the 16 vectors of F 2 4 \mathbb{F}_2^4 F 2 4 , written as the binary expansions of 0 , 1 , … , 15 0,1,\ldots,15 0 , 1 , … , 15 with the least significant bit in the top row, while the bottom two rows record the three coset labels ( 1 , 0 ) , ( 0 , 1 ) , ( 1 , 1 ) (1,0),(0,1),(1,1) ( 1 , 0 ) , ( 0 , 1 ) , ( 1 , 1 ) :
S F G 48 = [ A A A 1 0 1 0 1 1 ] , A = [ 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 ] . (7) S_{\mathrm{FG}_{48}}=
\begin{bmatrix}
A&A&A\\
1&0&1\\
0&1&1
\end{bmatrix},
\qquad
A=
\begin{bmatrix}
0&1&0&1&0&1&0&1&0&1&0&1&0&1&0&1\\
0&0&1&1&0&0&1&1&0&0&1&1&0&0&1&1\\
0&0&0&0&1&1&1&1&0&0&0&0&1&1&1&1\\
0&0&0&0&0&0&0&0&1&1&1&1&1&1&1&1
\end{bmatrix}. \tag*{(7)} S FG 48 = A 1 0 A 0 1 A 1 1 , A = 0 0 0 0 1 0 0 0 0 1 0 0 1 1 0 0 0 0 1 0 1 0 1 0 0 1 1 0 1 1 1 0 0 0 0 1 1 0 0 1 0 1 0 1 1 1 0 1 0 0 1 1 1 0 1 1 0 1 1 1 1 1 1 1 . (7)
The six rows of S F G 48 S_{\mathrm{FG}_{48}} S FG 48 are independent coordinate functions on the surviving points and form a basis of C 2 C_2 C 2 . The two nonzero weights arise from whether the hyperplane H a \mathcal{H}_a H a of the codeword c a c_a c a in (6) contains the removed subspace P P P .
Corollary 2.4 (Block form of a subspace complement code). Let P ≅ F 2 p P\cong\mathbb{F}_2^p P ≅ F 2 p be a p p p -dimensional subspace of F 2 s \mathbb{F}_2^s F 2 s . Set q = s − p q=s-p q = s − p and let π : F 2 s → F 2 s / P ≅ F 2 q \pi:\mathbb{F}_2^s\to\mathbb{F}_2^s/P\cong\mathbb{F}_2^q π : F 2 s → F 2 s / P ≅ F 2 q send each β \beta β to its coset β + P \beta+P β + P . Choose coordinates ( u , w ) (u,w) ( u , w ) on F 2 s \mathbb{F}_2^s F 2 s , with u ∈ F 2 p u\in\mathbb{F}_2^p u ∈ F 2 p along P P P and w = π ( β ) ∈ F 2 q w=\pi(\beta)\in\mathbb{F}_2^q w = π ( β ) ∈ F 2 q . The generator matrix of the code with column set PG ( s − 1 , 2 ) ∖ PG ( p − 1 , 2 ) \operatorname{PG}(s-1,2)\setminus\operatorname{PG}(p-1,2) PG ( s − 1 , 2 ) ∖ PG ( p − 1 , 2 ) then admits the block form
S = [ A A ⋯ A w ( 1 ) 1 w ( 2 ) 1 ⋯ w ( b ) 1 ] , S=
\begin{bmatrix}
A&A&\cdots&A\\
w^{(1)}\mathbf{1}&w^{(2)}\mathbf{1}&\cdots&w^{(b)}\mathbf{1}
\end{bmatrix}, S = [ A w ( 1 ) 1 A w ( 2 ) 1 ⋯ ⋯ A w ( b ) 1 ] , where b = 2 q − 1 b=2^q-1 b = 2 q − 1 blocks are indexed by the nonzero vectors w ( 1 ) , … , w ( b ) ∈ F 2 q ∖ { 0 } w^{(1)},\ldots,w^{(b)}\in\mathbb{F}_2^q\setminus\{0\} w ( 1 ) , … , w ( b ) ∈ F 2 q ∖ { 0 } , and the top p p p rows repeat the block matrix A A A listing all 2 p 2^p 2 p vectors of F 2 p \mathbb{F}_2^p F 2 p in each block. Here w ( i ) 1 w^{(i)}\mathbf{1} w ( i ) 1 is the q × 2 p q\times2^p q × 2 p block whose every column equals w ( i ) w^{(i)} w ( i ) , so all 2 p 2^p 2 p columns of block i i i carry the same coset label. The block length is n = b ⋅ 2 p = 2 s − 2 p n=b\cdot2^p=2^s-2^p n = b ⋅ 2 p = 2 s − 2 p .
Proposition 2.3 determines C 2 = F G 48 C_2=\mathrm{FG}_{48} C 2 = FG 48 once 8-divisibility is imposed. A classical support determines neither the logical rows nor the physical gate pattern needed to implement the target logical gate. Section 3 constructs the logical rows and physical signs for F G 48 \mathrm{FG}_{48} FG 48 .
CCZ conditions and a 48-qubit example
CH conditions and column indicators
Section 2 treated the columns of S F G 48 S_{\mathrm{FG}_{48}} S FG 48 as a projective point set and computed codeword weights from sums over those columns. The same column picture applies to the full generator matrix G G G . The CH conditions become parity sums over columns in G G G , which can be captured by column indicator polynomials. Membership of these indicator polynomials in certain Reed–Muller code cosets will also be characterized, following the methodology of [20 ] . The notation R M ( r , m ) \mathrm{RM}(r,m) RM ( r , m ) denotes the binary Reed–Muller code of order r r r and length 2 m 2^m 2 m , namely the evaluations on F 2 m \mathbb{F}_2^m F 2 m of polynomials of degree at most r r r .
Definition 3.1 (Column indicator). Let M M M be a binary matrix with r r r rows and pairwise distinct columns, and let X ⊆ F 2 r X \subseteq\mathbb{F}_2^r X ⊆ F 2 r be its set of columns. The column indicator of M M M is the Boolean function
χ M : F 2 r ⟶ F 2 , χ M ( v ) = { 1 if v ∈ X , 0 otherwise . \chi_M : \mathbb{F}_2^r \longrightarrow\mathbb{F}_2,\qquad\chi_M(v) =
\begin{cases}
1 & \text{if } v \in X,\\
0 & \text{otherwise}.
\end{cases} χ M : F 2 r ⟶ F 2 , χ M ( v ) = { 1 0 if v ∈ X , otherwise . For a Boolean polynomial or function f f f , its Hamming weight ∣ f ∣ |f| ∣ f ∣ is the number of inputs at which f f f equals 1 1 1 , equivalently the Hamming weight of its evaluation vector. Hence the same notation applies when f f f represents an evaluation vector in a Reed–Muller code or coset. In particular, ∣ χ M ∣ = ∣ X ∣ |\chi_M|=|X| ∣ χ M ∣ = ∣ X ∣ , which equals the number of columns because the columns are distinct. Note every Boolean function g g g on F 2 r \mathbb{F}_2^r F 2 r has a unique multilinear expansion
g = ∑ T ⊆ { 1 , … , r } c T ∏ l ∈ T v l , c T ∈ F 2 . g=\sum_{T\subseteq\{1,\ldots,r\}}c_T\prod_{l\in T}v_l,\qquad c_T\in\mathbb{F}_2. g = T ⊆ { 1 , … , r } ∑ c T l ∈ T ∏ v l , c T ∈ F 2 . and its degree is the largest ∣ T ∣ |T| ∣ T ∣ with c T = 1 c_T=1 c T = 1 . If χ M \chi_M χ M has degree deg χ M \deg\chi_M deg χ M , then it belongs to the Reed–Muller code R M ( deg χ M , r ) \mathrm{RM}(\deg\chi_M,r) RM ( deg χ M , r ) .
For the stabilizer matrix M = S F G 48 M=S_{\mathrm{FG48}} M = S FG48 , the ambient dimension is r = s r=s r = s . Write χ S \chi_S χ S for its indicator, whose support is the projective point set P ⊆ F 2 s ∖ { 0 } \mathcal{P}\subseteq\mathbb{F}_2^s\setminus\{0\} P ⊆ F 2 s ∖ { 0 } of § 2 . Consequently, χ S ( 0 ) = 0 \chi_S(0)=0 χ S ( 0 ) = 0 and ∣ χ S ∣ = n |\chi_S|=n ∣ χ S ∣ = n . For the full generator matrix M = G = [ K ; S F G 48 ] M=G=[K;S_{\mathrm{FG48}}] M = G = [ K ; S FG48 ] , the ambient dimension is r = k + s r=k+s r = k + s , and we write χ G \chi_G χ G for its indicator. Since the stabilizer columns are distinct, so are the columns of G G G , and the indicator χ G \chi_G χ G records G G G faithfully.
Equation (6) computes a codeword weight by summing a linear function over P \mathcal{P} P . For the full generator matrix G G G , each CH condition instead sums a monomial of degree at most three over the columns and retains only the parity. For Boolean functions f , g f,g f , g on F 2 r \mathbb{F}_2^r F 2 r , define [6 ]
⟨ f , g ⟩ = ( ∑ v ∈ F 2 r f ( v ) g ( v ) ) m o d 2. \langle f,g\rangle=\left(\sum_{v\in\mathbb{F}_2^r}f(v)g(v)\right)\bmod2. ⟨ f , g ⟩ = v ∈ F 2 r ∑ f ( v ) g ( v ) mod 2.
In Boolean algebra and in SAT encodings, a sum mod 2 i.e the parity, is the XOR, denoted ⊕ \oplus ⊕ . For the linear function ℓ a ( z ) = a ⋅ z \ell_a(z)=a\cdot z ℓ a ( z ) = a ⋅ z , the inner product ⟨ χ S , ℓ a ⟩ \langle\chi_S,\ell_a\rangle ⟨ χ S , ℓ a ⟩ counts the parity of the points of P \mathcal{P} P outside the hyperplane H a \mathcal{H}_a H a . Hence the degree-one case recovers the parity of the hyperplane count in (6) .
For a nonempty set T T T of at most three rows, let T K ⊆ { 1 , 2 , 3 } T_K\subseteq\{1,2,3\} T K ⊆ { 1 , 2 , 3 } and T S ⊆ { 1 , … , s } T_S\subseteq\{1,\ldots,s\} T S ⊆ { 1 , … , s } index its logical and stabilizer rows. Define
m T K ( x ) = ∏ i ∈ T K x i , m T S ( y ) = ∏ j ∈ T S y j , m T ( x , y ) = m T K ( x ) m T S ( y ) . m_{T_K}(x)=\prod_{i\in T_K}x_i,\qquad m_{T_S}(y)=\prod_{j\in T_S}y_j,\qquad m_T(x,y)=m_{T_K}(x)m_{T_S}(y). m T K ( x ) = i ∈ T K ∏ x i , m T S ( y ) = j ∈ T S ∏ y j , m T ( x , y ) = m T K ( x ) m T S ( y ) .
On a column of G G G , m T = 1 m_T=1 m T = 1 exactly when every selected row has entry 1. Consequently, ⟨ χ G , m T ⟩ \langle\chi_G,m_T\rangle ⟨ χ G , m T ⟩ counts their overlap modulo two. Note that the factorization m T ( x , y ) = m T K ( x ) m T S ( y ) m_T(x,y)=m_{T_K}(x)m_{T_S}(y) m T ( x , y ) = m T K ( x ) m T S ( y ) comes only from partitioning the selected rows into the K K K and S S S rows and no factorization of χ G \chi_G χ G is assumed.
Each CH condition is such an inner product for a set T T T of at most three rows. Define the label map κ : P → F 2 3 \kappa:\mathcal{P}\to\mathbb{F}_2^3 κ : P → F 2 3 by assigning to each stabilizer column the three entries of $K above it. Lemma 2.1 ensures that each column has one such label. In terms of κ \kappa κ , the CH conditions read
⟨ χ G , m T ⟩ = ⨁ β ∈ P m T K ( κ ( β ) ) m T S ( β ) = { 1 if T = { 1 , 2 , 3 } , the K3 condition , 0 otherwise. (8) \langle\chi_G,m_T\rangle=\bigoplus_{\beta\in\mathcal{P}}m_{T_K}(\kappa(\beta))m_{T_S}(\beta)=
\begin{cases}
1 & \text{if }T=\{1,2,3\},\text{ the K3 condition},\\
0 & \text{otherwise.}
\end{cases} \tag*{(8)} ⟨ χ G , m T ⟩ = β ∈ P ⨁ m T K ( κ ( β )) m T S ( β ) = { 1 0 if T = { 1 , 2 , 3 } , the K3 condition , otherwise. (8)
To sum over all nonzero β \beta β rather than only P \mathcal{P} P , set κ ( β ) = ( 0 , 0 , 0 ) \kappa(\beta)=(0,0,0) κ ( β ) = ( 0 , 0 , 0 ) for β ∉ P \beta\notin\mathcal{P} β ∈ / P . Multiplying by χ S ( β ) \chi_S(\beta) χ S ( β ) makes every term outside P \mathcal{P} P zero, so Equation (8) becomes
⨁ β ≠ 0 χ S ( β ) m T S ( β ) m T K ( κ ( β ) ) = { 1 T = { 1 , 2 , 3 } , 0 otherwise. (9) \bigoplus_{\beta\ne0}\chi_S(\beta)m_{T_S}(\beta)m_{T_K}(\kappa(\beta))=
\begin{cases}
1 & T=\{1,2,3\},\\
0 & \text{otherwise.}
\end{cases} \tag*{(9)} β = 0 ⨁ χ S ( β ) m T S ( β ) m T K ( κ ( β )) = { 1 0 T = { 1 , 2 , 3 } , otherwise. (9)
For the three stabilizer-only conditions S1–S3, T K = ∅ T_K=\varnothing T K = ∅ , so m T K = 1 m_{T_K}=1 m T K = 1 and the label map drops out.
Appendix § 9 describes how the logical rows are found for a fixed support. For a fixed support and two logical rows satisfying the pair tests (36) , the remaining equations become linear in κ 3 \kappa_3 κ 3 . Algorithm 1 uses this fact to test each pair of logical rows by solving a linear system for the third.
Lemma 3.2 below expresses every solution of the CH equations as a member of a Reed–Muller coset.
Lemma 3.2. Write r = k + s r=k+s r = k + s . Let δ 0 = ∏ i = 1 r ( 1 + z i ) \delta_0=\prod_{i=1}^{r}(1+z_i) δ 0 = ∏ i = 1 r ( 1 + z i ) be the indicator of the origin of F 2 r \mathbb{F}_2^r F 2 r . Fix χ G , 0 \chi_{G,0} χ G , 0 with ⟨ χ G , 0 , x 1 x 2 x 3 ⟩ = 1 \langle\chi_{G,0},x_1x_2x_3\rangle=1 ⟨ χ G , 0 , x 1 x 2 x 3 ⟩ = 1 , orthogonal to all monomials of degree below three and all other degree-three monomials. The CH conditions force the G G G indicator to belong to a coset of RM ( r − 4 , r ) \operatorname{RM}(r-4,r) RM ( r − 4 , r ) ,
χ G ∈ χ G , 0 + ε δ 0 + RM ( r − 4 , r ) , ε = n m o d 2 , (10) \chi_G\in\chi_{G,0}+\varepsilon\delta_0+\operatorname{RM}(r-4,r),\qquad\varepsilon=n\bmod2, \tag*{(10)} χ G ∈ χ G , 0 + ε δ 0 + RM ( r − 4 , r ) , ε = n mod 2 , (10) which does not depend on the choice of χ G , 0 \chi_{G,0} χ G , 0 .
The proof of Lemma 3.2 is given in Appendix § 10 .§ 1 .
For three logical rows, the function χ G , 0 = y 1 ⋯ y s \chi_{G,0}=y_1\cdots y_s χ G , 0 = y 1 ⋯ y s on F 2 3 + s \mathbb{F}_2^{3+s} F 2 3 + s is one special solution. The function equals 1 exactly at the 8 points ( x , 1 ) (x,1) ( x , 1 ) with x ∈ F 2 3 x\in\mathbb{F}_2^3 x ∈ F 2 3 , where m T S ( 1 ) = 1 m_{T_S}(1)=1 m T S ( 1 ) = 1 . Hence, for every T T T with ∣ T ∣ ≤ 3 |T|\le3 ∣ T ∣ ≤ 3 ,
⟨ χ G , 0 , m T ⟩ = ( ∑ x ∈ F 2 3 m T K ( x ) ) m o d 2 = 2 3 − ∣ T K ∣ m o d 2 , \langle\chi_{G,0},m_T\rangle=\left(\sum_{x\in\mathbb{F}_2^3}m_{T_K}(x)\right)\bmod2=2^{3-|T_K|}\bmod2, ⟨ χ G , 0 , m T ⟩ = x ∈ F 2 3 ∑ m T K ( x ) mod 2 = 2 3 − ∣ T K ∣ mod 2 ,
which equals 1 only for T K = { 1 , 2 , 3 } T_K=\{1,2,3\} T K = { 1 , 2 , 3 } . At even length, the δ 0 \delta_0 δ 0 term vanishes, so (10) gives χ G ∈ y 1 ⋯ y s + RM ( s − 1 , s + 3 ) \chi_G\in y_1\cdots y_s+\operatorname{RM}(s-1,s+3) χ G ∈ y 1 ⋯ y s + RM ( s − 1 , s + 3 ) . Hence deg χ G = s \deg\chi_G=s deg χ G = s , with y 1 ⋯ y s y_1\cdots y_s y 1 ⋯ y s as its only degree-s s s term.
Represent a column of G G G by ( x , u , w ) ∈ F 2 3 + s (x,u,w)\in\mathbb{F}_2^{3+s} ( x , u , w ) ∈ F 2 3 + s . The last s s s coordinates ( u , w ) (u,w) ( u , w ) are the block coordinates of Corollary 2.4, and the first three coordinates are the logical label x = κ ( u , w ) x=\kappa(u,w) x = κ ( u , w ) . Thus, for a column with label α \alpha α and syndrome β = ( u , w ) \beta=(u,w) β = ( u , w ) , the coordinate functions satisfy x i ( α ) = ( α ) i x_i(\alpha)=(\alpha)_i x i ( α ) = ( α ) i and y l ( β ) = ( β ) l y_l(\beta)=(\beta)_l y l ( β ) = ( β ) l .
The support factor χ S ( u , w ) \chi_S(u,w) χ S ( u , w ) selects the occupied stabilizer columns. For each selected column, the factor indexed by i i i enforces x i = κ i ( u , w ) x_i=\kappa_i(u,w) x i = κ i ( u , w ) , so the product is the column indicator of G G G :
χ G ( x , u , w ) = χ S ( u , w ) ∏ i = 1 3 ( 1 + x i + κ i ( u , w ) ) . (11) \chi_G(x,u,w)=\chi_S(u,w)\prod_{i=1}^{3}(1+x_i+\kappa_i(u,w)). \tag*{(11)} χ G ( x , u , w ) = χ S ( u , w ) i = 1 ∏ 3 ( 1 + x i + κ i ( u , w )) . (11)
Example (The indicator of Q 48 Q_{48} Q 48 ). Corollary 2.4 identifies the stabilizer columns with the points ( u , w ) (u,w) ( u , w ) for which w ≠ 0 w\ne0 w = 0 , with every u ∈ F 2 p u\in\mathbb{F}_2^p u ∈ F 2 p occurring for each such w w w . Hence χ S \chi_S χ S is independent of u u u . Writing w = ( w 1 , … , w q ) w=(w_1,\ldots,w_q) w = ( w 1 , … , w q ) , 1 w = 0 = ( 1 + w 1 ) ( 1 + w 2 ) ⋯ ( 1 + w q ) \mathbf{1}_{w=0}=(1+w_1)(1+w_2)\cdots(1+w_q) 1 w = 0 = ( 1 + w 1 ) ( 1 + w 2 ) ⋯ ( 1 + w q ) :
χ S ( w ) = 1 w ≠ 0 = 1 − ∏ l = 1 q ( 1 + w l ) . (12) \chi_S(w)=\mathbf{1}_{w\ne0}=1-\prod_{l=1}^{q}(1+w_l). \tag*{(12)} χ S ( w ) = 1 w = 0 = 1 − l = 1 ∏ q ( 1 + w l ) . (12)
For q = 2 q=2 q = 2 (F G 48 FG48 F G 48 ) this is w 1 + w 2 + w 1 w 2 w_1+w_2+w_1w_2 w 1 + w 2 + w 1 w 2 , of degree 2.
For each nonzero block b b b , the label map of Q 48 Q_{48} Q 48 is quadratic in the coordinates u u u . Table 2 lists κ \kappa κ on each of the three blocks, one row per block. The rows are the output of Algorithm 1.
Table 2. The label map κ \kappa κ of Q 48 Q_{48} Q 48 in the block coordinates ( u , w ) (u,w) ( u , w ) , one row per nonzero coset. With χ S \chi_S χ S of (12) these are the two factors of the indicator (11) , and their product reproduces χ G \chi_G χ G at every point of F 2 9 \mathbb{F}_2^9 F 2 9 .
Equation (8) separates the roles of the nine CH conditions. Conditions S1–S3 depend only on the projective point set P \mathcal{P} P . Conditions K1–K3 constrain the parities of the numbers of columns carrying each logical label. The label map κ \kappa κ appears in KS1–KS3 and identifies where those labels occur.
For Q 48 Q_{48} Q 48 , Equation (12) gives a stabilizer indicator of degree 2, while the even-length consequence of (10) gives a full indicator of degree 6. The degree of the indicator of G G G still does not determine the physical gate pattern. The next subsection determines that pattern.
CCZ criteria and the 48-qubit sign pattern
For the physical gate C T ⊗ n CT^{\otimes n} C T ⊗ n and logical CCZ considered here, comparing coefficients in (3) yields the nine conditions of Table 1 .
Theorem 3.3. Let G = [ K ; S ] G=[K;S] G = [ K ; S ] be the generator matrix of a CSS [ n , 3 , d ] [n,3,d] [ n , 3 , d ] code.
(i) Sufficiency [6 ] . If G G G satisfies the CH conditions, then C T ⊗ n CT^{\otimes n} C T ⊗ n realizes logical CCZ for some diagonal Clifford correction C C C , a product of S S S and C Z CZ C Z gates.
(ii) Necessity [13 Thm. 7, Rem. 8, and Thm. 9] . Conversely, if C T ⊗ n CT^{\otimes n} C T ⊗ n realizes logical CCZ for some diagonal Clifford C C C , then G G G satisfies all nine conditions.
Proof sketch of necessity. Substitute the parity identity (2) into the demand (3) and compare the coefficient of each monomial of degree ≤ 3 \le3 ≤ 3 in z ⃗ = ( x ⃗ , y ⃗ ) \vec{z}=(\vec{x},\vec{y}) z = ( x , y ) . Set f ⃗ = G T z ⃗ ∈ F 2 n \vec{f}=G^{\mathsf{T}}\vec{z}\in\mathbb{F}_2^n f = G T z ∈ F 2 n . The diagonal correction contributes 2 h ( f ⃗ ) 2h(\vec{f}) 2 h ( f ) , where
h ( f ⃗ ) = ∑ j λ j f j + ∑ j < j ′ λ j j ′ f j f j ′ , λ j ∈ { 0 , 1 , 2 , 3 } , λ j j ′ ∈ { 0 , 2 } . (13) h(\vec{f})=\sum_j\lambda_j f_j+\sum_{j<j'}\lambda_{jj'}f_jf_{j'},\qquad\lambda_j\in\{0,1,2,3\},\quad\lambda_{jj'}\in\{0,2\}. \tag*{(13)} h ( f ) = j ∑ λ j f j + j < j ′ ∑ λ j j ′ f j f j ′ , λ j ∈ { 0 , 1 , 2 , 3 } , λ j j ′ ∈ { 0 , 2 } . (13)
Here λ j \lambda_j λ j are the S S S -gate phases, λ j j ′ \lambda_{jj'} λ j j ′ the C Z CZ C Z -gate phases, and all arithmetic is mod 8. The correction can absorb any multiple of 2 at degree one and any multiple of 4 at degree two, and nothing at degree three [20 App. A] . The proof of Theorem 3.3 in Appendix § 10 .§ 2 proves this from the parity identity (2) . So the logical gate is CCZ exactly when every residual coefficient vanishes and the cubic coefficient of x 1 x 2 x 3 x_1x_2x_3 x 1 x 2 x 3 is 4. Imposing that on one monomial of degree at most three at a time, and discarding the coefficients the correction absorbs, leaves exactly the nine parities of Table 1 [6 ] .
A product of single-qubit gates cannot spread an error between qubits. We consider a physical T / T † T/T^\dagger T / T † pattern specified by Γ ∈ { ± 1 } n \Gamma\in\{\pm1\}^n Γ ∈ { ± 1 } n , with + 1 +1 + 1 for T T T and − 1 -1 − 1 for T † T^\dagger T † . Since T S † = T † TS^\dagger= T^\dagger T S † = T † , the pattern is T ⊗ n T^{\otimes n} T ⊗ n followed by S † S^\dagger S † on the qubits with Γ j = − 1 \Gamma_j=-1 Γ j = − 1 . For Γ = 1 ⃗ \Gamma=\vec{1} Γ = 1 , no correction is applied.
Applying a specific T / T † T/T^\dagger T / T † pattern to a codeword v ⃗ ∈ F 2 n \vec{v} \in\mathbb{F}_2^n v ∈ F 2 n defines a signed weight. Interpret each coordinate v j v_j v j as the integer 0 or 1. For a sign vector Γ ∈ { ± 1 } n \Gamma\in\{\pm1\}^n Γ ∈ { ± 1 } n ,
sw Γ ( v ⃗ ) = ∑ j Γ j v j , (14) \operatorname{sw}_{\Gamma}(\vec{v})=\sum_j \Gamma_j v_j, \tag*{(14)} sw Γ ( v ) = j ∑ Γ j v j , (14)
the Hamming weight with each coordinate counted with its sign. Signed weight replaces the Hamming weight ∣ G ⊤ z ⃗ ∣ |G^\top\vec{z}| ∣ G ⊤ z ∣ of (2) whenever the pattern mixes T T T and T † T^\dagger T † .
Definition 3.4 (T / T † T/T^\dagger T / T † implementation). G = [ K ; S ] G=[K;S] G = [ K ; S ] admits a T / T † T/T^\dagger T / T † implementation of CCZ if there is Γ ∈ { ± 1 } n \Gamma\in\{\pm1\}^n Γ ∈ { ± 1 } n with
sw Γ ( K ⊤ x ⃗ + S ⊤ y ⃗ ) ≡ 4 x 1 x 2 x 3 ( m o d 8 ) ∀ x ⃗ ∈ F 2 3 , y ⃗ ∈ F 2 s , (15) \operatorname{sw}_{\Gamma}(K^\top\vec{x}+S^\top\vec{y}) \equiv4x_1x_2x_3 \pmod{8}\qquad\forall\ \vec{x}\in\mathbb{F}_2^3,\ \vec{y}\in\mathbb{F}_2^s, \tag*{(15)} sw Γ ( K ⊤ x + S ⊤ y ) ≡ 4 x 1 x 2 x 3 ( mod 8 ) ∀ x ∈ F 2 3 , y ∈ F 2 s , (15) with sw Γ \operatorname{sw}_{\Gamma} sw Γ the signed weight of (14) . Such an implementation is called single-qubit transversal.
Checking Definition 3.4 need not require evaluating every codeword. Replacing the Hamming weight in Equation (2) by the signed weight (14) gives the following equivalent row conditions for Equation (15) .
Proposition 3.5. The T / T † T/T^\dagger T / T † pattern specified by Γ \Gamma Γ is single-qubit transversal if and only if, for every row g g g , every pair of distinct rows g , g ′ g,g' g , g ′ , and every triple of distinct rows g , g ′ , g ′ ′ g,g',g'' g , g ′ , g ′′ ,
sw Γ ( g ) ≡ 0 ( m o d 8 ) , sw Γ ( g ∧ g ′ ) ≡ 0 ( m o d 4 ) , sw Γ ( g ∧ g ′ ∧ g ′ ′ ) ≡ { 1 ( m o d 2 ) , { g , g ′ , g ′ ′ } = { K 1 , K 2 , K 3 } , 0 ( m o d 2 ) , otherwise . (16) \begin{aligned}
\operatorname{sw}_{\Gamma}(g)&\equiv0 \pmod{8},\\
\operatorname{sw}_{\Gamma}(g\wedge g')&\equiv0 \pmod{4},\\
\operatorname{sw}_{\Gamma}(g\wedge g'\wedge g'')&\equiv
\begin{cases}
1 \pmod{2}, & \{g,g',g''\}=\{K_1,K_2,K_3\},\\
0 \pmod{2}, & \text{otherwise}.
\end{cases} \tag*{(16)}
\end{aligned} sw Γ ( g ) sw Γ ( g ∧ g ′ ) sw Γ ( g ∧ g ′ ∧ g ′′ ) ≡ 0 ( mod 8 ) , ≡ 0 ( mod 4 ) , ≡ { 1 ( mod 2 ) , 0 ( mod 2 ) , { g , g ′ , g ′′ } = { K 1 , K 2 , K 3 } , otherwise . (16) Moreover, the conditions above that contain a stabilizer row make the signed weight independent of the stabilizers: if they hold, then
sw Γ ( K ⊤ x ⃗ + S ⊤ y ⃗ ) ≡ sw Γ ( K ⊤ x ⃗ ) ( m o d 8 ) (17) \operatorname{sw}_{\Gamma}(K^\top\vec{x}+S^\top\vec{y})\equiv\operatorname{sw}_{\Gamma}(K^\top\vec{x})\pmod{8} \tag*{(17)} sw Γ ( K ⊤ x + S ⊤ y ) ≡ sw Γ ( K ⊤ x ) ( mod 8 ) (17) for every x ⃗ \vec{x} x and y ⃗ \vec{y} y .
Once the conditions involving a stabilizer row hold, Equation (17) reduces the check of Equation (15) to the eight logical inputs x ⃗ ∈ F 2 3 \vec{x}\in\mathbb{F}_2^3 x ∈ F 2 3 at y ⃗ = 0 \vec{y}=0 y = 0 .
The proof is given in Appendix § 10 .§ 3 .
Write Γ j = 1 − 2 γ j \Gamma_j=1-2\gamma_j Γ j = 1 − 2 γ j with γ j ∈ { 0 , 1 } \gamma_j\in\{0,1\} γ j ∈ { 0 , 1 } . The first and second conditions in Equation (16) then become
γ ⋅ g ≡ ∣ g ∣ 2 ( m o d 4 ) , γ ⋅ ( g ∧ g ′ ) ≡ ∣ g ∧ g ′ ∣ 2 ( m o d 2 ) , (18) \gamma\cdot g\equiv\frac{|g|}{2}\pmod{4},\qquad\gamma\cdot(g\wedge g')\equiv\frac{|g\wedge g'|}{2}\pmod{2}, \tag*{(18)} γ ⋅ g ≡ 2 ∣ g ∣ ( mod 4 ) , γ ⋅ ( g ∧ g ′ ) ≡ 2 ∣ g ∧ g ′ ∣ ( mod 2 ) , (18)
for every row g g g and pair of distinct rows g , g ′ g,g' g , g ′ . Since Γ j ≡ 1 ( m o d 2 ) \Gamma_j \equiv1 \pmod{2} Γ j ≡ 1 ( mod 2 ) ,
sw Γ ( g ∧ g ′ ∧ g ′ ′ ) ≡ ∣ g ∧ g ′ ∧ g ′ ′ ∣ ( m o d 2 ) . \operatorname{sw}_{\Gamma}(g \wedge g' \wedge g'') \equiv\lvert g \wedge g' \wedge g'' \rvert\pmod{2}. sw Γ ( g ∧ g ′ ∧ g ′′ ) ≡ ∣ g ∧ g ′ ∧ g ′′ ∣ ( mod 2 ) .
The CH conditions therefore imply the third line of Equation (16) for every choice of Γ \Gamma Γ . Substituting Γ j = 1 − 2 γ j \Gamma_j=1-2\gamma_j Γ j = 1 − 2 γ j directly into (15) gives a system mod 4 whose binary solutions are exactly the single-qubit transversal patterns, as shown in the following Corollary.
Corollary 3.6. Let G = [ K ; S ] G=[K;S] G = [ K ; S ] satisfy the nine CH conditions of Table 1 . Then G G G admits a T / T † T/T^\dagger T / T † implementation of C C Z CCZ C C Z (Definition 3.4 ) if and only if the system
γ ⋅ c ≡ 1 2 ∣ c ∣ − 2 x 1 x 2 x 3 ( m o d 4 ) , c = K T x ⃗ + S T y ⃗ , (19) \gamma\cdot c \equiv\frac{1}{2}\lvert c\rvert-2x_1x_2x_3 \pmod{4}, \qquad c=K^{\mathsf{T}}\vec{x}+S^{\mathsf{T}}\vec{y}, \tag*{(19)} γ ⋅ c ≡ 2 1 ∣ c ∣ − 2 x 1 x 2 x 3 ( mod 4 ) , c = K T x + S T y , (19) has a solution with γ j ∈ { 0 , 1 } \gamma_j \in\{0,1\} γ j ∈ { 0 , 1 } for all j j j .
Proof. Write Γ j = 1 − 2 γ j \Gamma_j=1-2\gamma_j Γ j = 1 − 2 γ j with γ j ∈ { 0 , 1 } \gamma_j \in\{0,1\} γ j ∈ { 0 , 1 } . Then sw Γ ( c ) = ∣ c ∣ − 2 ( γ ⋅ c ) \operatorname{sw}_{\Gamma}(c)=\lvert c\rvert-2(\gamma\cdot c) sw Γ ( c ) = ∣ c ∣ − 2 ( γ ⋅ c ) , and condition (15) reads ∣ c ∣ − 2 ( γ ⋅ c ) ≡ 4 x 1 x 2 x 3 ( m o d 8 ) \lvert c\rvert-2(\gamma\cdot c)\equiv4x_1x_2x_3\pmod{8} ∣ c ∣ − 2 ( γ ⋅ c ) ≡ 4 x 1 x 2 x 3 ( mod 8 ) . Conditions K1 and S1 make every generator row, and hence every codeword c c c , even. Both sides of Equation (15) are therefore even, and division by 2 gives (19) . The left side ∑ j c j γ j \sum_j c_j\gamma_j ∑ j c j γ j is linear over Z 4 \mathbb{Z}_4 Z 4 in γ \gamma γ , and the right side is a constant for each codeword.
Step 5 of Algorithm 1 solves (19) for a binary γ \gamma γ and accepts a code only when a solution exists (Appendix § 9 ). The [ 47 , 3 , 3 ] [47,3,3] [ 47 , 3 , 3 ] code of [1 ] satisfies the CH conditions but fails this test:
Example 3.7. The [ 47 , 3 , 3 ] [47,3,3] [ 47 , 3 , 3 ] code of [1 ] satisfies the nine CH conditions (d X = 16 d_X=16 d X = 16 , d Z = 3 d_Z=3 d Z = 3 , s = 6 s=6 s = 6 , projective support). For it, Equation (19) is a Z 4 \mathbb{Z}_4 Z 4 -linear system in 47 unknowns, one equation per codeword, and elimination over Z 4 \mathbb{Z}_4 Z 4 shows it inconsistent. So the code admits no T / T † T/T^\dagger T / T † implementation of transversal C C Z CCZ C C Z , and any diagonal Clifford correction for it needs entangling C Z CZ C Z gates.
For FG48, the following identity reduces the signed-weight calculation to Hamming weights on the three coset blocks of Corollary 2.4.
Proposition 3.8. Let c = K T x ⃗ + S T y ⃗ c=K^{\mathsf{T}}\vec{x}+S^{\mathsf{T}}\vec{y} c = K T x + S T y , and let c b c_b c b and γ b \gamma_b γ b be the restrictions of c c c and the flip vector γ \gamma γ to block b b b of Corollary 2.4. If Γ j = ( − 1 ) γ j \Gamma_j=(-1)^{\gamma_j} Γ j = ( − 1 ) γ j , then
sw Γ ( c ) = ∑ b ( ∣ γ b + c b ∣ − ∣ γ b ∣ ) . (20) \operatorname{sw}_{\Gamma}(c)=\sum_b\left(\lvert\gamma_b+c_b\rvert-\lvert\gamma_b\rvert\right). \tag*{(20)} sw Γ ( c ) = b ∑ ( ∣ γ b + c b ∣ − ∣ γ b ∣ ) . (20) Thus the pattern specified by Γ \Gamma Γ is single-qubit transversal if and only if, for every x ⃗ , y ⃗ \vec{x},\vec{y} x , y ,
∑ b ∣ γ b + c b ∣ ≡ ∑ b ∣ γ b ∣ + 4 x 1 x 2 x 3 ( m o d 8 ) . (21) \sum_b\lvert\gamma_b+c_b\rvert\equiv\sum_b\lvert\gamma_b\rvert+4x_1x_2x_3 \pmod{8}. \tag*{(21)} b ∑ ∣ γ b + c b ∣ ≡ b ∑ ∣ γ b ∣ + 4 x 1 x 2 x 3 ( mod 8 ) . (21) If all conditions in Proposition 3.5 that contain a stabilizer row hold, the left hand side is independent of y ⃗ \vec{y} y modulo 8, and it suffices to check the following equation for the eight x ⃗ ∈ F 2 3 \vec{x}\in\mathbb{F}_2^3 x ∈ F 2 3 :
∑ b ∣ γ b + ( K T x ⃗ ) b ∣ ≡ ∑ b ∣ γ b ∣ + 4 x 1 x 2 x 3 ( m o d 8 ) . (22) \sum_b\lvert\gamma_b+(K^{\mathsf{T}}\vec{x})_b\rvert\equiv\sum_b\lvert\gamma_b\rvert+4x_1x_2x_3 \pmod{8}. \tag*{(22)} b ∑ ∣ γ b + ( K T x ) b ∣ ≡ b ∑ ∣ γ b ∣ + 4 x 1 x 2 x 3 ( mod 8 ) . (22) Equations (20) –(22) apply to the Boolean block restrictions c b c_b c b and γ b \gamma_b γ b with no degree restriction.
To apply Proposition 3.8 to F G 48 \mathrm{FG}_{48} FG 48 , take S = S F G 48 S=S_{\mathrm{FG}_{48}} S = S FG 48 from (7) and the logical rows K K K from Table 2 . The resulting G = [ K ; S ] G=[K;S] G = [ K ; S ] has rank G = 9 G=9 G = 9 , rank S = 6 S=6 S = 6 , d X = 16 d_X=16 d X = 16 , and d Z = 3 d_Z=3 d Z = 3 . With the stabilizer rows S S S and logical rows K K K fixed, we choose the T / T † T/T^\dagger T / T † exponents Γ j = ( − 1 ) γ j \Gamma_j=(-1)^{\gamma_j} Γ j = ( − 1 ) γ j by solving Equation (19) for the flip vector γ ∈ F 2 48 \gamma\in\mathbb{F}_2^{48} γ ∈ F 2 48 . The polynomial γ ( u , w ) \gamma(u,w) γ ( u , w ) below specifies this vector.
Proposition 3.9. Index the columns of S F G 48 S_{\mathrm{FG}_{48}} S FG 48 by their coordinates ( u , w ) (u,w) ( u , w ) of (7) , writing u = ( u 1 , u 2 , u 3 , u 4 ) u=(u_1,u_2,u_3,u_4) u = ( u 1 , u 2 , u 3 , u 4 ) for the four rows of A A A and w w w for the coset label. The T / T † T/T^\dagger T / T † pattern of Q 48 Q_{48} Q 48 is obtained by evaluating the following polynomial. Write ev P \operatorname{ev}_P ev P for the evaluation map p ↦ ( p ( β ) ) β ∈ P p\mapsto(p(\beta))_{\beta\in P} p ↦ ( p ( β ) ) β ∈ P .
γ ( u , w ) = u 3 + w 1 Q 1 ( u ) + w 2 Q 2 ( u ) , Q 1 = u 1 + u 2 + u 3 + u 1 u 3 + u 2 u 3 + u 2 u 4 , Q 2 = u 3 + u 4 + u 1 u 2 + u 1 u 4 + u 3 u 4 . (23) \begin{aligned}
\gamma(u,w)&=u_3+w_1Q_1(u)+w_2Q_2(u),\\
Q_1&=u_1+u_2+u_3+u_1u_3+u_2u_3+u_2u_4,\\
Q_2&=u_3+u_4+u_1u_2+u_1u_4+u_3u_4. \tag*{(23)}
\end{aligned} γ ( u , w ) Q 1 Q 2 = u 3 + w 1 Q 1 ( u ) + w 2 Q 2 ( u ) , = u 1 + u 2 + u 3 + u 1 u 3 + u 2 u 3 + u 2 u 4 , = u 3 + u 4 + u 1 u 2 + u 1 u 4 + u 3 u 4 . (23)
The flip vector is γ = ev P ( γ ( u , w ) ) ∈ F 2 48 \gamma=\operatorname{ev}_P(\gamma(u,w))\in\mathbb{F}_2^{48} γ = ev P ( γ ( u , w )) ∈ F 2 48 . The flip vector has weight 22. The resulting 26 T + 22 T † T+22T^\dagger T + 22 T † pattern is a single-qubit transversal implementation of logical CCZ for Q 48 Q_{48} Q 48 .
The proof is given in Appendix § 10 .§ 5 .
Figure 1. The T / T † T/T^\dagger T / T † pattern of Q 48 Q_{48} Q 48 in closed form (Proposition 3.9). The three panels show the flip vector γ ( u , w ) = u 3 + w 1 Q 1 ( u ) + w 2 Q 2 ( u ) \gamma(u,w)=u_3+w_1Q_1(u)+w_2Q_2(u) γ ( u , w ) = u 3 + w 1 Q 1 ( u ) + w 2 Q 2 ( u ) on the three cosets of (7) . Each panel lists the 16 points u = ( u 1 , u 2 , u 3 , u 4 ) u=(u_1,u_2,u_3,u_4) u = ( u 1 , u 2 , u 3 , u 4 ) of one coset, rows indexed by ( u 1 , u 2 ) (u_1,u_2) ( u 1 , u 2 ) and columns by ( u 3 , u 4 ) (u_3,u_4) ( u 3 , u 4 ) , with T T T at γ = 0 \gamma=0 γ = 0 and T † T^\dagger T † at γ = 1 \gamma=1 γ = 1 . The flip counts are 6, 6, 10, resulting in a total of 26 T T T and 22 T † T^\dagger T † .
The code Q 48 Q_{48} Q 48 is not an isolated example. Building S S S from a larger subspace complement, as in Corollary 2.4, also admits CSS codes with a T / T † T/T^\dagger T / T † implementation of logical CCZ. Table 3 lists, for each ( p , q ) (p,q) ( p , q ) with s = p + q ≤ 9 s=p+q\leq9 s = p + q ≤ 9 , the codes of this kind that we found. Each of these codes pairs the subspace-complement matrix S S S of Corollary 2.4 with three logical rows K K K that satisfy the CH conditions. For Q 48 Q_{48} Q 48 , the SAT encoding of § 1 found the logical rows. For the longer codes, the logical rows come from structured label maps κ \kappa κ (explicit polynomials in the block coordinates ( u , w ) (u,w) ( u , w ) , and maps invariant under a cyclic symmetry of the support), from random label maps of low degree, and from lifts of codes on smaller supports. A candidate was kept when it satisfied the CH conditions and Equation (19) had a binary solution. The exhaustive pair enumeration of Algorithm 1 was not used for these codes.
Table 3. CSS codes with a T / T † T/T^{\dagger} T / T † implementation of logical CCZ whose stabilizer code is the subspace complement P G ( p + q − 1 , 2 ) ∖ P G ( p − 1 , 2 ) \mathrm{PG}(p+q-1,2)\setminus\mathrm{PG}(p-1,2) PG ( p + q − 1 , 2 ) ∖ PG ( p − 1 , 2 ) of Corollary 2.4, for p + q ≤ 9 p+q \le9 p + q ≤ 9 . Each cell gives the parameters [ [ n , 3 , d ] ] [\![n,3,d]\!] [ [ n , 3 , d ] ] , where d = d Z < d X d=d_Z<d_X d = d Z < d X , and the number of inequivalent codes found. Two codes count as inequivalent when their distances or the weight enumerators of their codes C 1 C_1 C 1 differ. The count marked ⋆ \star ⋆ is complete, and the others are lower bounds. “None” marks the supports excluded by Theorem 4.5 .
The stabilizer code F G 48 \mathrm{FG}_{48} FG 48 is unique by Proposition 2.3 , but the logical rows are not. F G 48 \mathrm{FG}_{48} FG 48 has exactly two inequivalent sets of compatible K K K rows with a single-qubit transversal CCZ, and Q 48 Q_{48} Q 48 is one of them. For the other supports the numbers of inequivalent codes are lower bounds. Supports with p ≤ 3 p \le3 p ≤ 3 do not admit any valid code. The supports with ( p , q ) = ( 4 , 1 ) (p,q)=(4,1) ( p , q ) = ( 4 , 1 ) and ( 5 , 1 ) (5,1) ( 5 , 1 ) have n ≤ 38 n \le38 n ≤ 38 and are excluded by Theorem 4.5 .
In Section 4, we use the nine CH conditions to derive a lower bound on block-length.
A length lower bound
For the logical T T T gate, Koutsioumpas, Banfield, and Kay prove the analogous statement that the 15-qubit Reed–Muller code is the smallest distance-3 code with a transversal non-Clifford gate [29 ] . Here, we show that no CSS code with k = 3 k=3 k = 3 and d Z ≥ 3 d_Z \ge3 d Z ≥ 3 satisfies the nine CH conditions at any length n ≤ 38 n \le38 n ≤ 38 and any stabilizer rank (Table 4 ).
Table 4. Lengths settled by our lower bound and the concurrent classification, with the two nearest comparison points.
To exclude smaller codes, we first restrict the possible stabilizer supports using S1–S3, then ask whether any choice of logical rows satisfies K1–K3 and KS1–KS3. Distinct nonzero stabilizer columns guarantee d Z ≥ 3 d_Z \ge3 d Z ≥ 3 by Lemma 2.1 . For n ≤ 38 n \le38 n ≤ 38 , Lemma 4.4 reduces the problem to s ≤ 8 s \le8 s ≤ 8 . Appendix § 11 .§ 4 covers the supports at these ranks and shows that none admits logical rows satisfying all six remaining CH conditions.
Admissible block lengths
We first discuss constraints on the block length n n n by conditions S1–S3.
Theorem 4.1 (Admissible block lengths). Conditions S1–S3 hold if and only if χ S = c \chi_S=c χ S = c or χ S = c + δ 0 \chi_S=c+\delta_0 χ S = c + δ 0 for some c ∈ RM ( s − 4 , s ) c\in\operatorname{RM}(s-4,s) c ∈ RM ( s − 4 , s ) , where δ 0 \delta_0 δ 0 is the indicator of the origin, that is, χ S ∈ RM ( s − 4 , s ) ∪ ( δ 0 + RM ( s − 4 , s ) ) \chi_S\in\operatorname{RM}(s-4,s)\cup\left(\delta_0+\operatorname{RM}(s-4,s)\right) χ S ∈ RM ( s − 4 , s ) ∪ ( δ 0 + RM ( s − 4 , s ) ) . The lengths allowed by S1–S3 together with rank S = s \operatorname{rank}S=s rank S = s are exactly n = ∣ c ∣ − c ( 0 ) n=|c|-c(0) n = ∣ c ∣ − c ( 0 ) for c ∈ RM ( s − 4 , s ) c\in\operatorname{RM}(s-4,s) c ∈ RM ( s − 4 , s ) satisfying
span { β ∈ F 2 s ∖ { 0 } : c ( β ) = 1 } = F 2 s . \operatorname{span}\{\beta\in\mathbb{F}_2^s\setminus\{0\}:c(\beta)=1\}=\mathbb{F}_2^s. span { β ∈ F 2 s ∖ { 0 } : c ( β ) = 1 } = F 2 s .
The proof is given in Appendix § 11 .2.1.
Every omitted length at s = 5 , 6 , 7 s=5,6,7 s = 5 , 6 , 7 in the range 15 ≤ n ≤ 38 15\leq n\leq38 15 ≤ n ≤ 38 is excluded by S1–S3. A listed length has stabilizer rank s s s only when its support spans F 2 s \mathbb{F}_2^s F 2 s .
The s = 5 s=5 s = 5 row follows from the weights of first-order Reed–Muller codewords. The closed weight-enumerator formula for second-order Reed–Muller codes gives the s = 6 s=6 s = 6 row [31 ] . For s = 7 s=7 s = 7 , three sources cover three ranges of weights. Kasami–Tokura [32 ] determine the weights of RM ( 3 , 7 ) \operatorname{RM}(3,7) RM ( 3 , 7 ) below 2 d = 32 2d=32 2 d = 32 , which are 16, 24, and 28. Ax’s theorem [34, Sec. 4.1.5] makes every weight of RM ( 3 , 7 ) \operatorname{RM}(3,7) RM ( 3 , 7 ) divisible by 4, so 32 and 36 are the only possible weights from 32 to 39. Kasami–Tokura–Azumi [33 ] classify the codewords of weight below 2.5 d = 40 2.5d=40 2.5 d = 40 , which supplies the normal forms at these weights used in Appendix § 11 .§ 4 .
The candidate column of Table 5 lists, for each weight ∣ c ∣ |c| ∣ c ∣ , the lengths n = ∣ c ∣ n=|c| n = ∣ c ∣ and n = ∣ c ∣ − 1 n=|c|-1 n = ∣ c ∣ − 1 given by Theorem 4.1 . Lemma 4.2 excludes n = 15 , 16 n=15,16 n = 15 , 16 because K3 is unsatisfiable on the supports defined below.
Table 5. Relevant Reed–Muller weights and the candidate block lengths obtained from Theorem 4.1 .
Lemma 4.2. Call a set an affine flat of dimension m m m if it equals v + U v+U v + U for a vector v ∈ F 2 s v\in\mathbb{F}_2^s v ∈ F 2 s and an m m m -dimensional linear subspace U ⊆ F 2 s U\subseteq\mathbb{F}_2^s U ⊆ F 2 s (so the set has 2 m 2^m 2 m elements). If the support P \mathcal{P} P is an affine flat of dimension m ≤ 4 m\leq4 m ≤ 4 , or such a flat with the origin deleted, no label map satisfies the CH conditions, at any stabilizer rank s s s . In particular, n ∈ { 15 , 16 } n\in\{15,16\} n ∈ { 15 , 16 } are excluded uniformly in s s s .
The proof is given in Appendix § 11 .2.3.
Excluding lengths below 39
Proposition 4.3 (Stabilizer-rank lower bound). For k = 3 k=3 k = 3 and d Z ≥ 3 d_Z\geq3 d Z ≥ 3 , no multiplicity-free code (Lemma 2.1 ) satisfying the CH conditions exists with s ≤ 5 s\leq5 s ≤ 5 (equivalently r = k + s ≤ 8 r=k+s\leq8 r = k + s ≤ 8 ). Hence every such code has s ≥ 6 s\geq6 s ≥ 6 .
The proof is given in Appendix § 11 .2.4.
Lemma 4.4 (Stabilizer-rank reduction). Let G = [ K ; S ] G=[K;S] G = [ K ; S ] satisfy the nine CH conditions with k = 3 k=3 k = 3 , d Z ≥ 3 d_Z\geq3 d Z ≥ 3 , and C 2 C_2 C 2 projective (§ 2 ) at stabilizer rank s s s , meaning that S S S has s s s independent rows. If 2 s − 1 > n + ⌊ n 2 ⌋ 2^s-1>n+\left\lfloor\frac{n}{2}\right\rfloor 2 s − 1 > n + ⌊ 2 n ⌋ , then G G G reduces to an instance with strictly smaller stabilizer rank of length at most n n n with k = 3 k=3 k = 3 , all nine CH conditions, d Z ≥ 3 d_Z\geq3 d Z ≥ 3 , and C 2 C_2 C 2 projective.
The proof is given in Appendix D.3.1.
For n ≤ 38 n \le38 n ≤ 38 , Proposition 4.3 excludes s ≤ 5 s \le5 s ≤ 5 , and Lemma 4.4 reduces s ≥ 9 s \ge9 s ≥ 9 , leaving s = 6 , 7 , 8 s = 6, 7, 8 s = 6 , 7 , 8 for the finite support and logical-label analysis in Appendix D.4.
The low-weight results of [32 , 33 ] provide normal forms for the Reed–Muller codeword c c c below the bound ∣ c ∣ < 2.5 d = 40 |c| < 2.5d = 40 ∣ c ∣ < 2.5 d = 40 , where d = 16 d = 16 d = 16 is the minimum distance of RM ( s − 4 , s ) \operatorname{RM}(s - 4, s) RM ( s − 4 , s ) . To apply these normal forms to every candidate with n ≤ 38 n \le38 n ≤ 38 , we must check that the corresponding codeword c c c lies below this weight bound. Theorem 4.1 gives ∣ c ∣ = n |c| = n ∣ c ∣ = n or n + 1 n + 1 n + 1 , so either choice has weight at most 39 and is covered by the classification. Appendix D.4 uses the applicable normal forms to cover the possible supports, then rules out logical rows satisfying K1–K3 and KS1–KS3 on each support.
Theorem 4.5 (Length lower bound). No CSS code with k = 3 k = 3 k = 3 and d Z ≥ 3 d_Z \ge3 d Z ≥ 3 satisfying the nine CH conditions (Theorem 3.3 ) exists with n ≤ 38 n \le38 n ≤ 38 , at any stabilizer rank.
The proof is given in Appendix D.4.
Figure 2 summarizes the exclusions by block length and stabilizer rank.
Figure 2. Gray band at s ≤ 5 s \le5 s ≤ 5 — Excluded by Proposition 4.3. Blue band at s ≥ 9 s \ge9 s ≥ 9 — Reduced by Lemma 4.4 after Equation (67) (Step 1). Blue band at s = 8 s = 8 s = 8 — Reduced by Lemma 4.4 after Equation (68) (Step 3). s = 6 , 7 s = 6, 7 s = 6 , 7 gray intervals — Excluded by Theorem 4.1 and Table 5. Filled / open circles n = ∣ c ∣ n = |c| n = ∣ c ∣ / n = ∣ c ∣ − 1 n = |c| - 1 n = ∣ c ∣ − 1 by Theorem 4.1, before rank, geometry, and label checks. Crosses (n = 15 , 16 n = 15, 16 n = 15 , 16 ) — Excluded by Lemma 4.2 (Step 2). Remaining s = 6 , 7 s = 6, 7 s = 6 , 7 circles — Table 10 records their dispositions in its s = 6 , 7 s = 6, 7 s = 6 , 7 rows (Step 2). Orange region and circles — The s = 8 s = 8 s = 8 rows of Table 10 cover the weights retained by Equation (68) and Steps 3–7. Arguments excluding 15 ≤ n ≤ 38 15 \le n \le38 15 ≤ n ≤ 38 at each stabilizer rank. Step numbers refer to Appendix D.4.
Our argument proves the lower bound through n = 38 n = 38 n = 38 independently of the concurrent classification of Wills, Jain, and Singh [2 ] . Their classification excludes the remaining lengths 39 ≤ n ≤ 46 39 \le n \le46 39 ≤ n ≤ 46 for quasi-transversal CCZ with k = 3 k = 3 k = 3 and d Z ≥ 3 d_Z \ge3 d Z ≥ 3 .
Discussion and open problems
In this work, we set out to construct a small CSS code whose non-Clifford logical CCZ is realized by physical T / T † T/T^\dagger T / T † gates. Applying CCZ directly to the encoded block provides an alternative to magic-state injection. Projectivity of C 2 C_2 C 2 guarantees d Z ≥ 3 d_Z \ge3 d Z ≥ 3 , and 8divisibility enforces the stabilizer-only CH conditions. The logical rows must satisfy the remaining CH conditions, while Equation (16) constrains the physical signs.
The same codes also give magic-state distillation protocols [3 , 6 ] . Applying the physical rotations to an encoded ∣ + ⟩ ⊗ 3 \lvert+\rangle^{\otimes3} ∣ + ⟩ ⊗ 3 with n n n noisy T T T gates, then measuring the stabilizers and decoding, yields a CCZ state. Because d Z ≥ 3 d_Z \ge3 d Z ≥ 3 , an error from one or two faulty T T T gates is either detected or acts trivially. Distillation permits a diagonal Clifford correction, so the nine CH conditions suffice there. Jacinto et al. use the ⟦ 47 , 3 , 3 ⟧ \llbracket47, 3, 3\rrbracket [ [ 47 , 3 , 3 ] ] code for a distance-3, 47-to-1 CCZ distillation protocol [1 ] .
At length 48, Proposition 2.3 identifies F G 48 \mathrm{FG}_{48} FG 48 as the unique projective 8-divisible [ 48 , 6 ] [48, 6] [ 48 , 6 ] code up to a permutation of coordinates. The code Q 48 \mathcal{Q}_{48} Q 48 completes this support to a ⟦ 48 , 3 , 3 ⟧ \llbracket48, 3, 3\rrbracket [ [ 48 , 3 , 3 ] ] code with a single-qubit transversal logical CCZ. Proposition 3.9 verifies the 26 T + 22 T † 26T + 22T^{\dagger} 26 T + 22 T † pattern from its explicit polynomial formula.
To determine how small such codes can be, Theorem 4.5 excludes every CSS code with three logical qubits, d Z ≥ 3 d_Z \ge3 d Z ≥ 3 , and the nine CH conditions below length 39. The bound applies beyond subspace-complement supports. The concurrent classification of Wills, Jain, and Singh [2 ] excludes lengths 39 ≤ n ≤ 46 39 \le n \le46 39 ≤ n ≤ 46 in the nine-CH-condition class. Together with the code of Jacinto et al., the classification establishes the minimum length 47 when a diagonal Clifford correction is allowed.
Several problems remain open. The subspace-complement supports in Corollary 2.4 with n ≥ 48 n \ge48 n ≥ 48 that admit a single-qubit transversal CCZ implementation are not yet characterized. A further direction is to adapt the construction of Q 48 \mathcal{Q}_{48} Q 48 and the arguments for Theorem 4.5 to other non-Clifford gates and to more than three logical qubits.
Code
The companion repository is https://github.com/jerrylvx/gate2code-public .
Acknowledgements
This work was supported by the National Science Foundation (NSF) Software-Tailored Architecture for Quantum codesign (STAQ) Project (Phy-2325080) and the NSF Quantum Leap Challenge Institute on Robust Quantum Simulation (MCP-2120757 and MCP-2553574).
The authors want to thank Robert Calderbank for pointing us to the classical coding theory literature on two-weight and finite geometry codes and providing feedback on an earlier version of the draft. The authors also want to thank June Vanlerberghe, Arianna Meinking, and Eren Guttentag for feedback during preparation of the draft.
The authors used AI assistants for literature review, exposition, computer simulations and proofreading. The authors independently verified all mathematical claims, constructions, and reported numbers. The authors take full responsibility for the content.
Shared algebra and coding theory facts
Boolean functions and Reed–Muller codes
This subsection collects the facts about Boolean functions on F 2 m \mathbb{F}_2^m F 2 m and Reed–Muller codes that Appendices § 9 –§ 11 use.
Lemma A.1 (XOR expansion). For bits a 1 , … , a m ∈ { 0 , 1 } a_1,\ldots,a_m \in\{0,1\} a 1 , … , a m ∈ { 0 , 1 } ,
a 1 ⊕ ⋯ ⊕ a m = ∑ ∅ ≠ T ⊆ { 1 , … , m } ( − 2 ) ∣ T ∣ − 1 ∏ i ∈ T a i . (24) a_1 \oplus\cdots\oplus a_m = \sum_{\varnothing\ne T \subseteq\{1,\ldots,m\}} (-2)^{|T|-1} \prod_{i\in T} a_i. \tag*{(24)} a 1 ⊕ ⋯ ⊕ a m = ∅ = T ⊆ { 1 , … , m } ∑ ( − 2 ) ∣ T ∣ − 1 i ∈ T ∏ a i . (24) Proof. Induct on m m m , starting from the two-bit case a ⊕ b = a + b − 2 a b a \oplus b = a+b-2ab a ⊕ b = a + b − 2 ab , with the induction hypothesis
a 1 ⊕ ⋯ ⊕ a m − 1 = ∑ ∅ ≠ T ⊆ { 1 , … , m − 1 } ( − 2 ) ∣ T ∣ − 1 ∏ i ∈ T a i . a_1 \oplus\cdots\oplus a_{m-1} = \sum_{\varnothing\ne T \subseteq\{1,\ldots,m-1\}} (-2)^{|T|-1} \prod_{i\in T} a_i. a 1 ⊕ ⋯ ⊕ a m − 1 = ∅ = T ⊆ { 1 , … , m − 1 } ∑ ( − 2 ) ∣ T ∣ − 1 i ∈ T ∏ a i . Let a = a m a=a_m a = a m , b = a 1 ⊕ ⋯ ⊕ a m − 1 b=a_1 \oplus\cdots\oplus a_{m-1} b = a 1 ⊕ ⋯ ⊕ a m − 1 and apply the two-bit case.
Corollary A.2 (XOR and Hamming weight). For bits a , b ∈ { 0 , 1 } a,b \in\{0,1\} a , b ∈ { 0 , 1 } , 2 a b = a + b − ( a ⊕ b ) 2ab=a+b-(a\oplus b) 2 ab = a + b − ( a ⊕ b ) . Consequently, if ξ \xi ξ and η \eta η are binary strings of the same length, ξ ⊕ η \xi\oplus\eta ξ ⊕ η denotes coordinatewise XOR, ∣ ξ ∣ |\xi| ∣ ξ ∣ denotes Hamming weight, and ∧ \wedge ∧ denotes entrywise product, then
∣ ξ ⊕ η ∣ = ∣ ξ ∣ + ∣ η ∣ − 2 ∣ ξ ∧ η ∣ . (25) |\xi\oplus\eta| = |\xi| + |\eta| - 2|\xi\wedge\eta|. \tag*{(25)} ∣ ξ ⊕ η ∣ = ∣ ξ ∣ + ∣ η ∣ − 2∣ ξ ∧ η ∣. (25) For binary strings ξ , ξ ′ , η , η ′ \xi,\xi',\eta,\eta' ξ , ξ ′ , η , η ′ of the same length,
∣ ( ξ ⊕ ξ ′ ) ∧ η ∧ η ′ ∣ ≡ ∣ ξ ∧ η ∧ η ′ ∣ + ∣ ξ ′ ∧ η ∧ η ′ ∣ ( m o d 2 ) . |(\xi\oplus\xi') \wedge\eta\wedge\eta'| \equiv|\xi\wedge\eta\wedge\eta'| + |\xi' \wedge\eta\wedge\eta'| \pmod{2}. ∣ ( ξ ⊕ ξ ′ ) ∧ η ∧ η ′ ∣ ≡ ∣ ξ ∧ η ∧ η ′ ∣ + ∣ ξ ′ ∧ η ∧ η ′ ∣ ( mod 2 ) . Setting η ′ = 1 \eta'=1 η ′ = 1 , the all-ones string, gives the same additivity for ∣ ξ ∧ η ∣ |\xi\wedge\eta| ∣ ξ ∧ η ∣ , and setting η = η ′ = 1 \eta=\eta'=1 η = η ′ = 1 gives it for ∣ ξ ∣ |\xi| ∣ ξ ∣ .
Proof. Applying 2 a b = a + b − ( a ⊕ b ) 2ab=a+b-(a\oplus b) 2 ab = a + b − ( a ⊕ b ) coordinatewise gives (25) , and distributivity of ∧ \wedge ∧ over ⊕ \oplus ⊕ gives the overlap-parity claim.
Lemma A.3 (Coefficient extraction and support parity). Let K K K be Z \mathbb{Z} Z or F 2 \mathbb{F}_2 F 2 , and let F : F 2 m → K F:\mathbb{F}_2^m \to K F : F 2 m → K have the multilinear expansion F = ∑ R ⊆ { 1 , … , m } c R m R F=\sum_{R\subseteq\{1,\ldots,m\}}c_Rm_R F = ∑ R ⊆ { 1 , … , m } c R m R with c R ∈ K c_R\in K c R ∈ K , where m R ( v ) = ∏ i ∈ R v i m_R(v)=\prod_{i\in R}v_i m R ( v ) = ∏ i ∈ R v i . If 1 T ′ \mathbf{1}_{T'} 1 T ′ is one on T ′ T' T ′ and zero elsewhere, then for every T ⊆ { 1 , … , m } T\subseteq\{1,\ldots,m\} T ⊆ { 1 , … , m }
c T = ∑ T ′ ⊆ T ( − 1 ) ∣ T ∣ − ∣ T ′ ∣ F ( 1 T ′ ) . (26) c_T=\sum_{T'\subseteq T}(-1)^{|T|-|T'|}F(\mathbf{1}_{T'}). \tag*{(26)} c T = T ′ ⊆ T ∑ ( − 1 ) ∣ T ∣ − ∣ T ′ ∣ F ( 1 T ′ ) . (26) In particular, for K = F 2 K=\mathbb{F}_2 K = F 2 and T = { 1 , … , m } T=\{1,\ldots,m\} T = { 1 , … , m } , every sign equals 1 and 1 T ′ \mathbf{1}_{T'} 1 T ′ runs over all of F 2 m \mathbb{F}_2^m F 2 m , so
c { 1 , … , m } = ∑ v ∈ F 2 m F ( v ) . (27) c_{\{1,\ldots,m\}}=\sum_{v\in\mathbb{F}_2^m}F(v). \tag*{(27)} c { 1 , … , m } = v ∈ F 2 m ∑ F ( v ) . (27) Proof. Substitution of the multilinear expansion into the first sum makes the coefficient of c R c_R c R equal to ∑ R ⊆ T ′ ⊆ T ( − 1 ) ∣ T ∣ − ∣ T ′ ∣ = ( 1 − 1 ) ∣ T ∣ − ∣ R ∣ \sum_{R\subseteq T'\subseteq T}(-1)^{|T|-|T'|}=(1-1)^{|T|-|R|} ∑ R ⊆ T ′ ⊆ T ( − 1 ) ∣ T ∣ − ∣ T ′ ∣ = ( 1 − 1 ) ∣ T ∣ − ∣ R ∣ , which is one for R = T R=T R = T and zero otherwise. The case K = F 2 K=\mathbb{F}_2 K = F 2 and T = { 1 , … , m } T=\{1,\ldots,m\} T = { 1 , … , m } gives (27) .
Lemma A.4 (Origin indicator). On F 2 m \mathbb{F}_2^m F 2 m , let δ 0 ( v ) = ∏ i = 1 m ( 1 + v i ) \delta_0(v)=\prod_{i=1}^m(1+v_i) δ 0 ( v ) = ∏ i = 1 m ( 1 + v i ) be the indicator of the origin. The indicator has degree m m m , and
⟨ δ 0 , 1 ⟩ = 1 , ⟨ δ 0 , m T ⟩ = m T ( 0 ) = 0 for every nonempty T ⊆ { 1 , … , m } . (28) \langle\delta_0,1\rangle=1,\qquad\langle\delta_0,m_T\rangle=m_T(0)=0\quad\text{for every nonempty }T\subseteq\{1,\ldots,m\}. \tag*{(28)} ⟨ δ 0 , 1 ⟩ = 1 , ⟨ δ 0 , m T ⟩ = m T ( 0 ) = 0 for every nonempty T ⊆ { 1 , … , m } . (28) Proof. The product defining δ 0 \delta_0 δ 0 contains the degree-m m m monomial v 1 ⋯ v m v_1\cdots v_m v 1 ⋯ v m and equals one only at the origin. Hence its inner product with a function f f f is f ( 0 ) f(0) f ( 0 ) . Equation (28) follows for f = 1 f=1 f = 1 and for every nonconstant monomial.
Lemma A.5 (Affine changes of Boolean functions). An invertible affine map on F 2 m \mathbb{F}_2^m F 2 m is a map L : F 2 m → F 2 m L:\mathbb{F}_2^m \to\mathbb{F}_2^m L : F 2 m → F 2 m of the form
L ( x ) = A x + b . (29) L(x) = Ax + b. \tag*{(29)} L ( x ) = A x + b . (29) where A ∈ GL ( m , 2 ) A \in\operatorname{GL}(m,2) A ∈ GL ( m , 2 ) and b ∈ F 2 m b \in\mathbb{F}_2^m b ∈ F 2 m . For a set E ⊆ F 2 m E \subseteq\mathbb{F}_2^m E ⊆ F 2 m , write L ( E ) = { L ( x ) : x ∈ E } L(E)=\{L(x):x\in E\} L ( E ) = { L ( x ) : x ∈ E } for its direct image. Boolean functions c , c ′ : F 2 m → F 2 c,c':\mathbb{F}_2^m \to\mathbb{F}_2 c , c ′ : F 2 m → F 2 are affine-equivalent when c ′ = c ∘ L − 1 c'=c\circ L^{-1} c ′ = c ∘ L − 1 for such a map L L L . The induced transformation satisfies
supp ( c ′ ) = L ( supp ( c ) ) , ∣ c ′ ∣ = ∣ c ∣ , deg c ′ = deg c . \operatorname{supp}(c') = L(\operatorname{supp}(c)), \qquad|c'| = |c|, \qquad\deg c' = \deg c. supp ( c ′ ) = L ( supp ( c )) , ∣ c ′ ∣ = ∣ c ∣ , deg c ′ = deg c . Proof. For y ∈ F 2 m y\in\mathbb{F}_2^m y ∈ F 2 m , c ′ ( y ) = 1 c'(y)=1 c ′ ( y ) = 1 if and only if c ( L − 1 ( y ) ) = 1 c(L^{-1}(y))=1 c ( L − 1 ( y )) = 1 . Hence supp ( c ′ ) = { L ( x ) : c ( x ) = 1 } = L ( supp ( c ) ) \operatorname{supp}(c')=\{L(x):c(x)=1\}=L(\operatorname{supp}(c)) supp ( c ′ ) = { L ( x ) : c ( x ) = 1 } = L ( supp ( c )) , and bijectivity gives the weight identity. Substitution of affine linear forms gives deg ( c ∘ L − 1 ) ≤ deg c \deg(c\circ L^{-1})\leq\deg c deg ( c ∘ L − 1 ) ≤ deg c , and substituting into c = c ′ ∘ L c=c'\circ L c = c ′ ∘ L gives the opposite inequality.
Quadratic normal forms. Dickson’s classification [30 Ch. 15, Thms. 4–5] gives the following representatives of quadratic Boolean functions under affine equivalence:
c ( L ( y ) ) = ∑ i = 1 t y 2 i − 1 y 2 i + ℓ ( y ) + ε . (30) c(L(y)) = \sum_{i=1}^{t} y_{2i-1}y_{2i}+\ell(y)+\varepsilon. \tag*{(30)} c ( L ( y )) = i = 1 ∑ t y 2 i − 1 y 2 i + ℓ ( y ) + ε . (30)
Here 0 ≤ 2 t ≤ m 0\leq2t\leq m 0 ≤ 2 t ≤ m , ε ∈ F 2 \varepsilon\in\mathbb{F}_2 ε ∈ F 2 , and ℓ \ell ℓ is either zero or y 2 t + 1 y_{2t+1} y 2 t + 1 , with the latter choice available only when 2 t < m 2t<m 2 t < m . A nonconstant degree-one function has the form c ( y ) = a ⋅ y + ε c(y)=a\cdot y+\varepsilon c ( y ) = a ⋅ y + ε , with a ≠ 0 a\ne0 a = 0 , and
supp ( c ) = { y ∈ F 2 m : a ⋅ y = 1 + ε } . (31) \operatorname{supp}(c)=\{y\in\mathbb{F}_2^m:a\cdot y=1+\varepsilon\}. \tag*{(31)} supp ( c ) = { y ∈ F 2 m : a ⋅ y = 1 + ε } . (31)
The support in (31) is an affine hyperplane. When the support contains the origin, its projective support is obtained by deleting the origin.
Reed–Muller duality. For binary Reed–Muller codes [30 Ch. 13, Thm. 4, p. 375] ,
RM ( r , m ) ⊥ = RM ( m − r − 1 , m ) , RM ( r , m ) = { 0 } for r < 0. (32) \operatorname{RM}(r,m)^\perp=\operatorname{RM}(m-r-1,m), \qquad\operatorname{RM}(r,m)=\{0\}\ \text{for }r<0. \tag*{(32)} RM ( r , m ) ⊥ = RM ( m − r − 1 , m ) , RM ( r , m ) = { 0 } for r < 0. (32)
Minimum weight. The minimum weight of RM ( r , m ) \operatorname{RM}(r,m) RM ( r , m ) is 2 m − r 2^{m-r} 2 m − r , and its minimum-weight codewords are exactly the indicators of the ( m − r ) (m-r) ( m − r ) -dimensional affine flats [35 Cor. 5.3.3] .
Operations on codes
Row operations may preserve both code spaces, whereas puncturing can change their dimensions and distance. The results below specify the effects of these operations on the code parameters and the CH conditions.
In Appendices B–D, we write a generator matrix as G = [ K ; S ] ∈ F 2 ( 3 + s ~ ) × n G=[K;S]\in\mathbb{F}_2^{(3+\widetilde{s})\times n} G = [ K ; S ] ∈ F 2 ( 3 + s ) × n , with logical rows K 1 , K 2 , K 3 K_1,K_2,K_3 K 1 , K 2 , K 3 and stabilizer rows S 1 , … , S s ~ S_1,\ldots,S_{\widetilde{s}} S 1 , … , S s . The rows of G G G span the code C 1 C_1 C 1 , and the rows of S S S span the code C 2 ⊆ C 1 C_2\subseteq C_1 C 2 ⊆ C 1 , as for a generator matrix [36 §1.2] , except that the rows need not be independent. The code parameters are
s = dim C 2 ≤ s ~ , k = dim C 1 − dim C 2 . s=\dim C_2\leq\widetilde{s}, \qquad k=\dim C_1-\dim C_2. s = dim C 2 ≤ s , k = dim C 1 − dim C 2 .
By (5) , the Z Z Z -distance d Z d_Z d Z is the least weight of a vector in C 2 ⊥ ∖ C 1 ⊥ C_2^\perp\setminus C_1^\perp C 2 ⊥ ∖ C 1 ⊥ . The parameters s s s , k k k , and d Z d_Z d Z therefore depend only on the codes C 2 ⊆ C 1 C_2\subseteq C_1 C 2 ⊆ C 1 , and not on the rows chosen to span them.
Column j j j of G G G is a full column ( α , β ) (\alpha,\beta) ( α , β ) as in § 2 , with logical label α ∈ F 2 3 \alpha\in\mathbb{F}_2^3 α ∈ F 2 3 and syndrome β ∈ F 2 s \beta\in\mathbb{F}_2^s β ∈ F 2 s . When C 2 C_2 C 2 is projective, the label map κ \kappa κ of § 3.1 writes each full column as ( κ ( β ) , β ) (\kappa(\beta),\beta) ( κ ( β ) , β ) with β ∈ P \beta\in P β ∈ P , and the logical row K i K_i K i is the vector ( κ i ( β ) ) β ∈ P (\kappa_i(\beta))_{\beta\in P} ( κ i ( β ) ) β ∈ P . Appendix § 9 writes this vector as κ i \kappa_i κ i .
Appendix § 11 works at stabilizer rank s s s , meaning that S S S has s s s independent rows, so that the syndromes lie in F 2 s \mathbb{F}_2^s F 2 s . By Lemma A.8(a) and (b) below, replacing S S S by a row basis changes neither the nine CH conditions nor n n n , s s s , k k k , and d Z d_Z d Z .
Corollary A.6. Let G = [ K ; S ] G=[K;S] G = [ K ; S ] be the generator matrix for the codes C 2 ⊆ C 1 C_2\subseteq C_1 C 2 ⊆ C 1 . Then G G G satisfies the nine CH conditions if and only if
∣ a ∧ b ∣ |a\wedge b| ∣ a ∧ b ∣ is even for all a , b ∈ C 1 a,b\in C_1 a , b ∈ C 1 ,
∣ a ∧ b ∧ u ∣ |a\wedge b\wedge u| ∣ a ∧ b ∧ u ∣ is even for all a , b ∈ C 1 a,b\in C_1 a , b ∈ C 1 and u ∈ C 2 u\in C_2 u ∈ C 2 , and
∣ K 1 ∧ K 2 ∧ K 3 ∣ |K_1\wedge K_2\wedge K_3| ∣ K 1 ∧ K 2 ∧ K 3 ∣ is odd.
In that case every codeword of C 1 C_1 C 1 has even weight, by (i) with a = b a=b a = b , and the following hold.
(a) For x ∈ F 2 3 x\in\mathbb{F}_2^3 x ∈ F 2 3 , y ∈ F 2 s ~ y\in\mathbb{F}_2^{\tilde{s}} y ∈ F 2 s ~ , and { i , i ′ , i ′ ′ } = { 1 , 2 , 3 } \{i,i',i''\}=\{1,2,3\} { i , i ′ , i ′′ } = { 1 , 2 , 3 } ,
w = ∑ h = 1 3 x h K h + ∑ l = 1 s ~ y l S l ⟹ ∣ w ∧ K i ′ ∧ K i ′ ′ ∣ ≡ x i ( m o d 2 ) . w=\sum_{h=1}^{3}x_hK_h+\sum_{l=1}^{\tilde{s}}y_lS_l
\quad\Longrightarrow\quad
|w\wedge K_{i'}\wedge K_{i''}|\equiv x_i\pmod2. w = h = 1 ∑ 3 x h K h + l = 1 ∑ s ~ y l S l ⟹ ∣ w ∧ K i ′ ∧ K i ′′ ∣ ≡ x i ( mod 2 ) . (b) If n n n is even, then the matrix [ K ; S ; 1 T ] [K;S;1^{\mathsf T}] [ K ; S ; 1 T ] , with the all-ones row appended as a stabilizer row, satisfies the nine CH conditions.
Proof. By Corollary A.2, the parities of ∣ a ∧ b ∣ |a\wedge b| ∣ a ∧ b ∣ and ∣ a ∧ b ∧ u ∣ |a\wedge b\wedge u| ∣ a ∧ b ∧ u ∣ are additive in each argument, so (i) and (ii) hold for all codewords exactly when they hold for rows. On rows, R ∧ R = R R\wedge R=R R ∧ R = R reduces a repeated row, (i) becomes K1, K2, KS1, S1, and S2, (ii) becomes KS2, KS3, and S3, and (iii) is K3.
For part (a), additivity expresses ∣ w ∧ K i ′ ∧ K i ′ ′ ∣ |w\wedge K_{i'}\wedge K_{i''}| ∣ w ∧ K i ′ ∧ K i ′′ ∣ as ∑ h x h ∣ K h ∧ K i ′ ∧ K i ′ ′ ∣ \sum_h x_h|K_h\wedge K_{i'}\wedge K_{i''}| ∑ h x h ∣ K h ∧ K i ′ ∧ K i ′′ ∣ plus the overlap of ∑ l y l S l ∈ C 2 \sum_l y_lS_l\in C_2 ∑ l y l S l ∈ C 2 with K i ′ ∧ K i ′ ′ K_{i'}\wedge K_{i''} K i ′ ∧ K i ′′ . The terms with h = i ′ , i ′ ′ h=i',i'' h = i ′ , i ′′ are even by (i), the stabilizer term is even by (ii), and (iii) makes the term with h = i h=i h = i equal to x i x_i x i mod 2.
For part (b), the codes become C 1 ∪ ( 1 + C 1 ) C_1\cup(1+C_1) C 1 ∪ ( 1 + C 1 ) and C 2 ∪ ( 1 + C 2 ) C_2\cup(1+C_2) C 2 ∪ ( 1 + C 2 ) , and additivity leaves only overlaps containing 1. Each equals n n n or an overlap ∣ a ∧ b ∣ |a\wedge b| ∣ a ∧ b ∣ with a , b ∈ C 1 a,b\in C_1 a , b ∈ C 1 , which is even by hypothesis or by (i). Condition (iii) is unchanged.
Definition A.7 (Puncturing). Let C ⊂ F 2 n C\subset\mathbb{F}_2^n C ⊂ F 2 n be a linear code, and let J ⊂ { 1 , … , n } J\subset\{1,\ldots,n\} J ⊂ { 1 , … , n } be a set of coordinate indices. The puncture of C C C on J J J is the linear code C ′ ⊆ F 2 n − ∣ J ∣ C'\subseteq\mathbb{F}_2^{n-|J|} C ′ ⊆ F 2 n − ∣ J ∣ obtained by deleting the coordinates in J J J from every codeword of C C C [36 §1.5.1 and Thm. 1.5.1] .
Lemma A.8 (Row operations and puncturing). (a) Left multiplication. For a matrix Q Q Q with 3 + s ~ 3+\tilde{s} 3 + s ~ columns,
rowspan Q G ⊆ rowspan G , \operatorname{rowspan} QG\subseteq\operatorname{rowspan} G, rowspan QG ⊆ rowspan G , rank Q G = rank Q if the rows of G are independent . \operatorname{rank} QG=\operatorname{rank} Q
\qquad\text{if the rows of }G\text{ are independent}. rank QG = rank Q if the rows of G are independent . The row-space inclusion is an equality when Q Q Q is invertible. Adding one row to another, deleting a row, and replacing S S S by A S AS A S for an invertible s ~ × s ~ \tilde{s}\times\tilde{s} s ~ × s ~ matrix A A A are left multiplications.
Suppose that G G G satisfies the nine CH conditions, and let G ′ = [ K ′ ; S ′ ] G'=[K';S'] G ′ = [ K ′ ; S ′ ] have logical rows K i ′ ∈ K i + C 2 K'_i\in K_i+C_2 K i ′ ∈ K i + C 2 and stabilizer rows in C 2 C_2 C 2 . Then G ′ G' G ′ satisfies the nine CH conditions. If moreover the rows of S ′ S' S ′ span C 2 C_2 C 2 , then G ′ G' G ′ and G G G generate the same codes, and hence the same n n n , s s s , k k k , and d Z d_Z d Z .
(b) Row basis. Let the rows of S S S indexed by an ordered set I I I form a basis of C 2 C_2 C 2 , and let S I S_I S I be the s × n s\times n s × n matrix they form. Restricting a syndrome β \beta β to its entries in I I I gives the corresponding column β I ∈ F 2 s \beta_I\in\mathbb{F}_2^s β I ∈ F 2 s of S I S_I S I . The restriction preserves distinct and nonzero syndromes, and the columns β I \beta_I β I span F 2 s \mathbb{F}_2^s F 2 s . Thus S I S_I S I has the same actual rank as S S S and is projective with n n n columns whenever S S S is projective.
(c) Puncturing. Let C ′ C' C ′ be the code obtained by puncturing the set of coordinates J J J from a code C ⊆ F 2 n C\subseteq\mathbb{F}_2^n C ⊆ F 2 n . Deleting the columns indexed by J J J from a matrix whose rows span C C C gives a matrix whose rows span C ′ C' C ′ , and
dim C − dim C ′ = dim { c ∈ C : supp ( c ) ⊆ J } ≤ ∣ J ∣ . (33) \dim C-\dim C'=\dim\{c\in C:\operatorname{supp}(c)\subseteq J\}\leq|J|. \tag*{(33)} dim C − dim C ′ = dim { c ∈ C : supp ( c ) ⊆ J } ≤ ∣ J ∣. (33)
Write ι J : F 2 n − ∣ J ∣ → F 2 n \iota_J:\mathbb{F}_2^{n-|J|}\to\mathbb{F}_2^n ι J : F 2 n − ∣ J ∣ → F 2 n for insertion of zeros at each coordinate in J J J . Then ι J ( C ′ ⊥ ) ⊆ C ⊥ \iota_J(C'^\perp)\subseteq C^\perp ι J ( C ′ ⊥ ) ⊆ C ⊥ and ∣ ι J v ′ ∣ = ∣ v ′ ∣ |\iota_Jv'|=|v'| ∣ ι J v ′ ∣ = ∣ v ′ ∣ . Consequently, a generator matrix punctured on J J J has Z Z Z -distance at least d Z d_Z d Z of the original.
Moreover, if σ ∈ F 2 n \sigma\in\mathbb{F}_2^n σ ∈ F 2 n equals e j e_j e j or e j + e j ′ e_j+e_{j'} e j + e j ′ with j ≠ j ′ j\ne j' j = j ′ and G σ = 0 G\sigma=0 G σ = 0 , then G G G punctured on supp ( σ ) \operatorname{supp}(\sigma) supp ( σ ) satisfies the nine CH conditions exactly when G G G does.
Proof. For part (a), row i i i of Q G QG QG is ∑ j Q i j g j \sum_jQ_{ij}g^j ∑ j Q ij g j , where g j g^j g j are the rows of G G G , so rowspan Q G ⊆ rowspan G \operatorname{rowspan}QG\subseteq\operatorname{rowspan}G rowspan QG ⊆ rowspan G , and G = Q − 1 ( Q G ) G=Q^{-1}(QG) G = Q − 1 ( QG ) gives equality when Q Q Q is invertible. If the rows of G G G are independent, then the columns of G G G span F 2 3 + s \mathbb{F}_2^{3+s} F 2 3 + s , so the columns of Q G QG QG span the column space of Q Q Q .
For CH preservation, the codes of G ′ G' G ′ satisfy C 2 ′ ⊆ C 2 C'_2\subseteq C_2 C 2 ′ ⊆ C 2 and C 1 ′ ⊆ C 1 C'_1\subseteq C_1 C 1 ′ ⊆ C 1 , so conditions (i) and (ii) of Corollary A.6 for G ′ G' G ′ are instances of the same conditions for G G G . Writing K i ′ = K i + u i K'_i=K_i+u_i K i ′ = K i + u i with u i ∈ C 2 u_i\in C_2 u i ∈ C 2 , additivity writes ∣ K 1 ′ ∧ K 2 ′ ∧ K 3 ′ ∣ |K'_1\wedge K'_2\wedge K'_3| ∣ K 1 ′ ∧ K 2 ′ ∧ K 3 ′ ∣ as ∣ K 1 ∧ K 2 ∧ K 3 ∣ |K_1\wedge K_2\wedge K_3| ∣ K 1 ∧ K 2 ∧ K 3 ∣ plus overlaps with a factor u i u_i u i and two factors in C 1 C_1 C 1 , which are even by (ii). When the rows of S ′ S' S ′ span C 2 C_2 C 2 , the codes of G ′ G' G ′ equal C 2 ⊆ C 1 C_2\subseteq C_1 C 2 ⊆ C 1 .
For part (b), every omitted row is a linear combination of the selected rows, so β I \beta_I β I determines every entry of β \beta β . If β I = 0 \beta_I=0 β I = 0 , every entry of β \beta β is zero as well. Finally, rowspan S I = C 2 \operatorname{rowspan}S_I=C_2 rowspan S I = C 2 gives rank S I = s \operatorname{rank}S_I=s rank S I = s , so its columns span F 2 s \mathbb{F}_2^s F 2 s .
For part (c), coordinate deletion is a linear map from C C C onto C ′ C' C ′ whose kernel consists of the codewords supported inside J J J , and rank–nullity gives (33) .
For v ′ ∈ C ′ ⊥ v'\in C'^\perp v ′ ∈ C ′ ⊥ and c ∈ C c\in C c ∈ C , let c ′ ∈ C ′ c'\in C' c ′ ∈ C ′ be the punctured codeword of c c c on J J J , the word obtained by deleting the coordinates in J J J from c c c . Then the coordinates in J J J contribute nothing to c ⋅ ι J v ′ c\cdot\iota_Jv' c ⋅ ι J v ′ , so c ⋅ ι J v ′ = c ′ ⋅ v ′ = 0 c\cdot\iota_Jv'=c'\cdot v'=0 c ⋅ ι J v ′ = c ′ ⋅ v ′ = 0 . For the distance, let v ′ ∈ S ′ ⊥ = 0 v'\in S'^\perp=0 v ′ ∈ S ′ ⊥ = 0 and K ′ v ′ ≠ 0 K'v'\ne0 K ′ v ′ = 0 for the punctured generator matrix [ K ′ ; S ′ ] [K';S'] [ K ′ ; S ′ ] , and set v = ι J v ′ v=\iota_Jv' v = ι J v ′ . Then S v = 0 Sv=0 S v = 0 , K v = K ′ v ′ ≠ 0 Kv=K'v'\ne0 K v = K ′ v ′ = 0 , and ∣ v ∣ = ∣ v ′ ∣ |v|=|v'| ∣ v ∣ = ∣ v ′ ∣ , so (5) gives the bound.
Finally, G σ = 0 G\sigma=0 G σ = 0 says that column j j j is zero or that columns j j j and j ′ j' j ′ are equal. The deleted columns therefore contribute 0 0 0 , or the same bit twice, to every overlap of rows, so every CH parity is the same with and without them. ∎
SAT search and exclusion
Fix a support P \mathcal{P} P satisfying S1–S3. Order the n n n columns of P \mathcal{P} P as they appear in S S S . Each logical row is the vector
κ i = ( κ i ( β ) ) β ∈ P ∈ F 2 P ≅ F 2 n , i ∈ { 1 , 2 , 3 } . \kappa_i=(\kappa_i(\beta))_{\beta\in\mathcal{P}}\in\mathbb{F}_2^{\mathcal{P}}\cong\mathbb{F}_2^n,\qquad i\in\{1,2,3\}. κ i = ( κ i ( β ) ) β ∈ P ∈ F 2 P ≅ F 2 n , i ∈ { 1 , 2 , 3 } .
As in (8) , all inner products below are over P \mathcal{P} P , as indicated by the subscript. For each logical label κ i \kappa_i κ i , K1, KS1, and KS3 give, respectively,
⟨ κ i , 1 ⟩ P = 0 , ⟨ κ i , m { l } ⟩ P = 0 , ⟨ κ i , m { l , l ′ } ⟩ P = 0. (34) \langle\kappa_i,1\rangle_{\mathcal{P}}=0,\qquad\langle\kappa_i,m_{\{l\}}\rangle_{\mathcal{P}}=0,\qquad\langle\kappa_i,m_{\{l,l'\}}\rangle_{\mathcal{P}}=0. \tag*{(34)} ⟨ κ i , 1 ⟩ P = 0 , ⟨ κ i , m { l } ⟩ P = 0 , ⟨ κ i , m { l , l ′ } ⟩ P = 0. (34)
The indices are i ∈ { 1 , 2 , 3 } i\in\{1,2,3\} i ∈ { 1 , 2 , 3 } , 1 ≤ l ≤ s 1\le l\le s 1 ≤ l ≤ s , and 1 ≤ l < l ′ ≤ s 1\le l<l'\le s 1 ≤ l < l ′ ≤ s in the last constraint. Here m { l , l ′ } ( β ) = β l β l ′ m_{\{l,l'\}}(\beta)=\beta_l\beta_{l'} m { l , l ′ } ( β ) = β l β l ′ is the product of coordinates l l l and l ′ l' l ′ of the column β ∈ P \beta\in\mathcal{P} β ∈ P . The functions 1 \mathbf{1} 1 , m { l } m_{\{l\}} m { l } , and m { l , l ′ } m_{\{l,l'\}} m { l , l ′ } span RM ( 2 , s ) \operatorname{RM}(2,s) RM ( 2 , s ) . Their restrictions to P \mathcal{P} P therefore span ev P ( RM ( 2 , s ) ) \operatorname{ev}_{\mathcal{P}}(\operatorname{RM}(2,s)) ev P ( RM ( 2 , s )) , where ev P ( p ) = ( p ( β ) ) β ∈ P \operatorname{ev}_{\mathcal{P}}(p)=(p(\beta))_{\beta\in\mathcal{P}} ev P ( p ) = ( p ( β ) ) β ∈ P is the evaluation map of Proposition 3.9. Consequently, for each i ∈ { 1 , 2 , 3 } i\in\{1,2,3\} i ∈ { 1 , 2 , 3 } ,
κ i satisfies K1, KS1, and KS3 ⟺ κ i ∈ V P : = ( ev P ( RM ( 2 , s ) ) ) ⊥ ⊆ F 2 n . (35) \kappa_i\text{ satisfies K1, KS1, and KS3}\quad\Longleftrightarrow\quad\kappa_i\in V_{\mathcal{P}}:=\left(\operatorname{ev}_{\mathcal{P}}(\operatorname{RM}(2,s))\right)^\perp\subseteq\mathbb{F}_2^n. \tag*{(35)} κ i satisfies K1, KS1, and KS3 ⟺ κ i ∈ V P := ( ev P ( RM ( 2 , s )) ) ⊥ ⊆ F 2 n . (35)
Call ( κ 1 , κ 2 , κ 3 ) (\kappa_1,\kappa_2,\kappa_3) ( κ 1 , κ 2 , κ 3 ) a CH triple when the three logical rows satisfy all CH conditions on P \mathcal{P} P . Equation (35) places both in V P V_{\mathcal{P}} V P , and K2 and KS2 impose
⟨ κ 1 κ 2 , 1 ⟩ P = 0 , ⟨ κ 1 κ 2 , m { l } ⟩ P = 0. (36) \langle\kappa_1\kappa_2,1\rangle_{\mathcal{P}}=0,\qquad\langle\kappa_1\kappa_2,m_{\{l\}}\rangle_{\mathcal{P}}=0. \tag*{(36)} ⟨ κ 1 κ 2 , 1 ⟩ P = 0 , ⟨ κ 1 κ 2 , m { l } ⟩ P = 0. (36)
The second constraint in (36) ranges over 1 ≤ l ≤ s 1\le l\le s 1 ≤ l ≤ s . The first two labels of every CH triple therefore form an ordered pair ( κ 1 , κ 2 ) ∈ ( V P ∖ { 0 } ) × ( V P ∖ { 0 } ) (\kappa_1,\kappa_2)\in(V_{\mathcal{P}}\setminus\{0\})\times(V_{\mathcal{P}}\setminus\{0\}) ( κ 1 , κ 2 ) ∈ ( V P ∖ { 0 }) × ( V P ∖ { 0 }) satisfying these equations, so enumerating all such pairs covers every possible CH triple. For a fixed pair, the remaining conditions on κ 3 ∈ V P \kappa_3\in V_{\mathcal{P}} κ 3 ∈ V P are
⟨ κ 3 , κ i ⟩ P = 0 (K2) , ⟨ κ 3 , m { l } κ i ⟩ P = 0 (KS2) , ⟨ κ 3 , κ 1 κ 2 ⟩ P = 1 (K3) . (37) \begin{aligned}
\langle\kappa_3,\kappa_i\rangle_{\mathcal{P}}&=0 &&\text{(K2)},\\
\langle\kappa_3,m_{\{l\}}\kappa_i\rangle_{\mathcal{P}}&=0 &&\text{(KS2)},\\
\langle\kappa_3,\kappa_1\kappa_2\rangle_{\mathcal{P}}&=1 &&\text{(K3)}. \tag*{(37)}
\end{aligned} ⟨ κ 3 , κ i ⟩ P ⟨ κ 3 , m { l } κ i ⟩ P ⟨ κ 3 , κ 1 κ 2 ⟩ P = 0 = 0 = 1 (K2) , (KS2) , (K3) . (37)
The indices satisfy i ∈ { 1 , 2 } i\in\{1,2\} i ∈ { 1 , 2 } and 1 ≤ l ≤ s 1\le l\le s 1 ≤ l ≤ s . Membership in V P V_{\mathcal{P}} V P imposes K1, KS1, and KS3 on κ 3 \kappa_3 κ 3 , while (37) imposes K2, KS2, and K3. Let d = dim V P = n − dim ev P ( RM ( 2 , s ) ) d=\dim V_{\mathcal{P}}=n-\dim\operatorname{ev}_{\mathcal{P}}(\operatorname{RM}(2,s)) d = dim V P = n − dim ev P ( RM ( 2 , s )) , let v 1 , … , v d v_1,\ldots,v_d v 1 , … , v d be a basis of V P V_{\mathcal{P}} V P , and write the vector κ 3 = ∑ a = 1 d t a v a \kappa_3=\sum_{a=1}^{d}t_av_a κ 3 = ∑ a = 1 d t a v a with t a ∈ F 2 t_a\in\mathbb{F}_2 t a ∈ F 2 . By Corollary A.2 , substitution into (37) gives the binary linear system
∑ a = 1 d t a ⟨ v a , κ i ⟩ P = 0 , i ∈ { 1 , 2 } , ∑ a = 1 d t a ⟨ v a , m { l } κ i ⟩ P = 0 , i ∈ { 1 , 2 } , 1 ≤ l ≤ s , ∑ a = 1 d t a ⟨ v a , κ 1 κ 2 ⟩ P = 1. (38) \begin{aligned}
\sum_{a=1}^{d}t_a\langle v_a,\kappa_i\rangle_{\mathcal{P}}&=0,\qquad i\in\{1,2\},\\
\sum_{a=1}^{d}t_a\langle v_a,m_{\{l\}}\kappa_i\rangle_{\mathcal{P}}&=0,\qquad i\in\{1,2\},\ 1\le l\le s,\\
\sum_{a=1}^{d}t_a\langle v_a,\kappa_1\kappa_2\rangle_{\mathcal{P}}&=1. \tag*{(38)}
\end{aligned} a = 1 ∑ d t a ⟨ v a , κ i ⟩ P a = 1 ∑ d t a ⟨ v a , m { l } κ i ⟩ P a = 1 ∑ d t a ⟨ v a , κ 1 κ 2 ⟩ P = 0 , i ∈ { 1 , 2 } , = 0 , i ∈ { 1 , 2 } , 1 ≤ l ≤ s , = 1. (38)
Since κ 1 \kappa_1 κ 1 , κ 2 \kappa_2 κ 2 , and the basis vectors v a v_a v a are fixed, every inner product in (38) is a known bit, so (38) is a linear system over F 2 \mathbb{F}_2 F 2 in t 1 , … , t d t_1,\ldots,t_d t 1 , … , t d . Gaussian elimination then decides whether the pair extends to a CH triple. Failure to extend to a CH triple for every possible pair κ 1 , κ 2 \kappa_1,\kappa_2 κ 1 , κ 2 excludes P \mathcal{P} P . When Equation (38) admits a solution, its solutions form an affine space, a particular solution plus the kernel of the coefficient matrix, and each solution gives a label κ 3 \kappa_3 κ 3 that extends the pair to a CH triple. Deciding whether P \mathcal{P} P carries a CH triple needs only one solution.
Algorithm 1 Finding CH label maps by SAT or testing all label maps on a specified support, followed by binary flip-vector feasibility (k = 3 k=3 k = 3 , d Z ≥ 3 d_Z \ge3 d Z ≥ 3 )
Find a code by SAT:
For each of the 2 s − 1 2^s-1 2 s − 1 nonzero β \beta β introduce the support bit χ S ( β ) \chi_S(\beta) χ S ( β ) and the three label bits κ i ( β ) \kappa_i(\beta) κ i ( β ) , i ∈ { 1 , 2 , 3 } i \in\{1,2,3\} i ∈ { 1 , 2 , 3 } , for 4 ( 2 s − 1 ) 4(2^s-1) 4 ( 2 s − 1 ) support and logical label variables, before encoding auxiliaries.
For each nonzero β \beta β and each nonempty T K ⊆ { 1 , 2 , 3 } T_K \subseteq\{1,2,3\} T K ⊆ { 1 , 2 , 3 } , introduce an auxiliary variable with clauses that force it to equal χ S ( β ) ∏ i ∈ T K κ i ( β ) \chi_S(\beta)\prod_{i\in T_K}\kappa_i(\beta) χ S ( β ) ∏ i ∈ T K κ i ( β ) . Impose K1–K3, KS1–KS3, and S1–S3 as the XOR equations (9) , whose terms are support bits and these auxiliary variables. Conditions S1–S3 restrict the support to RM ( s − 4 , s ) ∪ ( δ 0 + RM ( s − 4 , s ) ) \operatorname{RM}(s-4,s)\cup(\delta_0+\operatorname{RM}(s-4,s)) RM ( s − 4 , s ) ∪ ( δ 0 + RM ( s − 4 , s )) , where δ 0 \delta_0 δ 0 is the origin indicator.
Solve the constraints globally with a SAT solver. Each satisfying assignment supplies χ S \chi_S χ S and κ i \kappa_i κ i , and hence a generator matrix such as Q 48 Q_{48} Q 48 .
Alternatively, test a candidate support P \mathcal{P} P :
For a support P \mathcal{P} P satisfying S1–S3, enumerate every ordered pair of nonzero κ 1 , κ 2 ∈ V P \kappa_1,\kappa_2 \in V_{\mathcal{P}} κ 1 , κ 2 ∈ V P satisfying (36) . Solve the system (38) by Gaussian elimination. Each solution t 1 , … , t d t_1,\ldots,t_d t 1 , … , t d gives a label κ 3 ∈ V P \kappa_3 \in V_{\mathcal{P}} κ 3 ∈ V P and a generator matrix. Failure to extend to a CH triple for every possible pair κ 1 , κ 2 \kappa_1,\kappa_2 κ 1 , κ 2 excludes P \mathcal{P} P . Exhausting all supports satisfying S1–S3 proves non-existence.
For either route, test the physical signs:
For each generator matrix obtained from SAT or a consistent fixed-support system, solve (19) for a binary γ \gamma γ . A solution gives a T / T † T/T^\dagger T / T † implementation of Definition 3.4.
Proofs for the column indicators and CCZ conditions
Proof of Lemma 3.2
Proof. The nonconstant monomials of degree at most three are the m T m_T m T with 1 ≤ ∣ T ∣ ≤ 3 1 \le|T| \le3 1 ≤ ∣ T ∣ ≤ 3 . By (8) , ⟨ χ G , m T ⟩ \langle\chi_G,m_T\rangle ⟨ χ G , m T ⟩ equals 1 1 1 for T = { 1 , 2 , 3 } T=\{1,2,3\} T = { 1 , 2 , 3 } and 0 0 0 for every other such T T T . The representative χ G , 0 \chi_{G,0} χ G , 0 has the same inner products by its definition in Lemma 3.2 . Hence χ G − χ G , 0 \chi_G-\chi_{G,0} χ G − χ G , 0 is orthogonal to every nonconstant monomial of degree at most three. Since ⟨ χ G , 0 , 1 ⟩ = ∣ χ G , 0 ∣ m o d 2 = 0 \langle\chi_{G,0},1\rangle=|\chi_{G,0}|\bmod2=0 ⟨ χ G , 0 , 1 ⟩ = ∣ χ G , 0 ∣ mod 2 = 0 and χ G \chi_G χ G has weight n n n , set
ε = ⟨ χ G − χ G , 0 , 1 ⟩ = n m o d 2. \varepsilon=\langle\chi_G-\chi_{G,0},1\rangle=n\bmod2. ε = ⟨ χ G − χ G , 0 , 1 ⟩ = n mod 2.
Equation (28) then gives
χ G − χ G , 0 − ε δ 0 ∈ RM ( 3 , r ) ⊥ = RM ( r − 4 , r ) , \chi_G-\chi_{G,0}-\varepsilon\delta_0\in\operatorname{RM}(3,r)^\perp=\operatorname{RM}(r-4,r), χ G − χ G , 0 − ε δ 0 ∈ RM ( 3 , r ) ⊥ = RM ( r − 4 , r ) ,
which proves (10) . Any other admissible χ G , 0 ′ \chi'_{G,0} χ G , 0 ′ has the same inner products against all monomials of degree at most three, including the constant, so χ G , 0 ′ − χ G , 0 ∈ RM ( r − 4 , r ) \chi'_{G,0}-\chi_{G,0}\in\operatorname{RM}(r-4,r) χ G , 0 ′ − χ G , 0 ∈ RM ( r − 4 , r ) by (32) . The coset is therefore independent of the representative. ▫
Proof of Theorem 3.3
Proof. This proof covers the necessity direction (ii). Assume that C T ⊗ n C T^{\otimes n} C T ⊗ n realizes logical CCZ and set z ⃗ = ( x ⃗ , y ⃗ ) \vec{z}=(\vec{x},\vec{y}) z = ( x , y ) , f ⃗ = G T z ⃗ \vec{f}=G^{\mathsf{T}}\vec{z} f = G T z , and ω = e π i / 4 \omega=e^{\pi i/4} ω = e π i /4 . Every diagonal Clifford is, up to a global phase, expressed as a product of Z Z Z , S S S , and C Z CZ C Z gates, so C C C may be taken in that form. Physical T T T gates contribute ω ∣ f ⃗ ∣ \omega^{|\vec{f}|} ω ∣ f ∣ , while C C C contributes ω 2 h ( f ⃗ ) \omega^{2h(\vec{f})} ω 2 h ( f ) . Equating the combined phase ω ∣ f ⃗ ∣ + 2 h ( f ⃗ ) \omega^{|\vec{f}|+2h(\vec{f})} ω ∣ f ∣ + 2 h ( f ) to ω 4 x 1 x 2 x 3 \omega^{4x_1x_2x_3} ω 4 x 1 x 2 x 3 gives
∣ f ⃗ ∣ + 2 h ( f ⃗ ) ≡ 4 x 1 x 2 x 3 ( m o d 8 ) , h ( f ⃗ ) = ∑ j λ j f j + ∑ j < j ′ λ j j ′ f j f j ′ . |\vec{f}|+2h(\vec{f})\equiv4x_1x_2x_3\pmod8,\qquad h(\vec{f})=\sum_j\lambda_j f_j+\sum_{j<j'}\lambda_{jj'}f_jf_{j'}. ∣ f ∣ + 2 h ( f ) ≡ 4 x 1 x 2 x 3 ( mod 8 ) , h ( f ) = j ∑ λ j f j + j < j ′ ∑ λ j j ′ f j f j ′ .
where f ⃗ = K T x ⃗ + S T y ⃗ \vec{f}=K^{\mathsf{T}}\vec{x}+S^{\mathsf{T}}\vec{y} f = K T x + S T y , λ j ∈ { 0 , 1 , 2 , 3 } \lambda_j\in\{0,1,2,3\} λ j ∈ { 0 , 1 , 2 , 3 } , and λ j j ′ ∈ { 0 , 2 } \lambda_{jj'}\in\{0,2\} λ j j ′ ∈ { 0 , 2 } , as in (3) and (13) . Logical CCZ up to a global phase would add a constant c c c to the right-hand side. The constant changes only the constant term of the expansion in z ⃗ \vec{z} z , which the conditions below do not use. At z ⃗ = 0 \vec{z}=0 z = 0 the left-hand side is 0 0 0 , so c ≡ 0 ( m o d 8 ) c\equiv0\pmod8 c ≡ 0 ( mod 8 ) in any case.
List the rows of G G G as g 1 , … , g 3 + s g^1,\ldots,g^{3+s} g 1 , … , g 3 + s , with g i = K i g^i=K_i g i = K i for 1 ≤ i ≤ 3 1\leq i\leq3 1 ≤ i ≤ 3 and g 3 + l = S l g^{3+l}=S_l g 3 + l = S l for 1 ≤ l ≤ s 1\leq l\leq s 1 ≤ l ≤ s . For a nonempty index set T ⊆ { 1 , … , 3 + s } T\subseteq\{1,\ldots,3+s\} T ⊆ { 1 , … , 3 + s } , use the monomial m T ( z ⃗ ) m_T(\vec{z}) m T ( z ) defined before Equation (8) .
Apply Lemma A.1 to expand f j = ⨁ i g j i z i f_j=\bigoplus_i g^i_jz_i f j = ⨁ i g j i z i and group its terms by T T T :
f j = ∑ ∅ ≠ T ⊆ { 1 , … , 3 + s } ( − 2 ) ∣ T ∣ − 1 ( ∏ i ∈ T g j i ) m T ( z ⃗ ) . (39) f_j=\sum_{\varnothing\ne T\subseteq\{1,\ldots,3+s\}}(-2)^{|T|-1}\left(\prod_{i\in T}g^i_j\right)m_T(\vec{z}). \tag*{(39)} f j = ∅ = T ⊆ { 1 , … , 3 + s } ∑ ( − 2 ) ∣ T ∣ − 1 ( i ∈ T ∏ g j i ) m T ( z ) . (39)
To determine which coefficients the Clifford correction can change, use Corollary A.2 to write the following integer identity
2 h ( f ⃗ ) = ∑ j 2 λ j f j + ∑ j < j ′ λ j j ′ ( f j + f j ′ − ( f j ⊕ f j ′ ) ) . 2h(\vec{f})=\sum_j2\lambda_jf_j+\sum_{j<j'}\lambda_{jj'}\left(f_j+f_{j'}-(f_j\oplus f_{j'})\right). 2 h ( f ) = j ∑ 2 λ j f j + j < j ′ ∑ λ j j ′ ( f j + f j ′ − ( f j ⊕ f j ′ ) ) .
Each of f j f_j f j , f j ′ f_{j'} f j ′ , and f j ⊕ f j ′ f_j\oplus f_{j'} f j ⊕ f j ′ is an XOR of selected variables z i z_i z i . By (39) , the coefficient of m T m_T m T in each XOR is divisible by 2 ∣ T ∣ − 1 2^{|T|-1} 2 ∣ T ∣ − 1 . Both 2 λ j 2\lambda_j 2 λ j and λ j j ′ \lambda_{jj'} λ j j ′ are even, so every m T m_T m T coefficient in 2 h ( f ⃗ ) 2h(\vec{f}) 2 h ( f ) is divisible by 2 ∣ T ∣ 2^{|T|} 2 ∣ T ∣ for every nonempty T T T . In particular, degrees one, two, and three give
coefficient of m T in 2 h ( f ⃗ ) ∈ { { 0 , 2 , 4 , 6 } , ∣ T ∣ = 1 , { 0 , 4 } , ∣ T ∣ = 2 , { 0 } , ∣ T ∣ = 3 , ( m o d 8 ) (40) \operatorname{coefficient\ of\ }m_T\operatorname{\ in\ }2h(\vec{f})\in
\begin{cases}
\{0,2,4,6\}, & |T|=1,\\
\{0,4\}, & |T|=2,\\
\{0\}, & |T|=3,
\end{cases}
\pmod8 \tag*{(40)} coefficient of m T in 2 h ( f ) ∈ ⎩ ⎨ ⎧ { 0 , 2 , 4 , 6 } , { 0 , 4 } , { 0 } , ∣ T ∣ = 1 , ∣ T ∣ = 2 , ∣ T ∣ = 3 , ( mod 8 ) (40)
Equation (2) , with f ⃗ = G T z ⃗ \vec{f}=G^{\mathsf{T}}\vec{z} f = G T z , gives the coefficients of z i z_i z i , z i z i ′ z_iz_{i'} z i z i ′ , and z i z i ′ z i ′ ′ z_iz_{i'}z_{i''} z i z i ′ z i ′′ as ∣ g i ∣ |g^i| ∣ g i ∣ , − 2 ∣ g i ∧ g i ′ ∣ -2|g^i\wedge g^{i'}| − 2∣ g i ∧ g i ′ ∣ , and 4 ∣ g i ∧ g i ′ ∧ g i ′ ′ ∣ 4|g^i\wedge g^{i'}\wedge g^{i''}| 4∣ g i ∧ g i ′ ∧ g i ′′ ∣ , respectively. Apply Equation (26) to both sides of Equation (3) . The coefficient restrictions (40) and these coefficients then give
∣ g i ∣ m o d 8 ∈ { 0 , 2 , 4 , 6 } , |g^i|\bmod8\in\{0,2,4,6\}, ∣ g i ∣ mod 8 ∈ { 0 , 2 , 4 , 6 } ,
− 2 ∣ g i ∧ g i ′ ∣ m o d 8 ∈ { 0 , 4 } , -2|g^i\wedge g^{i'}|\bmod8\in\{0,4\}, − 2∣ g i ∧ g i ′ ∣ mod 8 ∈ { 0 , 4 } ,
4 ∣ g i ∧ g i ′ ∧ g i ′ ′ ∣ ≡ { 4 ( m o d 8 ) , { i , i ′ , i ′ ′ } = { 1 , 2 , 3 } , 0 ( m o d 8 ) , otherwise . (41) 4|g^i\wedge g^{i'}\wedge g^{i''}|\equiv
\begin{cases}
4\pmod8, & \{i,i',i''\}=\{1,2,3\},\\
0\pmod8, & \text{otherwise}.
\end{cases} \tag*{(41)} 4∣ g i ∧ g i ′ ∧ g i ′′ ∣ ≡ { 4 ( mod 8 ) , 0 ( mod 8 ) , { i , i ′ , i ′′ } = { 1 , 2 , 3 } , otherwise . (41)
Together, the three lines give the nine CH conditions in Table 1 .
Proof of Proposition 3.5
Proof. Use z ⃗ = ( x ⃗ , y ⃗ ) \vec{z}=(\vec{x},\vec{y}) z = ( x , y ) , f ⃗ = G T z ⃗ \vec{f}=G^{\mathsf{T}}\vec{z} f = G T z , the rows g i g^i g i , and the monomials m T ( z ⃗ ) m_T(\vec{z}) m T ( z ) from the preceding proof. Multiplying (39) by Γ j \Gamma_j Γ j and summing over j j j gives the exact integer expansion
sw Γ ( f ⃗ ) = ∑ ∅ ≠ T ( − 2 ) ∣ T ∣ − 1 sw Γ ( ⋀ i ∈ T g i ) m T ( z ⃗ ) . \operatorname{sw}_{\Gamma}(\vec{f})=\sum_{\varnothing\ne T}(-2)^{|T|-1}\operatorname{sw}_{\Gamma}\left(\bigwedge_{i\in T}g^i\right)m_T(\vec{z}). sw Γ ( f ) = ∅ = T ∑ ( − 2 ) ∣ T ∣ − 1 sw Γ ( i ∈ T ⋀ g i ) m T ( z ) .
By the coefficient identity (26), the equation sw Γ ( f ⃗ ) ≡ 4 x 1 x 2 x 3 ( m o d 8 ) \operatorname{sw}_{\Gamma}(\vec{f})\equiv4x_1x_2x_3\pmod8 sw Γ ( f ) ≡ 4 x 1 x 2 x 3 ( mod 8 ) for every z ⃗ \vec{z} z is equivalent to
( − 2 ) ∣ T ∣ − 1 sw Γ ( ⋀ i ∈ T g i ) ≡ { 4 , T = { 1 , 2 , 3 } , 0 , T ≠ { 1 , 2 , 3 } ( m o d 8 ) ( T ≠ ∅ ) . (-2)^{|T|-1}\operatorname{sw}_{\Gamma}\left(\bigwedge_{i\in T}g^i\right)\equiv
\begin{cases}
4, & T=\{1,2,3\},\\
0, & T\ne\{1,2,3\}
\end{cases}
\pmod8
\qquad(T\ne\varnothing). ( − 2 ) ∣ T ∣ − 1 sw Γ ( i ∈ T ⋀ g i ) ≡ { 4 , 0 , T = { 1 , 2 , 3 } , T = { 1 , 2 , 3 } ( mod 8 ) ( T = ∅ ) .
Terms with ∣ T ∣ ≥ 4 |T| \ge4 ∣ T ∣ ≥ 4 vanish automatically. For ∣ T ∣ = 1 , 2 , 3 |T| = 1, 2, 3 ∣ T ∣ = 1 , 2 , 3 , the factor ( − 2 ) ∣ T ∣ − 1 (-2)^{|T|-1} ( − 2 ) ∣ T ∣ − 1 is 1 1 1 , − 2 -2 − 2 , or 4 4 4 . The three cases reduce to congruences mod 8, 4, and 2, which are the three lines of Equation (16) , proving both directions. Finally, subtracting the expansion at y ⃗ = 0 \vec{y} = 0 y = 0 leaves only terms containing a stabilizer row. The conditions that contain a stabilizer row make all such coefficients zero mod 8, proving (17) .
Proof of Proposition 3.8
Proof of Proposition 3.8. On each block, Corollary A.2 gives ∣ γ b + c b ∣ − ∣ γ b ∣ = ∣ c b ∣ − 2 ∣ γ b ∧ c b ∣ |\gamma_b+c_b|-|\gamma_b|=|c_b|-2|\gamma_b\wedge c_b| ∣ γ b + c b ∣ − ∣ γ b ∣ = ∣ c b ∣ − 2∣ γ b ∧ c b ∣ . Summing the blocks gives
sw Γ ( c ) = ∣ c ∣ − 2 ( γ ⋅ c ) = ∑ b ( ∣ γ b + c b ∣ − ∣ γ b ∣ ) . (42) \operatorname{sw}_{\Gamma}(c)=|c|-2(\gamma\cdot c)=\sum_b\left(|\gamma_b+c_b|-|\gamma_b|\right). \tag*{(42)} sw Γ ( c ) = ∣ c ∣ − 2 ( γ ⋅ c ) = b ∑ ( ∣ γ b + c b ∣ − ∣ γ b ∣ ) . (42)
Substituting (42) into (15) gives Equation (21) . Under the conditions of Proposition 3.5 involving a stabilizer row, Equation (17) makes the signed weight independent of y ⃗ \vec{y} y modulo 8. Setting y ⃗ = 0 \vec{y}=0 y = 0 gives Equation (22) , with eight logical inputs x ⃗ ∈ F 2 3 \vec{x}\in\mathbb{F}_2^3 x ∈ F 2 3 .
Proof of Proposition 3.9
Proposition 3.9. Index the columns of S F G 48 \mathrm{S}_{\mathrm{FG48}} S FG48 by their coordinates ( u , w ) (u,w) ( u , w ) of (7) , writing u = ( u 1 , u 2 , u 3 , u 4 ) u=(u_1,u_2,u_3,u_4) u = ( u 1 , u 2 , u 3 , u 4 ) for the four rows of A A A and w w w for the coset label. The T/T† ^\dagger † pattern of Q 48 \mathrm{Q}_{48} Q 48 is obtained by evaluating the following polynomial. Write ev P \operatorname{ev}_{P} ev P for the evaluation map p ↦ ( p ( β ) ) β ∈ P p\mapsto(p(\beta))_{\beta\in\mathcal{P}} p ↦ ( p ( β ) ) β ∈ P .
γ ( u , w ) = u 3 + w 1 Q 1 ( u ) + w 2 Q 2 ( u ) , Q 1 = u 1 + u 2 + u 3 + u 1 u 3 + u 2 u 3 + u 2 u 4 , Q 2 = u 3 + u 4 + u 1 u 2 + u 1 u 4 + u 3 u 4 . (43) \begin{aligned}
\gamma(u,w)&=u_3+w_1Q_1(u)+w_2Q_2(u),\\
Q_1&=u_1+u_2+u_3+u_1u_3+u_2u_3+u_2u_4,\\
Q_2&=u_3+u_4+u_1u_2+u_1u_4+u_3u_4. \tag*{(43)}
\end{aligned} γ ( u , w ) Q 1 Q 2 = u 3 + w 1 Q 1 ( u ) + w 2 Q 2 ( u ) , = u 1 + u 2 + u 3 + u 1 u 3 + u 2 u 3 + u 2 u 4 , = u 3 + u 4 + u 1 u 2 + u 1 u 4 + u 3 u 4 . (43) The flip vector is γ = ev P ( γ ( u , w ) ) ∈ F 2 48 \gamma=\operatorname{ev}_{P}(\gamma(u,w))\in\mathbb{F}_2^{48} γ = ev P ( γ ( u , w )) ∈ F 2 48 . The flip vector has weight 22. The resulting 26 T† ^\dagger † + 22 T† ^\dagger † pattern is a single-qubit transversal implementation of logical CCZ for Q 48 \mathrm{Q}_{48} Q 48 .
Proof of Proposition 3.9. Equation (19) was used to find the pattern (23). The calculation below verifies the pattern independently of the search.
Proposition 3.5 reduces the check to y ⃗ = 0 \vec{y}=0 y = 0 once its conditions involving at least one stabilizer row hold. The pattern (23) satisfies
sw Γ ( S l ) ≡ 0 ( m o d 8 ) ( 1 ≤ l ≤ 6 ) , \operatorname{sw}_{\Gamma}(S_l)\equiv0\pmod{8}\qquad(1\le l\le6), sw Γ ( S l ) ≡ 0 ( mod 8 ) ( 1 ≤ l ≤ 6 ) ,
sw Γ ( K i ∧ S l ) ≡ 0 ( m o d 4 ) ( 1 ≤ i ≤ 3 , 1 ≤ l ≤ 6 ) , \operatorname{sw}_{\Gamma}(K_i\wedge S_l)\equiv0\pmod{4}\qquad(1\le i\le3,\ 1\le l\le6), sw Γ ( K i ∧ S l ) ≡ 0 ( mod 4 ) ( 1 ≤ i ≤ 3 , 1 ≤ l ≤ 6 ) ,
sw Γ ( S l ∧ S l ′ ) ≡ 0 ( m o d 4 ) ( 1 ≤ l < l ′ ≤ 6 ) . \operatorname{sw}_{\Gamma}(S_l\wedge S_{l'})\equiv0\pmod{4}\qquad(1\le l<l'\le6). sw Γ ( S l ∧ S l ′ ) ≡ 0 ( mod 4 ) ( 1 ≤ l < l ′ ≤ 6 ) .
The corresponding integer signed weights are recorded below. The row and column indices are l , l ′ ∈ { 1 , … , 6 } l,l'\in\{1,\ldots,6\} l , l ′ ∈ { 1 , … , 6 } and i ∈ { 1 , 2 , 3 } i\in\{1,2,3\} i ∈ { 1 , 2 , 3 } .
Table 11 (PDF p. 24).
Table 12 (PDF p. 24). sw Γ ( K i ∧ S l ) \operatorname{sw}_{\Gamma}(K_i\wedge S_l) sw Γ ( K i ∧ S l )
sw Γ ( S l ∧ S l ′ ) ( l < l ′ ) \operatorname{sw}_{\Gamma}(S_l \wedge S_{l'}) \qquad(l<l') sw Γ ( S l ∧ S l ′ ) ( l < l ′ )
Table 13.
The signed weights sw Γ ( S l ) \operatorname{sw}_{\Gamma}(S_l) sw Γ ( S l ) of single stabilizer rows are divisible by 8, and the signed weights sw Γ ( K i ∧ S l ) \operatorname{sw}_{\Gamma}(K_i \wedge S_l) sw Γ ( K i ∧ S l ) and sw Γ ( S l ∧ S l ′ ) \operatorname{sw}_{\Gamma}(S_l \wedge S_{l'}) sw Γ ( S l ∧ S l ′ ) of pairs of rows are divisible by 4. Every triple of distinct rows containing a stabilizer row has even overlap by S3, KS2, or KS3. Since Γ j ≡ 1 ( m o d 2 ) \Gamma_j \equiv1 \pmod{2} Γ j ≡ 1 ( mod 2 ) , its signed overlap is even as well. Together with the displayed one-row and two-row equations, Equation (17) implies
sw Γ ( K T x ⃗ + S T y ⃗ ) = sw Γ ( K T x ⃗ ) ( m o d 8 ) . \operatorname{sw}_{\Gamma}(K^{\mathsf T}\vec{x}+S^{\mathsf T}\vec{y})=\operatorname{sw}_{\Gamma}(K^{\mathsf T}\vec{x})\pmod{8}. sw Γ ( K T x + S T y ) = sw Γ ( K T x ) ( mod 8 ) .
Proposition 3.8 now reduces Equation (15) to sw Γ ( K T x ⃗ ) ≡ 4 x 1 x 2 x 3 ( m o d 8 ) \operatorname{sw}_{\Gamma}(K^{\mathsf T}\vec{x}) \equiv4x_1x_2x_3 \pmod{8} sw Γ ( K T x ) ≡ 4 x 1 x 2 x 3 ( mod 8 ) for the eight logical inputs x ⃗ ∈ F 2 3 \vec{x}\in\mathbb{F}_2^3 x ∈ F 2 3 . Equation (42) computes this signed weight from the three block weights of γ + K T x ⃗ \gamma+K^{\mathsf T}\vec{x} γ + K T x .
Write b = 1 , 2 , 3 b=1,2,3 b = 1 , 2 , 3 for the blocks with coset labels w ( 1 ) = ( 1 , 0 ) w^{(1)}=(1,0) w ( 1 ) = ( 1 , 0 ) , w ( 2 ) = ( 0 , 1 ) w^{(2)}=(0,1) w ( 2 ) = ( 0 , 1 ) , and w ( 3 ) = ( 1 , 1 ) w^{(3)}=(1,1) w ( 3 ) = ( 1 , 1 ) . A column in block b b b has stabilizer coordinates ( u , w ( b ) ) (u,w^{(b)}) ( u , w ( b ) ) and logical labels κ ( u , w ( b ) ) \kappa(u,w^{(b)}) κ ( u , w ( b ) ) from Table 2 . For c = K T x ⃗ c=K^{\mathsf T}\vec{x} c = K T x , let f b f_b f b be the restriction of γ + c \gamma+c γ + c to block b b b , that is, f b = γ b + c b f_b=\gamma_b+c_b f b = γ b + c b in the notation of Proposition 3.8:
f b ( u ) = γ ( u , w ( b ) ) + ∑ i = 1 3 x i κ i ( u , w ( b ) ) . (44) f_b(u)=\gamma(u,w^{(b)})+\sum_{i=1}^{3}x_i\kappa_i(u,w^{(b)}). \tag*{(44)} f b ( u ) = γ ( u , w ( b ) ) + i = 1 ∑ 3 x i κ i ( u , w ( b ) ) . (44)
For each logical input x ⃗ \vec{x} x , the signed weight to be checked is sw Γ ( K T x ⃗ ) = ∑ b ∣ f b ∣ − ∣ γ ∣ \operatorname{sw}_{\Gamma}(K^{\mathsf T}\vec{x})=\sum_b |f_b|-|\gamma| sw Γ ( K T x ) = ∑ b ∣ f b ∣ − ∣ γ ∣ .
Counting the u ∈ F 2 2 u\in\mathbb{F}_2^2 u ∈ F 2 2 with f b ( u ) = 1 f_b(u)=1 f b ( u ) = 1 for each of the eight logical inputs x ⃗ \vec{x} x gives the block weights needed in (42) :
Table 14.
For example, at x ⃗ = 0 \vec{x}=0 x = 0 the first block has f 1 ( u ) = ( u 1 + u 2 ) ( 1 + u 3 ) + u 2 u 4 f_1(u)=(u_1+u_2)(1+u_3)+u_2u_4 f 1 ( u ) = ( u 1 + u 2 ) ( 1 + u 3 ) + u 2 u 4 . The cases u 2 = 0 u_2=0 u 2 = 0 and u 2 = 1 u_2=1 u 2 = 1 contribute two and four ones, respectively, giving ∣ f 1 ∣ = 6 |f_1|=6 ∣ f 1 ∣ = 6 .
At x ⃗ = 0 \vec{x}=0 x = 0 , f b = γ b f_b=\gamma_b f b = γ b , so the first column of the block-weight table gives ∣ γ ∣ = 6 + 6 + 10 = 22 |\gamma|=6+6+10=22 ∣ γ ∣ = 6 + 6 + 10 = 22 .
Subtracting ∣ γ ∣ = 22 |\gamma|=22 ∣ γ ∣ = 22 from the sum row of the block-weight table gives 0 or 8 for every input except ( 1 , 1 , 1 ) (1,1,1) ( 1 , 1 , 1 ) , where it gives − 4 -4 − 4 . Equation (42) therefore yields
sw Γ ( c ) = ∑ b ∣ f b ∣ − 22 ≡ 4 x 1 x 2 x 3 ( m o d 8 ) . (45) \operatorname{sw}_{\Gamma}(c)=\sum_b|f_b|-22\equiv4x_1x_2x_3\pmod{8}. \tag*{(45)} sw Γ ( c ) = b ∑ ∣ f b ∣ − 22 ≡ 4 x 1 x 2 x 3 ( mod 8 ) . (45)
The specified T / T † T/T^\dagger T / T † pattern thus implements logical CCZ.
Support reductions and length lower bounds
Reduction to projective stabilizer supports
Lemma D.1 (Reduction to projective C 2 C_2 C 2 ). Let G = [ K ; S ] G=[K;S] G = [ K ; S ] satisfy the nine C H CH C H conditions with k = 3 k=3 k = 3 and d Z ≥ 3 d_Z\ge3 d Z ≥ 3 . If C 2 C_2 C 2 is non-projective, then S S S has a zero column j j j or two equal columns j ≠ j ′ j\ne j' j = j ′ . In the zero-column case, form G ′ G' G ′ by deleting column j j j . In the repeated-column case, form G ′ G' G ′ by deleting both equal columns j j j and j ′ j' j ′ . In either case, G ′ G' G ′ satisfies:
(i) G ′ G' G ′ satisfies the nine C H CH C H conditions,
(ii) k ′ = k k'=k k ′ = k ,
(iii) d Z ( G ′ ) ≥ d Z ( G ) d_Z(G')\ge d_Z(G) d Z ( G ′ ) ≥ d Z ( G ) .
Iterating until C 2 C_2 C 2 is projective terminates and preserves all three properties.
Proof. Non-projectivity of C 2 C_2 C 2 gives a zero column of S S S or a repeated pair. Let e j ∈ F 2 n e_j\in\mathbb{F}_2^n e j ∈ F 2 n denote the j j j th coordinate vector, and define σ ∈ F 2 n \sigma\in\mathbb{F}_2^n σ ∈ F 2 n by
σ = { e j , if column j of S is zero , e j + e j ′ , if columns j ≠ j ′ of S are equal . \sigma=
\begin{cases}
e_j, & \text{if column }j\text{ of }S\text{ is zero},\\
e_j+e_{j'}, & \text{if columns }j\ne j'\text{ of }S\text{ are equal}.
\end{cases} σ = { e j , e j + e j ′ , if column j of S is zero , if columns j = j ′ of S are equal .
Lemma 2.1(b) and d Z ≥ 3 d_Z\ge3 d Z ≥ 3 imply that the corresponding full column of G G G is zero in the first case and that the two corresponding full columns are equal in the second. Therefore
G σ = 0 , ∣ σ ∣ ≤ 2. (46) G\sigma=0,\qquad|\sigma|\le2. \tag*{(46)} G σ = 0 , ∣ σ ∣ ≤ 2. (46)
Puncture the coordinates in supp ( σ ) \operatorname{supp}(\sigma) supp ( σ ) from both S S S and G = [ K ; S ] G=[K;S] G = [ K ; S ] , and call the results S ′ S' S ′ and G ′ G' G ′ .
By Lemma A.8(c), G ′ G' G ′ satisfies the nine C H CH C H conditions. The logical dimension is preserved if the row-space dimensions of G G G and S S S fall by the same amount. Equation (46) says that every codeword in C 1 C_1 C 1 , and hence every codeword in C 2 C_2 C 2 , has even parity on supp ( σ ) \operatorname{supp}(\sigma) supp ( σ ) . The only possible nonzero codeword in either code supported inside supp ( σ ) \operatorname{supp}(\sigma) supp ( σ ) is therefore σ T \sigma^\mathsf{T} σ T . Equation (33) gives
rank G − rank G ′ = { 1 , σ T ∈ C 1 , 0 , σ T ∉ C 1 , rank S − rank S ′ = { 1 , σ T ∈ C 2 , 0 , σ T ∉ C 2 . (47) \operatorname{rank}G-\operatorname{rank}G'=
\begin{cases}
1, & \sigma^\mathsf{T}\in C_1,\\
0, & \sigma^\mathsf{T}\notin C_1,
\end{cases}
\qquad
\operatorname{rank}S-\operatorname{rank}S'=
\begin{cases}
1, & \sigma^\mathsf{T}\in C_2,\\
0, & \sigma^\mathsf{T}\notin C_2.
\end{cases} \tag*{(47)} rank G − rank G ′ = { 1 , 0 , σ T ∈ C 1 , σ T ∈ / C 1 , rank S − rank S ′ = { 1 , 0 , σ T ∈ C 2 , σ T ∈ / C 2 . (47)
In the zero-column case, every codeword of C 1 C_1 C 1 has zero in coordinate j j j , so σ T = e j T ∉ C 1 \sigma^\mathsf{T}=e_j^\mathsf{T}\notin C_1 σ T = e j T ∈ / C 1 and neither rank falls.
For the repeated-column case, C 2 ⊆ C 1 C_2\subseteq C_1 C 2 ⊆ C 1 means the two lines of (47) can differ only if σ T ∈ C 1 ∖ C 2 \sigma^\mathsf{T}\in C_1\setminus C_2 σ T ∈ C 1 ∖ C 2 . Assume σ T ∈ C 1 \sigma^\mathsf{T}\in C_1 σ T ∈ C 1 and write
σ T = ∑ i = 1 3 x i K i + ∑ l = 1 s y l S l , x ∈ F 2 3 , y ∈ F 2 s . (48) \sigma^\mathsf{T}=\sum_{i=1}^{3}x_iK_i+\sum_{l=1}^{s}y_lS_l,\qquad x\in\mathbb{F}_2^3,\quad y\in\mathbb{F}_2^s. \tag*{(48)} σ T = i = 1 ∑ 3 x i K i + l = 1 ∑ s y l S l , x ∈ F 2 3 , y ∈ F 2 s . (48)
For { i , i ′ , i ′ ′ } = { 1 , 2 , 3 } \{i,i',i''\}=\{1,2,3\} { i , i ′ , i ′′ } = { 1 , 2 , 3 } , the two deleted full columns are equal, so ∣ σ T ∧ K i ∧ K i ′ ∧ K i ′ ′ ∣ |\sigma^\mathsf{T}\wedge K_i\wedge K_{i'}\wedge K_{i''}| ∣ σ T ∧ K i ∧ K i ′ ∧ K i ′′ ∣ is even. Corollary A.6(a), applied to (48) , therefore gives x i = 0 x_i=0 x i = 0 . Thus x 1 = x 2 = x 3 = 0 x_1=x_2=x_3=0 x 1 = x 2 = x 3 = 0 , and (48) puts σ T \sigma^\mathsf{T} σ T in C 2 C_2 C 2 . So σ T ∈ C 1 \sigma^\mathsf{T}\in C_1 σ T ∈ C 1 forces σ T ∈ C 2 \sigma^\mathsf{T}\in C_2 σ T ∈ C 2 . Together with C 2 ⊆ C 1 C_2\subseteq C_1 C 2 ⊆ C 1 , the vector σ T \sigma^\mathsf{T} σ T lies in both codes or in neither, so the two cases of (47) always agree. The rank drops in (47) are equal, so k ′ = rank G ′ − rank S ′ = k k'=\operatorname{rank}G'-\operatorname{rank}S'=k k ′ = rank G ′ − rank S ′ = k .
Lemma A.8(c) gives d Z ( G ′ ) ≥ d Z ( G ) d_Z(G')\ge d_Z(G) d Z ( G ′ ) ≥ d Z ( G ) .
Each puncture reduces the number of columns by one or two. The process therefore stops after finitely many steps, when the columns of S S S are distinct and nonzero, which is precisely when C 2 C_2 C 2 is projective. ∎
Admissible supports and affine classification
Support polynomials and block lengths
Proof of Theorem 4.1 . In this proof, we translate conditions S1–S3 to inner products associated with the column indicator χ S \chi_S χ S , which allows us to compute the block length n n n directly.
Set T K = ∅ T_K = \varnothing T K = ∅ in Equation (9) . Then m T K ( κ ( β ) ) = 1 m_{T_K}(\kappa(\beta)) = 1 m T K ( κ ( β )) = 1 for every β \beta β , and conditions S1–S3 become
⨁ β ≠ 0 χ S ( β ) m T S ( β ) = ⟨ χ S , m T S ⟩ = 0 , 1 ≤ ∣ T S ∣ ≤ 3. \bigoplus_{\beta\ne0} \chi_S(\beta)m_{T_S}(\beta) = \langle\chi_S,m_{T_S}\rangle= 0,\qquad1 \le|T_S| \le3. β = 0 ⨁ χ S ( β ) m T S ( β ) = ⟨ χ S , m T S ⟩ = 0 , 1 ≤ ∣ T S ∣ ≤ 3.
The cases ∣ T S ∣ = 1 , 2 , 3 |T_S| = 1,2,3 ∣ T S ∣ = 1 , 2 , 3 are S1, S2, and S3, respectively.
To characterize the indicators orthogonal to these monomials, let
W = span { m T : 1 ≤ ∣ T ∣ ≤ 3 } , RM ( 3 , s ) = W ∪ ( 1 + W ) . W = \operatorname{span}\{m_T : 1 \le|T| \le3\},\qquad\operatorname{RM}(3,s) = W \cup(1+W). W = span { m T : 1 ≤ ∣ T ∣ ≤ 3 } , RM ( 3 , s ) = W ∪ ( 1 + W ) .
Conditions S1–S3 imply χ S ∈ W ⊥ \chi_S \in W^\perp χ S ∈ W ⊥ . Reed–Muller duality [32 ] gives
RM ( 3 , s ) ⊥ = RM ( s − 4 , s ) . \operatorname{RM}(3,s)^\perp= \operatorname{RM}(s-4,s). RM ( 3 , s ) ⊥ = RM ( s − 4 , s ) .
Moreover, Equation (28) gives δ 0 ∈ W ⊥ \delta_0 \in W^\perp δ 0 ∈ W ⊥ and ⟨ δ 0 , 1 ⟩ = 1 \langle\delta_0,1\rangle= 1 ⟨ δ 0 , 1 ⟩ = 1 . Since W ⊆ RM ( 3 , s ) W \subseteq\operatorname{RM}(3,s) W ⊆ RM ( 3 , s ) , the code RM ( s − 4 , s ) = RM ( 3 , s ) ⊥ \operatorname{RM}(s-4,s) = \operatorname{RM}(3,s)^\perp RM ( s − 4 , s ) = RM ( 3 , s ) ⊥ lies in W ⊥ W^\perp W ⊥ . Every element of RM ( s − 4 , s ) \operatorname{RM}(s-4,s) RM ( s − 4 , s ) is orthogonal to 1 ∈ RM ( 3 , s ) 1 \in\operatorname{RM}(3,s) 1 ∈ RM ( 3 , s ) , so ⟨ δ 0 , 1 ⟩ = 1 \langle\delta_0,1\rangle= 1 ⟨ δ 0 , 1 ⟩ = 1 gives δ 0 ∉ RM ( s − 4 , s ) \delta_0 \notin\operatorname{RM}(s-4,s) δ 0 ∈ / RM ( s − 4 , s ) . Finally,
dim W ⊥ = 2 s − ( dim RM ( 3 , s ) − 1 ) = dim RM ( s − 4 , s ) + 1. \dim W^\perp= 2^s - \bigl(\dim\operatorname{RM}(3,s)-1\bigr) = \dim\operatorname{RM}(s-4,s)+1. dim W ⊥ = 2 s − ( dim RM ( 3 , s ) − 1 ) = dim RM ( s − 4 , s ) + 1.
The inclusions and the dimension equality yield
W ⊥ = RM ( s − 4 , s ) ∪ ( δ 0 + RM ( s − 4 , s ) ) , χ S ∈ RM ( s − 4 , s ) ∪ ( δ 0 + RM ( s − 4 , s ) ) . W^\perp= \operatorname{RM}(s-4,s) \cup\bigl(\delta_0+\operatorname{RM}(s-4,s)\bigr),\qquad\chi_S \in\operatorname{RM}(s-4,s) \cup\bigl(\delta_0+\operatorname{RM}(s-4,s)\bigr). W ⊥ = RM ( s − 4 , s ) ∪ ( δ 0 + RM ( s − 4 , s ) ) , χ S ∈ RM ( s − 4 , s ) ∪ ( δ 0 + RM ( s − 4 , s ) ) .
Since S S S has no zero column, its column indicator satisfies χ S ( 0 ) = 0 \chi_S(0)=0 χ S ( 0 ) = 0 . Writing χ S = c + ϵ δ 0 \chi_S = c+\epsilon\delta_0 χ S = c + ϵ δ 0 with c ∈ RM ( s − 4 , s ) c \in\operatorname{RM}(s-4,s) c ∈ RM ( s − 4 , s ) forces ϵ = c ( 0 ) \epsilon=c(0) ϵ = c ( 0 ) , and hence
n = { ∣ c ∣ , c ( 0 ) = 0 , ∣ c ∣ − 1 , c ( 0 ) = 1. (49) n =
\begin{cases}
|c|, & c(0)=0,\\
|c|-1, & c(0)=1.
\end{cases} \tag*{(49)} n = { ∣ c ∣ , ∣ c ∣ − 1 , c ( 0 ) = 0 , c ( 0 ) = 1. (49)
Conversely, every c ∈ RM ( s − 4 , s ) c \in\operatorname{RM}(s-4,s) c ∈ RM ( s − 4 , s ) gives χ S = c + c ( 0 ) δ 0 \chi_S=c+c(0)\delta_0 χ S = c + c ( 0 ) δ 0 , which vanishes at the origin and is orthogonal to every nonconstant monomial of degree at most three. Thus S1–S3 hold, and the two cases above give exactly the lengths allowed by these conditions.
The columns of S S S are exactly the nonzero β \beta β with c ( β ) = 1 c(\beta)=1 c ( β ) = 1 , so
rank S = dim span { β ∈ F 2 s ∖ { 0 } : c ( β ) = 1 } . \operatorname{rank} S = \dim\operatorname{span}\{\beta\in\mathbb{F}_2^s \setminus\{0\}:c(\beta)=1\}. rank S = dim span { β ∈ F 2 s ∖ { 0 } : c ( β ) = 1 } .
Requiring rank S = s \operatorname{rank} S=s rank S = s gives the last condition in Theorem 4.1 .
Affine equivalence and puncturing
Theorem 4.1 describes each candidate support P \mathcal{P} P by a polynomial c ∈ RM ( s − 4 , s ) c \in\operatorname{RM}(s-4,s) c ∈ RM ( s − 4 , s ) . For a map κ : supp ( c ) → F 2 3 \kappa:\operatorname{supp}(c)\to\mathbb{F}_2^3 κ : supp ( c ) → F 2 3 , let G G G be the matrix with columns ( κ ( β ) , β ) (\kappa(\beta),\beta) ( κ ( β ) , β ) for β ∈ supp ( c ) \beta\in\operatorname{supp}(c) β ∈ supp ( c ) .
Lemma D.2 (Affine changes of the support). Let L L L be an invertible affine map of F 2 s \mathbb{F}_2^s F 2 s , and let G L G_L G L be the matrix with columns ( κ ( β ) , L ( β ) ) (\kappa(\beta),L(\beta)) ( κ ( β ) , L ( β )) for β ∈ supp ( c ) \beta\in\operatorname{supp}(c) β ∈ supp ( c ) . Then G G G satisfies the nine CH conditions if and only if G L G_L G L does.
Each column keeps its logical label κ ( β ) \kappa(\beta) κ ( β ) , and only its syndrome moves from β \beta β to L ( β ) L(\beta) L ( β ) .
Proof. By Lemma A.5 , the syndromes L ( β ) L(\beta) L ( β ) of G L G_L G L form supp ( c ∘ L − 1 ) \operatorname{supp}(c \circ L^{-1}) supp ( c ∘ L − 1 ) , and c ∘ L − 1 ∈ RM ( s − 4 , s ) c \circ L^{-1} \in\operatorname{RM}(s-4,s) c ∘ L − 1 ∈ RM ( s − 4 , s ) , so G L G_L G L has the same form as G G G . Write L ( β ) = A ( β + a ) L(\beta) = A(\beta+a) L ( β ) = A ( β + a ) with A ∈ GL ( s , 2 ) A \in\operatorname{GL}(s,2) A ∈ GL ( s , 2 ) and a ∈ F 2 s a \in\mathbb{F}_2^s a ∈ F 2 s , a translation by a a a followed by the linear map A A A . Proving the forward implication for each of the two maps suffices, because L − 1 L^{-1} L − 1 is again an invertible affine map and gives the converse.
An invertible linear change of the syndromes is a row operation on S S S . Replacing every syndrome β \beta β by A β A\beta A β replaces S S S by A S AS A S . Since A A A is invertible, Lemma A.8 (a) shows that [ K ; A S ] [K; AS] [ K ; A S ] satisfies CH exactly when [ K ; S ] [K; S] [ K ; S ] does, with the same n n n , s s s , k k k , and d Z d_Z d Z .
A translation of the syndromes is a row operation on [ S ; 1 T ] [S; \mathbf{1}^{\mathsf{T}}] [ S ; 1 T ] . Replacing every syndrome β \beta β by β + a \beta+a β + a adds a j a_j a j to every entry of row j j j of S S S , so S S S becomes S + a 1 T S+a\mathbf{1}^{\mathsf{T}} S + a 1 T . Each new row is a combination of the rows of [ S ; 1 T ] [S; \mathbf{1}^{\mathsf{T}}] [ S ; 1 T ] , and that matrix satisfies CH by Corollary A.6 (b) once the full support has even size. The size is even because the coefficient of β 1 ⋯ β s \beta_1\cdots\beta_s β 1 ⋯ β s in c c c vanishes (deg c ≤ s − 4 \deg c \le s-4 deg c ≤ s − 4 ), so Lemma A.3 gives
∣ c ∣ ≡ 0 ( m o d 2 ) . (50) |c| \equiv0 \pmod{2}. \tag*{(50)} ∣ c ∣ ≡ 0 ( mod 2 ) . (50)
Lemma A.8 (a) then shows that [ K ; S + a 1 T ] [K; S+a\mathbf{1}^{\mathsf{T}}] [ K ; S + a 1 T ] satisfies CH.
Moving a supported point to the origin creates a zero column, which is deleted. Every invertible affine change L ( β ) = A β + b L(\beta)=A\beta+b L ( β ) = A β + b can be written as L ( β ) = A ( β + a ) L(\beta)=A(\beta+a) L ( β ) = A ( β + a ) with a = A − 1 b a=A^{-1}b a = A − 1 b , and a a a is the unique point that L L L sends to the origin. After the linear part A A A is removed as above, the candidate support is
P a = ( supp ( c ) + a ) ∖ { 0 } . (51) \mathcal{P}_a = (\operatorname{supp}(c)+a)\setminus\{0\}. \tag*{(51)} P a = ( supp ( c ) + a ) ∖ { 0 } . (51)
The point a a a is an origin choice . If c ( a ) = 0 c(a)=0 c ( a ) = 0 , then P a \mathcal{P}_a P a has length ∣ c ∣ |c| ∣ c ∣ . If c ( a ) = 1 c(a)=1 c ( a ) = 1 , the column indexed by a a a has syndrome 0 0 0 after the translation. The logical label at a a a must be κ ( a ) = 0 \kappa(a)=0 κ ( a ) = 0 when d Z ≥ 3 d_Z \ge3 d Z ≥ 3 (Lemma 2.1 ), and puncturing the code on this zero column preserves CH and k k k (Lemma D.1 ), so P a \mathcal{P}_a P a has length ∣ c ∣ − 1 |c|-1 ∣ c ∣ − 1 . The proof of Theorem 4.5 does not test every origin choice. For each polynomial c c c , the proof tests only the support P a 0 \mathcal{P}_{a_0} P a 0 of length ∣ c ∣ |c| ∣ c ∣ , for one point a 0 a_0 a 0 with c ( a 0 ) = 0 c(a_0)=0 c ( a 0 ) = 0 . Corollary D.3 shows that this single test also excludes P a \mathcal{P}_a P a for every other a a a , including the supports of length ∣ c ∣ − 1 |c|-1 ∣ c ∣ − 1 with c ( a ) = 1 c(a)=1 c ( a ) = 1 .
Corollary D.3. Let c ∈ RM ( s − 4 , s ) c \in\operatorname{RM}(s-4,s) c ∈ RM ( s − 4 , s ) , and let a 0 ∈ F 2 s a_0 \in\mathbb{F}_2^s a 0 ∈ F 2 s satisfy c ( a 0 ) = 0 c(a_0)=0 c ( a 0 ) = 0 . If no label map satisfies the CH conditions on P a 0 \mathcal{P}_{a_0} P a 0 , then for every a ∈ F 2 s a \in\mathbb{F}_2^s a ∈ F 2 s no label map on P a \mathcal{P}_a P a satisfies the CH conditions with d Z ≥ 3 d_Z \ge3 d Z ≥ 3 .
Proof. Since c ( a 0 ) = 0 c(a_0)=0 c ( a 0 ) = 0 , the support P a 0 \mathcal{P}_{a_0} P a 0 equals supp ( c ) + a 0 \operatorname{supp}(c)+a_0 supp ( c ) + a 0 . Given a label map on some P a \mathcal{P}_a P a that satisfies the CH conditions with d Z ≥ 3 d_Z \ge3 d Z ≥ 3 , reinsert the zero column if c ( a ) = 1 c(a)=1 c ( a ) = 1 (Lemma A.8 (c)) and translate back by a a a . The result is a label map on supp ( c ) \operatorname{supp}(c) supp ( c ) that satisfies the CH conditions, and translating by a 0 a_0 a 0 gives one on P a 0 \mathcal{P}_{a_0} P a 0 by Lemma D.2 . The resulting label map on P a 0 \mathcal{P}_{a_0} P a 0 contradicts the hypothesis.
Appendix § 11 .2.3 below focuses on the supports P \mathcal{P} P that are affine flats, which carry no label map satisfying the CH conditions, and bounds the rank of supports that lie inside a flat.
Affine-flat supports
Proof of Lemma 4.2. On a flat of dimension m ≤ 4 m \le4 m ≤ 4 , conditions K1, KS1, and KS3 force each label κ i \kappa_i κ i to have degree at most m − 3 m-3 m − 3 in the coordinates of the flat, and κ i = 0 \kappa_i = 0 κ i = 0 when m ≤ 2 m \le2 m ≤ 2 . The product κ 1 κ 2 κ 3 \kappa_1\kappa_2\kappa_3 κ 1 κ 2 κ 3 then has degree below m m m and even weight, so K3 fails before any search for the labels. The proof makes this degree count precise.
Let P = v + U P = v + U P = v + U , where U ⊆ F 2 s U \subseteq\mathbb{F}_2^s U ⊆ F 2 s has dimension m ≤ 4 m \le4 m ≤ 4 . Choose affine coordinates on F 2 s \mathbb{F}_2^s F 2 s in which P P P is the set of points ( z , 0 ) (z,0) ( z , 0 ) with z ∈ F 2 m z \in\mathbb{F}_2^m z ∈ F 2 m , so that every function on P P P becomes a function of z ∈ F 2 m z \in\mathbb{F}_2^m z ∈ F 2 m , and write κ i ( z ) \kappa_i(z) κ i ( z ) for the label at ( z , 0 ) (z,0) ( z , 0 ) . Degrees are unchanged under this affine change by Lemma A.5, so we have
RM ( 2 , s ) ∣ P = { q ( z , 0 ) : q ∈ RM ( 2 , s ) } = RM ( 2 , m ) . (52) \operatorname{RM}(2,s)|_P = \{q(z,0) : q \in\operatorname{RM}(2,s)\} = \operatorname{RM}(2,m). \tag*{(52)} RM ( 2 , s ) ∣ P = { q ( z , 0 ) : q ∈ RM ( 2 , s )} = RM ( 2 , m ) . (52)
Equation (35) , Reed–Muller duality (32) , and Equation (52) give
κ i ∈ RM ( 2 , m ) ⊥ = { { 0 } , m ≤ 2 , RM ( m − 3 , m ) , 3 ≤ m ≤ 4. (53) \kappa_i \in\operatorname{RM}(2,m)^\perp=
\begin{cases}
\{0\}, & m \le2,\\
\operatorname{RM}(m-3,m), & 3 \le m \le4.
\end{cases} \tag*{(53)} κ i ∈ RM ( 2 , m ) ⊥ = { { 0 } , RM ( m − 3 , m ) , m ≤ 2 , 3 ≤ m ≤ 4. (53)
For m ≤ 2 m \le2 m ≤ 2 , every κ i \kappa_i κ i is zero, contradicting K3. For 3 ≤ m ≤ 4 3 \le m \le4 3 ≤ m ≤ 4 , the degree of a product is at most the sum of the degrees, deg ( f g ) ≤ deg f + deg g \deg(fg) \le\deg f + \deg g deg ( f g ) ≤ deg f + deg g , and 3 ( m − 3 ) ≤ m − 1 3(m-3) \le m-1 3 ( m − 3 ) ≤ m − 1 holds because m ≤ 4 m \le4 m ≤ 4 . Hence
deg ( κ 1 κ 2 κ 3 ) ≤ 3 ( m − 3 ) ≤ m − 1. (54) \deg(\kappa_1\kappa_2\kappa_3) \le3(m-3) \le m-1. \tag*{(54)} deg ( κ 1 κ 2 κ 3 ) ≤ 3 ( m − 3 ) ≤ m − 1. (54)
The coefficient of z 1 ⋯ z m z_1 \cdots z_m z 1 ⋯ z m in κ 1 κ 2 κ 3 \kappa_1\kappa_2\kappa_3 κ 1 κ 2 κ 3 therefore vanishes, and Equation (27) of Lemma A.3 gives
∣ κ 1 κ 2 κ 3 ∣ ≡ 0 ( m o d 2 ) . (55) |\kappa_1\kappa_2\kappa_3| \equiv0 \pmod{2}. \tag*{(55)} ∣ κ 1 κ 2 κ 3 ∣ ≡ 0 ( mod 2 ) . (55)
Equation (8) with T = { 1 , 2 , 3 } T = \{1,2,3\} T = { 1 , 2 , 3 } and T S = ∅ T_S = \varnothing T S = ∅ therefore gives
∣ K 1 ∧ K 2 ∧ K 3 ∣ ≡ ∑ β ∈ P κ 1 ( β ) κ 2 ( β ) κ 3 ( β ) ≡ ∣ κ 1 κ 2 κ 3 ∣ ≡ 0 ( m o d 2 ) , (56) \begin{aligned}
|K_1 \wedge K_2 \wedge K_3| &\equiv\sum_{\beta\in P} \kappa_1(\beta)\kappa_2(\beta)\kappa_3(\beta)\\
&\equiv|\kappa_1\kappa_2\kappa_3| \equiv0 \pmod{2}, \tag*{(56)}
\end{aligned} ∣ K 1 ∧ K 2 ∧ K 3 ∣ ≡ β ∈ P ∑ κ 1 ( β ) κ 2 ( β ) κ 3 ( β ) ≡ ∣ κ 1 κ 2 κ 3 ∣ ≡ 0 ( mod 2 ) , (56)
which contradicts K3.
The lemma also covers a flat with the origin deleted. For such a support, inserting the zero column at the origin gives, by Lemma A.8(c), a label map on the full flat that satisfies the CH conditions, and the argument above excludes it.
For n ∈ { 15 , 16 } n \in\{15,16\} n ∈ { 15 , 16 } , Theorem 4.1 gives n = ∣ c ∣ n = |c| n = ∣ c ∣ or n = ∣ c ∣ − 1 n = |c|-1 n = ∣ c ∣ − 1 for some c ∈ RM ( s − 4 , s ) c \in\operatorname{RM}(s-4,s) c ∈ RM ( s − 4 , s ) , and ∣ c ∣ |c| ∣ c ∣ is even by (50) . Hence ∣ c ∣ = 16 |c| = 16 ∣ c ∣ = 16 , the minimum weight of RM ( s − 4 , s ) \operatorname{RM}(s-4,s) RM ( s − 4 , s ) . The minimum-weight codewords are the indicators of 4-dimensional affine flats (Appendix A.1), so the support is such a flat, and this lemma excludes it.
A support inside an affine flat has actual rank at most the dimension of the flat plus one. Steps 2, 3, and 5 of the proof of Theorem 4.5 use this bound to discard supports that lie in a flat.
Small-rank support exclusion
Proof of Proposition 4.3. At stabilizer rank at most 5, Theorem 4.1 leaves so few supports that all but one are flats, and a direct search settles the remaining case.
By Lemma D.1 and Theorem 4.1, a code with stabilizer rank s ≤ 5 s \le5 s ≤ 5 has support P = supp ( c ) ∖ { 0 } P = \operatorname{supp}(c) \setminus\{0\} P = supp ( c ) ∖ { 0 } for some c ∈ RM ( s − 4 , s ) c \in\operatorname{RM}(s-4,s) c ∈ RM ( s − 4 , s ) . For s < 4 s < 4 s < 4 , the convention RM ( s − 4 , s ) = { 0 } \operatorname{RM}(s-4,s)=\{0\} RM ( s − 4 , s ) = { 0 } in (32) makes the support empty. For s = 4 s=4 s = 4 , the only nonzero codeword in RM ( 0 , 4 ) \operatorname{RM}(0,4) RM ( 0 , 4 ) is the constant function 1 1 1 . The function’s projective support is F 2 4 ∖ { 0 } \mathbb{F}_2^4\setminus\{0\} F 2 4 ∖ { 0 } , which Lemma 4.2 excludes.
For s = 5 s=5 s = 5 , every codeword of RM ( 1 , 5 ) \operatorname{RM}(1,5) RM ( 1 , 5 ) has the form c ( β ) = a ⋅ β + b c(\beta)=a\cdot\beta+b c ( β ) = a ⋅ β + b , and Table 6 lists the resulting supports. The 62 supports with a ≠ 0 a\ne0 a = 0 are affine hyperplanes of F 2 5 \mathbb{F}_2^5 F 2 5 , which are affine flats of dimension 4, or such hyperplanes with the origin deleted. Lemma 4.2 excludes them, and only P = F 2 5 ∖ { 0 } \mathcal{P}=\mathbb{F}_2^5\setminus\{0\} P = F 2 5 ∖ { 0 } remains.
Table 6. Supports from the 63 nonzero codewords of RM(1, 5).
To run Algorithm 1 on this support we need d = dim V P d=\dim V_{\mathcal{P}} d = dim V P , the number of unknowns in (38) . By (35) , V P V_{\mathcal{P}} V P is the orthogonal complement of ev P ( RM ( 2 , 5 ) ) \operatorname{ev}_{\mathcal{P}}(\operatorname{RM}(2,5)) ev P ( RM ( 2 , 5 )) in F 2 31 \mathbb{F}_2^{31} F 2 31 . The map ev P \operatorname{ev}_{\mathcal{P}} ev P is injective on RM ( 2 , 5 ) \operatorname{RM}(2,5) RM ( 2 , 5 ) . A polynomial of degree at most two that vanishes on every nonzero point of F 2 5 \mathbb{F}_2^5 F 2 5 is 0 0 0 or δ 0 \delta_0 δ 0 , and δ 0 \delta_0 δ 0 has degree five by Lemma A.4 , so it is 0 0 0 . Hence ev P ( RM ( 2 , 5 ) ) \operatorname{ev}_{\mathcal{P}}(\operatorname{RM}(2,5)) ev P ( RM ( 2 , 5 )) has dimension dim RM ( 2 , 5 ) = 16 \dim\operatorname{RM}(2,5)=16 dim RM ( 2 , 5 ) = 16 , and
dim V P = 15. (57) \dim V_{\mathcal{P}}=15. \tag*{(57)} dim V P = 15. (57)
With d = 15 d=15 d = 15 , Algorithm 1 exhausts all 49,741,825 ordered pairs ( κ 1 , κ 2 ) (\kappa_1,\kappa_2) ( κ 1 , κ 2 ) satisfying (36) . For each pair, Equation (38) has 2 + 2 s + 1 = 13 2+2s+1=13 2 + 2 s + 1 = 13 equations at s = 5 s=5 s = 5 in the 15 basis coefficients of κ 3 \kappa_3 κ 3 . The equation admits no solution for any pair, so no pair extends to a CH label map.
Stabilizer-rank reduction and hyperplane supports
Let G = [ K ; S ] G=[K;S] G = [ K ; S ] satisfy the nine CH conditions with k = 3 k=3 k = 3 and d Z ≥ 3 d_Z\ge3 d Z ≥ 3 and C 2 C_2 C 2 projective. Express G G G in terms of its set P \mathcal{P} P of syndrome columns:
G = ( ( κ ( β ) β ) ) β ∈ P . (58) G=\left(\left(\begin{array}{c}\kappa(\beta)\\ \beta\end{array}\right)\right)_{\beta\in\mathcal{P}}. \tag*{(58)} G = ( ( κ ( β ) β ) ) β ∈ P . (58)
To delete one independent stabilizer row, construct a projection π : F 2 s → F 2 s − 1 \pi:\mathbb{F}_2^s\to\mathbb{F}_2^{s-1} π : F 2 s → F 2 s − 1 with a one-dimensional kernel, generated by a nonzero vector v ∈ F 2 s v\in\mathbb{F}_2^s v ∈ F 2 s :
ker π = ⟨ v ⟩ = { 0 , v } . (59) \ker\pi=\langle v\rangle=\{0,v\}. \tag*{(59)} ker π = ⟨ v ⟩ = { 0 , v } . (59)
Choose m m m with v m = 1 v_m=1 v m = 1 , and define π \pi π by
π ( β ) = ( β l + v l β m ) l ≠ m . \pi(\beta)=\left(\beta_l+v_l\beta_m\right)_{l\ne m}. π ( β ) = ( β l + v l β m ) l = m .
If π ( β ) = 0 \pi(\beta)=0 π ( β ) = 0 , then β l = v l β m \beta_l=v_l\beta_m β l = v l β m for l ≠ m l\ne m l = m , hence β = β m v \beta=\beta_m v β = β m v . For δ ∈ F 2 3 \delta\in\mathbb{F}_2^3 δ ∈ F 2 3 , apply the row operations
K i ↦ K i + δ i S m ( 1 ≤ i ≤ 3 ) , S l ↦ S l + v l S m ( l ≠ m ) , K_i\mapsto K_i+\delta_iS_m\quad(1\le i\le3),\qquad S_l\mapsto S_l+v_lS_m\quad(l\ne m), K i ↦ K i + δ i S m ( 1 ≤ i ≤ 3 ) , S l ↦ S l + v l S m ( l = m ) ,
and delete S m S_m S m . The full-column operation is
\begin{pmatrix}\alpha\\\beta\end{pmatrix}\mapsto
\begin{pmatrix}\alpha+\beta_m\delta\\\pi(\beta)\end{pmatrix},
\qquad\alpha\in\mathbb{F}_2^3,\ \beta\in\mathbb{F}_2^s. \tag*{(60)}\end{pmatrix}
Equation (59) and v m = 1 v_m=1 v m = 1 give
\begin{pmatrix} \alpha+\beta_m\delta\\ \pi(\beta) \end{pmatrix}=0\Longleftrightarrow\begin{pmatrix}\alpha\\\beta\end{pmatrix}\in\left\{0,\begin{pmatrix}\delta\\v\end{pmatrix}\right\}. \tag*{(61)}\end{pmatrix}
Whether the output keeps d Z ≥ 3 d_Z\ge3 d Z ≥ 3 depends on the labels of the syndromes that differ by v v v . For nonzero v ∈ F 2 s v\in\mathbb{F}_2^s v ∈ F 2 s , collect their label differences:
Δ v = { κ ( β + v ) + κ ( β ) : { β , β + v } ⊆ P } ⊆ F 2 3 . (62) \Delta_v=\left\{\kappa(\beta+v)+\kappa(\beta):\{\beta,\beta+v\}\subseteq\mathcal{P}\right\}\subseteq\mathbb{F}_2^3. \tag*{(62)} Δ v = { κ ( β + v ) + κ ( β ) : { β , β + v } ⊆ P } ⊆ F 2 3 . (62)
Several pairs may give the same value, and Δ v = ∅ \Delta_v=\varnothing Δ v = ∅ when no supported pair differs by v v v .
Lemma D.4. Let G = [ K ; S ] G=[K;S] G = [ K ; S ] satisfy the nine CH conditions with k = 3 k=3 k = 3 , d Z ≥ 3 d_Z\ge3 d Z ≥ 3 , and C 2 C_2 C 2 projective, at stabilizer rank s s s . Let π \pi π , v v v , m m m , and δ \delta δ be as above, and suppose that
(i) Δ v ⊆ { δ } \Delta_v\subseteq\{\delta\} Δ v ⊆ { δ } , and
(ii) κ ( v ) = δ \kappa(v)=\delta κ ( v ) = δ if v ∈ P v\in\mathcal{P} v ∈ P .
Let
G ′ = [ K ′ ; S ′ ] = ( ( κ ( β ) + β m δ π ( β ) ) ) β ∈ P . G'=[K';S']=\left(\begin{pmatrix}\kappa(\beta)+\beta_m\delta\\\pi(\beta)\end{pmatrix}\right)_{\beta\in\mathcal{P}}. G ′ = [ K ′ ; S ′ ] = ( ( κ ( β ) + β m δ π ( β ) ) ) β ∈ P . Then G ′ G' G ′ satisfies the nine CH conditions with k ′ = 3 k'=3 k ′ = 3 , d Z ′ ≥ 3 d'_Z\ge3 d Z ′ ≥ 3 , and rank S ′ = s − 1 S'=s-1 S ′ = s − 1 . A column of G ′ G' G ′ is zero, or two distinct columns of G ′ G' G ′ are equal, in the following cases:
\begin{pmatrix}\kappa(\beta)+\beta_m\delta\\\pi(\beta)\end{pmatrix}=0\Longleftrightarrow\beta=v, \tag*{(63)}\end{pmatrix}
\begin{pmatrix}\kappa(\beta)+\beta_m\delta\\\pi(\beta)\end{pmatrix}=\begin{pmatrix}\kappa(\beta')+\beta'_m\delta\\\pi(\beta')\end{pmatrix}\Longleftrightarrow\beta'=\beta+v, \tag*{(64)}\end{pmatrix}
where β , β ′ ∈ P \beta,\beta'\in\mathcal{P} β , β ′ ∈ P and β ≠ β ′ \beta\ne\beta' β = β ′ in the second line. Applying Lemma D.1 to G ′ G' G ′ gives a generator matrix of stabilizer rank at most s − 1 s-1 s − 1 and length at most n n n with k = 3 k=3 k = 3 , all nine CH conditions, d Z ≥ 3 d_Z\ge3 d Z ≥ 3 , and C 2 C_2 C 2 projective.
Proof. Each new logical row is K i + δ i S m K_i+\delta_iS_m K i + δ i S m , and each retained stabilizer row is S l + v l S m S_l+v_lS_m S l + v l S m . Lemma A.8(a) therefore gives the CH conditions for G ′ G' G ′ .
Since k = 3 k=3 k = 3 and the s s s rows of S S S are independent, the s + 3 s+3 s + 3 rows of G G G are independent. The row additions preceding (60) are invertible. Deleting S m S_m S m therefore leaves s + 2 s+2 s + 2 independent rows of G ′ G' G ′ and s − 1 s-1 s − 1 independent stabilizer rows, so
rank G ′ = s + 2 , rank S ′ = s − 1 , k ′ = ( s + 2 ) − ( s − 1 ) = 3. \operatorname{rank}G'=s+2,\qquad\operatorname{rank}S'=s-1,\qquad k'=(s+2)-(s-1)=3. rank G ′ = s + 2 , rank S ′ = s − 1 , k ′ = ( s + 2 ) − ( s − 1 ) = 3.
For distinct β , β ′ ∈ P \beta,\beta'\in\mathcal{P} β , β ′ ∈ P , Equation (59) gives π ( β ) = π ( β ′ ) \pi(\beta)=\pi(\beta') π ( β ) = π ( β ′ ) exactly when β ′ = β + v \beta'=\beta+v β ′ = β + v . Condition (i) then gives κ ( β ′ ) + κ ( β ) = δ \kappa(\beta')+\kappa(\beta)=\delta κ ( β ′ ) + κ ( β ) = δ . The two input columns differ by ( δ , v ) (\delta,v) ( δ , v ) , so their images under (60) agree by (61) . Conversely, equal columns have equal syndromes, so β ′ = β + v \beta'=\beta+v β ′ = β + v , and (64) follows.
The syndrome π ( β ) \pi(\beta) π ( β ) of a column of G ′ G' G ′ is zero exactly when β ∈ ker π = { 0 , v } \beta\in\ker\pi=\{0,v\} β ∈ ker π = { 0 , v } . Since 0 ∉ P 0\notin\mathcal{P} 0 ∈ / P , this happens exactly when β = v \beta=v β = v and v ∈ P v\in\mathcal{P} v ∈ P . In that case condition (ii) gives κ ( v ) = δ \kappa(v)=\delta κ ( v ) = δ , and v m = 1 v_m=1 v m = 1 makes the new label κ ( v ) + v m δ = 0 \kappa(v)+v_m\delta=0 κ ( v ) + v m δ = 0 , so the column is zero by (61) . Conversely, a zero column has zero syndrome, so β = v \beta=v β = v , and (63) follows. By (64) , two columns of G ′ G' G ′ with the same nonzero syndrome are equal, so they carry the same logical label. By (63) , a column of G ′ G' G ′ with zero syndrome has logical label zero. Lemma 2.1(b) requires exactly these two properties, so d Z ′ ≥ 3 d'_Z\ge3 d Z ′ ≥ 3 .
Lemma D.1 removes zero columns and pairs of equal columns while retaining CH, k ′ = 3 k'=3 k ′ = 3 , and d Z ′ ≥ 3 d'_Z\ge3 d Z ′ ≥ 3 .
The hypotheses of Lemma D.4 follow from counting in Appendix § 11 .§ 3.1 , or from hyperplane containment in Appendix § 11 .§ 3.2 , which we discuss below.
General rank reduction
Proof of Lemma 4.4 . Each unordered pair of distinct columns { β , β + v } ⊆ P \{\beta,\beta+v\}\subseteq\mathcal{P} { β , β + v } ⊆ P determines the unique nonzero difference v v v . A vector v v v with ∣ Δ v ∣ ≥ 2 |\Delta_v|\geq2 ∣ Δ v ∣ ≥ 2 accounts for at least two pairs, and no pair is counted for two different v v v . Hence
# { v : ∣ Δ v ∣ ≥ 2 } ≤ ⌊ ( n 2 ) 2 ⌋ . (65) \#\{v:|\Delta_v|\geq2\}\leq\left\lfloor\frac{\binom{n}{2}}{2}\right\rfloor. \tag*{(65)} # { v : ∣ Δ v ∣ ≥ 2 } ≤ ⌊ 2 ( 2 n ) ⌋ . (65)
Exactly n n n vectors v v v lie in P \mathcal{P} P . There are 2 s − 1 2^s-1 2 s − 1 nonzero vectors v v v , so
# { v : v ∉ P and ∣ Δ v ∣ ≤ 1 } ≥ 2 s − 1 − n − ⌊ ( n 2 ) 2 ⌋ . \#\{v:v\notin\mathcal{P}\text{ and }|\Delta_v|\leq1\}\geq2^s-1-n-\left\lfloor\frac{\binom{n}{2}}{2}\right\rfloor. # { v : v ∈ / P and ∣ Δ v ∣ ≤ 1 } ≥ 2 s − 1 − n − ⌊ 2 ( 2 n ) ⌋ .
The hypothesis of Lemma 4.4 makes this lower bound positive. Fix a nonzero v ∉ P v\notin\mathcal{P} v ∈ / P with ∣ Δ v ∣ ≤ 1 |\Delta_v|\leq1 ∣ Δ v ∣ ≤ 1 . Let δ \delta δ be the unique element of Δ v \Delta_v Δ v when the set is nonempty, and set δ = 0 \delta=0 δ = 0 otherwise. Both hypotheses of Lemma D.4 hold: Δ v ⊆ { δ } \Delta_v\subseteq\{\delta\} Δ v ⊆ { δ } and v ∉ P v\notin\mathcal{P} v ∈ / P . Applying the lemma proves the claimed reduction.
Hyperplane reductions
We can also use the membership of a support P \mathcal{P} P within a hyperplane H H H as a hypothesis for Lemma D.4 , independent of the counting inequality. Table 7 records the two cases for the rank-s s s generator (57).
Table 7. Hyperplane reductions for P ⊆ H ⊂ F 2 s \mathcal{P}\subseteq H\subset\mathbb{F}_2^s P ⊆ H ⊂ F 2 s with span P = F 2 s \operatorname{span}\mathcal{P}=\mathbb{F}_2^s span P = F 2 s and 0 ∉ H 0\notin H 0 ∈ / H . Both cases retain k = 3 k=3 k = 3 , the nine CH conditions, d Z ≥ 3 d_Z\geq3 d Z ≥ 3 , and projectivity.
Corollary D.5 (Hyperplane reduction). Let G = [ K ; S ] G=[K;S] G = [ K ; S ] satisfy the nine CH conditions with k = 3 k=3 k = 3 , d Z ≥ 3 d_Z\geq3 d Z ≥ 3 , and C 2 C_2 C 2 projective, at stabilizer rank s s s . If its syndrome set P \mathcal{P} P lies in an affine hyperplane H H H of F 2 s \mathbb{F}_2^s F 2 s , then G G G reduces to a generator matrix of stabilizer rank at most s − 1 s-1 s − 1 and length at most n n n , with k = 3 k=3 k = 3 , all nine CH conditions, d Z ≥ 3 d_Z\geq3 d Z ≥ 3 , and C 2 C_2 C 2 projective. The length stays n n n when P ⊊ H \mathcal{P}\subsetneq H P ⊊ H and becomes n − 1 n-1 n − 1 when P = H \mathcal{P}=H P = H .
Proof. Since span P = F 2 s \operatorname{span}\mathcal{P}=\mathbb{F}_2^s span P = F 2 s , write H = { β : a ⋅ β = 1 } H=\{\beta:a\cdot\beta=1\} H = { β : a ⋅ β = 1 } with a ≠ 0 a\ne0 a = 0 . For v ∈ H v\in H v ∈ H and β ∈ H \beta\in H β ∈ H , a ⋅ ( β + v ) = 0 a\cdot(\beta+v)=0 a ⋅ ( β + v ) = 0 , so β + v ∉ H \beta+v\notin H β + v ∈ / H and Δ v = ∅ \Delta_v=\varnothing Δ v = ∅ . Thus Lemma D.4 (i) holds for any δ ∈ F 2 s \delta\in\mathbb{F}_2^s δ ∈ F 2 s , the coefficient vector in the logical-row additions. The projection π \pi π of (58) is injective on H H H : equal images of distinct points would require their difference to be v v v .
If P ⊊ H \mathcal{P}\subsetneq H P ⊊ H , choose v ∈ H ∖ P v\in H\setminus\mathcal{P} v ∈ H ∖ P and δ = 0 \delta=0 δ = 0 . Both hypotheses of Lemma D.4 hold, and the column operation is
\begin{pmatrix}\kappa(\beta)\\ \beta\end{pmatrix}
\longmapsto
\begin{pmatrix}\kappa(\beta)\\ \pi(\beta)\end{pmatrix}. \tag*{(66)}\end{pmatrix}
Injectivity on H H H and P ∩ ker π = ∅ \mathcal{P} \cap\ker\pi= \varnothing P ∩ ker π = ∅ give distinct nonzero syndromes. No puncturing is needed, so n ′ = n n' = n n ′ = n , s ′ = s − 1 s' = s - 1 s ′ = s − 1 , and C 2 ′ C'_2 C 2 ′ is projective. If P = H \mathcal{P} = H P = H , choose v ∈ H v \in H v ∈ H and δ = κ ( v ) \delta= \kappa(v) δ = κ ( v ) . Lemma D.4 now applies with a supported v v v , giving
\begin{pmatrix} \kappa(\beta) \\ \beta\end{pmatrix}
\longmapsto
\begin{pmatrix} \kappa(\beta) + \beta_m\kappa(v) \\ \pi(\beta) \end{pmatrix},
\qquad\beta\in H. \tag*{(67)}\end{pmatrix}
The column at v v v becomes ( κ ( v ) + κ ( v ) ; 0 ) = 0 (\kappa(v) + \kappa(v);0) = 0 ( κ ( v ) + κ ( v ) ; 0 ) = 0 . Since ∣ H ∣ = 2 s − 1 |H| = 2^{s-1} ∣ H ∣ = 2 s − 1 and π ∣ H \pi|_H π ∣ H is injective, π ( H ) = F 2 s − 1 \pi(H) = \mathbb{F}_2^{s-1} π ( H ) = F 2 s − 1 . Puncturing the zero column therefore leaves the syndrome set π ( H ∖ { v } ) = F 2 s − 1 ∖ { 0 } \pi(H \setminus\{v\}) = \mathbb{F}_2^{s-1} \setminus\{0\} π ( H ∖ { v }) = F 2 s − 1 ∖ { 0 } , with n ′ = n − 1 n' = n - 1 n ′ = n − 1 and s ′ = s − 1 s' = s - 1 s ′ = s − 1 . The zero column contributes nothing to the row ranks, and C 2 ′ C'_2 C 2 ′ is projective.
Finite case analysis for the length lower bound
This subsection assembles the results of Appendices B–D.3 into the proof of Theorem 4.5 : no CSS code with k = 3 k = 3 k = 3 , d Z ≥ 3 d_Z \ge3 d Z ≥ 3 , and the nine CH conditions has length n ≤ 38 n \le38 n ≤ 38 . The proof first lowers the stabilizer rank to s ∈ { 6 , 7 , 8 } s \in\{6, 7, 8\} s ∈ { 6 , 7 , 8 } . At each remaining rank, it then excludes candidate supports by their indicator polynomial c c c alone, in ascending order of deg c \deg c deg c and one affine-equivalence class of c c c at a time. Every support that these tests do not exclude is passed to Algorithm 1, which solves for the logical rows κ \kappa κ and finds none.
Appendix D.2 characterizes the admissible support P \mathcal{P} P in F 2 s \mathbb{F}_2^s F 2 s . Appendix D.3 examines when the stabilizer rank can be reduced, and Appendix B decides whether a given P \mathcal{P} P admits logical labels κ \kappa κ satisfying the CH conditions. See Figure 3 for a visual guide to the steps of the following proof.
Figure 3. Proof steps for Theorem 4.5 . Solid arrows follow the numbered steps. Matching lettered badges identify the results from earlier sections and the literature used by each step.
Proof of Theorem 4.5. Step 1. Restrict the stabilizer ranks. Suppose a generator matrix G = [ K ; S ] G = [K; S] G = [ K ; S ] of length at most 38 satisfies the nine CH conditions with k = 3 k = 3 k = 3 and d Z ≥ 3 d_Z \ge3 d Z ≥ 3 . Lemma D.1 makes C 2 C_2 C 2 projective. We then apply Lemma 4.4 repeatedly to lower the stabilizer rank of S S S . For n ≤ 38 n \le38 n ≤ 38 and s ≥ 9 s \ge9 s ≥ 9 , the counting inequality of Lemma 4.4 holds:
2 s − 1 > n + ⌊ ( n 2 ) 2 ⌋ . (68) 2^s - 1 > n + \left\lfloor\frac{\binom{n}{2}}{2} \right\rfloor. \tag*{(68)} 2 s − 1 > n + ⌊ 2 ( 2 n ) ⌋ . (68)
Each reduction strictly decreases rank, so we obtain S S S with s ≤ 8 s \le8 s ≤ 8 . Since Proposition 4.3 excludes s ≤ 5 s \le5 s ≤ 5 , only s ∈ { 6 , 7 , 8 } s \in\{6, 7, 8\} s ∈ { 6 , 7 , 8 } remain.
For these ranks, Theorem 4.1 expresses each candidate support as P = supp ( c ) ∖ { 0 } \mathcal{P} = \operatorname{supp}(c) \setminus\{0\} P = supp ( c ) ∖ { 0 } for c ∈ RM ( s − 4 , s ) c \in\operatorname{RM}(s - 4, s) c ∈ RM ( s − 4 , s ) , with length n = ∣ c ∣ − c ( 0 ) n = |c| - c(0) n = ∣ c ∣ − c ( 0 ) .
By Appendix D.2.2, it suffices to test one polynomial c c c from each affine-equivalence class in RM ( s − 4 , s ) \operatorname{RM}(s - 4, s) RM ( s − 4 , s ) , together with its translated supports P a \mathcal{P}_a P a of (50). Each step below checks the rank of P a \mathcal{P}_a P a .
Step 2. Exclude ranks 6 and 7. For each rank, we first determine the possible weights of c c c and, at each weight, the affine-equivalence classes of c c c . The flat and hyperplane cases are then excluded, and Algorithm 1 is applied to the remaining candidate supports P a \mathcal{P}_a P a .
At s = 6 s = 6 s = 6 , the Dickson forms (30) in Appendix A.1 classify c ∈ RM ( 2 , 6 ) c \in\operatorname{RM}(2,6) c ∈ RM ( 2 , 6 ) . Table 5 lists the possible weights 16, 24, 28, 32, 36 when n ≤ 38 n \le38 n ≤ 38 . Weight 16 gives n ∈ { 15 , 16 } n \in\{15, 16\} n ∈ { 15 , 16 } and an affine 4-flat, which Theorem 4.2 excludes. The other weights give six affine-equivalence classes of c c c , counted in the s = 6 s = 6 s = 6 rows of Table 10 : the degree-one class c = y 6 c = y_6 c = y 6 and five quadratic classes.
Table 10. Cases in the proof of Theorem 4.5 . The fourth column counts full translated supports tested by Algorithm 1, possibly including equivalent supports. At s = 8 s = 8 s = 8 , each count includes the permitted h h h from Step 6. Dashes mark cases excluded analytically. An entry “no κ 3 \kappa_3 κ 3 ” means that no tested pair extends to a CH triple on any support counted in that row. At s = 6 s = 6 s = 6 and ∣ c ∣ = 32 |c| = 32 ∣ c ∣ = 32 , Step 2 excludes the degree-one class through the hyperplane cases.
The degree-one representative c ( y ) = y 6 c(y) = y_6 c ( y ) = y 6 has support H = { y : y 6 = 1 } H = \{y : y_6 = 1\} H = { y : y 6 = 1 } and weight 32. If a ∉ H a \notin H a ∈ / H , then P a = H + a \mathcal{P}_a = H + a P a = H + a is a full hyperplane not containing zero, so Corollary D.5, through the reduction (66), lowers rank 6 to 5. If a ∈ H a \in H a ∈ H , then P a = ( H + a ) ∖ { 0 } \mathcal{P}_a = (H + a) \setminus\{0\} P a = ( H + a ) ∖ { 0 } lies in a hyperplane through zero and has actual rank 5 by the span bound of Appendix § 11 .2.3. Proposition 4.3 excludes the resulting generator matrices of rank 5.
Algorithm 1 finds no CH triple on the supports P a P_a P a of the five quadratic classes, as recorded in the s = 6 s=6 s = 6 rows of Table 10 . Hence rank 6 is excluded for n ≤ 38 n \le38 n ≤ 38 .
At s = 7 s=7 s = 7 , the candidates are c ∈ R M ( 3 , 7 ) c \in\mathrm{RM}(3,7) c ∈ RM ( 3 , 7 ) with ∣ c ∣ ≤ n + 1 < 40 |c| \le n+1 < 40 ∣ c ∣ ≤ n + 1 < 40 , and Table 5 lists their possible weights. The code R M ( 3 , 7 ) \mathrm{RM}(3,7) RM ( 3 , 7 ) has minimum weight 16, which gives an affine 4-flat that Lemma 4.2 excludes. The weights 24, 28, and 36 are associated with the candidates counted in the s = 7 s=7 s = 7 rows of Table 10 .
Weight 32 needs one more distinction, because the classification of Kasami–Tokura–Azumi at this weight covers only the polynomials that are not divisible by an affine function. A polynomial c c c is divisible by an affine function ℓ ( β ) = a ⋅ β + b \ell(\beta)=a\cdot\beta+b ℓ ( β ) = a ⋅ β + b , with a ≠ 0 a\ne0 a = 0 , when c = ℓ c ′ c=\ell c' c = ℓ c ′ for some polynomial c ′ c' c ′ . Then c ( β ) = 1 c(\beta)=1 c ( β ) = 1 forces ℓ ( β ) = 1 \ell(\beta)=1 ℓ ( β ) = 1 , so supp ( c ) \operatorname{supp}(c) supp ( c ) lies in the affine hyperplane H = { β : ℓ ( β ) = 1 } H=\{\beta:\ell(\beta)=1\} H = { β : ℓ ( β ) = 1 } . Table 8 sorts the weight-32 polynomials c c c by degree and by this divisibility. No weight-32 polynomial has degree one, since a nonconstant affine function on F 2 7 \mathbb{F}_2^7 F 2 7 has weight 64.
Table 8. The weight-32 polynomials c ∈ R M ( 3 , 7 ) c\in\mathrm{RM}(3,7) c ∈ RM ( 3 , 7 ) in Step 2, sorted by degree and by divisibility by an affine function.
Every polynomial c c c divisible by an affine function is excluded without Algorithm 1. By (50), P a ⊆ H + a P_a \subseteq H+a P a ⊆ H + a for every a ∈ F 2 7 a\in\mathbb{F}_2^7 a ∈ F 2 7 . If 0 ∈ H + a 0\in H+a 0 ∈ H + a , the span bound in Appendix § 11 .2.3 gives actual rank at most 6. Otherwise n ≤ 32 < ∣ H + a ∣ = 64 n\le32<|H+a|=64 n ≤ 32 < ∣ H + a ∣ = 64 , so P a ⊊ H + a P_a\subsetneq H+a P a ⊊ H + a , and Corollary D.5 lowers the rank to 6. Ranks at most 6 are already excluded. The quadratic class y 1 y 2 y_1y_2 y 1 y 2 is divisible by y 1 y_1 y 1 , so it is one of these polynomials. For the weight-32 polynomials not divisible by an affine function, Kasami–Tokura–Azumi [33, Cor. 1(1)] give three cubic classes.
Algorithm 1 finds no CH triple on the remaining supports at rank 7, as recorded in the s = 7 s=7 s = 7 rows of Table 10 . Consequently rank 7 is excluded at any n ≤ 38 n\le38 n ≤ 38 , including the weights 32 and 36 needed in the later rank reductions.
Step 3. Reduce candidates at rank 8. We first exclude candidates at rank 8 that reduce to a rank already excluded in Steps 1–2. If ∣ c ∣ ≤ 30 |c|\le30 ∣ c ∣ ≤ 30 , then n ≤ 30 n\le30 n ≤ 30 by (48), and the counting hypothesis of Lemma 4.4 holds:
n + ⌊ ( n 2 ) 2 ⌋ ≤ 247 < 2 8 − 1. (69) n+\left\lfloor\frac{\binom{n}{2}}{2}\right\rfloor\le247 < 2^8-1. \tag*{(69)} n + ⌊ 2 ( 2 n ) ⌋ ≤ 247 < 2 8 − 1. (69)
Hence every candidate with ∣ c ∣ ≤ 30 |c|\le30 ∣ c ∣ ≤ 30 reduces to a rank excluded in Steps 1–2.
By (49), ∣ c ∣ |c| ∣ c ∣ is even. Together with ∣ c ∣ ≤ n + 1 ≤ 39 |c|\le n+1\le39 ∣ c ∣ ≤ n + 1 ≤ 39 , only weights in the interval 32 ≤ ∣ c ∣ < 40 32\le|c|<40 32 ≤ ∣ c ∣ < 40 remain.
To exclude lower-degree polynomials, suppose deg c < 4 \deg c<4 deg c < 4 , so c ∈ R M ( 3 , 8 ) c\in\mathrm{RM}(3,8) c ∈ RM ( 3 , 8 ) . The code R M ( 3 , 8 ) \mathrm{RM}(3,8) RM ( 3 , 8 ) has minimum weight 32, and Kasami–Tokura [32, Thm. 1] exclude weights strictly between 32 and 40. Thus 32 ≤ ∣ c ∣ < 40 32 \le|c| < 40 32 ≤ ∣ c ∣ < 40 forces ∣ c ∣ = 32 |c| = 32 ∣ c ∣ = 32 , whose support is an affine 5-flat.
Every translated support P a \mathcal{P}_a P a remains inside an affine 5-flat. The span bound of Appendix § 11 .2.3 therefore gives actual rank at most 6, excluded in Steps 1–2. Only degree 4 and weights 32, 34, 36, 38 remain at rank 8.
Step 4. Exclude degree-4 cases at rank 8. Steps 4–7 exclude the remaining degree-4 polynomials by expressing them in six-variable polynomials and enumerating the possibilities.
Theorem 1 of Kasami–Tokura–Azumi [33 ] gives an affine 6-flat in F 2 8 \mathbb{F}_2^8 F 2 8 on which c c c vanishes. Choose affine coordinates ( u , y 7 , y 8 ) (u,y_7,y_8) ( u , y 7 , y 8 ) with u = ( y 1 , … , y 6 ) ∈ F 2 6 u=(y_1,\ldots,y_6)\in\mathbb{F}_2^6 u = ( y 1 , … , y 6 ) ∈ F 2 6 so that this flat is given by y 7 = y 8 = 0 y_7=y_8=0 y 7 = y 8 = 0 . Since c c c vanishes on the flat, c ( u , 0 , 0 ) = 0 c(u,0,0)=0 c ( u , 0 , 0 ) = 0 for every u u u , so no monomial of c c c uses only the variables u u u . Grouping the remaining monomials by whether they contain y 7 y_7 y 7 , y 8 y_8 y 8 , or both gives
c ( u , y 7 , y 8 ) = y 7 f ( u ) + y 8 g ( u ) + y 7 y 8 h ( u ) . (70) c(u,y_7,y_8)=y_7f(u)+y_8g(u)+y_7y_8h(u). \tag*{(70)} c ( u , y 7 , y 8 ) = y 7 f ( u ) + y 8 g ( u ) + y 7 y 8 h ( u ) . (70)
Since deg c = 4 \deg c=4 deg c = 4 , the polynomials f f f and g g g have degree at most 3, and h h h has degree at most 2. Setting ( y 7 , y 8 ) (y_7,y_8) ( y 7 , y 8 ) to each of its four values in (70) gives
c ( u , 0 , 0 ) = 0 , c ( u , 1 , 0 ) = f ( u ) , c ( u , 0 , 1 ) = g ( u ) , c ( u , 1 , 1 ) = f ( u ) + g ( u ) + h ( u ) . c(u,0,0)=0,\qquad c(u,1,0)=f(u),\qquad c(u,0,1)=g(u),\qquad c(u,1,1)=f(u)+g(u)+h(u). c ( u , 0 , 0 ) = 0 , c ( u , 1 , 0 ) = f ( u ) , c ( u , 0 , 1 ) = g ( u ) , c ( u , 1 , 1 ) = f ( u ) + g ( u ) + h ( u ) .
The weight ∣ c ∣ |c| ∣ c ∣ counts the points ( u , y 7 , y 8 ) (u,y_7,y_8) ( u , y 7 , y 8 ) of F 2 8 \mathbb{F}_2^8 F 2 8 at which c = 1 c=1 c = 1 . Grouping these 256 points by the value of ( y 7 , y 8 ) (y_7,y_8) ( y 7 , y 8 ) gives
∣ c ∣ = ∣ f ∣ + ∣ g ∣ + ∣ f + g + h ∣ . (71) |c|=|f|+|g|+|f+g+h|. \tag*{(71)} ∣ c ∣ = ∣ f ∣ + ∣ g ∣ + ∣ f + g + h ∣. (71)
The candidate supports still require the origin recovery (51) and rank checks of Appendix § 11 .2.2.
Step 5. Exclude vanishing components and bound their weights. To exclude the cases f = 0 f=0 f = 0 , g = 0 g=0 g = 0 , or f + g + h = 0 f+g+h=0 f + g + h = 0 , we examine the hyperplane that contains supp ( c ) \operatorname{supp}(c) supp ( c ) in each case:
f = 0 : c = y 8 ( g + y 7 h ) , supp ( c ) ⊆ { y 8 = 1 } , g = 0 : c = y 7 ( f + y 8 h ) , supp ( c ) ⊆ { y 7 = 1 } , f + g + h = 0 : c = y 7 ( 1 + y 8 ) f + y 8 ( 1 + y 7 ) g , supp ( c ) ⊆ { y 7 + y 8 = 1 } . (72) \begin{aligned}
f=0:\quad&c=y_8(g+y_7h), &&\operatorname{supp}(c)\subseteq\{y_8=1\},\\
g=0:\quad&c=y_7(f+y_8h), &&\operatorname{supp}(c)\subseteq\{y_7=1\},\\
f+g+h=0:\quad&c=y_7(1+y_8)f+y_8(1+y_7)g, &&\operatorname{supp}(c)\subseteq\{y_7+y_8=1\}. \tag*{(72)}
\end{aligned} f = 0 : g = 0 : f + g + h = 0 : c = y 8 ( g + y 7 h ) , c = y 7 ( f + y 8 h ) , c = y 7 ( 1 + y 8 ) f + y 8 ( 1 + y 7 ) g , supp ( c ) ⊆ { y 8 = 1 } , supp ( c ) ⊆ { y 7 = 1 } , supp ( c ) ⊆ { y 7 + y 8 = 1 } . (72)
Denote any of the hyperplanes in (72) by H H H . For each a ∈ F 2 8 a\in\mathbb{F}_2^8 a ∈ F 2 8 , Equation (51) gives P a ⊆ H + a \mathcal{P}_a\subseteq H+a P a ⊆ H + a . If 0 ∈ H + a 0\in H+a 0 ∈ H + a , the span bound in Appendix § 11 .2.3 gives actual rank at most 7. Otherwise n ≤ 38 < ∣ H + a ∣ = 128 n\le38<|H+a|=128 n ≤ 38 < ∣ H + a ∣ = 128 makes P a \mathcal{P}_a P a a proper subset, and Corollary D.5 lowers rank 8 to 7. The exclusion of rank 7 in Step 2 therefore forces all three polynomials f f f , g g g , and f + g + h f+g+h f + g + h to be nonzero for every remaining candidate at rank 8.
To avoid enumerating equivalent permutations of the nonzero components, order their weights as 0 < ∣ f ∣ ≤ ∣ g ∣ ≤ ∣ f + g + h ∣ 0<|f|\le|g|\le|f+g+h| 0 < ∣ f ∣ ≤ ∣ g ∣ ≤ ∣ f + g + h ∣ . An invertible linear change of ( y 7 , y 8 ) (y_7,y_8) ( y 7 , y 8 ) permits this ordering: GL ( 2 , 2 ) \operatorname{GL}(2,2) GL ( 2 , 2 ) permutes the three nonzero values of ( y 7 , y 8 ) (y_7,y_8) ( y 7 , y 8 ) and hence the three restrictions f f f , g g g , and f + g + h f+g+h f + g + h . With this ordering, (71) gives ∣ c ∣ ≥ ∣ f ∣ + 2 ∣ g ∣ |c|\ge|f|+2|g| ∣ c ∣ ≥ ∣ f ∣ + 2∣ g ∣ , so ∣ c ∣ < 40 |c|<40 ∣ c ∣ < 40 bounds the two smaller weights.
The bound ∣ f ∣ + 2 ∣ g ∣ < 40 |f|+2|g|<40 ∣ f ∣ + 2∣ g ∣ < 40 leaves only a few weight pairs, which we now list. Both f f f and g g g are nonzero polynomials of degree at most 3 in 6 variables, that is, nonzero codewords of RM ( 3 , 6 ) \operatorname{RM}(3,6) RM ( 3 , 6 ) . The code RM ( 3 , 6 ) \operatorname{RM}(3,6) RM ( 3 , 6 ) has minimum weight 8, and its only weights below 16 are 8, 12, and 14 [32 Thm. 1] . If ∣ g ∣ ≥ 16 |g|\ge16 ∣ g ∣ ≥ 16 , then ∣ f ∣ + 2 ∣ g ∣ ≥ 8 + 32 = 40 |f|+2|g|\ge8+32=40 ∣ f ∣ + 2∣ g ∣ ≥ 8 + 32 = 40 . If ∣ g ∣ ≤ 14 |g|\le14 ∣ g ∣ ≤ 14 , the condition ∣ f ∣ + 2 ∣ g ∣ < 40 |f|+2|g|<40 ∣ f ∣ + 2∣ g ∣ < 40 with ∣ f ∣ ≤ ∣ g ∣ |f|\le|g| ∣ f ∣ ≤ ∣ g ∣ leaves exactly
( ∣ f ∣ , ∣ g ∣ ) ∈ { ( 8 , 8 ) , ( 8 , 12 ) , ( 12 , 12 ) , ( 8 , 14 ) } , (73) (|f|,|g|)\in\{(8,8),(8,12),(12,12),(8,14)\}, \tag*{(73)} ( ∣ f ∣ , ∣ g ∣ ) ∈ {( 8 , 8 ) , ( 8 , 12 ) , ( 12 , 12 ) , ( 8 , 14 )} , (73)
because the pairs ( 12 , 14 ) (12,14) ( 12 , 14 ) and ( 14 , 14 ) (14,14) ( 14 , 14 ) give 40 and 42. The four pairs are the rows of Table 9 .
Table 9. Orbit partitions at s = 8 s=8 s = 8 , with f f f fixed to normal form and g g g reduced by invertible affine coordinate changes that preserve f f f . The third column counts all g g g with the weight in the first column.
Step 6. Enumerate the remaining polynomials. Fix f f f to be the Kasami–Tokura normal form [32 Thm. 1] listed in Table 9 . Subsequent changes of the six coordinates must preserve this chosen f f f . For an invertible affine map L L L of F 2 6 \mathbb{F}_2^6 F 2 6 , that is, L ∈ AGL ( 6 , 2 ) L \in\operatorname{AGL}(6,2) L ∈ AGL ( 6 , 2 ) , with f ∘ L − 1 = f f \circ L^{-1} = f f ∘ L − 1 = f , the substitution in (70) acts on the remaining polynomials by
( g , h ) ⟼ ( g ∘ L − 1 , h ∘ L − 1 ) . (74) (g,h) \longmapsto(g \circ L^{-1},h \circ L^{-1}). \tag*{(74)} ( g , h ) ⟼ ( g ∘ L − 1 , h ∘ L − 1 ) . (74)
These maps L L L form the subgroup of AGL ( 6 , 2 ) \operatorname{AGL}(6,2) AGL ( 6 , 2 ) that fixes f f f , and the orbit of g g g under them is
Orb f ( g ) = { g ∘ L − 1 : L ∈ AGL ( 6 , 2 ) , f ∘ L − 1 = f } . \operatorname{Orb}_f(g) = \{g \circ L^{-1}: L \in\operatorname{AGL}(6,2),\ f \circ L^{-1} = f\}. Orb f ( g ) = { g ∘ L − 1 : L ∈ AGL ( 6 , 2 ) , f ∘ L − 1 = f } .
Choose one representative g g g from each orbit.
For each representative pair ( f , g ) (f,g) ( f , g ) and each candidate weight ∣ c ∣ |c| ∣ c ∣ , enumerate every h h h of degree at most 2 satisfying the weight constraint from (71) :
∣ f + g + h ∣ = ∣ c ∣ − ∣ f ∣ − ∣ g ∣ . (75) |f+g+h| = |c| - |f| - |g|. \tag*{(75)} ∣ f + g + h ∣ = ∣ c ∣ − ∣ f ∣ − ∣ g ∣. (75)
Lemma A.5 shows that the substitution (74) preserves the degree of h h h and the weights of f f f , g g g , and f + g + h f+g+h f + g + h . The substitution therefore preserves the weight constraint (75) and the total weight ∣ c ∣ |c| ∣ c ∣ .
A computation with nauty [37 ] lists one representative g g g of each orbit for every row of Table 9 . Three checks show that no polynomial g g g is missed. First, the listed orbits are pairwise disjoint. Second, every g g g in a listed orbit has the weight of its row. Third, for each row the orbit sizes sum to the number of all g g g of that weight, given in the third column. Hence every remaining candidate c c c at rank 8 is affine-equivalent to y 7 f + y 8 g + y 7 y 8 h y_7f+y_8g+y_7y_8h y 7 f + y 8 g + y 7 y 8 h with f f f from Table 9 , g g g a listed representative, and h h h one of the enumerated polynomials.
Step 7. Exclude the remaining candidates at rank 8. It remains to exclude logical labels for the polynomials enumerated in Step 6. For each such c c c , choose a 0 ∈ F 2 8 a_0 \in\mathbb{F}_2^8 a 0 ∈ F 2 8 with c ( a 0 ) = 0 c(a_0)=0 c ( a 0 ) = 0 and form the full translated support P a 0 \mathcal{P}_{a_0} P a 0 of (51) . When the matrix S S S whose columns are the points of P a 0 \mathcal{P}_{a_0} P a 0 has actual rank below 8, Steps 1–2 already exclude a generator matrix satisfying the CH conditions on that support.
Algorithm 1 finds no three logical rows satisfying the CH conditions on any remaining P a 0 \mathcal{P}_{a_0} P a 0 . Corollary D.3 then excludes logical labels satisfying the CH conditions on P a \mathcal{P}_a P a for every a ∈ F 2 8 a \in\mathbb{F}_2^8 a ∈ F 2 8 , including the punctured supports.
All cases with n ≤ 38 n \le38 n ≤ 38 have now been excluded, proving the theorem. Table 10 summarizes the cases at ranks 6, 7, and 8.