arXiv:2610.21879hep-thOct 2026

Manuscript Offprint

arXiv:2610.21879

One generation of the Standard Model as a quantum error-correcting code

Shiroman Prakash, K. L. Ramya

Shiroman Prakash 1,∗^{1,*} and K. L. Ramya 1,†^{1,\dagger}

1^{1}Department of Physics and Computer Science, Dayalbagh Educational Institute, Agra-282005, India

Together with a right-handed neutrino, the fermions of one generation of the Standard Model are labelled by five bits, a combinatorial structure tied to anomaly cancellation. We make this precise. Anomaly cancellation is the vanishing of a cubic form, the defining property of triorthogonal codes, the quantum error-correcting codes behind magic state distillation. Removing the right-handed neutrino gives a [[15,1,3]]p[[15, 1, 3]]_p code for every prime pp, including the Bravyi–Kitaev code for p=2p = 2. For qutrits it is the unique shortest distance-three triorthogonal code.

Introduction. The fermions of one generation of the Standard Model have an intriguing combinatorial structure. Together with a right-handed neutrino, the sixteen fields are labelled by strings of five bits with an even number of ones. In SO(10)SO(10) grand unification they are the states of five fermionic oscillators with an even number occupied [1–4]. Colour, isospin and hypercharge can be read off from the occupation numbers. That the generation is free of gauge anomalies is well understood group-theoretically, since SO(10)SO(10) has no cubic Casimir [5]. We show that this cancellation has a second meaning: it makes the generation a quantum error-correcting code, of the kind used to distill magic states for fault-tolerant quantum computation.

Anomaly cancellation and the defining property of these codes are the same cubic equation. Writing each bit bb as a sign (−1)b(-1)^b turns the sixteen fields into sixteen integer charge vectors. Every cubic anomaly, a sum of triangle diagrams, is then a value of a cubic form on the lattice they define [6–8], and anomaly cancellation is the vanishing of this form. Imposed modulo a prime pp, the same condition defines triorthogonal codes, a class of quantum error-correcting codes with a transversal non-Clifford gate on which magic state distillation is built [9–11]. Removing the right-handed neutrino gives a [[15, 1, 3]]p_p code for every prime pp. For p=2p = 2 it is the fifteen-qubit code of Bravyi and Kitaev [9]; for odd pp it is a new code on pp-level qudits.

Every ingredient of the code has a Standard Model meaning. The physical qudits are the fifteen quarks and leptons, and the removed right-handed neutrino νc\nu^{c} is the logical qudit. The stabilizers are the symmetries under which νc\nu^{c} is neutral. Since νc\nu^{c} is a gauge singlet, they include the gauge charges, colour, weak isospin and hypercharge, and for p≥5p \geq 5 they are exactly these. Their triorthogonality is Standard Model anomaly cancellation. The logical operator is the one remaining charge of SO(10)SO(10). Its mixed anomalies with the gauge charges vanish, as triorthogonality requires, and its cubic anomaly, which νc\nu^{c} would cancel, is the logical gate. The minimum-weight logical errors are charge-conserving four-fermion operators, such as the product of Dirac masses (ννc)(eec)(\nu\nu^{c})(ee^{c}), and the construction of the code by doubling [12, 13] is the pairing of quarks and leptons with their Dirac partners.

For qutrits the code is the shortest of its kind and unique: an exhaustive search finds no shorter triorthogonal qutrit code of distance at least three, and none of length fifteen other than this one, up to equivalence. The shortest previously known had nineteen qutrits [14]. We comment on its potential for distillation below.

Background for readers from either community, proofs and further results are in the Supplemental Material.

From anomalies to codes. Consider nn Weyl fermions ψℓ,ℓ=0,…,n−1\psi_\ell, \ell = 0, \ldots, n - 1, with chiralities cℓ=±1c_\ell = \pm 1 and integer charge vectors qℓ∈Zrq_\ell \in \mathbb{Z}^r, with components qℓ,iq_{\ell,i}, under a torus U(1)rU(1)^r. A U(1)U(1) subgroup, labelled by t∈Zrt \in \mathbb{Z}^r, gives the fermion ψℓ\psi_\ell the charge xℓ=qℓ⋅tx_\ell = q_\ell \cdot t. Each symmetry thus has a vector x=(x0,…,xn−1)∈Znx = (x_0, \ldots, x_{n-1}) \in \mathbb{Z}^n of charges, and these vectors form a lattice Λ⊆Zn\Lambda \subseteq \mathbb{Z}^n with an r×nr \times n generator matrix, whose columns are the qℓq_\ell and whose rows list the charges under the rr factors. The mixed cubic anomaly of three symmetries, with vectors x,yx, y and zz, is the sum of triangle diagrams

τc(x,y,z)=∑ℓcℓxℓyℓzℓ.(1)\tau_{c}(x,y,z)=\sum_{\ell}c_{\ell}x_{\ell}y_{\ell}z_{\ell}. \tag{1}

The spectrum is free of cubic anomalies exactly when τc\tau_{c} vanishes on Λ\Lambda, and we call such a lattice triorthogonal.

Imposed modulo a prime pp, the same condition defines triorthogonal codes [11, 14–16]. A subspace W⊆FpnW \subseteq \mathbb{F}_p^n on which τc\tau_c vanishes, for coefficients c∈(Fp×)nc \in (\mathbb{F}_p^\times)^n, is a tri-orthogonal space.1^1 Deleting coordinate 0 turns it into a CSS code on the other n−1n-1 coordinates. Its XX-stabilizers are the vectors of WW that vanish at coordinate 0, and its logical XX is a vector g∈Wg \in W with g0=1g_0 = 1. Every triorthogonal code encoding one qudit arises in this way.

Triorthogonality enables a transversal non-Clifford gate on the encoded qudit. The gate is ⊗ℓ≠0Ucℓ\otimes_{\ell\neq0}U^{c_{\ell}}, where UU is the π/8\pi/8 gate. For p=2p = 2, U=T=diag(1,eiπ/4)U = T = \mathrm{diag}(1, e^{i\pi/4}), and for p>2p > 2, its analogue [19, 20] is

U={∑jωj3∣j⟩⟨j∣,ω=e2πi/p, p≥5,diag(1,ζ,ζ−1),ζ=e2πi/9, p=3.U=\begin{cases}\sum_{j}\omega^{j^{3}}\left|j\right\rangle\left\langle j\right|,&\omega=e^{2\pi i/p},\ p\geq5,\\ \mathrm{diag}(1,\zeta,\zeta^{-1}),&\zeta=e^{2\pi i/9},\ p=3.\end{cases}

1^{1} Unlike an earlier definition [17], we do not require self-orthogonality, which the transversal gate does not need [14, 18]; our code is not self-orthogonal for any odd p.

The logical states are ∣aˉ⟩∝∑x∣ag+x⟩|\bar{a}\rangle \propto \sum_x |ag + x\rangle, summed over the stabilizers xx. For p≥5p \geq 5, the basis state labelled by w=ag+x∈Ww = ag + x \in W, for which w0=aw_0 = a, picks up one phase ωcℓwℓ3\omega^{c_\ell w_\ell^3} from each qudit, and since τc(w,w,w)=∑ℓcℓwℓ3=0\tau_c(w, w, w) = \sum_\ell c_\ell w_\ell^3 = 0,

(⨂ℓ≠0Ucℓ)∣w⟩=ω∑ℓ≠0cℓwℓ3∣w⟩=ω−c0a3∣w⟩.(2)\left(\bigotimes_{\ell\neq0}U^{c_{\ell}}\right)|w\rangle=\omega^{\sum_{\ell\neq0}c_{\ell}w_{\ell}^{3}}|w\rangle=\omega^{-c_{0}a^{3}}|w\rangle. \tag{2}

The phase is the same for every term of ∣aˉ⟩|\bar{a}\rangle, so the gate acts as logical U−c0U^{-c_0}. For p=3p = 3 and p=2p = 2 the phases of UU are ninth and eighth roots of unity, while the code is defined only modulo 3 and 2, so the same argument fixes the gate up to a Pauli correction for p=3p = 3 [14] and a Clifford correction for p=2p = 2 [11].

Reducing a triorthogonal lattice modulo pp gives a tri-orthogonal space, W=Λ mod pW = \Lambda \bmod p. In physical terms, a vector w∈Ww \in W lists the charges of the fermions, modulo pp, under a Zp\mathbb{Z}_p subgroup of the torus. Deleting coordinate 0 means removing a fermion, ψ0\psi_0, and the remaining fermions are the physical qudits. The XX-stabilizers are then the Zp\mathbb{Z}_p symmetries under which ψ0\psi_0 is neutral, and the logical XX is one under which ψ0\psi_0 has charge 1. The exponent ∑ℓ≠0cℓwℓ3\sum_{\ell \neq 0} c_\ell w_\ell^3 in Eq. (2) is the cubic anomaly of the symmetry ww on the remaining fermions, and it is fixed because the full spectrum is anomaly free. The logical gate is thus the anomaly that the removed fermion would cancel.

The distance relevant for distillation is the Z-distance d, the smallest Hamming weight of an undetectable Z-error that acts nontrivially on the encoded qudit. Such an error Z(v)Z(v) has v orthogonal to every X-stabilizer but not to g, so ∑ℓ≠0vℓhℓ\sum_{\ell \neq 0} v_{\ell} h_{\ell} is a nonzero multiple of h0h_0, where the hℓh_{\ell} are the columns of a generator matrix of W. The error is thus a linear relation expressing the charge vector of ψ0\psi_0 through those of the fermions in its support J, and

d=min⁡{∣J∣:0∉J,h0∈span⁡{hℓ:ℓ∈J}}.(3)d=\min\{|J|:0\notin J,h_{0}\in\operatorname{span}\{h_{\ell}:\ell\in J\}\}. \tag{3}

Physically, a logical error is a combination of fields containing ψ0\psi_0 whose total charge vanishes modulo pp, and d+1d+1 is the smallest number of fields in such a combination. A vectorlike partner of ψ0\psi_0 has charge vector −q0-q_0, and an identical copy has q0q_0; in either case h0h_0 lies in the span of a single column and d=1d=1. Useful triorthogonal codes therefore need spectra that are both anomaly free and chiral. Because Λ\Lambda is defined over Z\mathbb{Z}, one spectrum gives a code for every odd prime pp with q0≢0(modp)q_0 \not\equiv 0 \pmod{p}, with the same distance as over Q\mathbb{Q} for all but finitely many pp.

We summarize the construction for odd primes in the following proposition.

Proposition 1. Let ψ0,…,ψn−1\psi_0, \ldots, \psi_{n-1} be Weyl fermions with chiralities cℓc_\ell and charge vectors qℓ∈Zrq_\ell \in \mathbb{Z}^r, free of cubic anomalies, and let Λ\Lambda be their charge lattice. Let pp be an odd prime with q0≢0(modp)q_0 \not\equiv 0 \pmod{p}. Then W=Λ mod pW = \Lambda \bmod p is a triorthogonal space for the coefficients c mod pc \bmod p, and removing ψ0\psi_0 gives a triorthogonal code on the other n−1n-1 fermions. The transversal gate ⊗ℓ≠0Ucℓ\otimes_{\ell \neq 0} U^{c_\ell} implements logical U−c0U^{-c_0} exactly.

Proof. The identity τc=0\tau_c = 0 on Λ\Lambda holds over Z\mathbb{Z}, and so modulo every pp. For p≥5p \geq 5 the gate follows from Eq. (2). For p=3p = 3 the phases of UU are powers of ζ\zeta, and the exponent must be computed modulo 9. Since (x+3k)3≡x3(mod9)(x + 3k)^3 \equiv x^3 \pmod{9}, it depends only on residues modulo 3. A codeword xx with x0=ax_0 = a is the reduction of some y∈Λy \in \Lambda, so ∑ℓ≠0cℓxℓ3≡∑ℓ≠0cℓyℓ3=−c0y03≡−c0a3(mod9)\sum_{\ell \neq 0} c_\ell x_\ell^3 \equiv \sum_{\ell \neq 0} c_\ell y_\ell^3 = -c_0 y_0^3 \equiv -c_0 a^3 \pmod{9}, the same for every term of ∣aˉ⟩|\bar{a}\rangle.

The above construction becomes degenerate for p=2p = 2, so qubits need special treatment. In addition, TT depends on Hamming weights modulo 8, which Λ mod 2\Lambda \bmod 2 does not control. When all charges are ±1\pm 1 we use instead their sign bits (1−qℓ,i)/2(1 - q_{\ell,i})/2, which together with 1 span a triply even code if, besides the gauge anomalies, the anomalies TrF3\mathrm{Tr} F^3 and Tr(FQiQj)\mathrm{Tr}(FQ_i Q_j), i≠ji \neq j, of fermion number FF vanish modulo 16. For one generation they do, as we check below.

One generation and its anomalies. We now specialize to one generation of the Standard Model, embedded in SO(10)SO(10). For a nonabelian gauge group it is enough to work with its Cartan torus, a maximal set of commuting U(1)U(1) factors. Every generator is conjugate into the Cartan algebra, so the cubic anomalies vanish exactly when they vanish on the torus. For SO(10)SO(10) the torus is U(1)5U(1)^5, and each component of a multiplet is a fermion whose charge vector is its weight. The spinor 16 is the Fock space of five fermionic oscillators with an even number occupied, and its weights, scaled by 2, are the sign vectors q∈{±1}5q \in \{\pm 1\}^5 with an even number of minus signs, where qi=−1q_i = -1 when oscillator ii is occupied. The states with zero, two and four oscillators occupied form the 1, 10 and 5 of SU(5)SU(5), on which χ=∑iqi\chi = \sum_i q_i takes the values 5, 1 and -3. Taking oscillators 1-3 as colour and 4-5 as weak, a state with ncn_c colour and nwn_w weak oscillators occupied has hypercharge Y=nw/2−nc/3Y = n_w/2 - n_c/3. The empty state, with weight 1=(1,1,1,1,1)\mathbf{1} = (1,1,1,1,1), is the conjugate right-handed neutrino νc\nu^c, and the other fifteen states are the quarks and leptons of one generation, all written as left-handed fields. The generation is chiral – flipping the sign of qq changes the number of occupied oscillators from jj to 5−j5 - j, of the opposite parity, so no weight of the 16 has its negative in the 16.

In the notation of the previous section, the spectrum consists of n=16n = 16 left-handed fermions, so cℓ=1c_\ell = 1, with r=5r = 5 and the weights qq as charge vectors. The cubic anomaly of the U(1)U(1) labelled by t∈Z5t \in \mathbb{Z}^5 is A(t)=∑q(q⋅t)3\mathcal{A}(t) = \sum_q(q \cdot t)^3, summed over the sixteen weights. Expanding the cube gives the sums ∑qqiqjqk\sum_q q_i q_j q_k, and since qi2=1q_i^2 = 1, each reduces to ∑qqi\sum_q q_i or to ∑qqiqjqk\sum_q q_i q_j q_k with distinct indices. Both vanish, because on the sixteen weights each

Figure

FIG. 1. The fifteen-qudit code as a doubled code. Vertical lines join the right-handed fields fcf^c (top), one copy of a [[7,1,3]]pP[[7,1,3]]_p^P code with μ=2T3R\mu = 2T_{3R}, to their Dirac partners ff (bottom). The seed is ν\nu; its partner νc\nu^c (dashed) is the logical qudit. Red and blue mark the minimum-weight logicals νc=ec+u1c−d1c\nu^c = e^c + u_1^c - d_1^c, within one copy, and νc=u2+u2c−ν\nu^c = u_2 + u_2^c - \nu, through the seed.

of qiq_{i} and qiqjqkq_{i}q_{j}q_{k} equals +1 and -1 equally often, so the charge lattice Λ\Lambda is triorthogonal – every cubic anomaly of the generation, including mixed anomalies, vanishes. The quadratic sums are ∑qqiqj=16δij\sum_{q}q_{i}q_{j} = 16\delta_{ij}, so the fermion-number anomalies that the qubit construction needs, TrF3=n=16\mathrm{Tr}F^{3} = n = 16 and Tr(FQiQj)=0\mathrm{Tr}(FQ_{i}Q_{j}) = 0 for i≠ji \neq j, vanish modulo 16.

We remove ψ0=νc\psi_0 = \nu^c, whose weight is q0=1q_0 = \mathbf{1}. A generator matrix of the resulting code, with the logical row q1q_1 above the Cartan generators (qi−qi+1)/2(q_i - q_{i+1})/2 of su(5)\mathfrak{su}(5) as stabilizers, is

(1ˉ1ˉ1ˉ1ˉ11111111111110‾1ˉ1ˉ1ˉ11100011ˉ0001ˉ10001ˉ1ˉ110011ˉ0001ˉ101ˉ1001ˉ10011ˉ0001ˉ101ˉ11ˉ1000011ˉ),(4)\left(\begin{array}{c c c c c c c c c c c c c c c c}{\bar{1}}&{\bar{1}}&{\bar{1}}&{\bar{1}}&{1}&{1}&{1}&{1}&{1}&{1}&{1}&{1}&{1}&{1}&{1}&{1}&{1}\\ {\overline{{0}}}&{\bar{1}}&{\bar{1}}&{\bar{1}}&{1}&{1}&{1}&{0}&{0}&{0}&{1}&{\bar{1}}&{0}&{0}&{0}\\ {\bar{1}}&{1}&{0}&{0}&{0}&{\bar{1}}&{\bar{1}}&{1}&{1}&{0}&{0}&{1}&{\bar{1}}&{0}&{0}\\ {0}&{\bar{1}}&{1}&{0}&{\bar{1}}&{1}&{0}&{0}&{\bar{1}}&{1}&{0}&{0}&{1}&{\bar{1}}&{0}\\ {0}&{0}&{\bar{1}}&{1}&{0}&{\bar{1}}&{1}&{\bar{1}}&{1}&{0}&{0}&{0}&{0}&{1}&{\bar{1}}\\ \end{array}\right), \tag{4}

with 1ˉ=−1\bar{1} = -1. Its first ten columns are the fields of the 10, and its last five are those of the 5ˉ\bar{5}.

Theorem 1. For every prime pp, removing νc\nu^c from one generation gives a triorthogonal [[15,1,3]]p[[15,1,3]]_p code on the fifteen Standard Model fermions, on which U⊗15U^{\otimes 15} implements logical U†U^\dagger exactly. For p=2p = 2 it is the fifteen-qubit code of Bravyi and Kitaev [9].

Proof. For odd pp, triorthogonality and the exact gate follow from Proposition 1, because all sixteen fields are left-handed and q0=1q_0 = \mathbf{1} is nonzero modulo every pp. For the distance, the relation νc=ec+u1c−d1c\nu^c = e^c + u_1^c - d_1^c among weights (Fig. 1) gives d≤3d \leq 3. Conversely, no one or two of the other weights span that of νc\nu^c over Q\mathbb{Q} (Proposition S5). Such a span could appear modulo pp only if the rank of the weights involved dropped, that is, only if pp divided a nonzero 2×22 \times 2 or 3×33 \times 3 minor of their ±1\pm 1 entries. These minors are ±2\pm 2 or ±4\pm 4, which no odd prime divides, so d=3d = 3 for every odd pp.

For p=2p = 2, the sign bits of the sixteen weights, together with 1, span the first-order Reed–Muller code RM(1,4)RM(1,4), which is triply even. Deleting the coordinate of νc\nu^c gives the fifteen-qubit code, whose distance is 3, and on which T⊗15T^{\otimes 15} implements logical T†T^\dagger.

triorthogonal codechiral gauge theory
physical quditWeyl fermion ψℓ\psi_{\ell}
logical quditremoved fermion ψ0\psi_0
coefficient cℓc_{\ell}chirality ±1\pm 1
triorthogonal spaceanomaly-free spectrum
X-stabilizersymmetry under which ψ0\psi_0 is neutral
logical Xsymmetry under which ψ0\psi_0 has charge 1
logical gate U−c0U^{-c_0}cubic anomaly that ψ0\psi_0 would cancel
minimum-weight logicalneutral set of d+1d+1 fermions containing ψ0\psi_0
automorphismsWeyl group fixing ψ0\psi_0
doubled copiesDirac pairs (f,fc)(f, f^c)
linking rowweak isospin 2T3L2T_{3L}

TABLE I. The dictionary. The last three rows hold for the code of Theorems 1 and 2.

Physical interpretation of the code. Table I summarizes the dictionary. The stabilizers are the Cartan generators of SU(5)SU(5), which over Q\mathbb{Q} span those of the Standard Model gauge group, so their triorthogonality is anomaly cancellation in the form A(10)+A(5ˉ)=0A(\mathbf{10}) + A(\bar{\mathbf{5}}) = 0 [3]. The logical operator can be taken to be B−LB - L, or equivalently χ/5\chi / 5, since the two differ by stabilizers. The anomaly of U(1)χU(1)_{\chi} on the fifteen fermions is ∑χ3=10⋅13+5⋅(−3)3=−125=−χ(νc)3\sum \chi^3 = 10 \cdot 1^3 + 5 \cdot (-3)^3 = -125 = -\chi(\nu^c)^3, as the general argument requires.

The minimum-weight logical errors have 25 supports. Each is a Cartan-neutral combination of νc\nu^c with three other fields, all with coefficients ±1\pm 1. They are four-fermion monomials, such as the product of Dirac masses (ννc)(eec)(\nu \nu^c)(ee^c), the right-handed current of Fig. 1, and the B−LB - L-conserving νcdcdcuc\nu^c d^c d^c u^c. They are not Standard Model invariants by themselves, but each has the charge structure of an operator generated at tree level by exchange of a 10 of SO(10)SO(10).

The code is the 16 of SO(10)SO(10) with one weight removed, and the Standard Model enters through our choice of which weight to remove. Because the Weyl group is transitive, removing any of the sixteen fields gives an equivalent code. Gauge symmetry singles out νc\nu^c. Requiring the Cartan generators of SU(3)c×SU(2)L×U(1)YSU(3)_c \times SU(2)_L \times U(1)_Y to be stabilizers, over Z\mathbb{Z} or modulo any p≥5p \geq 5, forces the removed field to be νc\nu^c. Modulo 3 the positron ece^c also satisfies this requirement, because its hypercharge in integral units is 6Y=6≡0(mod3)6Y = 6 \equiv 0 \pmod{3}. It is the singlet of flipped SU(5)SU(5) [21, 22].

Doubling and Dirac pairing. Doubling [12, 23, 24] is the standard way to build small triorthogonal codes of growing distance [25]. It extends to odd pp [13]. Its inputs are a triorthogonal seed T\mathcal{T}, with logical exponent λT\lambda_{\mathcal{T}} and distance dTd_{\mathcal{T}}, and a PP-code (S,μ)(\mathcal{S}, \mu), a space S\mathcal{S} with coefficients μ\mu such that ∑ℓμℓsℓsℓ′=∑ℓμℓsℓ=0\sum_{\ell} \mu_{\ell} s_{\ell} s_{\ell}' = \sum_{\ell} \mu_{\ell} s_{\ell} = 0 for all s,s′∈Ss, s' \in \mathcal{S} and N=∑ℓμℓ≠0N = \sum_{\ell} \mu_{\ell} \neq 0. Such a code carries a transversal phase gate, and for a code of length nDn_D we write its parameters as [[nD,1,dS]]pP[[n_D, 1, d_S]]_p^P. Doubling places two copies of S\mathcal{S} side by side, with every stabilizer of S\mathcal{S} acting oppositely on paired columns, and connects them to the seed by a single linking row that is nonzero on only one copy. For a scalar κ\kappa with Nκ3+λT=0N\kappa^3 + \lambda_T = 0, the result is triorthogonal with distance min⁡(dS,dT+2)\min(d_S, d_T + 2).

Doubling thus needs pairs of qudits on which the stabilizers are vectorlike, together with one chiral linking row. A generation has this structure. It is vectorlike under SU(3)c×U(1)emSU(3)_c \times U(1)_{\mathrm{em}}, because the Weyl group element σ:q↦(−q1,−q2,−q3,q4,−q5)\sigma: q \mapsto (-q_1, -q_2, -q_3, q_4, -q_5) of SO(10)SO(10) maps each fcf^c to its Dirac partner ff, with opposite colour and electric charge, and all of its chirality resides in weak isospin. In terms of the weights,

T3L=q4−q54, T3R=q4+q54, B−L=q1+q2+q33,T_{3L}=\frac{q_{4}-q_{5}}{4},\ T_{3R}=\frac{q_{4}+q_{5}}{4},\ B-L=\frac{q_{1}+q_{2}+q_{3}}{3},

with Y=12(B−L)−T3RY = \frac{1}{2}(B - L) - T_{3R} and Qem=T3L+YQ_{\mathrm{em}} = T_{3L} + Y [26].

Theorem 2. After rescaling columns by ±1\pm1, the code of Theorem 1 is the doubling of the trivial seed with a [[7,1,3]]pP[[7,1,3]]_p^P code with coefficients ±1\pm1, which for p=2p = 2 is the Steane code. The first copy holds ucu^c, dcd^c and ece^c, with coefficients μ=2T3R\mu = 2T_{3R}. The second copy holds their Dirac partners uu, dd and ee, each in the column paired with its partner. The seed is the neutrino ν\nu, whose partner was removed. The paired stabilizers are the charges (q5−qi)/2(q_5 - q_i)/2, i=1,2,3i = 1,2,3, which over Q\mathbb{Q} span the Cartan algebra of SU(3)c×U(1)emSU(3)_c \times U(1)_{\mathrm{em}}, and the linking row is 2T3L2T_{3L}.

The proof is in the Supplemental Material.

Minimality and uniqueness for qutrits. The shortest distance-three triorthogonal qutrit code known before had nineteen qutrits [14]. The code from a generation is shorter, and a computer search reveals the following result.

Theorem 3 (computer-assisted). No triorthogonal qutrit code with d≥3d \geq 3 has fewer than fifteen qutrits, and every triorthogonal [[15,1,3]]3[[15,1,3]]_3 code is equivalent to the code of Theorem 1. Its monomial automorphism group is S5×Z2S_5 \times \mathbb{Z}_2, where Z2\mathbb{Z}_2 negates every qutrit.

The proof reduces triorthogonality to polynomial conditions on a normal form and searches them exhaustively. The S5S_{5} permutes the five oscillators. It is the stabilizer of νc\nu^{c} in the Weyl group, and its orbits are the 10 and the 5. The smallest distance-three qutrit triorthogonal code thus admits a description as a generation of the Standard Model, with exactly the symmetry that the generation keeps, up to an overall sign. 2^{2}

For magic state distillation [29–32], the leading output error of the qutrit code at equal input infidelity is 6.25ϵ36.25 \epsilon^{3}, against 35ϵ335 \epsilon^{3} for the fifteen-qubit code, since on each of its 25 weight-three logical supports only 2 of the 8 error patterns are logical.

Outlook. For p = 2, the generation is Bravyi-Kitaev's famous 15-qubit code, a standard benchmark for magic state distillation. The qutrit code is also particularly interesting for its potential applications to distillation. Combined with high-rate qutrit codes [32], the fifteen-qutrit code could lower the cost of qutrit magic state distillation in some noise regimes, which we study, in part, elsewhere [13].

Doubling preserves integrality, so it can be iterated within anomaly-free spectra, but only with P-codes whose coefficients take both signs. Doubling the fifteen-qutrit code with the ternary Golay code [33, 34] gives a [[37, 1, 5]]₃ code [13], but since the Golay coefficients are all 1, this doubling does not lift to an anomaly-free spectrum; an integral P-lattice of distance five with ∣N∣=1|N| = 1 would give one that does.

The construction applies beyond SO(10)SO(10). The larger spinors, of SO(4k+2)SO(4k+2) with k≥3k \geq 3, give [[22k−1,1,3]]p[[2^{2k}-1,1,3]]_p codes for odd pp in the same way, and the 27 of E6E_6 gives d=2d = 2. Heterotic compactifications on Calabi–Yau three-folds, which give chiral E6E_6 and SO(10)SO(10) spectra [35], are natural further inputs, provided their generations are not identical copies.

This work was supported by a DST-SERB grant (CRG/2021/009137) and by the DST-WISE KIRAN Ph.D. fellowship (grant DST/WISE-PhD/PM/2023/32(G)). We thank the International Centre for Theoretical Sciences (ICTS) for hospitality during several visits, including the discussion meeting “A Hundred Years of Quantum Mechanics” (ICTS/qm100/2025/01) and the programme “Monopole Moduli” (ICTS/MM/2026/09), and R. Loganayagam for discussions. A large language model (Claude Opus 5.5) was used to assist with coding and drafting; we verified all results and take full responsibility for the content. Scripts reproducing all numerical results are available in the accompanying repository [36]. SP thanks Prof. P. S. Satsangi for discussions on qudit magic state distillation some years ago that inspired this work [37].

†^{\dagger} ramya144401@dei.ac.in

[1] H. Georgi, The state of the art—gauge theories, AIP Conf. Proc. 23, 575 (1975).

[2] H. Fritzsch and P. Minkowski, Unified interactions of leptons and hadrons, Ann. Phys. 93, 193 (1975).

2^{2} The fifteen-qubit code, also the shortest distance-three qubit tri-orthogonal code [15, 27], has instead the larger group GL(4,2)≅A8GL(4,2) \cong A_8, which contains this S5S_5 but is transitive on all fifteen qubits [28], mixing the 10 with the 5.

[3] H. Georgi and S. L. Glashow, Unity of all elementary-particle forces, Phys. Rev. Lett. 32, 438 (1974).

[4] J. C. Baez and J. Huerta, The Algebra of Grand Uni-fied Theories, Bull. Am. Math. Soc. 47, 483 (2010), arXiv:0904.1556 [hep-th].

[5] R. Slansky, Group Theory for Unified Model Building, Phys. Rept. 79, 1 (1981).

[6] S. L. Adler, Axial-vector vertex in spinor electrodynamics, Phys. Rev. 177, 2426 (1969).

[7] J. S. Bell and R. Jackiw, A PCAC puzzle: π0→γγ\pi^{0} \rightarrow \gamma\gamma in the σ\sigma-model, Nuovo Cimento A 60, 47 (1969).

[8] D. J. Gross and R. Jackiw, Effect of anomalies on quasi-renormalizable theories, Phys. Rev. D 6, 477 (1972).

[9] S. Bravyi and A. Kitaev, Universal quantum computation with ideal Clifford gates and noisy ancillas, Phys. Rev. A 71, 022316 (2005).

[10] E. Knill, Fault-tolerant postselected quantum computation: Schemes (2004), arXiv:quant-ph/0402171 [quant-ph].

[11] S. Bravyi and J. Haah, Magic-state distillation with low overhead, Phys. Rev. A 86, 052329 (2012).

[12] M. Sullivan, Code conversion with the quantum Golay code for a universal transversal gate set, Phys. Rev. A 109, 042416 (2024), arXiv:2307.14425 [quant-ph].

[13] S. Prakash and K. L. Ramya, Short qudit triorthogonal codes from doubling, to appear (2026).

[14] S. Prakash, Cyclic triorthogonal codes in prime dimension (2026), arXiv:2610.08012 [quant-ph].

[15] S. Nezami and J. Haah, Classification of small triorthogonal codes, Phys. Rev. A 106, 012437 (2022).

[16] T. Saha and S. Prakash, Sublogarithmic distillation in all prime dimensions using punctured Reed-Muller codes, Phys. Rev. A 113, 042405 (2026), arXiv:2510.10852 [quant-ph].

[17] A. Krishna and J.-P. Tillich, Towards low overhead magic state distillation, Phys. Rev. Lett. 123, 070507 (2019).

[18] T. Saha, Qudit CSS-T codes (2026), unpublished notes.

[19] M. Howard and J. Vala, Qudit versions of the qubit π/8\pi/8 gate, Phys. Rev. A 86, 022316 (2012).

[20] S. X. Cui, D. Gottesman, and A. Krishna, Diagonal gates in the Clifford hierarchy, Phys. Rev. A 95, 012329 (2017).

[21] S. M. Barr, A New Symmetry Breaking Pattern for SO(10) and Proton Decay, Phys. Lett. B 112, 219 (1982).

[22] J. P. Derendinger, J. E. Kim, and D. V. Nanopoulos, Anti-SU(5), Phys. Lett. B 139, 170 (1984).

[23] K. Betsumiya and A. Munemasa, On triply even binary codes, J. Lond. Math. Soc. 86, 1 (2012), arXiv:1012.4134 [math.CO].

[24] S. Bravyi and A. Cross, Doubled Color Codes (2015), arXiv:1509.03239 [quant-ph].

[25] S. P. Jain and V. V. Albert, Transversal Clifford and T-gate codes of short length and high distance, IEEE Journal on Selected Areas in Information Theory 6, 127 (2025).

[26] J. C. Pati and A. Salam, Lepton number as the fourth “color”, Phys. Rev. D 10, 275 (1974).

[27] A. Wills, S. P. Jain, and S. Singh, Classification of generalised triorthogonal codes through length 54 (2026), arXiv:2609.30860 [quant-ph].

[28] F. J. MacWilliams and N. J. A. Sloane, The Theory of Error-Correcting Codes, North-Holland Mathematical Library, Vol. 16 (North-Holland Publishing Company, Amsterdam, 1977).

[29] H. Anwar, E. T. Campbell, and D. E. Browne, Qutrit magic state distillation, New J. Phys. 14, 063006 (2012).

[30] E. T. Campbell, H. Anwar, and D. E. Browne, Magic-state distillation in all prime dimensions using quantum

Reed-Muller codes, Phys. Rev. X 2, 041021 (2012).

[31] E. T. Campbell, Enhanced fault-tolerant quantum computing in d-level systems, Phys. Rev. Lett. 113, 230501 (2014).

[32] S. Prakash and T. Saha, Low Overhead Qutrit Magic State Distillation, Quantum 9, 1768 (2025), arXiv:2403.06228 [quant-ph].

[33] M. J. E. Golay, Notes on digital coding, Proc. IRE 37, 657 (1949).

[34] S. Prakash, Magic state distillation with the ternary Golay code, Proc. R. Soc. A 476, 20200187 (2020).

[35] P. Candelas, G. T. Horowitz, A. Strominger, and E. Witten, Vacuum configurations for superstrings, Nucl. Phys. B 258, 46 (1985).

[36] S. Prakash and K. L. Ramya, standard-model-code: Scripts reproducing the computations of this Letter, https://github.com/spdei/standard-model-code (2026), version v1.0.

[37] D. P. Srivastava, V. Sahni, and P. S. Satsangi, From n-qubit multi-particle quantum teleportation modelling to n-qudit contextuality based quantum teleportation and beyond, Int. J. Gen. Syst. 46, 414 (2017).

[38] D. Gottesman, The Heisenberg representation of quantum computers, in 22nd International Colloquium on Group Theoretical Methods in Physics (1998) pp. 32–43, arXiv:quant-ph/9807006.

[39] D. Gottesman and I. L. Chuang, Demonstrating the viability of universal quantum computation using teleportation and single-qubit operations, Nature 402, 390 (1999), arXiv:quant-ph/9908010.

[40] D. B. Costa, B. A. Dobrescu, and P. J. Fox, General Solution to the U(1) Anomaly Equations, Phys. Rev. Lett. 123, 151601 (2019), arXiv:1905.13729 [hep-th].

[41] B. C. Allanach, B. Gripaios, and J. Tooby-Smith, Geometric general solution to the U(1) anomaly equations, JHEP 05, 065, arXiv:1912.04804 [hep-th].

[42] B. Gripaios and K. Le Nguyen Nguyen, Anomaly cancellation for a U(1) factor, JHEP 01, 055, arXiv:2508.11583 [hep-th].

[43] B. Gripaios and K. Le Nguyen Nguyen, Anomaly cancellation for two U(1) factors (2026), arXiv:2607.09879 [hep-th].

[44] B. C. Allanach, B. Gripaios, and J. Tooby-Smith, Solving local anomaly equations in gauge-rank extensions of the Standard Model, Phys. Rev. D 101, 075015 (2020), arXiv:1912.10022 [hep-th].

[45] B. C. Allanach, B. Gripaios, and J. Tooby-Smith, Anomaly cancellation with an extra gauge boson, Phys. Rev. Lett. 125, 161601 (2020), arXiv:2006.03588 [hep-th].

[46] L. E. Ibáñez and G. G. Ross, Discrete gauge symmetry anomalies, Phys. Lett. B 260, 291 (1991).

[47] T. Banks and M. Dine, Note on discrete gauge anomalies, Phys. Rev. D 45, 1424 (1992), arXiv:hep-th/9109045.

[48] C.-T. Hsieh, Discrete gauge anomalies revisited (2018), arXiv:1808.02881 [hep-th].

[49] A. Baldelli, O. Å. Mostad, H.-Y. Lin, E. Rosnes, and M. Battaglioni, On constructing and decoding quantum triorthogonal codes (2026), arXiv:2605.24519 [quant-ph].

[50] A. K. Sharma and S. S. Garani, Near-threshold qudit stabilizer codes with efficient encoding circuits for magic-state distillation, Phys. Rev. A 109, 062426 (2024), [Erratum: Phys. Rev. A 110, 049902 (2024)].

[51] S. Prakash and R. Singhal, Search for high-threshold qutrit magic-state distillation routines, Phys. Rev. A 113, 042404 (2026), arXiv:2408.00436 [quant-ph].

[52] J. R. Stryker, Oracles for Gauss's law on digital quantum computers, Phys. Rev. A 99, 042301 (2019), arXiv:1812.01617 [quant-ph].

[53] A. Rajput, A. Roggero, and N. Wiebe, Quantum error correction with gauge symmetries, npj Quantum Inf. 9, 41 (2023), arXiv:2112.05186 [quant-ph].

[54] L. Spagnoli, A. Roggero, and N. Wiebe, Fault-tolerant simulation of Lattice Gauge Theories with gauge covariant codes, Quantum 10, 1968 (2026), arXiv:2405.19293 [quant-ph].

[55] N. Bao, C. Cao, A. Chatwin-Davies, G. Cheng, and G. Zhu, Superselection rules, quantum error correction, and quantum chromodynamics, JHEP 05, 236, arXiv:2306.17230 [quant-ph].

[56] J. H. Conway and N. J. A. Sloane, Sphere Packings, Lat-tices and Groups, 3rd ed., Grundlehren der mathematischen Wissenschaften, Vol. 290 (Springer, New York, 1999).

[57] A. Dymarsky and A. Shapere, Quantum stabilizer codes, lattices, and CFTs, JHEP 03, 160, arXiv:2009.01244 [hep-th].

[58] W. Bosma, J. Cannon, and C. Playoust, The Magma algebra system I: The user language, J. Symbolic Comput. 24, 235 (1997).

Supplemental Material

This Supplement has three parts. Part A gives background for readers from either community, lists the sixteen weights as Standard Model fields (Table II), and relates this work to previous literature. Part B proves the main-text results: the reduction of triorthogonal lattices, the generator matrix and the qubit case, doubling and Theorem 2, minimality and uniqueness (Theorem 3), and distillation performance. Part C interprets the minimal logical errors as four-fermion operators, explains which fermions can be removed, from νc\nu^{c} alone to several at once, and treats other representations, which completes the proof of Theorem 1. The final section describes the code that reproduces every statement.