Figures
Abstract
In the past decade, the construction of quantum maximum distance separable codes (MDS for short) has been extensively studied. For the length , where m is an integer that divides either q + 1 or q − 1, a complete set of results has been available. In this paper, we dedicate to a previously unexplored cases where the length
, subject to the conditions that m is neither a divisor of q − 1 nor q + 1. Ultimately, this problem can be summarized as exploring the necessary and sufficient conditions for the existence of pairs
, where
is an integer, with the additional requirement that the greatest common divisor (
) of m with both m1 and m2,
and
, and
. The quantum MDS codes presented herein are novel and exhibit distance parameters exceeding
.
Citation: He X, Wang J, Huang C, Chen Y (2025) Exploring new lengths for q-ary quantum MDS codes with larger distance. PLoS One 20(6): e0325027. https://doi.org/10.1371/journal.pone.0325027
Editor: Alemayehu Getahun Kumela, Universite Cote d’Azur, FRANCE
Received: October 29, 2024; Accepted: May 5, 2025; Published: June 5, 2025
Copyright: © 2025 He et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: All relevant data are within the manuscript.
Funding: This study was financially supported by the Key Special Projects of the National Key R&D Program of China in the form of an award (2022YFB3103100) received by XH. This study was also financially supported by the National Natural Science Foundation of China Special Project in the form of an award (J2324013) receibed by XH. This study was also financially supported by the Ningbo Education Science Planning Research Project in the form of an award (2024YGH040) received by XH. This study was also financially supported by the Yongjiang Talent Project of Ningbo in the form of an award (2024A-398-G) received by XH. This study was also financially supported by the 14th Five Year Plan Teaching Reform Project of Zhejiang Province in the form of an award (jg20220633) received by JW. This study was also financially supported by the Second Batch of Undergraduate Teaching Reform Projects During the 14th Five Year Plan of Zhejiang Province in the form of an award (JGBA2024612) received by JW. This study was also financially supported by the Key Research Platforms and Projects of Higher Education Institutions in Guangdong Province in the form of an award (2024ZDZX1021) received by YC. This study was also financially supported by the Basic and Applied Basic Research Foundation of Guangdong Province in the form of an award (2025A1515012156) received by YC. This study was also financially supported by the Science and Technology Planning Projects of Shantou, China in the form of an award (220516096491783) received by YC.
Competing interests: The authors have declared that no competing interests exist.
1 Introduction
Quantum error-correction codes have been demonstrated as an encoding technique specifically engineered to safeguard quantum data against the effects of noise and interference. In quantum communication systems such as quantum key distribution (QKD), quantum MDS codes can be used to enhance the security and robustness of the key distribution process. They can help detect and correct errors that may occur during the transmission of quantum states used for key generation, ensuring the integrity of the shared secret key.
The construction of quantum error-correcting codes has been transformed into a finding for classical self-orthogonal codes over the fields or
with respect to specific inner products, as referenced in [3]. This concept was later extended to the non-binary cases in [1,21]. Henceforth, the construction of quantum error-correcting codes has seen significant advancements following the realization of the interplay between quantum codes and classical codes. Let q be a prime power, and a q-ary quantum code is defined as K-dimensional subspace within the Hibert space
, which is capable of detecting quantum errors at most d − 1. Let
, and we denote a q-ary quantum code as
. Similar to classical coding theory, one of the fundamental challenge in quantum coding theory is to develop quantum codes with desirable parameters. The inequality
provides a bound on the distance achievable for a quantum code
(as detailed in [17,18]). A quantum code attaining this bound is referred to as a quantum maximum-distance-separable (MDS) code. Numerous classes of quantum MDS codes have been systematically constructed employing various approaches.
The Hermitian inner produce over is defined as follows.
, where
and
are vectors in
. The approach outlined below represents a construction of q-ary quantum MDS codes from Hermitian self-orthogonal MDS codes over
, which is one of the significant techniques presented in [1].
Theorem 1 (Hermitian Construction). Suppose that is an
− k +
MDS code over
, and is orthogonal with respect to the Hermitian inner product. Then we can construct a q-ary quantum MDS code of parameters
.
1.1 Contributions and organization
The quantum MDS codes have several potential applications: one of the most important applications is in quantum error correction, and can be used to detect and correct errors in quantum information. By using quantum MDS codes, quantum operations can be performed in a way that is resilient to certain types of errors. This is essential for building large-scale and practical quantum computers that can run complex algorithms without being overwhelmed by errors.
Contributions. For length of the form , where m is an integer such that m divides q − 1 or m divides q + 1, comprehensive results are available, as shown in Table 1. The notation
represents the inclusive set of integers from a to b. However, in this paper, we concentrate on the case where m is not a divisor of either q − 1 or q + 1. Specifically, we consider pairs
such that
is an integer and
.
- When m odd,
, it is clear that Hermitian self-orthogonal MDS codes can’t be constructed with the length
. As illustrated in Corollary 1, our construction covers some cases.
- We provide the necessary and sufficient conditions for the existence of pairs
that makes
an integer.
- Additionally, for any given integer
, Algorithms 1 and 2 help us determine several possible pairs
such that
is an integer.
Organization. The rest part of this paper is structured as below. In Sect 2: Previous Known Results, we briefly review the previous known results about constructions for quantum MDS codes. In Sect 3: Preliminaries, we introduce the necessary preliminaries. Our main results are established in Sect 4: Constructions. The paper comes to an end in Sect 5: Conclusion.
2 Previous known results
The construction of quantum MDS codes has been a significant area of research since the pioneering work of Shor [23] and the subsequent generalizations by Calderbank, Rains, Shor, and Sloane [3]. These works laid the foundation for constructing quantum codes using classical codes over finite fields. The central idea is to find classical self-orthogonal codes with certain properties and then convert them into quantum codes [1,21].
An important method for constructing quantum MDS codes is the Hermitian construction. This method involves finding classical codes that are self-orthogonal with respect to the Hermitian inner product. The Hermitian construction has been used to create quantum MDS codes with larger minimum distances than those achievable through Euclidean self-orthogonal codes. For example, Jin, Ling, Luo, and Xing have used classical Hermitian self-orthogonal MDS codes to construct quantum MDS codes [12,13]. Additionally, Kai and Zhu have developed new quantum MDS codes from negacyclic codes [15], and Zhang and Chen have introduced new quantum MDS codes with large minimum distances [4]. Xueying Shi, Qin Yue and Xiaomeng Zhu use the classical Hermitian self-orthogonal generalized Reed-Solomon codes to construct some new quantum MDS codes with minimum distance bigger than + 1 [22]. Reference [6] constructs six new classes of q-ary quantum MDS codes by using generalized Reed-Solomon (GRS) codes and Hermitian construction.
Generalized Reed-Solomon (GRS) codes have been particularly useful in constructing quantum MDS codes. GRS codes are a generalization of the classical Reed-Solomon codes and are known for their optimal error-correcting capabilities. By using GRS codes, several new classes of quantum MDS codes have been constructed with parameters that exceed the minimum distance of previously known codes. For example, Reference [20] constructs a new family of quantum MDS codes from classical generalized Reed-Solomon codes and derive the necessary and sufficient condition for the existence. Jin [14] presents a new construction of quantum MDS codes with minimum distance greater than + 1. The authors use Hermitian self-orthogonal codes to construct these new quantum MDS code. Reference [2] constructs quantum MDS codes with parameters
for all
,
. These codes are shown to exist by proving that there are classical generalised Reed-Solomon codes which contain their Hermitian dual.
Constacyclic codes over finite fields have been another rich source for constructing quantum MDS codes. These codes offer a flexible structure that can be tailored to achieve the MDS property. Kal et al. [16] generated several classes of quantum MDS codes based on constacyclic codes. Subsequently, Chen et al. [4] got four families of q-ary quantum MDS codes through MDS cyclic codes. Hu et al. [11] proposed a way to determine the maximum distance of quantum MDS codes from constant cyclic codes with the given n and q, and in the meanwhile presented a new class of quantum MDS codes derived from Hermitian dual-containing MDS constacyclic code. Kai and Zhu [15] construct two families of quantum MDS codes by leveraging negacyclic codes.
In recent years, a plenty of quantum MDS codes possessing favorable properties have been derived from classical error-correcting codes, including algebraic-geometric codes, BCH codes, and Reed-Muller codes, as detailed in References [5,7,14,13,12] etc. The underlying principle of constructing the Hermitian self-orthogonal codes hinges on the solvability in of a system of homogenous equations over
[14]. By applying Hermitian self-orthogonal algebraic geometry codes to quantum codes, some good quantum codes were obtained [13]. Grassl et al. [9] constructed a class of q-ary quantum MDS codes with length n = q2 − 1. La Guardia [19] constructed a class of quantum MDS codes utilizing MDS cyclic codes. By identifying polynomials rooted in appropriate trace functions, a novel family of linear codes was introduced, facilitating the construction of stabilizer quantum codes over several finite fields [8].
3 Preliminaries
In this section, we introduce a straightforward approach to constructing generator matrices that are crucial for the formation of Hermitian self-orthogonal MDS codes over the finite field as detailed in Reference [10]. This approach not only recaptures the case where the code length
, but also paves the way for the development of a variety of new MDS quantum codes. We will proceed with two key lemmas that are fundamental to our construction. However, we choose to omit the proofs of these lemmas and instead, direct the interested reader to Reference [10] for a comprehensive explanations of the proofs.
Lemma 2. Let be a primitive element within the multiplicative group of the finite field
, and an integer m|q2−1, then
except the case that
.
Lemma 3. Let be n non-zero elements in the multiplicative group
. Let
for
be k linear independent rows in
such that
for any two indices l1 and l2 in the set {1, ..., k} (where
is allowed). Consequently, we can construct a Hermitian self-orthogonal
code produced by these k rows.
With Lemmas 2 and 3, given , and m|q2 − 1, for any fixed positive integer k, a linear error codes of length
over
can be defined as follows:
It is evident that is an MDS code with the parameters
− k + 1] over
. Essentially, this code is an evaluation code at the points
.
The Hermitian inner product of any two codewords (associated with two polynomials f and g) is . Thus, if the sum
, where
, then
is a Hermitian self-orthogonal MDS code.
4 Constructions
This section focuses on the construction of novel quantum MDS codes with a length of , where
− 1 and
+ 1, pairs
with
,
, and q represents an odd prime power.
Let be two even integers. m1|q − 1, m2|q + 1. According to Lemma 3.1 in [10], we have the following identity when
.
According to Theorem 1 from Reference [25], the subsequent identity is established when :
By summing the two identities, we derive the following new identities:
Here, H can be any nonzero element in , and the common position
are in the range
.
Let M be the set
, and the code is the set
Theorem 4. [25] Let q be an odd prime power, m1,m2 be two even integers. , then we construct a q-ary quantum MDS code with the following parameters:
- length n:
, where
denotes the least common multiple of
.
- minimum distance d:
.
In Theorem 4, by carefully selecting specific parameters for the pair , we can derive a novel class of quantum codes that exhibit highly beneficial properties, as demonstrated in Corollary 1.
Corollary 1. With the notation defined as above, m1 = 2k is an even divisor of q − 1, is an even divisor of q + 1, then we can construct an q-ary quantum MDS code with the parameters:
- length n:
,
- minimum distance d:
.
Remark 1. When q odd, − 1, it is clear that Hermitian self-orthogonal MDS codes can’t be constructed by the generator matrices over the finite field
as detailed in [10]. However, this case is partially covered by Corollary 1.
Theorem 4 provides the theoretical result of the construction, but it must be ensured that is an integer. This allows us to choose certain values pair
such that
−
+ 1, but
−
+
. This case has not been systematically discussed and studied.
Lemma 5. Let be two even integers, and
. If
is an integer,
, then, at least one of
has a factorization with at least three prime factors.
Proof: The proof can be accomplished by introducing the method of proof by contradiction. Without loss of generality, we can assume that ,
, both
are primes, otherwise, either
has three factors. Hence, we have
. Note that
, then
, which is completely impossible. Therefore,
has at least three prime factors.
Remark 2. Consider that ,
even, therefore, the factorization of m1 or m2, one with one factor 2 and the other can have multiple factors 2. We can assume that
,
odd,
, b1,b2 can be odd or even, otherwise,
.
In the following text, assume that ,
odd,
,
,
,
.
Theorem 6. The necessary and sufficient conditions for the existence of pairs is
has at least three prime factors. Here,
is an integer and
and
.
Proof: From Lemma 5, we know that has at least three prime factors. Next, we just need to prove that the pairs
always exists as long as
.
Let , then we have
, then
.
With the assumption that are odd, therefore,
can be factorised into
, that is,
. Hence, let
or
to make the equation holds.
Now, we need to prove that . From the equation
, and
odd, then we have
.
,
,
.
. Consider that
are integers, therefore,
.
The conclusion holds.
Remark 3. Theorem 6 provides an existence case, and other cases can be similarly proved. For example, when m1 = 2p, p odd. Even if p a prime, we can also prove its existence. Let ,
integers. Similarly, let m = 2b1, then we have
− 1,
−
− 1. Hence, let
to make the equation holds. We treat this case in the following Algorithm 1.
Algorithm 1. Algorithm for determining parameters .
Remark 4. Theorem 6 demonstrates that given an arbitrary m1, m2 can always be found such that is an integer. Similarly, given m2, m1 can also be found such that
is an integer. Considering that this proof is identical, we omit here. The prerequisite for this is that m1 or m2 has at least three prime factors.
Algorithm to choose the parameters 
Theorem 6 only tells us the existence of the pair , we need to fully determine the value of a pair
. Given any integer
, Algorithm 2 can help us determine several possible pairs
.
According to the proof process of Theorem 6, the algorithm run through the variable p1, which varies from 1 to − 1 or larger, which can be used to determine the pair
. From Corollary 2,
always exists.
Corollary 2. Given two integer odd and
,
, there exists a pair
that makes
, Here,
,
.
Proof: Assume that , then
. The corollary holds.
Algorithm 2. Algorithm for determining parameters .
With Algorithm 1, we can get the value of pairs . Let’s make some examples to illustrate this.
Example 1. Let ,
, then
. Let p1 = 1 also can give a pair of m = 24,
,
.
Example 2. Let ,
, then
. Case p = 2 can also give a pair
with m = 30,
. Let p1 = 7,
. If p = 14,
.
Example 3. Let , p = 1, then
Let p1 = 19, then
.
Now, we need to determine the q that makes . Consider that
, then there exists two integers
fulfilling
. Set
, or
and it is easy to verify that
Table 3 gives some examples of new quantum MDS codes, with the length
, but
,
.
Remark 5. The integer 2 plays a special role throughout the entire paper, including ,
. The reason for doing this is to consider the existence of q, which only exists when
or 2, and satisfies m1|q−1, m2|q + 1 in the meanwhile.
5 Conclusion
In this paper, we have conducted a investigation of the case where the length is given by , under the conditions that
,
, where
are both even, and
. We have derived the necessary and sufficient conditions for the existence of such pairs
. Additionally, for a specified value of m, we design Algorithms 1 and 2 to determine the pair
. With these insights, it is now a straightforward task to construct a new class of quantum MDS codes.
Despite the numerous methods have been proposed to construct quantum MDS codes, in fact, the code length n is still sparse for . In most cases, codes have not been constructed because the majority of the constructed results are concentrated in the case of
. Our future work is to develop a general method that is not limited to the case of length
.
References
- 1. Ashikhmin A, Knill E. Nonbinary quantum stabilizer codes. IEEE Trans Inform Theory. 2001;47(7):3065–72.
- 2.
Ball S. Some constructions of quantum MDS codes. Berlin: Springer; 2021.
- 3. Calderbank A, Rains E, Shor P, Sloane N. Quantum error correction via codes over GF(4). IEEE Trans Inf Theory. 1998;44(4):1369–87.
- 4. Chen B, Ling S, Zhang G. Application of constacyclic codes to quantum MDS codes. IEEE Trans Inform Theory. 2015;61(3):1474–84.
- 5. Cohen G, Encheva S, Litsyn S. On binary constructions of quantum codes. IEEE Trans Inform Theory. 1999;45(7):2495–8.
- 6. Fang W, Fu F-W. Some new constructions of quantum MDS codes. IEEE Trans Inform Theory. 2019;65(12):7840–7.
- 7. Feng K. Quantum codes [[6,2,3]]_p and [[7,3,3]]_p (p3) exist. IEEE Trans Inf Theory. 2002;48(8):2384–91.
- 8. Galindo C, Hernando F, Ruano D. Classical and quantum evaluation codes at the trace roots. IEEE Trans Inform Theory. 2019;65(4):2593–602.
- 9.
Grassl M, Rötteler M. Quantum MDS codes over small fields. In: 2015 IEEE International Symposium on Information Theory (ISIT). 2015. pp. 1104–8.
- 10. He X, Xu L, Chen H. New q-ary quantum MDS codes with distances bigger than q/2. Quantum Inf Process. 2016;15(7):2745–58.
- 11. Hu L, Yue Q, He X. Quantum MDS codes from BCH constacyclic codes. Quantum Inf Process. 2018;17(12).
- 12. Jin L, Ling S, Luo J, Xing C. Application of classical Hermitian self-orthogonal MDS codes to quantum MDS codes. IEEE Trans Inform Theory. 2010;56(9):4735–40.
- 13. Jin L, Xing C. Euclidean and Hermitian self-orthogonal algebraic geometry codes and their application to quantum codes. IEEE Trans Inform Theory. 2012;58(8):5484–9.
- 14. Jin L, Xing C. A Construction of new quantum MDS codes. IEEE Trans Inform Theory. 2014;60(5):2921–5.
- 15. Kai X, Zhu S. New quantum MDS codes from negacyclic codes. IEEE Trans Inform Theory. 2013;59(2):1193–7.
- 16. Kai X, Zhu S, Li P. Constacyclic codes and some new quantum MDS codes. IEEE Trans Inform Theory. 2014;60(4):2080–6.
- 17. Ketkar A, Klappenecker A, Kumar S, Sarvepalli PK. Nonbinary stabilizer codes over finite fields. IEEE Trans Inform Theory. 2006;52(11):4892–914.
- 18. Knill E, Laflamme R. Theory of quantum error-correcting codes. Phys Rev A. 1997;55(2):900–11.
- 19. La Guardia GG. New quantum MDS codes. IEEE Trans Inform Theory. 2011;57(8):5551–4.
- 20. Li Z, Xing L-J. Quantum generalized Reed-Solomon codes. Acta Phys Sin. 2008;57(1):28.
- 21. Rains EM. Nonbinary quantum codes. IEEE Trans Inform Theory. 1999;45(6):1827–32.
- 22. Shi X, Yue Q, Zhu X. Construction of some new quantum MDS codes. Finite Fields Their Appl. 2017;46:347–62.
- 23. Shor P. Scheme for reducing decoherence in quantum computer memory. Phys Rev A. 1995;52(4):R2493–6. pmid:9912632
- 24. Wang L, Zhu S. New quantum MDS codes derived from constacyclic codes. Quantum Inf Process. 2015;14(3):881–9.
- 25. He X. Constructing new q-ary quantum MDS codes with distances bigger than q/2 from generator matrices. QIC. 2018;18(3 & 4):223–30.