Manuscript Offprint
arXiv:2610.08012Cyclic triorthogonal codes in prime dimension
Shiroman Prakash
Department of Physics and Computer Science, Dayalbagh Educational Institute, Agra-282005, India
We study cyclic triorthogonal codes in prime dimension , on which a transversal third-level diagonal gate acts as a logical non-Clifford gate. For odd , we use a definition of triorthogonality that does not require self-orthogonality. For cyclic codes of length coprime to , triorthogonality reduces to a sumset condition on the spectral support, which makes exhaustive search feasible: for two natural constructions, we enumerate all maximal codes of this kind for up to length 121 and up to length 96. For qubits, we prove that a cyclic code of odd length is triply even if and only if it is classically triorthogonal, giving a complete description of triply-even cyclic codes, and we determine all such codes up to length 763. For qudits, we find codes such as [[19, 1, 3]] and [[7, 1, 3]], which improve on the shortest Reed–Muller and Reed–Solomon codes in both overhead exponent and distillation threshold. The latter is the first member of an infinite family of [[p, 1, 2[p/6] + 1]] codes.
1 Introduction
Triorthogonal codes [1] are CSS codes for which a transversal third-level diagonal gate implements a non-Clifford logical gate, and they underlie many magic state distillation protocols [1, 2]. However, small explicit examples are comparatively scarce, particularly for qudits. Many of the best-known examples are cyclic or extended cyclic. These include the [[15, 1, 3]]_2 code [2], the punctured Reed–Muller codes [3–7], and the qudit Reed–Solomon codes [8]. It is therefore natural to study cyclic triorthogonal codes systematically.
Our study includes qudits of all prime dimensions. Magic state distillation extends naturally to qudits of odd prime dimension [3, 9, 10], where it can reduce overheads and raise thresholds compared with qubits [4, 11–14]. The relevant third-level gates and magic states, and the noise thresholds achievable with them, have been studied in [15–17].
For cyclic codes, the algebra of triorthogonality becomes transparent. A cyclic code of length over , with , is determined by its spectral support : the set of frequencies at which the discrete Fourier transform of a codeword may be nonzero, or equivalently the exponents for which is not a root of the generator polynomial, where is a primitive -th root of unity in an extension field of . Coordinatewise products of cyclic codes are again cyclic, and the span of all -fold products of codewords of has spectral support equal to the sumset [18, 19]. Triorthogonality asks that certain coordinate sums of such products vanish, and a cyclic code has vanishing coordinate sums exactly when is not in its support. Triorthogonality therefore reduces to the condition that avoids certain sumsets of . Camps-Moreno et al. [20] used this idea to characterize binary cyclic CSS-T codes, leaving the -ary case open. We apply it to triorthogonality in every prime dimension.
Shiroman Prakash: sprakash@dei.ac.in
We consider two constructions (Section 4). In construction A, the stabilizers form a cyclic code and the logical row is the all-ones vector; this is the analogue of punctured Reed–Muller codes, and triorthogonality is equivalent to . In construction B, a cyclic space is punctured at one coordinate, and the condition for triorthogonality is simply . For odd we use a definition of triorthogonality that, unlike that of [8], imposes no self-orthogonality, and we give a short self-contained proof that it yields a transversal non-Clifford gate (Section 3). T. Saha has independently obtained this sufficient condition for [21]. The weaker definition matters in practice: the code of Example 14 is not self-orthogonal, and requiring self-orthogonality would raise the shortest cyclic distance-3 qutrit code to length 39.
Qubits. For qubits the spectral criterion gives a complete description of a class of codes that is otherwise hard to construct. A binary code is triply even if all its weights are divisible by 8, and classically triorthogonal if for all codewords . Every triply-even code is classically triorthogonal, but not conversely [22]. We show that the converse holds for cyclic codes of odd length: such a code is triply even if and only if , that is, if and only if it is classically triorthogonal (Theorem 16). The proof is a short consequence of McEliece's theorem on the divisibility of weights of cyclic codes [23]. Systematic constructions of triply-even codes are rare: beyond Reed–Muller codes, they have mostly come from doubling [22, 24] and triangular graphs [22]. Here every union of cyclotomic cosets with gives one, and the transversal gate acts on the resulting quantum codes exactly, with no Clifford correction. We determine all triply-even cyclic codes of odd length up to 763.
Qudits. The spectral criteria make an exhaustive search over cyclic codes arising from constructions A and B feasible, since each candidate is a union of cyclotomic cosets and the conditions can be checked directly on S. We carry out this search for up to length 121 and up to length 96, and certify every distance, either exactly or as a rigorous lower bound (Sections 6 and 7). The resulting codes reach a given distance at a fraction of the length of punctured Reed–Muller codes; for example, the new [[7, 1, 3]]7 code is less than a sixth of the length of [[48, 1, 4]]7, the shortest punctured Reed–Muller code with . The criteria also yield infinite families. Alongside the qudit Reed–Solomon codes, we obtain [[p, 1, 2[p/6] + 1]]_p codes for every prime , of which [[7, 1, 3]]7 is the first (Proposition 15); as far as we know, this family has not previously been identified as triorthogonal. Finally, in Section 8 we compute exact distillation thresholds and overhead exponents. The [[19, 1, 3]]3 and [[7, 1, 3]]7 codes improve on the shortest Reed–Muller and Reed–Solomon codes in both; for , however, cyclic codes provide no advantage over recursive use of the [[4, 1, 2]]5 Reed–Solomon code.
Related work. Zurel, Jana and de Silva [25] recently showed that quantum quadratic residue codes, which are also cyclic, unify several high-threshold distillation protocols, including the 5-qubit, Steane and 11-qutrit Golay codes [26]. Those protocols distill Clifford-eigenstate magic states (the Bravyi–Kitaev T state [2] for qubits and the strange state [27] for qutrits) using codes with a transversal Clifford gate. The codes in this paper are of a different kind: they distill the states produced by a transversal non-Clifford gate U, which are the resource for injecting U. For qubits, generalized triorthogonal codes have recently been classified up to length 54 [28], extending [29]. The binary cyclic CSS-T characterization of [20] has been extended to matrix-product codes with cyclic constituents [30]. The authors of [20] also studied binary triorthogonal codes within the CSS-T framework [31], and proposed constructions from cyclic codes and the generalization to the p-ary case as directions for future work. Binary CSS-T codes have also been built from cyclic codes [32], and triorthogonal codes with cyclic column symmetry were found by integer programming in [33], all of distance 3 in the range searched. The shortest known triorthogonal codes at distances 7 and 9, [[95, 1, 7]]_2 and [[185, 1, 9]]_2, come from non-cyclic constructions [24, 34]. Asymptotically good codes with transversal non-Clifford gates have also been constructed [35–38]; these target asymptotic overhead and typically require large lengths or field sizes, whereas we focus on small codes for small primes.
The paper is organized as follows. Section 2 reviews the spectral description of cyclic codes. Section 3 recalls the CSS code associated with a matrix, gives our definition of triorthogonality for odd p, and proves that it yields a transversal gate, separately for and p = 3. Section 4 derives the spectral criteria, and Section 5 the qubit result. Sections 6–8 describe the search, the codes and their distillation performance, and Section 9 concludes. The appendices give the spectral description of concatenated codes, the proof of a lemma about distillation thresholds, the best code at every length, and the spectral supports of selected codes.
Identify each vector , with coordinates , with the polynomial in the ring . A cyclic shift of the coordinates is multiplication by , so a linear code is cyclic (invariant under cyclic shifts) if and only if it is an ideal of . Every ideal of is principal: a cyclic code equals for a unique monic divisor of , its generator polynomial, and .
Let be the least with , and let . Then , being cyclic of order , contains an element of order exactly , and
with distinct roots because . The -cyclotomic coset of is . The Frobenius map permutes the roots , sending to , so the polynomial is fixed by Frobenius and has coefficients in ; it is the minimal polynomial of over . Hence , the product running over one representative of each coset, is the factorization of into irreducibles over . Every generator polynomial is therefore a product of some of the , and cyclic codes of length correspond to unions of cosets.
For define . Since and is invertible in , the transform is inverted by
Definition 1. The spectral support of a cyclic code is .
Equivalently, is the set of zeros of . Since is a product of minimal polynomials, is a union of cyclotomic cosets, and . A vector lies in if and only if divides , i.e., if and only if for every .
It is convenient to think of this in terms of frequencies. For , the pure frequency is the vector with entries ; its transform is . The inverse transform says that every vector is a superposition of pure frequencies, , and a cyclic code consists of exactly the vectors that use only frequencies in . To make this literally true we allow coefficients in : let denote the -linear span of in . Then is the span of the with , since lies in that span and both have dimension . (Working in is harmless: a linear condition, such as the vanishing of a coordinate sum, holds on all of if and only if it holds on , because spans .) For let , which is again a cyclic code, and (t summands).
Lemma 2. Let and let C be cyclic with spectral support S. Then:
-
for all ;
-
for all if and only if ;
-
Proof. All three parts follow from simple properties of pure frequencies.
(1) This is due to Cascudo [18]; see also [19, 20]. Multiplying pure frequencies adds their frequencies, since the exponents add: . As is spanned by the , , the products of of its elements span exactly the with . These products also span , so .
(2) The coordinate sum of a pure frequency is . So every vector of , and hence of , has coordinate sum 0 if and only if .
(3) Similarly, : a pure frequency is orthogonal to every other pure frequency except its negative. Writing , we get , so is orthogonal to if and only if vanishes on . Hence .
For we have : a coset is closed under doubling, so and , and . For we have but not ; for none of these inclusions holds in general.
Example 3. Consider and , so that and . The cyclotomic cosets modulo 8 are , , , and . The code with has dimension 2, and
since , , and . Neither contains 0, so by Proposition 12 below this code, together with the all-ones logical row, is triorthogonal. It gives an code. This is the punctured qutrit Reed–Muller code of [3]: punctured Reed–Muller codes are construction-A codes, and the search finds a single maximal support at this length.
3 Triorthogonal codes in odd prime dimension
This section sets up the codes studied in the rest of the paper. We first recall the CSS code associated with a matrix, for any prime . We then define triorthogonality for odd , and show in Sections 3.3 and 3.4 that it guarantees a transversal non-Clifford gate. The two cases are treated separately because for the relevant phases are ninth roots of unity, which requires some care. For qubits we use the standard definition of Bravyi and Haah [1], recalled in Section 5.
3.1 The CSS code of a matrix
Let be prime and let have linearly independent rows . We call the first rows the logical rows, forming , and the remaining rows the stabilizer rows, forming . Let and , and for write .
Lemma 4. With no orthogonality assumption on , the CSS code with -stabilizers and -stabilizers is a valid code encoding qudits, with code states . Logical operators can be taken as and with and . The distances are and .
Proof. and commute because for and . States fixed by are supported on , and states fixed by are uniform on cosets of , so the code space has dimension . The exist because the rows of are independent. Finally, commutes with the -stabilizers if and only if , and such a acts trivially on the code space if and only if ; similarly, preserves the code space if and only if , and acts trivially on it if and only if . This gives the formulas for and .
After twirling, the noise on the magic states considered here consists of Z-type errors only, so the distance relevant for distillation is [1, 3, 8, 9]. Throughout, refers to ; by Lemma 6 below, for triorthogonal codes this is also the distance of the code.
3.2 Triorthogonal matrices
Let be odd. Triorthogonality is a condition on the trilinear form evaluated on the rows of a matrix. We allow nonzero weights on the coordinates, and define
writing . Non-unit weights are needed only in Lemmas 10 and 11, which we use in Section 4 to describe construction A as a puncturing and to discuss weighted codes; unless stated otherwise, .
Definition 5. Let have independent rows , of which the first are logical rows and the rest stabilizer rows. The pair is triorthogonal if
-
for all , not necessarily distinct, unless ; and
-
for every logical row .
Condition 1 says that the form vanishes on every triple involving a stabilizer row, and on every triple of logical rows that are not all equal; only a logical row repeated three times may give a nonzero value, . Unlike the definition of [8], no condition is imposed on the pairwise products ; we return to this point at the end of Section 3.4.
We also use the corresponding notion for a subspace. A subspace is a tri-orthogonal space, with weights , if for all . We write its length as because such spaces are punctured to give codes of length (Lemma 11).
The code associated with is of Lemma 4, and its transversal gate is , which applies to physical qudit ; here is the cubic gate defined in Section 3.3 for and in Section 3.4 for . We say that the transversal gate implements a gate on the logical qudits if it acts on the code states as acts on . Sections 3.3 and 3.4 show that if is triorthogonal, the transversal gate implements , which applies to logical qudit (for , up to Pauli corrections).
Lemma 6. If is triorthogonal, then .
Proof. Let have weight , and write . Since , some logical coefficient is nonzero, say with . Define by . Since , we have exactly when , so . We show that , which gives by Lemma 4.
For any row ,
If is a stabilizer row, every term vanishes by Definition 5, so . If , the only term that can survive is , so and .
The same argument applies to qubits with : in a Bravyi–Haah triorthogonal matrix, distinct rows are orthogonal, so , which vanishes for stabilizer rows and equals for a logical row with .
3.3 The case
Let and , and define the cubic gate
the third-level gate of [8, 40]. Its phases are -th roots of unity and depend only on , so all arithmetic can be done in .
Theorem 7. Let and let be triorthogonal. Then maps to ; that is, it implements exactly, with no correction.
Proof. By Lemma 4, is a uniform superposition of the basis states with
where are the logical values and range over all stabilizer coefficients. The transversal gate multiplies by with , and we must show that depends on only. Since , we have , and by trilinearity
the sum running over ordered triples. By Definition 5 every term vanishes except those with , so .
3.4 The case p = 3
For qutrits the map is the identity on , so is a Pauli. The non-Clifford gate instead has phases that are ninth roots of unity, and the proof must pass between and the integers.
An integer is a lift of if . The standard lift sends to its unique lift in that range, and lifts of vectors are taken entrywise. Lifts respect arithmetic only modulo : if and lift and , then and lift and , but in general . For example, in we have , yet ; the two lifts differ by a multiple of (a “carry”).
Let and , and define
the gate of [15]; the last form uses . The proof rests on the fact that carries do not affect cubes modulo 9.
Lemma 8. If and are integers with , then . Consequently for every lift of , not only for .
Proof. Write . Then , which is divisible by 9. ☐
For instance, 4 lifts , and indeed . We will use two further facts. Firstly, for every integer , by Fermat's little theorem, so for all integers and . Secondly, , so powers of whose exponents agree modulo 3 differ by a Pauli, namely . In particular, for a weight we take to mean for a lift of ; different lifts give the same gate up to a Pauli.
Theorem 9. Let and let be triorthogonal. Then there is such that implements , for integers . Thus the transversal gate implements up to a fixed Pauli correction and a logical Pauli.
Proof. As in the proof of Theorem 7, is a uniform superposition of the states with , and the transversal gate multiplies by with . We compute in five steps.
Step 1: an integer lift of . Define the integer vector , computed in with no reduction. Reducing modulo 3 gives back , so is a lift of for every . By Lemma 8, , hence . Working with instead of is the key step: is linear in the integers , whereas is not, because of carries.
Step 2: expansion. Expanding the cube over ordered triples and grouping them by how many indices coincide,
where the integers
are lifts of and of . The coefficients 3 and 6 count the orderings of a triple with exactly two, or no, equal indices.
Step 3: the mixed terms vanish. In the second and third sums every term carries a factor 3, so modulo 9 it depends only on the remaining factors modulo 3; in particular and enter only through their residues and . These vanish by Definition 5, since the indices are not all equal. So both sums are .
Step 4: stabilizer terms are Pauli phases. For a stabilizer row ,
so for an integer . By Fermat's little theorem, , so the stabilizer terms contribute the phase
which is linear in the stabilizer coefficients. Because the rows of are independent, there is with for and for . The Pauli operator multiplies by , cancelling these terms exactly and leaving the logical part unchanged.
Step 5: the logical gate. We are left with which is the phase of on . Finally , so for some integer , a logical Pauli.
Remark on pairwise conditions. No pairwise condition is used in Definition 5 or in the proofs above. The definition of [8] includes such conditions partly because, for , it uses the gate . One can check that with , a diagonal Clifford gate. Hence the magic states and are Clifford-equivalent. However, contributes a phase quadratic in the stabilizer coefficients, which a Pauli can cancel only if the stabilizers are orthogonal to every row. With these conditions are not needed. A fuller treatment, including converses of Theorems 7 and 9, will be given elsewhere.
3.5 Weights and puncturing
We also note two simple facts that will be used in Section 4.
Lemma 10. W admits weights making it a triorthogonal space if and only if contains a vector with no zero entries.
Proof. , so the condition is .
Lemma 11 (Puncturing). Let be a triorthogonal space with weights , and a coordinate on which is not identically zero. Choose with and a basis of , and delete coordinate . The result is a triorthogonal matrix with one logical row and , and its distance is
Proof. Write , so that , and for let be with coordinate deleted. The punctured matrix has logical row , stabilizer space , and .
Triorthogonality. For , the form on the remaining coordinates is
since vanishes on . This is zero if any of lies in , and equals for . So Definition 5 holds with .
Independence. If the rows became dependent after deletion, some nonzero would have , that is, with . Then , contradicting the triorthogonality of .
Distance. Given , let be with inserted in position . Then , and for , so if and only if . Moreover if and only if in addition , that is, . Hence is a bijection from onto , with .
4 Cyclic constructions
We now give two ways of building triorthogonal codes from cyclic codes. In both, tri-orthogonality becomes a sumset condition on S. Throughout, , C and W are cyclic codes with spectral support S, and triorthogonality is unweighted unless stated otherwise.
4.1 Two constructions
Both constructions are obtained by puncturing a triorthogonal space (Lemma 11). In construction B the space is a cyclic code W, and the punctured quantum code is not cyclic. In construction A the space is spanned by and , with weight -n on the extra coordinate; puncturing it at that coordinate gives the cyclic quantum code with stabilizers C and logical row 1. Construction A is thus formally a weighted case of construction B, but its unpunctured space is extended cyclic rather than cyclic, so we treat it separately. It is the analogue of punctured Reed–Muller codes.
Proposition 12 (Construction A: cyclic stabilizers, all-ones logical). Let H have logical row and stabilizer rows a basis of C. Then H is triorthogonal (in the sense of Bravyi–Haah for p = 2, and of Definition 5 with for odd p) if and only if
Here , which is nonzero since . For the condition reduces to , and for to . The distance is
where is cyclic with spectral support .
Proof. By trilinearity, the conditions of Definition 5 on triples involving a stabilizer row hold for the basis of if and only if they hold for all . With logical row 1, these triples give
so triorthogonality says exactly that , and have zero coordinate sums, which by Lemma 2 is . The remaining condition is . For , the Bravyi–Haah conditions say that the stabilizer rows have even weight and that every product of two or three distinct rows has even weight; since over , this is again the statement that , and have even weights. For the distance, and , so consists of the vectors of with nonzero coordinate sum.
Proposition 13 (Construction B: punctured cyclic spaces). W is an (unweighted) tri-orthogonal space if and only if . Puncturing a nonzero such W at one coordinate gives an triorthogonal code with and
Proof. Since , vanishes on if and only if has zero coordinate sums, that is, , by Lemma 2. A nonzero cyclic code is nonzero at every coordinate, so Lemma 11 applies at any coordinate , with and hence . Since is also cyclic, any minimum-weight vector of can be shifted so that , so the distance given by Lemma 11 is .
The two criteria differ only in the conditions on and . For these follow from , since , so both constructions use the same supports. For we have , so construction A imposes exactly one extra condition, ; Example 14 shows that this matters. For both extra conditions are meaningful. For , Theorem 16 shows that is triply even, so after puncturing every component of has weight divisible by 8 and every component of has weight ; hence implements exactly.
Example 14. Consider the ternary cyclic code of length 20 with generator polynomial
Its spectral support is , with and . Since , we have , so the resulting code is not self-orthogonal; but , so construction B applies. Puncturing once gives the code with
with ; the row above the line is the logical row. We verified exhaustively that , followed by a Pauli, implements logical . Computing its distance via brute force gives .
4.2 Two MDS families
Two infinite families follow directly from the spectral criteria. Both use the BCH bound: if the zeros of a cyclic code include consecutive frequencies , then every nonzero codeword has weight at least [39]. Each family is MDS in the sense that the relevant dual code meets the Singleton bound.
Proposition 15 (Two MDS families). Let be an odd prime and ; the first family is nonempty for , and the second for .
-
Construction A with and , where , gives a code. With these are the Reed-Solomon codes .
-
Construction B with , and , where , gives code. With this is code.
In both cases .
Proof. (1) Since , every cyclotomic coset is a singleton. The sets , and all lie in , and , so none of them contains 0. The code has the consecutive zeros , so by the BCH bound, with equality by the Singleton bound since . The subcode has the consecutive zeros , hence minimum distance at least , so every minimum-weight vector of has nonzero coordinate sum, and by Proposition 12. Finally .
(2) Since , every cyclotomic coset is . As , we have , so is a union of cosets, and (using ), which avoids 0 if and only if . The code has the consecutive zeros , so by the BCH and Singleton bounds, and by Proposition 13.
The code of Section 7 is the smallest member of the second family; its support is the image of under the multiplier . In the first family is a Reed–Solomon code on the multiplicative group of , and in the second is a cyclic MDS code of length . As far as we know, the second family has not previously been identified as a family of triorthogonal codes. This does not follow from classical equivalences, which in general rescale coordinates, and rescaling does not preserve unweighted triorthogonality.
The two families compare as follows. For the second family has at length , against at length for the Reed–Solomon codes, so it gains one unit of distance for one extra qudit (for example, against , and against ). For these become and , and the Reed–Solomon codes are better. We verified both families, including distances and transversal conditions, for .
4.3 Weights and concatenation
We consider only unit weights. By Lemma 10, a cyclic space can be made triorthogonal with some weights if and only if the cyclic code , whose spectral support is , contains a vector with no zero entries; the unweighted case corresponds to . Weights that are cubes, , give nothing essentially new: rescaling coordinate by turns the weighted code into an unweighted one with the same distance and logical gate, although it is in general no longer cyclic. For and every unit is a cube, so weights can only produce such rescaled codes; for they can also change the transversal gate. For and , every cyclic space that is triorthogonal for some nonconstant weights but not for gives , but we do not know whether this holds in general.
Concatenations of construction-A codes are again construction-A codes, provided the blocks are interleaved, so that block consists of the coordinates congruent to modulo the outer length. Concatenating an inner code with support with an outer code with support in this way gives the cyclic code of length with support , where is reduction modulo , and its distance is (Proposition 18 in Appendix A.1). Such concatenations appear among the supports found by our search; several records in Table 1 are of this form.
5 Qubits: triply-even cyclic codes
Following Bravyi and Haah [1], a binary matrix with rows is triorthogonal if for and for distinct ; the odd-weight rows, forming , are logical, and the even-weight rows, forming , are stabilizers. A binary code is triply even if all its weights are divisible by 8, and classically triorthogonal if for all . Since over , the cases and of this condition say that has even weights and even pairwise overlaps. Hence the rowspan of is classically triorthogonal if and only if satisfies the Bravyi–Haah conditions.
Every triply-even code is classically triorthogonal [22], but not conversely: the binary repetition code of length 4 is classically triorthogonal and not triply even. For cyclic codes of odd length, however, the converse holds. This follows from McEliece's theorem [23]: if is a nonzero binary cyclic code of odd length and is the least integer with , then all weights of are divisible by , and not all by .
Theorem 16. A binary cyclic code C of odd length is triply even if and only if its spectral support satisfies , that is, if and only if C is classically triorthogonal.
Proof. Since , is classically triorthogonal if and only if has even weights, i.e., if and only if , by Lemma 2. A triply-even code is classically triorthogonal [22]. Conversely, if then also , since , so the least with satisfies . By McEliece's theorem, all weights of are divisible by .
We have not found Theorem 16 stated in the literature. It has two immediate consequences. First, if is a triorthogonal matrix of odd length whose stabilizer rows span a cyclic code, then that code is triply even, since it is classically triorthogonal by the remark above. Second, every support with gives, via construction A, a code on which the transversal gate acts exactly: if spans a triply-even code and with odd, every component of has weight , so implements with no Clifford correction [24, 41].
For example, the stabilizer code of the code has up to a multiplier. No three elements of sum to 0 modulo 15, but , so ; indeed this is the simplex code, all of whose nonzero weights equal 8.
6 Search strategy
By Propositions 12 and 13, each code is determined by its spectral support , a union of -cyclotomic cosets modulo . We call admissible for a construction if it satisfies the corresponding criterion: for construction A, and for construction B.
Enumeration. For every length with in the stated ranges, we enumerate all admissible supports by a depth-first search over unions of cosets, abandoning a branch as soon as the support becomes inadmissible; since admissibility is inherited by subsets, this loses nothing. Enlarging shrinks (or ), so it cannot decrease the distance, nor, by Lemma 17, increase the output error of distillation. We therefore keep only maximal admissible supports, those that cannot be enlarged by another coset. This is maximality among cyclic codes; we do not consider non-cyclic extensions. Multipliers , , permute coordinates and map to , and we keep one support per multiplier orbit; since two cyclic codes can be permutation-equivalent without being related by a multiplier, our counts are of multiplier classes and may exceed the number of inequivalent codes.
As an independent check, we repeated the enumeration in Magma [42] with a generalized Bron–Kerbosch algorithm. The usual algorithm finds maximal cliques of a graph, which would capture only pairwise compatibility of cosets, whereas admissibility involves sums of three elements. We therefore filter the candidate cosets at every step by the full admissibility test applied to the current support, and report a support only when no remaining coset can be added. Because admissibility is inherited by subsets, every maximal support is reached along some branch, so the search is exhaustive. It finds the same maximal supports as ours, up to multiplier equivalence and with the same dimensions, at every length: odd for , for , and for .
Distances. Distances are computed by an exhaustive meet-in-the-middle search, using cyclic symmetry and scaling to fix . Every reported value comes with an explicit minimum-weight vector, checked directly, and the exhaustive search excludes all smaller weights. Where the search reaches its size limit, it gives a rigorous lower bound; for , a randomized phase may also give an upper bound. Where feasible, we resolved remaining lower bounds with the Brouwer–Zimmermann algorithm in Magma, which settled 27 distances, including that of [[49, 1, 7]]7. We also use Proposition 18. If a maximal support coincides, up to a multiplier, with the support of a concatenation of codes of distances and , then ; if it strictly contains such a support, then , since enlarging cannot decrease the distance. All distances for and are exact; lower bounds remain only for at and for at . In the tables, the best distance at a length is reported as exact only if the distance of every maximal support at that length is known exactly. Independently, Brouwer–Zimmermann distances agree with ours for all when , when , and when codes in total.
Checks. Every code was rechecked directly against Definition 5 (Bravyi–Haah for ), and every binary code was checked to be triply even. The transversal gate was verified exhaustively, with exact phases, for [[15,1,3]]2, [[19,1,3]]3, [[11,1,3]]5 and [[7,1,3]]7.
7 Results
We searched every length with up to 121 for , up to 96 for , and every odd up to 763 for . Up to multiplier equivalence there are 92 maximal supports for construction A and 195 for construction B when , 248 and 395 when , and 624 and 1600 when . Table 1 compares, for each distance, the shortest code we find with the shortest punctured Reed–Muller code and the shortest concatenation. Appendix B lists the best code at every length, and Appendix C gives the spectral supports of selected codes.
. The shortest cyclic distance-3 code is the code of Example 14, from construction B; requiring self-orthogonality, i.e. , as in [8], would raise this to . Construction A first reaches at . Near length 80 both constructions jump to distance 7, with (B) and (A), and (A) is the first code with . For the cyclic codes are shorter than both Reed–Muller codes and concatenations; at the cyclic code is the Reed–Muller code . At the Reed–Muller lengths themselves, the search also improves on Reed–Muller codes. At the only maximal support, up to multiplier equivalence, strictly contains the Reed–Muller support, giving a code with the same distance but a higher threshold (Table 2). At n = 80 the search finds , against for the Reed–Muller code.
. The shortest cyclic distance-3 code is (B), less than half the length of the shortest Reed–Muller code with , . At larger distances concatenation does better. The records and are the twofold and threefold concatenations of the Reed–Solomon code (Proposition 18), and at the concatenation , of length 44, is shorter than every cyclic code, including . At the Reed–Muller length 24, construction A gives , against for the Reed–Muller code.
. The shortest cyclic codes are and (B), and and (A); for they are shorter than both Reed–Muller codes and concatenations. At , the code (B) has the same length as the self-concatenation of , which has distance 9, and no code with is certified in our range. At the Reed–Muller length 48, construction A gives , against for the Reed–Muller code.
| d | p=3 | p=5 | p=7 | ||||||
|---|---|---|---|---|---|---|---|---|---|
| RM | conc. | cyclic | RM | conc. | cyclic | RM | conc. | cyclic | |
| 2 | 8 | 64 | 8 (A) | 4 | 16 | 4 (A) | 6 | 36 | 6 (A) |
| 3 | 80 | 64 | 19 (B) | 24 | 16 | 11 (B) | 48 | 36 | 7 (B) |
| 4 | 80 | 64 | 40 (A, B) | 124 | 16 | (A) | 48 | 36 | 28 (B) |
| 5 | 80 | 152 | 79 (B) | 624 | 44 | 48 (A) | 342 | 42 | 28 (B) |
| 6 | 242 | 152 | 79 (B) | 624 | 44 | (A) | 342 | 42 | 29 (A) |
| 7 | 242 | 320 | 79 (B) | 624 | 64 | (A) | 2400 | 49 | 49 (B) |
| 8 | 242 | 320 | 121 (A) | 624 | 64 | (A) | 2400 | 49 | - |
Table 1: Shortest length of an code with . “RM”: punctured generalized Reed–Muller codes [3, 4, 7] of length , with the largest admissible () for each ; their distances follow from [43]. “conc.”: the shortest concatenation of two or three codes from the other two columns, using . “cyclic”: the shortest length at which our search certifies a cyclic code with distance at least (construction in parentheses); marks codes that are themselves concatenations of (Proposition 18); “-”: no code with is certified for in the search range.
. For qubits, both constructions use the supports with , which by Theorem 16 are exactly the triply-even cyclic codes; we also checked triple-evenness directly. The main output is therefore a classification. Of the odd lengths between 3 and 763, only 84 admit a nonzero triply-even cyclic code, and at these lengths every triply-even cyclic code is, up to multiplier equivalence, a subcode of one of 879 maximal codes, which we list.
The construction-A records are , , and , all with exact distances; construction B typically gives codes one shorter with distance one lower. No support with is certified to have distance 11 or more, although some distances for are known only as lower bounds. These codes are not competitive with the non-cyclic [1], [34] and [24] codes.
The search does, however, clarify the role of punctured Reed–Muller codes, whose spectral support is up to a multiplier, where is the number of ones in the binary expansion of j [39]. At n=15, 31, 127 and 255 this support is maximal, and RM(1,4)* [2] and RM(2,7)* are the records [[15,1,3]]_2 and [[127,1,7]]_2. At n = 63 and 511, by contrast, the Reed–Muller support is a proper subset of a maximal support with the same distance. At n = 63 the larger code, with a support of size 12 rather than 6, has and threshold 0.104 under the noise model of Section 8, against and 0.034 for RM(1,6)*. The record [[85,1,5]]_2 and [[223,1,9]]_2 codes are not of Reed–Muller length.
8 Distillation performance
We now evaluate the smallest codes in a single round of distillation. Each noisy input is modelled as with ; this is the twirled form of depolarizing noise of strength [3, 9]. Measuring the stabilizers and postselecting accepts an error if and only if , and the output is wrong if and only if . Hence
which we evaluate exactly from the weight distributions of and , obtained by the MacWilliams identity [39]. Multiplying j by a nonzero scalar preserves its weight and whether it is accepted, so the output error is again spread evenly over the nontrivial directions, and the output has the same form as the input.
Our search keeps only maximal supports (Section 6). Under this noise model that loses nothing, because enlarging a support can only improve the output error:
Lemma 17. Consider two codes with the same logical rows and stabilizer spaces . Under the noise model above, for every the larger code has . In particular, its threshold is at least as high.
The proof, given in Appendix A.2, rewrites the comparison as a correlation inequality and applies the FKG inequality [44].
Table 2 gives, for the smallest new codes and for comparison codes, the overhead exponent [1], which governs the cost of using a code recursively; the leading behaviour of for small ; the threshold , below which ; and the acceptance probability at .
For and the new codes improve on the shortest Reed–Muller and Reed–Solomon codes, respectively, in both overhead exponent and threshold. The codes [[19, 1, 3]] and [[40, 1, 4]] have and thresholds above 0.22, against and 0.211 for [[8, 1, 2]], and [[7, 1, 3]] has and threshold 0.446, against 2.58 and 0.232 for [[6, 1, 2]]. The search also improves on Reed–Muller codes at fixed length: the cyclic [[26, 1, 2]] code, whose support strictly contains the Reed–Muller support, has the same leading term but almost twice the threshold. For larger , Proposition 15 gives, for example, [[13, 1, 5]] with and threshold 0.562, against and 0.479 for the Reed–Solomon code [[12, 1, 4]]. For the comparison is less favourable: although [[11, 1, 3]] improves on the shortest Reed–Muller code of the same distance, recursive use of the [[4, 1, 2]] Reed–Solomon code has a smaller overhead exponent and a higher threshold.
For construction A with , the logical gate is with . If is a cube, is Clifford-equivalent to , via the Clifford gate ; if
| code | γ | εout for small ε | threshold ε* | Pacc at ε = 0.01 |
|---|---|---|---|---|
| [[19,1,3]]3 (B) | 2.68 | 5.25 ε3 | 0.226 | 0.83 |
| [[40,1,4]]3 (A) | 2.66 | 16.25 ε4 | 0.223 | 0.67 |
| [[8,1,2]]3 (RM) | 3.00 | 2 ε2 | 0.211 | 0.92 |
| [[26,1,2]]3 (RM) | 4.70 | 6.5 ε2 | 0.066 | 0.77 |
| [[26,1,2]]3 (A) | 4.70 | 6.5 ε2 | 0.123 | 0.77 |
| [[11,1,3]]5 (B) | 2.18 | 1.44 ε3 | 0.346 | 0.90 |
| [[24,1,3]]5 (RM) | 2.89 | 1.5 ε3 | 0.263 | 0.79 |
| [[4,1,2]]5 (RS) | 2.00 | 1.5 ε2 | 0.363 | 0.96 |
| [[16,1,4]]5 (RSoRS) | 2.00 | 3.38 ε4 | 0.363 | 0.85 |
| [[7,1,3]]7 (B) | 1.77 | 0.97 ε3 | 0.446 | 0.93 |
| [[12,1,3]]7 (A) | 2.26 | 1.11 ε3 | 0.366 | 0.89 |
| [[6,1,2]]7 (RS) | 2.58 | 2.5 ε2 | 0.232 | 0.94 |
Table 2: Exact single-round performance under twirled depolarizing noise. RM: punctured Reed–Muller codes [3, 4, 7]; RS: Reed–Solomon codes [4, 8].
is not a cube, it is not [15, 45]. Among the codes in Table 2 this affects only [[12, 1, 3]]7, with , whose output therefore lies in a different Clifford class from its input. Construction-B codes have , which is a cube, and for every unit is a cube.
Three caveats apply. First, single-round thresholds and do not by themselves determine the overhead of a full protocol. Second, Table 2 assumes depolarizing noise. Twirling makes the noise diagonal in the basis but does not make the weights of different equal, and thresholds for biased noise can differ, as can the conclusion of Lemma 17, whose proof uses the depolarizing form of the noise. Third, enlarging a support cannot raise , by Lemma 17, but it does lower the acceptance probability, which also affects the overall overhead.
9 Conclusion
For cyclic codes of length coprime to , triorthogonality reduces to a sumset condition on the spectral support. For qubits this gives a complete description of triply-even cyclic codes of odd length, by the condition , and we determine all of them up to length 763. For qudits it makes an exhaustive search over two natural constructions feasible. The resulting codes improve substantially on punctured Reed–Muller codes, in both length and threshold; for , and for at distances , they are also shorter than concatenations of known codes, while for recursive use of the [[4, 1, 2]] Reed–Solomon code remains better. The criteria also give infinite families directly, including [[p, 1, 2[p/6] + 1]] codes for every prime .
The approach has limitations. We considered two constructions, with unit weights (see Section 4), lengths coprime to , and equivalence under multipliers only, and some distances are known only as lower bounds. Cyclic codes are also unlikely to be optimal among all codes: for qubits, non-cyclic constructions are shorter at , and for qutrits we have found a better non-cyclic code with , to appear in forthcoming work.
Several questions remain open. The smallest distance-3 qutrit triorthogonal code is unknown; a qudit analogue of the classification of [28, 29] would settle the question. Puncturing cyclic spaces at several points gives codes with and, with suitable logical rows, codes for multi-qudit gates such as CCZ. The sumset criteria hold verbatim for abelian group codes of order coprime to , and extended cyclic codes can be treated similarly.
They also extend to higher levels of the Clifford hierarchy: for the gate with , the analogue of construction B requires , and for qubits a cyclic code of odd length with has all weights divisible by 16, by McEliece's theorem. Constacyclic codes may give further families when . Finally, it would be interesting to compute multi-round overheads for the qudit codes found here.
Acknowledgements
The author thanks Prof. P.S. Satsangi for discussions on qudit magic state distillation some years ago, and for earlier work on qudit contextuality [46] that motivated the author's interest in qudit fault tolerance. The author also thanks T. Saha for sharing his unpublished notes on qudit CSS-T codes, in which he independently obtained the sufficiency of the cubic conditions without self-orthogonality for . This work was supported by DST-SERB grant (CRG/2021/009137).
Large language models (Google Gemini 3.1 and 3.6; Theo Collaborator Beta using GPT-5.5; Claude Sonnet 5.5 and Opus 5.5) assisted with coding, drafting, and revision. I verified all results and code and take full responsibility for this paper.
Code and data availability
The search code, a test suite, and the complete results (every maximal admissible spectral support, with its dimension and certified distance) are available at https://github.com/spdei/cyclic-triorthogonal-codes.
References
[1] Sergey Bravyi and Jeongwan Haah. "Magic-state distillation with low overhead". Phys. Rev. A 86, 052329 (2012).
[2] Sergey Bravyi and Alexei Kitaev. “Universal quantum computation with ideal Clifford gates and noisy ancillas”. Phys. Rev. A 71, 022316 (2005).
[3] Earl T. Campbell, Hussain Anwar, and Dan E. Browne. "Magic-state distillation in all prime dimensions using quantum Reed-Muller codes". Phys. Rev. X 2, 041021 (2012).
[4] Earl T. Campbell. “Enhanced fault-tolerant quantum computing in d-level systems”. Phys. Rev. Lett. 113, 230501 (2014).
[5] Matthew B. Hastings and Jeongwan Haah. “Distillation with sublogarithmic overhead”. Phys. Rev. Lett. 120, 050504 (2018).
[6] Jeongwan Haah and Matthew B. Hastings. “Codes and Protocols for Distilling T, controlled-S, and Toffoli Gates”. Quantum 2, 71 (2018).
[7] Tanay Saha and Shiroman Prakash. “Sublogarithmic distillation in all prime dimensions using punctured Reed-Muller codes”. Phys. Rev. A 113, 042405 (2026). arXiv:2510.10852.
[8] Anirudh Krishna and Jean-Pierre Tillich. “Towards low overhead magic state distillation”. Phys. Rev. Lett. 123, 070507 (2019).
[9] Hussain Anwar, Earl T. Campbell, and Dan E. Browne. "Qutrit magic state distillation". New J. Phys. 14, 063006 (2012).
[10] Mark Howard, Joel Wallman, Victor Veitch, and Joseph Emerson. “Contextuality supplies the ‘magic’ for quantum computation”. Nature 510, 351–355 (2014).
[11] Hillary Dawkins and Mark Howard. “Qutrit magic state distillation tight in some directions”. Phys. Rev. Lett. 115, 030501 (2015).
[12] Shiroman Prakash and Aashi Gupta. “Contextual bound states for qudit magic state distillation”. Phys. Rev. A 101, 010303 (2020).
[13] Shiroman Prakash and Rishabh Singhal. “Search for high-threshold qutrit magic-state distillation routines”. Phys. Rev. A 113, 042404 (2026). arXiv:2408.00436.
[14] Shiroman Prakash and Tanay Saha. “Low Overhead Qutrit Magic State Distillation”. Quantum 9, 1768 (2025). arXiv:2403.06228.
[15] Mark Howard and Jiri Vala. “Qudit versions of the qubit gate”. Phys. Rev. A 86, 022316 (2012).
[16] Akalank Jain and Shiroman Prakash. “Qutrit and ququint magic states”. Phys. Rev. A 102, 042409 (2020).
[17] Wim van Dam and Mark Howard. “Noise thresholds for higher-dimensional systems using the discrete Wigner function”. Phys. Rev. A 83, 032310 (2011).
[18] Ignacio Cascudo. “On squares of cyclic codes”. IEEE Transactions on Information Theory 65, 1034–1047 (2019).
[19] Ignacio Cascudo, Jaron Skovsted Gundersen, and Diego Ruano. “Squares of matrix-product codes”. Finite Fields and Their Applications 62, 101606 (2020).
[20] Eduardo Camps-Moreno, Hiram H. López, Gretchen L. Matthews, Diego Ruano, Rodrigo San-José, and Ivan Soprunov. “An algebraic characterization of binary CSS-T codes and cyclic CSS-T codes for quantum fault tolerance”. Quantum Information Processing 23, 230 (2024).
[21] Tanay Saha. “Qudit CSS-T codes” (2026). unpublished notes.
[22] Koichi Betsumiya and Akihiro Munemasa. “On triply even binary codes”. Journal of the London Mathematical Society 86, 1–16 (2012).
[23] Robert J. McEliece. “Weight congruences for p-ary cyclic codes”. Discrete Mathematics 3, 177–192 (1972).
[24] Shubham P. Jain and Victor V. Albert. “Transversal Clifford and T-gate codes of short length and high distance”. IEEE Journal on Selected Areas in Information Theory 6, 127–137 (2025).
[25] Michael Zurel, Santanil Jana, and Nadish de Silva. “High-threshold magic state distillation with quantum quadratic residue codes”. Quantum Science and Technology 11, 045052 (2026).
[26] Shiroman Prakash. “Magic state distillation with the ternary Golay code”. Proceedings of the Royal Society A 476, 20200187 (2020).
[27] Victor Veitch, S. A. Hamed Mousavian, Daniel Gottesman, and Joseph Emerson. “The resource theory of stabilizer quantum computation”. New J. Phys. 16, 013009 (2014).
[28] Adam Wills, Shubham P. Jain, and Shraddha Singh. “Classification of generalised triorthogonal codes through length 54” (2026). arXiv:2609.30860.
[29] Sepehr Nezami and Jeongwan Haah. “Classification of small triorthogonal codes”. Phys. Rev. A 106, 012437 (2022).
[30] Delio Jaramillo-Velez, Alessandro Neri, Adway Patra, Diego Ruano, and Flavio Salizzoni. “Quantum matrix-product codes: CSS-T characterization and maximality” (2026). arXiv:2609.08520.
[31] Eduardo Camps-Moreno, Hiram H. López, Gretchen L. Matthews, Diego Ruano, Rodrigo San-José, and Ivan Soprunov. “Binary Triorthogonal and CSS-T Codes for Quantum Error Correction” (2024). arXiv:2408.02916.
[32] Elena Berardini, Reza Dastbasteh, Josu Etxezarreta Martinez, Shreyas Jain, and Olatz Sanz Larrarte. “Asymptotically good CSS-T codes and a new construction of triorthogonal codes". IEEE Journal on Selected Areas in Information Theory 6, 189–198 (2025).
[33] Alessio Baldelli, Olai Å. Mostad, Hsuan-Yin Lin, Eirik Rosnes, and Massimo Battaglioni. "On Constructing and Decoding Quantum Triorthogonal Codes" (2026). arXiv:2605.24519.
[34] Matthew Sullivan. “Code conversion with the quantum Golay code for a universal transversal gate set”. Phys. Rev. A 109, 042416 (2024). arXiv:2307.14425.
[35] Adam Wills, Min-Hsiu Hsieh, and Hayata Yamasaki. “Constant-overhead magic state distillation”. Nature Phys. 21, 1842–1846 (2025). arXiv:2408.07764.
[36] Louis Golowich and Venkatesan Guruswami. “Asymptotically Good Quantum Codes with Transversal Non-Clifford Gates”. In 57th Annual ACM Symposium on Theory of Computing. (2025). arXiv:2408.09254.
[37] Quynh T. Nguyen. “Good Binary Quantum Codes with Transversal CCZ Gate”. In 57th Annual ACM Symposium on Theory of Computing. (2025). arXiv:2408.10140.
[38] Rodrigo San-José. “Asymptotically good binary triorthogonal codes and higher-level transversal gates” (2026). arXiv:2609.08203.
[39] Florence Jessie MacWilliams and Neil James Alexander Sloane. “The theory of error-correcting codes”. Volume 16 of North-Holland Mathematical Library. North-Holland Publishing Company. Amsterdam (1977).
[40] Shawn X. Cui, Daniel Gottesman, and Anirudh Krishna. “Diagonal gates in the Clifford hierarchy”. Phys. Rev. A 95, 012329 (2017).
[41] Narayanan Rengaswamy, Robert Calderbank, Michael Newman, and Henry D. Pfister. "On optimality of CSS codes for transversal T". IEEE Journal on Selected Areas in Information Theory 1, 499–514 (2020).
[42] Wieb Bosma, John Cannon, and Catherine Playoust. “The Magma algebra system I: The user language”. J. Symb. Comput. 24, 235–265 (1997).
[43] Philippe Delsarte, Jean-Marie Goethals, and F. Jessie MacWilliams. “On generalized Reed–Muller codes and their relatives”. Information and Control 16, 403–442 (1970).
[44] Cees M. Fortuin, Pieter W. Kasteleyn, and Jean Ginibre. “Correlation inequalities on some partially ordered sets”. Communications in Mathematical Physics 22, 89–103 (1971).
[45] Ingemar Bengtsson, Kate Blanchfield, Earl Campbell, and Mark Howard. “Order 3 symmetry in the Clifford hierarchy”. Journal of Physics A: Mathematical and Theoretical 47, 455302 (2014).
[46] Dayal Pyari Srivastava, Vishal Sahni, and Prem Saran Satsangi. “From n-qubit multi-particle quantum teleportation modelling to n-qudit contextuality based quantum teleportation and beyond”. Int. J. Gen. Syst. 46, 414–435 (2017).
A Deferred proofs
A.1 Spectral description of concatenation
Let and be construction-A codes of lengths and , with , stabilizer codes and with spectral supports and , and distances and . In their concatenation, with as the inner code, each of blocks of qudits is encoded with , and the stabilizers of act through the inner logical operators. Since the logical row of is 1, the stabilizer space of the concatenation is spanned by the vectors of placed on a single block, together with the vectors whose restriction to block is for some . Its logical row is 1.
We index as with and , so that block consists of the coordinates . Let be reduction modulo , and write for the dilation of , not to be confused with the sumset .
Proposition 18 (Concatenation). The set is admissible for construction A, the resulting code is the concatenation of with , and its distance is .
Proof. Let have order , and let and , of orders and . We take and with respect to and ; another choice of root changes them by a multiplier, which gives an equivalent code.
Step 1: two transforms. If v is supported on block b, with , then
where is computed with . If is constant on blocks, with , then
which vanishes unless , and , where is computed with .
Step 2: the stabilizer space is cyclic. By Step 1, a vector of placed on one block has spectrum in , and a lifted vector of has spectrum in . Hence lies in the cyclic code with support . The two pieces of are disjoint, since and , so the two spanning sets of have disjoint spectra and
Thus . Both codes have logical row 1, so by Lemma 4 the concatenation is the construction-A code with support S.
Step 3: admissibility. Suppose a sum of one, two or three elements of vanishes. If at least one of them lies in , reduce modulo : the elements of become 0, leaving a vanishing sum of one to three elements of . Otherwise all of them lie in , and dividing by gives a vanishing sum of elements of modulo . Both cases are excluded by the admissibility of and .
Step 4: the distance. For , let be its restriction to block and its block sums. Orthogonality to the stabilizers on block says , and orthogonality to a lifted vector says . Hence
By Proposition 12, is the least weight of with . For such , has nonzero sum, so for at least blocks; on each of them has nonzero sum and hence weight at least . So . Conversely, take of weight with sum , and of weight with nonzero sum. Setting gives with block sums , nonzero total sum, and weight .
Concatenations involving construction B are not considered here, since construction-B codes are not cyclic.
A.2 Proof of Lemma 17
Here we prove Lemma 17 from the main text. We use the notation of Section 8.
Proof. Let and be the sets of accepted errors, and let be the set of vectors orthogonal to every logical row, so that the accepted errors that act trivially on the output are and . For and a subspace , let be the subspace of vectors in supported on .
Step 1: resampling the noise. Let . The noise is equivalent to the following: choose a random set containing each coordinate independently with probability , and apply with uniform among vectors supported on . Each coordinate of is then nonzero with probability , with all nonzero values equally likely.
Step 2: reduction to a correlation inequality. Given , the smaller code accepts with probability , and conditioned on acceptance is uniform on . Hence, conditioned on acceptance, has distribution
and
where , and . Since and , the lemma is equivalent to
Step 3: pointwise. For subspaces of we have . Taking and gives .
Step 4: and are decreasing. is the size of the image of in , which can only grow as grows. The same argument applies to , with in place of .
Step 5: the FKG inequality. The measure satisfies the lattice condition . The factors and are modular in , and since and ,
By the FKG inequality [44], the decreasing functions and are positively correlated under , so . Together with Step 3 this gives (1). (For , is a point mass and (1) follows from Step 3 alone.)
B Best code at each length
For each construction and length, we list the code with the largest distance among all maximal supports, followed in parentheses by the number of maximal supports up to multiplier equivalence. Lengths at which every code has distance 1 are omitted. An entry is exact only if the distance of every maximal support at that length is known exactly; otherwise gives the best rigorous lower bound, and means that the best distance lies between and . Lower bounds also use Proposition 18: a support containing the concatenation of two construction-A supports, of distances and , has distance at least , with equality if it equals that support.
Qubits. Both constructions use the same supports, all of them triply even. Each entry gives the construction-A code and, after “B:”, the distance of the construction-B code of length .
[[15, 1, 3]], B: 2 (1)
[[51, 1, 3]], B: 2 (1)
[[85, 1, 5]], B: 4 (1)
[[105, 1, 3]], B: 2 (2)
[[127, 1, 7]], B: 6 (3)
[[155, 1, 5]], B: 4 (3)
[[195, 1, 3]], B: 2 (3)
[[221, 1, 5]], B: 4 (1)
[[233, 1, 7]], B: 6 (1)
[[275, 1, 5]], B: 4 (1)
[[315, 1, 7]], B: 6 (29)
[[345, 1, 3]], B: 2 (2)
[[369, 1, 3]], B: 2 (2)
[[399, 1, 3]], B: 2 (2)
[[425, 1, 5]], B: 4 (6)
[[441, 1, 3]], B: 2 (7)
[[455, 1, 5]], B: 4 (5)
[[471, 1, 3]], B: 2 (1)
[[511, 1, ≥ 7]], B: ≥ 6 (158)
[[549, 1, 3]], B: 2 (1)
[[567, 1, 5]], B: 4 (12)
[[595, 1, 5]], B: 4 (12)
[[623, 1, ≥ 7]], B: 6 (8)
[[651, 1, ≥ 7]], B: ≥ 6 (64)
[[669, 1, ≥ 7]], B: ≥ 6 (1)
[[693, 1, 3]], B: 2 (9)
[[705, 1, 3]], B: 2 (2)
[[735, 1, 3]], B: 2 (6)
[[31, 1, 3]], B: 2 (1)
[[63, 1, 3]], B: 2 (1)
[[89, 1, 5]], B: 3 (1)
[[117, 1, 3]], B: 2 (1)
[[135, 1, 3]], B: 2 (3)
[[165, 1, 3]], B: 2 (2)
[[215, 1, 5]], B: 4 (1)
[[223, 1, 9]], B: 8 (1)
[[255, 1, 7]], B: 6 (46)
[[279, 1, 7]], B: 5 (6)
[[339, 1, 3]], B: 2 (1)
[[351, 1, 7]], B: 6 (3)
[[375, 1, 3]], B: 2 (3)
[[403, 1, 5]], B: 4 (3)
[[431, 1, ≥ 7]], B: ≥ 6 (1)
[[445, 1, 7]], B: 6 (3)
[[459, 1, 3]], B: 2 (3)
[[485, 1, 5]], B: 4 (1)
[[525, 1, 3]], B: 2 (8)
[[555, 1, 3]], B: 2 (2)
[[585, 1, ≥ 7]], B: ≥ 6 (189)
[[601, 1, ≥ 7]], B: ≥ 6 (2)
[[635, 1, ≥ 7]], B: ≥ 6 (41)
[[657, 1, 3]], B: 2 (12)
[[671, 1, ≥ 7]], B: ≥ 6 (1)
[[697, 1, 5]], B: 4 (1)
[[713, 1, 5]], B: 4 (6)
[[741, 1, 3]], B: 2 (1)
[[45, 1, 3]], B: 2 (2)
[[75, 1, 3]], B: 2 (2)
[[93, 1, 5]], B: 4 (3)
[[123, 1, 3]], B: 2 (1)
[[153, 1, 3]], B: 2 (2)
[[189, 1, 5]], B: 4 (5)
[[217, 1, 5]], B: 4 (6)
[[225, 1, 9]], B: 3 (4)
[[267, 1, 7]], B: 6 (3)
[[285, 1, 3]], B: 2 (2)
[[341, 1, ≥ 9]], B: ≥ 7 (31)
[[357, 1, 3]], B: 2 (4)
[[381, 1, ≥ 7]], B: 6–7 (41)
[[405, 1, 3]], B: 2 (4)
[[435, 1, 3]], B: 2 (2)
[[451, 1, ≥ 7]], B: 6–7 (2)
[[465, 1, ≥ 9]], B: 6–7 (23)
[[495, 1, 5]], B: 3 (6)
[[527, 1, 5]], B: 4 (3)
[[561, 1, 3]], B: 2 (4)
[[589, 1, 5]], B: 4 (3)
[[615, 1, 3]], B: 2 (9)
[[645, 1, 5]], B: 4 (5)
[[663, 1, ≥ 7]], B: ≥ 6 (9)
[[675, 1, ≥ 9]], B: 3 (12)
[[699, 1, 7]], B: 5–6 (1)
[[731, 1, 5]], B: 4 (1)
[[763, 1, 3]], B: 2 (1)
Qutrits, construction A. 92 maximal supports in total.
[[8, 1, 2]] (1)
[[26, 1, 2]] (1)
[[46, 1, 2]] (1)
[[68, 1, 2]] (1)
[[92, 1, 2]] (2)
[[110, 1, 2]] (2)
[[121, 1, 8]] (6)
[[16, 1, 2]] (2)
[[32, 1, 2]] (3)
[[52, 1, 4]] (2)
[[70, 1, 2]] (1)
[[94, 1, 2]] (1)
[[112, 1, 4]] (11)
[[20, 1, 2]] (1)
[[40, 1, 4]] (4)
[[56, 1, 2]] (3)
[[80, 1, 7]] (18)
[[100, 1, 2]] (2)
[[116, 1, 2]] (1)
[[22, 1, 2]] (1)
[[44, 1, 2]] (2)
[[64, 1, 4]] (4)
[[88, 1, 4]] (5)
[[104, 1, 5]] (16)
[[118, 1, 2]] (1)
Qutrits, construction B. 195 maximal supports in total.
[[15, 1, 2]] (4)
[[39, 1, 3]] (9)
[[55, 1, 3]] (8)
[[75, 1, 3]] (4)
[[91, 1, 3]] (4)
[[115, 1, 3]] (3)
[[19, 1, 3]] (3)
[[40, 1, 4]] (1)
[[60, 1, 4]] (1)
[[79, 1, 7]] (33)
[[99, 1, 3]] (4)
[[120, 1, 7]] (13)
[[27, 1, 3]] (4)
[[43, 1, 3]] (4)
[[63, 1, 2]] (9)
[[81, 1, 7]] (3)
[[103, 1, 5]] (25)
[[31, 1, 2]] (6)
[[51, 1, 3]] (6)
[[67, 1, 3]] (3)
[[87, 1, 3]] (10)
[[111, 1, 4]] (15)
Ququints, construction A. 248 maximal supports in total.
| [[4,1,2]] (1) | [[8,1,2]] (2) | [[12,1,2]] (2) | [[16,1,4]] (3) |
|---|---|---|---|
| [[22,1,2]] (1) | [[24,1,4]] (7) | [[28,1,2]] (2) | [[32,1,4]] (6) |
| [[36,1,2]] (4) | [[38,1,2]] (1) | [[39,1,3]] (1) | [[44,1,3]] (4) |
| [[48,1,5]] (23) | [[52,1,2]] (4) | [[56,1,3]] (8) | [[62,1,2]] (4) |
| [[64,1,8]] (10) | [[66,1,2]] (2) | [[68,1,2]] (2) | [[71,1,6]] (3) |
| [[72,1,4]] (30) | [[76,1,3]] (4) | [[78,1,3]] (5) | [[84,1,2]] (12) |
| [[88,1,4]] (15) | [[91,1,4]] (1) | [[92,1,2]] (2) | [[96,1,8]] (89) |
Ququints, construction B. 395 maximal supports in total.
| [[7,1,2]] (3) | [[11,1,3]] (3) | [[12,1,3]] (1) | [[15,1,2]] (5) |
|---|---|---|---|
| [[23,1,3]] (12) | [[25,1,3]] (3) | [[27,1,3]] (3) | [[31,1,2]] (8) |
| [[35,1,3]] (4) | [[38,1,3]] (3) | [[43,1,3]] (5) | [[47,1,4]] (40) |
| [[51,1,3]] (9) | [[55,1,3]] (9) | [[62,1,2]] (1) | [[63,1,2]] (14) |
| [[67,1,3]] (3) | [[70,1,5]] (4) | [[71,1,3]] (43) | [[75,1,3]] (5) |
| [[77,1,5]] (36) | [[83,1,3]] (9) | [[86,1,2]] (1) | [[87,1,3]] (14) |
| [[90,1,6]] (2) | [[91,1,3]] (3) | [[95,1,4]] (134) |
, construction A. 624 maximal supports in total.
| [[6,1,2]] (1) | [[12,1,3]] (1) | [[16,1,2]] (1) | [[18,1,2]] (2) |
|---|---|---|---|
| [[20,1,2]] (1) | [[24,1,3]] (4) | [[29,1,6]] (1) | [[30,1,2]] (2) |
| [[32,1,3]] (4) | [[36,1,4]] (6) | [[38,1,2]] (2) | [[40,1,4]] (3) |
| [[48,1,6]] (46) | [[52,1,2]] (1) | [[54,1,2]] (4) | [[58,1,6]] (2) |
| [[60,1,4]] (9) | [[62,1,2]] (1) | [[64,1,5]] (10) | [[66,1,2]] (2) |
| [[68,1,2]] (1) | [[72,1,7]] (43) | [[74,1,2]] (1) | [[75,1,3]] (2) |
| [[76,1,4]] (6) | [[78,1,2]] (2) | [[80,1,≥7]] (28) | [[87,1,≥6]] (5) |
| [[90,1,2]] (8) | [[94,1,2]] (1) | [[96,1,≥6]] (424) |
, construction B. 1600 maximal supports in total.
| [[7,1,3]] (3) | [[11,1,3]] (4) | [[15,1,3]] (5) | [[19,1,3]] (3) |
|---|---|---|---|
| [[23,1,3]] (20) | [[24,1,3]] (1) | [[28,1,5]] (1) | [[31,1,4]] (10) |
| [[35,1,3]] (9) | [[39,1,3]] (9) | [[43,1,3]] (4) | [[47,1,5]] (119) |
| [[49,1,7]] (4) | [[51,1,3]] (3) | [[57,1,5]] (2) | [[59,1,3]] (16) |
| [[63,1,4]] (18) | [[64,1,4]] (1) | [[67,1,3]] (3) | [[71,1,5]] (165) |
| [[74,1,4]] (8) | [[75,1,3]] (9) | [[79,1,≥7]] (51) | [[86,1,5]] (6) |
| [[87,1,5]] (10) | [[91,1,3]] (4) | [[95,1,≥6]] (1092) |
C Spectral supports of selected codes
Supports are given with respect to the primitive root used in the data files: GAP's , or for , a root of the first factor of returned by PARI/GP. Another choice of changes by a multiplier, which gives an equivalent code.
| code | constr., length | spectral support S |
|---|---|---|
| [[15,1,3]]2 | A, 15 | {1,2,4,8} |
| [[85,1,5]]2 | A, 85 | {1,2,3,4,6,8,11,12,16,22,24,32,43,44,48,64} |
| [[127,1,7]]2 | A, 127 | {1,2,3,4,5,6,8,9,10,12,16,17,18,20,24,32,33,34,36,40,48,64,65,66,68,72,80,96} |
| [[223,1,9]]2 | A, 223 | {1,2,4,7,8,14,15,16,17,28,30,32,33,34,41,49,56,60,64,66,68,82,98,105,112,115,119,120,128,132,136,164,169,171,196,197,210} |
| [[8,1,2]]3 | A, 8 | {1,3} |
| [[15,1,2]]3 | B, 16 | {1,3,8,9,11} |
| [[19,1,3]]3 | B, 20 | {2,5,6,14,15,18} |
| [[40,1,4]]3 | A, 40 | {1,2,3,5,6,9,14,15,18,27} |
| [[40,1,4]]3 | B, 41 | {1,3,9,14,27,32,38,40} |
| [[80,1,7]]3 | A, 80 | {1,2,3,4,5,6,9,12,15,18,27,28,36,45,54,55} |
| [[79,1,7]]3 | B, 80 | {1,3,9,14,22,27,34,38,40,42,46,53,58,66,71,77,79} |
| [[121,1,8]]3 | A, 121 | {1,2,3,6,7,9,16,18,21,23,27,41,48,54,63,68,69,81,83,86} |
| [[4,1,2]]5 | A, 4 | {1} |
| [[11,1,3]]5 | B, 12 | {2,3,9,10} |
| [[16,1,4]]5 | A, 16 | {1,4,5,9,13} |
| [[47,1,4]]5 | B, 48 | {1,2,3,5,10,12,15,25,27,29,39} |
| [[48,1,5]]5 | A, 48 | {1,2,3,5,10,12,15,25,27,29,39} |
| [[70,1,5]]5 | B, 71 | {1,5,14,17,25,46,54,57,66,70} |
| [[90,1,6]]5 | B, 91 | {1,5,25,28,31,34,42,47,49,51,53,63,64,73,79,83} |
| [[64,1,8]]5 | A, 64 | {1,4,5,9,13,16,17,20,21,25,29,33,36,37,41,45,49,52,53,57,61} |
| [[6,1,2]]7 | A, 6 | {1} |
| [[7,1,3]]7 | B, 8 | {1,4,7} |
| [[12,1,3]]7 | A, 12 | {1,2,7} |
| [[28,1,5]]7 | B, 29 | {1,7,16,20,23,24,25} |
| [[29,1,6]]7 | A, 29 | {1,7,16,20,23,24,25} |
| [[49,1,7]]7 | B, 50 | {1,3,7,12,16,21,25,29,34,38,43,47,49} |