Manuscript Offprint
arXiv:2609.08520Quantum Matrix-Product Codes: CSS-T Characterization and Maximality
Delio Jaramillo-Velez , Alessandro Neri , Adway Patra , Diego Ruano , and Flavio Salizzoni
Department of Mathematics, IMAULL, Universidad de La Laguna, Spain
Department of Mathematics and Applications, University of Naples Federico II, Italy
Department of Electrical and Computer Engineering, University of Maryland, United States
IMUVa – Mathematics Research Institute, Universidad de Valladolid, Spain
Max Planck Institute for Mathematics in the Sciences, Germany
Abstract—CSS-T codes are quantum error-correcting codes that play an important role in fault-tolerant quantum computation, as they help mitigate the proliferation of errors. They admit a transversal T-gate and are defined from a pair of nested classical binary linear codes satisfying a specific algebraic condition expressed in terms of their Schur square. We extend this algebraic characterization to the propagation rule known as the -construction, that is, the matrix-product code constructed from two constituent codes. Moreover, for cyclic constituent codes, we provide an explicit characterization in terms of the defining cyclotomic sets, which extends existing results for cyclic codes. This framework allows the construction of new and longer CSS-T codes.
I. INTRODUCTION
Quantum error-correcting codes that admit transversal implementations of non-Clifford gates are central to fault-tolerant quantum computation. Among non-Clifford gates, the T gate occupies a distinguished role: together with the Clifford group, it generates a universal gate set, and its fault-tolerant realization is one of the main structural constraints in quantum code design. CSS-T codes were introduced as Calderbank-Shor-Steane (CSS) stabilizer codes [1], [2] admitting a transversal physical T gate acting as a logical operator, or as the identity up to phase [3]. Such codes are optimal among nondegenerate stabilizer codes supporting transversal T in a precise sense [3], [4], and they provide an algebraic framework for constructing magic-state-free or magic-state-efficient fault-tolerant schemes.
Algebraically, a CSS-T code is determined by a pair of nested binary linear codes satisfying additional compatibility conditions involving componentwise, or Schur, products. A structural breakthrough was the algebraic characterization of binary CSS-T pairs in terms of Schur squares [5]. More precisely, a pair gives rise to a CSS-T code if and only if
where denotes the Schur square of . This characterization reveals that transversal-T compatibility is controlled by quadratic constraints on classical codes. It also led to explicit constructions and classifications in important families, notably cyclic codes, for which the CSS-T condition admits a description in terms of generator polynomials and defining sets [5]. These results connect the theory of CSS-T codes to the algebraic study of Schur products of linear codes.
From a classical coding theory perspective, matrix-product codes form a powerful and flexible method for constructing long linear codes from shorter constituent codes. Given linear codes over and an matrix over , the matrix-product code
consists of all matrix products of row vectors from the with [6]. This construction generalizes classical schemes such as the (Plotkin) construction and admits strong control over dimension and minimum distance; see [6]–[8]. Matrix-product codes have been used extensively to construct classical codes with good parameters and desirable algebraic structure, including nested and cyclic families.
A key result for our purposes is the explicit description of Schur squares of matrix-product codes [9]. Under suitable conditions on the defining matrix , the square of a matrix-product code can itself be described as a matrix-product code whose constituents are sums of pairwise Schur products . For instance, in the -construction, corresponding to the matrix
the Schur square of the matrix-product code is again a matrix-product code whose constituents are described explicitly in terms of and the mixed product ; see Proposition 4. This explicit control of is particularly well suited for analyzing the CSS-T condition, since the CSS-T condition reduces to orthogonality constraints with and , making the quadratic transversal-T condition directly tractable at the level of the original codes and .
Our contributions can be summarized as follows:
- Let be matrix-product codes obtained from the -construction. We provide necessary and sufficient conditions for to be a CSS-T pair.
E-mails: djaramil@ull.edu.es, alessandro.neri@unina.it, apatra@umd.edu, diego.ruano@uva.es, flavio.salizzoni@mis.mpg.de
We also determine when such pairs are maximal in the CSS-T poset.
- We specialize the framework to the case in which the constituent codes of and are cyclic. In this setting, we express the CSS-T and maximality conditions in terms of the defining cyclotomic sets associated with the codes. This yields explicit combinatorial criteria on cyclotomic sets governing when a pair of cyclic matrix-product codes satisfies the CSS-T condition and when it gives rise to a maximal CSS-T pair.
Organization. The paper is organized as follows. In Section II, we review CSS-T pairs, Schur products, and matrix-product codes. Section III treats the CSS-T conditions for matrix-product codes under the -construction, and the conditions for maximality. Section IV specializes the theory to cyclic constituent codes.
A. Linear codes and duality
Let be a linear code. The dimension of as a -vector space is denoted by . The minimum distance of is
where denotes the Hamming weight of c. The dual code of C is defined by
A binary code is called even if every codeword has even Hamming weight. Equivalently, is even if and only if , where .
B. Schur (componentwise) product of codes
For vectors and in , their Schur product (or componentwise product) is defined as
Given linear codes , their Schur product is
The square of a code is denoted by .
Since we work over , for every , we have , and therefore .
C. CSS and CSS-T pairs
Let be linear codes. The classical CSS construction produces a quantum code with parameters
with , see [1], [2].
CSS-T quantum codes are defined by a pair of classical binary linear codes , called a CSS-T pair. They were characterized in [5], as stated in the following result.
Theorem 1 ([5, Theorem 2.3]). A pair of binary linear codes is a CSS-T pair if and only if
Moreover, for a CSS-T pair , we have that , and the parameters of the corresponding CSS-T code are ([5, Corollary 2.5])
In particular, if is a CSS-T pair, then is self-orthogonal. This Schur-based characterization will be the main tool for establishing CSS-T conditions for matrix-product codes.
D. Matrix-product codes
We begin with the general definition of matrix-product codes.
Definition 1 (Matrix-Product Code, [6]). Let be linear codes and let be a matrix with rank (implying ). The matrix-product code defined by the constituent codes and is
Equivalently, identifying each codeword with a vector in by reading the entries of the matrix in column-major order, a codeword of can be written in block form as
where .
Under the natural hypothesis that the matrix has full rank, the dimension of is given by . Moreover, if the codes are nested, , then the minimum distance is given by
where is the minimum distance of the code generated by the first i rows of M.
Throughout this paper, we work over and focus mainly on the -construction, which corresponds to the case and the matrix given in (1).
In this case, for linear codes , the matrix-product code is
and has parameters
The next results allow us to translate CSS-T conditions for matrix-product codes into Schur-product conditions on their constituent codes.
Proposition 2 ([6, Proposition 6.2]). Let be a matrix-product code. Then .
Proposition 3 ([9, Theorem 3.1]). Let be linear codes and let , . Then,
Proposition 4 ([9, Corollary 3.2]). Let and be linear codes, and let be its matrix-product code. Then, .
We conclude this section with an example illustrating a CSS-T code built from a matrix-product code.
Example 5 (A CSS-T example arising from a matrix-product code). Let , and . Define and . Then
Since , we have and . Hence , so is a CSS-T pair built from a matrix-product code.
III. CSS-T CONDITIONS FOR MATRIX-PRODUCT CODES
In this section, we determine necessary and sufficient conditions for a pair of matrix-product codes to form a CSS-T pair.
Our first main result is formulated as follows.
Theorem 6. Let be linear codes such that and . Define
Then, assuming , the pair is CSS-T if and only if , and .
Note that the assumption holds if and . To prove Theorem 6 we first establish the following lemma.
Lemma 1. Let be linear codes such that , and . Then the following conditions are equivalent:
- , 2) and .
Proof. Assume first 1). If and , then there exist and such that , since
Hence , and . Since and , we get . Moreover, . Thus and . Conversely, assume that and . Given with and , define , and . Then, and , and
Hence the desired inclusion holds.
We are now ready to prove Theorem 6.
Proof of Theorem 6. By Theorem 1, the pair is CSS-T if and only if and . By assumption, , so it remains to characterize the condition . From Proposition 4 we have
and from Proposition 2, .
Applying Lemma 1 with
we obtain that is equivalent to and . Finally, since , we have , and hence . This proves the equivalence.
A. Maximality in the CSS-T poset
We now study maximal elements in the poset of CSS-T pairs, focusing on matrix-product codes.
Definition 2 ([5]). Let denote the poset of CSS-T pairs ordered by if and only if for . Let be the subposet consisting of CSS-T pairs such that both and are matrix-product codes.
Definition 3. Let .
• We say that is maximal in if with a matrix-product code implies .
• Similarly, is maximal in if with a matrix-product code implies .
We next give a characterization of equality for the matrix-product codes considered in CSS-T pairs.
Lemma 2. Let be linear codes such that , and . Then the following are equivalent:
- , 2) and .
Proof. The equality holds if and only if both inclusions hold. First, assume . By Lemma 1, this is equivalent to , . Similarly, the reverse inclusion is equivalent (again by Lemma 1) to and . Combining the two inclusions yields and . Conversely, if and , both inclusions hold, and therefore the matrix-product codes are equal.
As a consequence, in Corollary 8 we extend the following result about maximal pairs in the poset.
Theorem 7 ([5, Theorem 3.11]). Let be linear codes. The pair is maximal in if and only if and .
Corollary 8. Let be a CSS-T pair with
where and . Then is maximal in if and only if
Proof. The result follows by combining Theorem 7 with Proposition 2, Proposition 3, and Proposition 4. □
We can also state the previous result in terms of the constituent codes.
Theorem 9. Let be a CSS-T pair with
where and . Then is maximal in if and only if
-
,
-
,
-
,
-
.
Proof. Apply Lemma 2 to the equalities in Corollary 8. □
The following result gives propagation rules in the poset of CSS-T pairs.
Proposition 10. Let be a CSS-T pair with
where and . Let . Then the following hold:
(a) is CSS-T if and only if , and .
(b) If , is CSS-T if and only if .
(c) If , is CSS-T if and only if .
(d) If , is CSS-T if and only if .
Proof. By Theorem 6, a pair is CSS-T if and only if and .
Since is CSS-T, we already have
(a) Replacing by , the CSS-T conditions become
Now , and
Since the original pair is CSS-T, the conditions reduce to
(b) Replacing by , we obtain
Expanding the second condition gives
Since the original pair is CSS-T, this reduces to .
(c) Replacing by , the second CSS-T condition becomes . Since (D'_1 + \langle y \rangle)^\perp = D'_1^\perp \cap \langle y \rangle^\perp, this is equivalent to
The first condition already holds, so we obtain the desired result.
(d) Replacing by , the first CSS-T condition becomes D_1^{*2} \subseteq (D'_2 + \langle y \rangle)^\perp = D'_2^\perp \cap \langle y \rangle^\perp. Since D_1^{*2} \subseteq D'_2^\perp already holds, this is equivalent to .
IV. Cyclic codes as constituent codes
We now focus on matrix-product codes whose constituent codes are cyclic. In [9], distance properties of matrix-product codes with cyclic constituent codes were investigated, while in [5] CSS-T codes were constructed from cyclic codes using algebraic methods. In this section, we combine these two perspectives to study CSS-T codes arising from matrix-product codes with cyclic constituents. A linear code is called cyclic if it is invariant under cyclic shifts, i.e., whenever , then . Equivalently, is an ideal of generated by a polynomial such that . Assume that and are coprime, , and let be a primitive -th root of unity in an algebraic closure of . We use the notation to denote a cyclic code with generating set . It is well-known that must be a cyclotomic set, that is, a subset of such that , where , with . Under these assumptions, if are two cyclotomic sets, it holds that
Proposition 11 ([9]). Let be a cyclotomic set. Then , where .
Proposition 12 ([9, Proposition 4.3]). Let be cyclotomic sets. Then
We now present our first result describing when a pair of matrix-product codes with cyclic constituent codes forms a CSS-T pair. We use the above description of cyclic codes in terms of cyclotomic sets.
Theorem 13. Let be cyclotomic sets in such that , , , . Then the pair is a CSS-T pair if and only if
or equivalently, if and only if
Proof. Apply Theorem 6 with
Since and , by (3) we have and , hence . Therefore the CSS-T condition is equivalent to
By Propositions 12 and 11,
and , . Thus the CSS-T condition becomes
Hence, by (3) the above is equivalent to , . Finally, using the standard relation
where , we obtain the equivalent conditions
Example 14. Consider , and , . Given that
from Theorem 13 and [9, Corollary 4.4] we obtain a CSS-T code with parameters given by , where
We now characterize maximal CSS-T pairs in the setting of cyclic matrix-product codes.
Theorem 15. Let be cyclotomic sets in such that , , , , and suppose that is a CSS-T pair. For , denote by , the complements of the defining sets. Then is maximal in if and only if
-
,
-
,
-
Proof. By Theorem 9, the pair is maximal if and only if
where , , , and . Using Proposition 12, we have
and by Proposition 11, , where . Thus the four equalities above translate into
Since sums of cyclic codes correspond to unions of defining sets, and equality of cyclic codes corresponds to equality of defining sets, the result follows. □
V. CONCLUSIONS AND FUTURE WORK
In this work, we analyzed CSS-T conditions for matrix-product codes arising from the -construction. We obtained necessary and sufficient conditions for a pair of such matrix-product codes to be a CSS-T pair, and we characterized maximality of these pairs in the CSS-T poset. We further translated these conditions to cyclic constituent codes, obtaining explicit cyclotomic-set criteria for CSS-T and maximal CSS-T pairs. These results provide a concrete bridge between the algebraic structure of matrix-product codes and the CSS-T condition, giving practical criteria that can be used to construct and classify new families of quantum codes supporting transversal T-gates. Future work will include extending this analysis to weighted Reed–Muller codes as constituent codes in the matrix-product construction, as well as a systematic study of the parameters obtained from both the cyclic and weighted Reed–Muller settings [10].
ACKNOWLEDGMENTS
This project began during the “Coding Theory and Cryptography Summer School and Collaboration Workshop,” which took place in July 2024 at the Stager Center for International Scholarship – Virginia Tech in Switzerland. The authors sincerely thank the organizers for creating an environment that made this collaboration possible. This work was partially supported by NSF grant DMS-240155, Grant PID2022-138906NB-C21 funded by MCIN/AEI/10.13039/501100011033 and by ERDF/UE, and by Grant CLU-2025-1-02- IMUVA funded by Department of Education of the Junta de Castilla y León and FEDER Funds, the IndAM - GNSAGA Project CUP E53C24001950001, and by the P500PT-222344 SNSF project.
REFERENCES
[1] R. Calderbank and P. W. Shor, “Good quantum error-correcting codes exist,” Physical Review A, vol. 54, pp. 1098–1105, Aug 1996.
[2] A. Steane, “Multiple-particle interference and quantum error correction,” Proceedings of the Royal Society of London Series A, vol. 452, pp. 2551–2577, Nov. 1996.
[3] N. Rengaswamy, R. Calderbank, M. Newman, and H. D. Pfister, “Classical coding problem from transversal T gates,” in 2020 IEEE International Symposium on Information Theory (ISIT), pp. 1891–1896, IEEE, 2020.
[4] N. Rengaswamy, R. Calderbank, M. Newman, and H. D. Pfister, “On optimality of CSS codes for transversal T,” IEEE Journal on Selected Areas in Information Theory, vol. 1, no. 2, pp. 499–514, 2020.
[5] E. Camps-Moreno, H. H. López, G. L. Matthews, D. Ruano, R. San-José, and I. Soprunov, “An algebraic characterization of binary CSS-T codes and cyclic CSS-T codes for quantum fault tolerance,” Quantum Information Processing, vol. 23, p. 230, 2024.
[6] T. Blackmore and G. H. Norton, “Matrix-product codes over ,” Applicable Algebra in Engineering, Communication and Computing, vol. 12, no. 6, pp. 477–500, 2001.
[7] F. Özbudak and H. Stichtenoth, “Note on Niederreiter-Xing’s propagation rule for linear codes,” Applicable Algebra in Engineering, Communication and Computing, vol. 13, no. 1, pp. 53–56, 2002.
[8] F. Hernando, K. Lally, and D. Ruano, “Construction and decoding of matrix-product codes from nested codes,” Applicable Algebra in Engineering, Communication and Computing, vol. 20, no. 5, pp. 497–507, 2009.
[9] I. Cascudo, J. S. Gundersen, and D. Ruano, “Squares of matrix-product codes,” Finite Fields and Their Applications, vol. 62, p. 101606, 2020.
[10] c. Bodur, F. Hernando, E. Martínez-Moro, and D. Ruano, “The Schur product of evaluation codes and its application to CSS-T quantum codes and private information retrieval,” Computational and Applied Mathematics, vol. 45, no. 7, pp. Paper No. 293, 28, 2026.