arXiv:2610.09341quant-phOct 2026

Manuscript Offprint

arXiv:2610.09341

Building codes with transversal CCZ using projective geometry and SAT solvers

Bohan Lu, Kenneth R. Brown

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Bohan Lu 1,2^{1,2} and Kenneth R. Brown 1,2,3,4^{1,2,3,4}

1^{1}Duke Quantum Center, Duke University, Durham, NC 27701, USA

2^{2}Department of Electrical and Computer Engineering, Duke University, Durham, NC 27708, USA

3^{3}Department of Physics, Duke University, Durham, NC 27708, USA

4^{4}Department of Chemistry, Duke University, Durham, NC 27708, USA

We construct CSS codes with three logical qubits whose logical CCZ gate is implemented by transversal physical T/T†T/T^\dagger gates and whose distance is at least 3. These codes start with 8-divisible X-stabilizers defined by projective geometry, which guarantees dZ≥3d_Z \geq 3. A SAT solver then finds three X-logical operators compatible with the transversal CCZ. We build codes at thirteen block lengths from n=48n = 48 to n=496n = 496, with dZ=3d_Z = 3 or 4, and illustrate the method with the [48,3,3][48, 3, 3] code Q48Q_{48}. Additionally, we prove that no CSS code with three logical qubits, Z-distance at least 3, and a quasi-transversal CCZ gate (transversal T with a diagonal Clifford correction) exists below n=39n = 39. The [47,3,3][47, 3, 3] code of Jacinto et al. serves as an upper bound, leaving 39≤n≤4639 \leq n \leq 46 open.

1 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 [1–3]. Transversal-gate constructions address the overhead by designing codes whose physical phase rotations implement a desired logical diagonal gate directly [4–6]. Examples include color-code and topological constructions [7, 8] and CSS-T codes [9, 10]. Hu, Liang, and Calderbank characterize diagonal gates on CSS codes [11]. Rengaswamy et al. give necessary conditions for fixed physical T/T†T/T^{\dagger} patterns on stabilizer codes [12, Thm. 6], and Campbell and Howard give sufficient overlap conditions for CCZ [4]. Related CSS constructions use the diagonal Clifford hierarchy or divisible coset weights [13, 14]. Concurrent work develops codes over binary extension fields [15]. For a single logical qubit and the T gate, the shortest known such codes are the divisible and triorthogonal families of [16]. A recurring requirement in these constructions is that the code generated by the X-type stabilizers be triply even, meaning every codeword weight is a multiple of 8 [17]. 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 TT and T†T^\dagger rotations applied directly to the data block of a distance-d code. A CSS code is specified by

Bohan Lu: bohan.lu@duke.edu nested classical binary codes

C2=rowspan(S)⊂C1=rowspan(G),G=[KS].\mathcal{C}_{2}=\mathrm{r o w s p a n}(S)\subset\mathcal{C}_{1}=\mathrm{r o w s p a n}(G),\qquad G=\begin{bmatrix}K\\ S\end{bmatrix}.

Here the ss rows of SS generate the XX-type stabilizers, the k=3k = 3 rows of KK represent the XX-logical generators, and the nn columns index the physical qubits. The quantity s=rankS=dim⁡C2s = \text{rank} S = \dim \mathcal{C}_2 is the (X)(X) stabilizer rank. For a binary vector or Boolean function ff, ∣f∣|f| denotes its Hamming weight, and for a set AA, ∣A∣|A| denotes its cardinality. The XX-logicals are the vectors of C1∖C2\mathcal{C}_1 \setminus \mathcal{C}_2 and the ZZ-logicals those of C2⊥∖C1⊥\mathcal{C}_2^\perp \setminus \mathcal{C}_1^\perp, so the code distances are dX=min⁡{∣v∣:v∈C1∖C2}d_X = \min\{|v| : v \in \mathcal{C}_1 \setminus \mathcal{C}_2\} and dZ=min⁡{∣v∣:v∈C2⊥∖C1⊥}d_Z = \min\{|v| : v \in \mathcal{C}_2^\perp \setminus \mathcal{C}_1^\perp\}.

Throughout the paper, C2C_{2} denotes the classical code and S denotes only its chosen generator matrix.

The logical computational-basis state with label x⃗∈F23\vec{x} \in \mathbb{F}_2^3 is the uniform superposition over the coset K⊤x⃗+C2K^\top \vec{x} + \mathcal{C}_2 of C2\mathcal{C}_2 in C1\mathcal{C}_1,

∣x⃗L⟩=12s/2∑y⃗∈F2s∣K⊤x⃗+S⊤y⃗⟩=12s/2∑y⃗∈F2s∣G⊤z⃗⟩,z⃗=(x⃗,y⃗)∈F23+s,(1)|\vec{x}_{L}\rangle=\frac{1}{2^{s/2}}\sum_{\vec{y}\in\mathbb{F}_{2}^{s}}|K^{\top}\vec{x}+S^{\top}\vec{y}\rangle=\frac{1}{2^{s/2}}\sum_{\vec{y}\in\mathbb{F}_{2}^{s}}|G^{\top}\vec{z}\rangle,\qquad\vec{z}=(\vec{x},\vec{y})\in\mathbb{F}_{2}^{3+s}, \tag{1}

following the notation of Campbell and Howard [4]. Applying T⊗nT^{\otimes n} to ∣x⃗L⟩|\vec{x}_L\rangle multiplies the term indexed by y⃗\vec{y} by ω∣G⊤z⃗∣\omega^{|G^\top \vec{z}|} with ω=e2πi/8\omega = e^{2\pi i/8}, so a diagonal gate's logical action is governed by ∣G⊤z⃗∣mod  8|G^\top \vec{z}| \mod 8. The Bravyi–Haah parity identity [1, 4, 18] decomposes this weight mod 8 into single-row weights, pairwise overlaps and triple overlaps: for any full-rank GG with rows g1,…,grg^1, \ldots, g^r and any z⃗∈F2r\vec{z} \in \mathbb{F}_2^r, with i,i′,i′′i, i', i'' ranging over all rr rows of GG,

∣G⊤z⃗∣=∑i∣gi∣zi−2∑i<i′∣gi∧gi′∣zizi′+4∑i<i′<i′′∣gi∧gi′∧gi′′∣zizi′zi′′(mod8).\begin{align*}|G^{\top}\vec{z}|=&\sum_{i}|g^{i}|z_{i}-2\sum_{i<i^{\prime}}|g^{i}\wedge g^{i^{\prime}}|z_{i}z_{i^{\prime}}\\&+4\sum_{i<i^{\prime}<i^{\prime \prime}}|g^{i}\wedge g^{i^{\prime}}\wedge g^{i^{\prime \prime}}|z_{i}z_{i^{\prime}}z_{i^{\prime \prime}}\pmod{8}.\end{align*}

(2)

where ∣gi∧gi′∣=∑jgjigji′|g^i \wedge g^{i'}| = \sum_j g_j^i g_j^{i'} is the overlap (shared support) of two rows, and similarly for triple overlaps 1^1.

For a target diagonal gate UF=∑x⃗ωF(x⃗)∣x⃗⟩⟨x⃗∣U_F = \sum_{\vec{x}} \omega^F(\vec{x}) |\vec{x}\rangle \langle \vec{x}|, we consider the case where a diagonal Clifford correction CC, applied after the transversal TT rotations, i.e. CT⊗nCT^{\otimes n}, realizes logical UFU_F on the codespace. For UF=CCZU_F = CCZ on k=3k = 3 logical qubits the target is FCCZ(x⃗)=4x1x2x3F_{\mathrm{CCZ}}(\vec{x}) = 4x_1x_2x_3, and the constraint reads

∣K⊤x⃗+S⊤y⃗∣+2h(K⊤x⃗+S⊤y⃗)≡4x1x2x3(mod8)∀x⃗,y⃗,(3)|K^{\top}\vec{x}+S^{\top}\vec{y}|+2h(K^{\top}\vec{x}+S^{\top}\vec{y})\equiv4x_{1}x_{2}x_{3}\pmod{8}\quad\forall\vec{x},\vec{y}, \tag{3}

where the function h collects the phases contributed by C: a linear term for each S-gate and a quadratic term for each CZ-gate. h is explicitly defined in Eq. (13). Two regimes are considered:

  • quasi-transversal CCZ [4]: C is any diagonal Clifford, so the correction may still contain entangling CZ 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 pattern. Equivalently, apply T⊗nT^{\otimes n} followed by S†S^\dagger on selected qubits, using TS†=T†TS^\dagger = T^\dagger.

Equation (3) fixes the undetermined coefficients of (2), one monomial of degree ≤3\leq 3 at a time, yielding nine conditions on the row overlaps of G, i.e. the Campbell–Howard (CH)

LabelCondition
K1∣Ki∣≡0(mod2)|K_i| \equiv 0 \pmod{2}
K2∣Ki∧Ki′∣≡0(mod2)|K_i \wedge K_{i'}| \equiv 0 \pmod{2}
K3∣K1∧K2∧K3∣≡1(mod2)|K_1 \wedge K_2 \wedge K_3| \equiv 1 \pmod{2}
KS1∣Ki∧Sl∣≡0(mod2)|K_i \wedge S_l| \equiv 0 \pmod{2}
KS2∣Ki∧Ki′∧Sl∣≡0(mod2)|K_i \wedge K_{i'} \wedge S_l| \equiv 0 \pmod{2}
KS3∣Ki∧Sl∧Sl′∣≡0(mod2)|K_i \wedge S_l \wedge S_{l'}| \equiv 0 \pmod{2}
S1∣Sl∣≡0(mod2)|S_l| \equiv 0 \pmod{2}
S2∣Sl∧Sl′∣≡0(mod2)|S_l \wedge S_{l'}| \equiv 0 \pmod{2}
S3∣Sl∧Sl′∧Sl′′∣≡0(mod2)|S_l \wedge S_{l'} \wedge S_{l''}| \equiv 0 \pmod{2}

Table 1: The nine Campbell–Howard conditions [4], grouped like the rows of 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′≤31 \leq i < i' \leq 3 and 1≤l<l′<l′′≤s1 \leq l < l' < l'' \leq s. K3 is the single odd parity.

conditions [4]. The conditions are necessary as well as sufficient (Theorem 3.3). Table 1 lists all nine conditions.

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 [19, 20]. The construction uses the binary projective geometry PG(s−1,2)\mathrm{PG}(s - 1,2), the 2s−12^{s} - 1 distinct nonzero vectors of F2s\mathbb{F}_2^s.

An 8-divisible C2\mathcal{C}_2 satisfies the stabilizer-only CH conditions, and choosing SS with distinct nonzero columns guarantees dZ≥3d_Z \geq 3 for every choice of logical rows since every weight-1 ZZ error has a distinct syndrome.

The logical KK-row search is encoded as a Boolean satisfiability (SAT) problem. Because C2\mathcal{C}_2 is fixed and already guarantees dZ≥3d_Z \geq 3, the SAT encoding has no distance constraints, and S1–S3 impose no constraints on the logical labels. The remaining conditions give 3n3n Boolean label variables and 7+6s+3(s2)=O(s2)7 + 6s + 3\binom{s}{2} = O(s^2) parity constraints: respectively, K1, K2, K3, KS1, KS2, and KS3. Jacinto et al. [21] use SAT to find compact magic-state distillation protocols and to prove lower bounds on their qubit count. The present work complements theirs: the SAT search here targets a transversal CCZ gate in place of a distillation protocol, and fixing C2\mathcal{C}_2 in advance removes all distance constraints from the encoding.

For FG48, the resulting GG matrix generates the single-qubit transversal code Q48\mathcal{Q}_{48}, a new [[48, 3, 3]] CSS code with C2\mathcal{C}_2 equal to FG48, whose logical CCZ is implemented by physical TT and T†T^{\dagger} rotations. We encode the geometric construction with the column indicator of SS and the logical-row search with the column indicator of GG. Nezami and Haah introduced this indicator-polynomial representation to classify small triorthogonal codes [18].

Furthermore, we prove that no CSS code with k=3k = 3 and dZ≥3d_Z \geq 3 satisfying the nine CH conditions exists at length n≤38n \leq 38, with any number of XX-stabilizer generators (Theorem 4.5). The CH conditions involving only stabilizer generators limit the valid

1^{1} Lemma A.1 states the exact identity over Z. Terms of degree ≥\geq 4 have coefficients divisible by 8, so (2) is the exact truncation modulo 8.

block lengths to the weight spectrum of a Reed–Muller code, and each admissible length is then decided exactly. The [47, 3, 3] of Jacinto et al. [21] is the smallest known code of this class and Q48Q_{48} is the smallest known single-qubit transversal one. The 47-qubit code admits no physical T/T†T/T^\dagger pattern implementing logical CCZ (Example 3.7). Section 2 gives the geometric construction, Section 3 the single-qubit transversal criteria, Section 4 the length lower bound, and Section 5 summarizes our results and lists open problems, including finding a valid code in the gap between lengths 39≤n≤4639 \leq n \leq 46. The appendices contain the search details and deferred proofs.

References (38)