On Euclidean, Hermitian and symplectic quasi-cyclic complementary dual codes
Abstract
Linear complementary dual codes (LCD) intersect trivially with their dual. In this paper, we develop a new characterization for LCD codes, which allows us to judge the complementary duality of linear codes from the codeword level. Further, we determine the sufficient and necessary conditions for one-generator quasi-cyclic codes to be LCD codes involving Euclidean, Hermitian, and symplectic inner products. Finally, we constructed many Euclidean, Hermitian and symmetric LCD codes with excellent parameters, some improving the results in the literature. Remarkably, we construct a symplectic LCD code with symplectic distance , which corresponds to an trace Hermitian additive complementary dual code that outperforms the optimal quaternary Hermitian LCD code.
Keywords: quasi-cyclic codes, Euclidean, Hermitian, symplectic, complementary dual codes.
AMS Classification (MSC 2020): 94B05, 15B05, 12E10
1 Introduction
Linear complementary dual codes (LCD) intersect their dual codes trivially. LCD codes have been used extensively in data storage, communication systems, consumer electronics, and cryptography [1, 2]. In [1], Massey showed that LCD codes provide an optimal linear coding scheme for a two-user binary adder channel. In [2], Carlet et al. studied the application of binary LCD codes in countering side channel and fault injection attacks. Due to the critical application of LCD codes, much research has been conducted on LCD codes [4, 5, 6, 7, 8, 9, 10, 11].
Notably, in [12], Carlet et al. proved that -codes, , are equivalent to Euclidean LCD codes, while -codes, , are equivalent to Hermitian LCD codes. Therefore, most research on LCD codes is currently focused on small fields. Bouyuklieva [13], Harada [14], Ishizuka et al. [15, 16], Li et al. [17, 18], and wang et al. [19] constructed much good LCD codes, established several LCD code tables with short lengths. In addition, Shi et al. [20, 21] introduced additive complementary dual codes (ACD) for security applications that still make sense. With [22], binary symplectic inner product and quaternary trace Hermitian inner product are equivalent, so a -symplectic LCD code is equivalent to a -trace Herimtian LCD code. Therefore, the construction of the symplectic LCD code is also of significant importance. Xu et al. [23] constructed a class of symplectic LCD MDS codes. In [24], Huang et al. construct some good low-dimensional quasi-cyclic symplectic LCD codes over .
In [25], Yang and Massey provided a sufficient and necessary condition for cyclic codes to be Euclidean LCD codes. Esmaeili et al. [26] studied a sufficient condition for quasi-cyclic codes to be Euclidean LCD codes and gave a method for constructing quasi-cyclic Euclidean LCD codes. In [27], Güneri et al. studied quasi-cyclic codes with Euclidean and Hermitian complementary duals employing their concatenation structure and obtained the sufficient and necessary condition for a class of one-generator quasi-cyclic codes with index two to be LCD codes. Later, Alahmadi et al. [28] propose the sufficient and necessary condition for a class of one-generator multinegacirculant codes (a subclass of quasi-twisted codes with twisting constant ) with index to be Euclidean LCD. However, many important issues remain regarding developing LCD codes from quasi-cyclic codes. One of the most critical issues is determining the sufficient and necessary conditions for quasi-cyclic codes to be LCD codes so that we can construct quasi-cyclic LCD codes more efficiently.
The main goal of this paper is to investigate quasi-cyclic Euclidean, Hermitian, and symplectic LCD codes. We ascertain the sufficient and necessary conditions for one-generator quasi-cyclic codes to be Euclidean, Hermitian, and symplectic LCD codes. More precisely, we answer the following two questions:
1. What polynomials can be applied to construct quasi-cyclic LCD codes?
2. How to use polynomials to construct quasi-cyclic LCD codes?
Firstly, we give a new characterization of LCD codes that allows the treatment of LCD codes at the codeword level. Then, by decomposing the codeword space of quasi-cyclic code, we obtain the sufficient and necessary conditions for them to intersect their dual trivially under Euclidean, Hermitian, and symplectic inner products. Finally, we present a practical method for constructing LCD codes using quasi-cyclic codes and construct many good quasi-cyclic Euclidean, Hermitian, and symplectic LCD codes.
The paper is organized as follows. Section 2 gives preliminaries and background on quasi-cyclic codes, Euclidean, Hermitian, and symplectic LCD codes. In Section 3 and 4, we redescribe LCD codes in terms of codewords and identify the sufficient and necessary conditions for the quasi-cyclic codes to be LCD codes under Euclidean, Hermitian, and symplectic inner products, respectively. We also construct many good quasi-cyclic Euclidean, Hermitian, and symplectic LCD codes. Finally, we give concluding remarks in Section 5. All calculations in this paper are done with the algebraic computer system Magma [29].
2 Preliminaries
In this section, we introduce some basic concepts of quasi-cyclic codes, Euclidean, Hermitian, and symplectic LCD codes. For more details, we refer the reader to the standard handbooks [30, 31].
2.1 Basics of linear codes
Throughout this paper, is a prime, and is the finite field of order , where for some positive integer . A linear code over is a linear subspace of of dimension . Let , then Hamming weight of is . If minimum Hamming distance of is , then can be written as . If is even, let , then symplectic weight of is . Analogously, if minimum symplectic weight of is , then we denote as .
The Euclidean inner product of , is defined as:
(1) |
Similarly, the Hermitian inner product of is defined as:
(2) |
If is even, then symplectic inner product of is:
(3) |
The Euclidean dual of is ; if is even, then the symplectic dual of is ; if , then the Hermitian dual of is . is an LCD code if and only if , where “” represents one of Euclidean, Hermitian and symplectic dual.
2.2 Basics of quasi-cyclic codes
Cyclic codes are a class of linear codes closed under the shift operator . For , we denote If , then is called a cyclic code. Let , and define a mapping as follows,
(4) | ||||
Clearly, is an isomorphism of -modules and a cyclic code of length is an ideal of the quotient ring . Furthermore, a cyclic code can be generated by a monic divisor of . The polynomial is called the generator polynomial of , and the dimension of is . Let and , then Euclidean dual code of is cyclic code with generator polynomial . Let . If is a cyclic codes over , then Hermitian dual code of is cyclic code generated by .
Let , and If , A linear space said to be a quasi-cyclic code of index . Define an -module isomorphism from to ,
where . Algebraically, a quasi-cyclic code is a submodule of .
3 New characterization of complementary dual codes
This section gives a new characterization of LCD codes in terms of codewords, laying the foundation for further proof. First, we make a convention for representing inner products, where “” denotes one of Euclidean or Hermitian inner products, and “” denotes one of Euclidean, Hermitian, and symplectic products.
Lemma 3.1.
Let be a linear code over , then is an LCD code under the inner product “” if and only if , holds.
Proof.
It is obvious that is equivalent with , . Moreover, is equivalent with , so is LCD equivalent with , . ∎
For ease of presentation, we give the following definition.
Definition 3.2.
Let and be linear codes over , if the following conditions hold:
(5) |
then we call and completely non-orthogonal to each other under inner product “”.
Lemma 3.3.
Let and be linear codes over , then and completely non-orthogonal to each other holds if and only if and .
Proof.
This lemma holds from the definition of dual codes. ∎
Lemma 3.4.
Let and be two cyclic codes , and separately generated by and , where and , then and completely Euclidean non-orthogonal to each other is equivalent with ; and completely Hermitian non-orthogonal to each other is equivalent with .
Proof.
With [30], and are both cyclic codes generated by and , respectively. Further, and yield and . Thus, there are two cases, the first is and . The second is and . Hence, we complete the proof. ∎
4 Quasi-cyclic complementary dual codes
This section determines the sufficient and necessary conditions for one-generator quasi-cyclic codes to be LCD codes under Euclidean, Hermitian, and symplectic inner products, starting from Lemma 3.1.
Some symbols used are described below for ease of expression. Let , denote vector defined by coefficients of in , i.e. , and .
In order to determine the Euclidean and Hermitian inner products between different polynomials in coefficient vector form, the following two lemmas are crucial.
Lemma 4.1.
([32]) Let , and be polynomials in . Then the following equation holds for the Euclidean inner product among them:
(6) |
Lemma 4.2.
([33]) Let , and be monic polynomials in . Then the following equality of Hermitian inner product of vectors in holds:
(7) |
Definition 4.3.
Let and be monic polynomials in , and , . If is a quasi-cyclic code generated by , , , , then is called one-generator quasi-cyclic code with index . A genrartor matrix of has the following form:
(8) |
where are circulant matrices generated by , respectively.
Theorem 4.4.
If is a one-generator quasi-cyclic code in Definition 4.3, then the sufficient and necessary conditions for to be Euclidean LCD code are
(9) |
Proof.
Suppose , are any polynomials in , then any two codewords in can be represented as and , respectively. The Euclidean inner product of and can be expressed as:
In [27, 28], there are also a sufficient and necessary conditions for a class of one-generator negacirculant codes to be Euclidean LCD, as follows.
Lemma 4.5.
It is notable that the results for [27, 28] simplify the structure of quasi-cyclic codes, so that Lemma 4.5 can only construct Euclidean LCD codes with a rate of , and length of , where . In contrast, it is possible to construct LCD codes with very flexible length and dimensionality by varying according to Lemma 4.4. For a clearer comparison, we give the following example.
Example 4.6.
Let and , only one Euclidean LCD code can be constructed in [28]. Here, with Lemma 4.4, choosing different ideals, we get nine good Euclidean LCD codes with parameters: , , , , , , , , . The bolded codes are the optimal or best-known according to [34]. In addition, we give the constructions for these codes in Appendix A.
In order to show the effectiveness of our method, we also constructed 17 new binary Euclidean LCD codes, whose parameters are given in Table 1. To save space, the detailed construction methods are given in Appendix B.
Since the Hermitian inner product and the Euclidean inner product have a similar form, an analogous approach yields the sufficient and necessary conditions for 1-generator quasi-cyclic code to be a Hermitian LCD code. Therefore, we give the following theorem without proof.
Theorem 4.7.
If is a one-generator quasi-cyclic code in Definition 4.3, then the sufficient and necessary conditions for to be Hermitian LCD code are
(11) |
Let denote elements in , where satisfies . We also construct some good quaternary quasi-cyclic Hermitian LCD codes, and six of them are new. Details are listed in Table 2.
Theorem 4.8.
If is a one-generator quasi-cyclic code in Definition 4.3, and is even. Let , then is a symplectic LCD code if and only if the following equations hold.
(12) |
Proof.
Suppose , are any polynomials in , then any two codewords in can be represented as and , respectively. The symplectic inner product of and can be expressed as:
Theorem 4.8 determines the sufficient and sufficient conditions for one-generator quasi-cyclic code of even index to be symplectic LCD. In [24], Huang et al. also determined the condition for quasi-cyclic code generated by to be symplectic LCD code by deriving the relationship between and its symplectic dual code .
Lemma 4.9.
([24], Theorem 3.1) Let be a quasi-cyclic code over of length generated by , where , . Then is a symplectic LCD code.
However, Lemma 4.9 is only a sufficient condition. By Theorem 4.8, the sufficient and necessary conditions for to by symplectic LCD are as the following equation.
(13) |
Since binary symplectic inner product and quaternary trace Hermitian inner product are equivalent, one crucial motivation for symplectic LCD codes is to construct trace Hermitian ACD codes that have better performance than quaternary Hermitian LCD codes. The following two examples demonstrate how trace Hermitian ACD codes can be constructed to outperform quaternary LCD codes. For more, we refer the readers to see [36].
Example 4.10.
Set , , . Let , , , . One can easy to check that , , so , can generate a 1-generator quasi-cyclic symplectic LCD code. Then, using Magma [29] we can calculate this code have parameters , whose symplectic weight distribution is . Therefore, a trace Hermitian ACD code with parameters exists. It should be noted that the optimal Hermitian LCD code in [37] with length 14 and dimension 3 has parameters , so our symplectic construction has better performance.
Example 4.11.
Set , , , . Let , , . One can easy to check that , , so can generate a 1-generator quasi-cyclic symplectic LCD code. Then, using Magma [29] we can calculate this code have parameters , whose symplectic weight distribution is . Therefore, a trace Hermitian ACD code with parameters exists. It should be noted that the best known Hermitian LCD code in [16] with length 21 and dimension 9 has parameters , so our symplectic construction has better performance.
5 Conclusion
In this work, we propose a new characterization for LCD codes, which allows us to determine the complementary duality of linear codes from the codeword level. Furthermore, depending on this result, we determine the sufficient and necessary conditions for one-generator quasi-cyclic codes to be LCD codes concerning Euclidean, Hermitian, and symplectic inner products. Finally, we construct many Euclidean, Hermitian, and symplectic quasi-cyclic LCD codes to show that quasi-cyclic codes can be utilized to construct good LCD codes.
In the future, one possible extension would be to consider the sufficient and necessary condition for -generator quasi-cyclic codes to be LCD. On the other hand, it will be an interesting and challenging problem to construct trace Hermitian ACD codes superior to optimal Hermitian LCD codes.
Conflict of Interest
The authors have no conflicts of interest to declare that are relevant to the content of this article.
Data Deposition Information
Our data can be obtained from the authors upon reasonable request.
References
- [1] J. L. Massey, “Linear codes with complementary duals,” Discrete Mathematics, vol. 106, pp. 337–342, 1992.
- [2] C. Carlet and S. Guilley, “Complementary dual codes for counter-measures to side-channel attacks,” Advances in Mathematics of Communications, vol. 10, no. 1, p. 131, 2016.
- [3] N. Sendrier, “Linear codes with complementary duals meet the Gilbert–Varshamov bound,” Discrete mathematics, vol. 285, no. 1-3, pp. 345–347, 2004.
- [4] C. Li, C. Ding, and S. Li, “LCD cyclic codes over finite fields,” IEEE Transactions on Information Theory, vol. 63, no. 7, pp. 4344–4356, 2017.
- [5] S. T. Dougherty, J.-L. Kim, B. Ozkaya, L. Sok, and P. Solé, “The combinatorics of LCD codes: linear programming bound and orthogonal matrices,” International Journal of Information and Coding Theory, vol. 4, no. 2-3, pp. 116–128, 2017.
- [6] L. Galvez, J. L. Kim, N. Lee, Y. G. Roe, and B.-S. Won, “Some bounds on binary LCD codes,” Cryptography and Communications, vol. 10, no. 4, pp. 719–728, 2018.
- [7] C. Carlet, S. Mesnager, C. Tang, and Y. Qi, “Euclidean and Hermitian LCD MDS codes,” Designs, Codes and Cryptography, vol. 86, no. 11, pp. 2605–2618, 2018.
- [8] C. Li, “Hermitian LCD codes from cyclic codes,” Designs, Codes and Cryptography, vol. 86, no. 10, pp. 2261–2278, 2018.
- [9] M. Araya, M. Harada, and K. Saito, “Quaternary Hermitian linear complementary dual codes,” IEEE Transactions on Information Theory, vol. 66, no. 5, pp. 2751–2759, 2019.
- [10] Y. Li, S. Zhu, and E. Martánez-Moro, “The hull of two classical propagation rules and their applications,” IEEE Transactions on Information Theory, pp. 1–1, 2023.
- [11] S. Li, M. Shi, and J. Wang, “An improved method for constructing formally self-dual codes with small hulls,” Designs, Codes and Cryptography, pp. 1–21, 2023.
- [12] C. Carlet, S. Mesnager, C. Tang, Y. Qi, and R. Pellikaan, “Linear codes over are equivalent to LCD codes for ,” IEEE Transactions on Information Theory, vol. 64, no. 4, pp. 3010–3017, 2018.
- [13] S. Bouyuklieva, “Optimal binary LCD codes,” Designs, Codes and Cryptography, vol. 89, no. 11, pp. 2445–2461, 2021.
- [14] M. Harada, “Construction of binary LCD codes, ternary LCD codes and quaternary Hermitian LCD codes,” Designs, Codes and Cryptography, vol. 89, no. 10, pp. 2295–2312, 2021.
- [15] K. Ishizuka and K. Saito, “Construction for both self-dual codes and lcd codes.,” Advances in Mathematics of Communications, vol. 17, no. 1, 2023.
- [16] K. Ishizuka, “Construction of quaternary Hermitian LCD codes,” Cryptography and Communications, pp. 1–13, 2022.
- [17] S. Li, M. Shi, and H. Liu, “Several constructions of optimal LCD codes over small finite fields,” ArXiv, vol. abs/2206.04936, 2023.
- [18] S. Li, M. Shi, and H. Liu, “On toeplitz codes of index t and isometry codes,” Discrete Mathematics, vol. 346, p. 113484, 2023.
- [19] G. Wang, S. Liu, and H. Liu, “New constructions of optimal binary LCD codes,” ArXiv, vol. abs/2302.00906, 2023.
- [20] M. Shi, N. Liu, J.-L. Kim, and P. Solé, “Additive complementary dual codes over ,” Designs, Codes and Cryptography, vol. 91, no. 1, pp. 273–284, 2023.
- [21] M. Shi, N. Liu, F. Özbudak, and P. Solé, “Additive cyclic complementary dual codes over ,” Finite Fields and Their Applications, vol. 83, p. 102087, 2022.
- [22] A. R. Calderbank, E. M. Rains, P. Shor, and N. J. Sloane, “Quantum error correction via codes over GF (4),” IEEE Transactions on Information Theory, vol. 44, no. 4, pp. 1369–1387, 1998.
- [23] H. Xu and W. Du, “Constructions of symplectic LCD MDS codes,” Bulletin of the Malaysian Mathematical Sciences Society, vol. 44, no. 5, pp. 3377–3390, 2021.
- [24] X. Huang, J. Li, and S. Huang, “Constructions of symplectic LCD MDS codes from quasi-cyclic codes,” Advances in Mathematics of Communications, vol. 16, no. 4, pp. 779–790, 2022.
- [25] X. Yang and J. L. Massey, “The condition for a cyclic code to have a complementary dual,” Discrete Mathematics, vol. 126, pp. 391–393, 1994.
- [26] M. Esmaeili and S. Yari, “On complementary-dual quasi-cyclic codes,” Finite Fields and Their Applications, vol. 15, pp. 375–386, 2009.
- [27] C. Güneri, B. Özkaya, and P. Solé, “Quasi-cyclic complementary dual codes,” Finite Fields and Their Applications, vol. 42, pp. 67–80, 2016.
- [28] A. Alahmadi, C. Güneri, B. Özkaya, H. Shoaib, and P. Sole, “On complementary dual multinegacirculant codes,” Cryptography and Communications, vol. 12, pp. 101–113, 2020.
- [29] W. Bosma, J. Cannon, and C. Playoust, “The magma algebra system I: The user language,” Journal of Symbolic Computation, vol. 24, no. 3-4, pp. 235–265, 1997.
- [30] W. C. Huffman and V. Pless, Fundamentals of error-correcting codes. U.K: Cambridge university press, 2003.
- [31] W. C. Huffman, J. L. Kim, and P. Solé, Concise Encyclopedia of Coding Theory. Chapman and Hall/CRC, 2021.
- [32] C. Galindo, F. Hernando, and R. Matsumoto, “Quasi-cyclic constructions of quantum codes,” Finite Fields and Their Applications, vol. 52, pp. 261–280, 2018.
- [33] J. Lv, R. Li, and J. Wang, “Quantum codes derived from one-generator quasi-cyclic codes with Hermitian inner product,” International Journal of Theoretical Physics, vol. 59, no. 1, pp. 300–312, 2020.
- [34] M. Grassl, “Bounds on the minimum distance of linear codes and quantum codes.” Online available at http://www.codetables.de. Accessed on 2022.12.30.
- [35] K. Ishizuka, “Construction of quaternary Hermitian LCD codes,” arXiv preprint arXiv:2207.00801, 2022.
- [36] C. Guan, R. Li, Y. Liu, and Z. Ma, “Some quaternary additive codes outperform linear counterparts,” IEEE Transactions on Information Theory, 2023.
- [37] M. Araya, M. Harada, and K. Saito, “Quaternary Hermitian linear complementary dual codes,” IEEE Transactions on Information Theory, vol. 66, no. 5, pp. 2751–2759, 2020.
Appendix
All the quasi-cyclic codes in this appendix with generators or , . Using Magma notation QuasiCyclicCode(2*n, [g(x)],[g(x)*f(x)]) or QuasiCyclicCode(3*n, [g(x)],[g(x)*(x)],[g(x)*(x)]) , one can directly obtain the corresponding LCD codes.
A: Generators of ternary quasi-cyclic Euclidean LCD codes in Example 4.6
Ternary quasi-cyclic Euclidean LCD codes in Example 4.6 with generator . Let denote elements in . Set , and index . details are as follows.
-
1.
:
-
2.
and its dual :
-
3.
:
-
4.
:
-
5.
:
-
6.
and its dual :
-
7.
:
-
8.
and its dual :
B: Generators of binary quasi-cyclic Euclidean LCD codes in Table 1
-
1.
: , , , , .
-
2.
: , , .
-
3.
: , ,
-
4.
: , ,
-
5.
: , ,
-
6.
and its dual : , ,
-
7.
: , ,
-
8.
: , ,
-
9.
: , ,