Hulls of Linear Codes Revisited with Applications
Satanan Thipworawimon, Somphong Jitman

TL;DR
This paper explores the algebraic properties of hulls of linear codes, providing new characterizations and applications, including constructions of quantum error-correcting codes, especially over fields of odd characteristic.
Contribution
It introduces alternative characterizations of hulls of linear codes and links their properties to Gramian matrices, enabling new code constructions.
Findings
Gramian of generator matrices over odd characteristic fields is diagonalizable.
A linear code over odd characteristic fields is complementary dual iff it has an orthogonal basis.
New constructions of entanglement-assisted quantum error-correcting codes are provided.
Abstract
Hulls of linear codes have been of interest and extensively studied due to their rich algebraic structures and wide applications. In this paper, alternative characterizations of hulls of linear codes are given as well as their applications. Properties of hulls of linear codes are given in terms of their Gramians of their generator and parity-check matrices. Moreover, it is show that the Gramian of a generator matrix of every linear code over a finite field of odd characteristic is diagonalizable. Subsequently, it is shown that a linear code over a finite field of odd characteristic is complementary dual if and only if it has an orthogonal basis. Based on this characterization, constructions of good entanglement-assisted quantum error-correcting codes are provided.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Hulls of Linear Codes Revisited with Applications††thanks: This research was supported by the Thailand Research Fund and Silpakorn University under Research Grant RSA6280042
Somphong Jitman and Satanan Thipworawimon
S. Jitman and S. Thipworawimon are with the Department of Mathematics, Faculty of Science, Silpakorn University, Nakhon Pathom 73000, Thailand. Email: [email protected], [email protected].
Abstract
Hulls of linear codes have been of interest and extensively studied due to their rich algebraic structures and wide applications. In this paper, alternative characterizations of hulls of linear codes are given as well as their applications. Properties of hulls of linear codes are given in terms of their Gramians of their generator and parity-check matrices. Moreover, it is show that the Gramian of a generator matrix of every linear code over a finite field of odd characteristic is diagonalizable. Subsequently, it is shown that a linear code over a finite field of odd characteristic is complementary dual if and only if it has an orthogonal basis. Based on this characterization, constructions of good entanglement-assisted quantum error-correcting codes are provided.
Keywords: Hulls of linear codes, Gramians, Diagonalizability, Entanglement-assisted quantum error correcting codes
MSC 2010: 94B05, 94B60
1 Introduction
Hulls have been introduced to classify finite projective planes in [1]. Later, it turned out that the hulls of linear codes play a vital role in determining the complexity of some algorithms in coding theory in [18, 19, 27, 28]. Due to their wide applications, hulls of linear codes have been extensively studied. The number of linear codes of length over whose hulls have a common dimension and the average hull dimension of linear codes were studied in [11] and [25]. Recently, hulls of linear codes have been studied and applied in constructions of good entanglement-assisted quantum error correcting codes in [11] and [20].
Some families of linear codes with special hulls such as self-orthogonal codes and linear complementary dual (LCD) codes have been of interest and extensively studied. Precisely, self-orthogonal codes are linear codes with maximal hull and LCD codes are linear codes of minimal hull. These codes are practically useful in communications systems, various applications, and link with other objects as shown in [16, 23, 9, 14, 15, 21, 5, 13, 7, 8, 11, 24, 6, 26, 10, 22] and references therein. Therefore, it is of interest to studied hulls, families of linear codes with special hulls and their applications.
In this paper, we focus on alternative characterizations of hulls of linear codes and their applications. Properties of hulls of linear codes are given in terms of the Gramians of their generator and parity-check matrices. Subsequently, it is shown that the Gramian of generator matrix of every linear code over a finite field of odd characteristic is diagonalizable. This implies that a linear code over a finite field of odd characteristic is LCD if and only if it has an orthogonal basis. Some classes of codes with special hulls such as self-orthogonal, maximal self-orthogonal, complementary dual codes are re-formalized based on these characterizations. Constructions of some good entanglement-assisted quantum error-correcting codes are given based on the above discussion.
The paper is organized as follows. After this introduction, the definition and preliminary results on Euclidean hulls of linear codes are recalled in Section 2. In Section 3, characterizations and properties of Euclidean hulls of linear codes are discussed as well as some remarks on linear codes with special Euclidean hulls. A note on relevant results on Hermitian hulls of linear codes is given in Section 4. Applications of hulls to constructions of entanglement-assisted quantum error-correcting codes are discussed in Section 5.
2 Preliminaries
Let denote the finite field of order . For a positive integer , a linear code of length over is defined to be a subspace of the -vector space . A linear code of length over is called an * code* if its -dimension is . In addition, if the minimum Hamming distance of is , the code is called an * code*. For and in , the Euclidean inner product of and is defined to be
[TABLE]
For a linear code of length over , the Euclidean dual of is defined to be the set
[TABLE]
A linear code is said to be Euclidean self-orthogonal if and it is said to be Euclidean self-dual if . A linear code is called a maximal Euclidean self-orthogonal code if it is Euclidean self-orthogonal and it is not contained in any Euclidean self-orthogonal codes. A linear code is said to be Euclidean complementary dual if . The Euclidean hull of a linear code is defined to be . It is not difficult to see that a linear code is Euclidean self-orthogonal if and only if and it is Euclidean complementary dual if and only if .
A matrix over is called a generator matrix for an code if the rows of form a basis for . A parity-check matrix for is defined to a generator matrix of . For an matrix over , by abuse of notation, the Gram matrix (or Gramian) of is defined to be . The Gramian of a generator or parity-check matrix of a linear code plays an important role in the study of self-orthogonal codes, complementary dual codes, and hulls of linear codes.
Proposition 2.1** ([11, Proposition 3.1]).**
Let be a linear code with parity check matrix and generator matrix . The ranks of the Gramians and are independent of and so that
[TABLE]
and
[TABLE]
From this proposition, it is well known that a linear code with generator matrix is Euclidean self-orthogonal if and only if the Gramian is zero and it is Euclidean complementary dual if and only if the Gramian is non-singular. It can be summarized in the next corollary.
Corollary 2.2**.**
Let be a linear code with generator matrix . Then the following statements hold.
* is Euclidean self-orthogonal if and only if .* 2. 2.
* is Euclidean complementary dual if and only if is non-singular*
From Proposition 2.1, it is not difficult to see that generator and parity-check matrices of linear codes can be chosen such that their Gramians are of the following special forms (cf. [17, Corollary 3.2]).
Proposition 2.3**.**
Let be a linear code such that . Then the following statements hold.
There exist a parity-check matrix of and an invertible symmetric matrix over such that the Gramian of is of the form
[TABLE] 2. 2.
There exist a generator matrix of and an invertible symmetric matrix over such that such that the Gramian of is of the form
[TABLE]
Clearly, the Gramians of generator and parity-check matrices of linear codes are always symmetric. Unlike real symmetric matrices, a square symmetric matrix over finite fields does not need to be diagonalizable. From Proposition 2.3, it is therefore interesting to ask whether the Gramian of a generator/parity-check matrix of a linear code is diagonalizable. Equivalently, does a linear code have a generator matrix whose Gramian is a diagonal matrix? In Proposition 3.4, we provide a solution to this problem for the case where is an odd prime power. A partial solution for the case where is an even prime power is given in Proposition 3.7.
3 Euclidean Hulls of Linear Codes
In this section, properties of hulls of linear codes are discussed. Alternative characterizations of the hull and the hull dimension of linear codes are given. Conditions for generator and parity-check matrices of linear codes to have diagonalizable Gramians are provided.
3.1 Characterizations of Euclidean Hulls of Linear Codes
The Euclidean hull dimension of linear codes has been determined in terms of the rank of the Gramians of generator and parity-check matrices of linear codes in [11] (see Proposition 2.1).
In the following proposition, alternative characterizations of the Euclidean hull dimension of linear codes are given.
Proposition 3.1**.**
Let be a linear code and let be a non-negative integer. Then the following statements are equivalent.
. 2.
* for every generator matrix of .* 3.
* for all generator matrices and of .* 4.
* for every parity-check matrix of .* 5.
* for all parity-check matrices and of .*
Proof. From Proposition 2.1, we have the equivalences and . It remains to prove the equivalences and . Since the arguments of the proofs are similar, only the detailed proof of is provided.
To prove , let , and be generator matrices of and assume that . Since the rows of , and are base for , there exist invertible matrices and such that and . Consequently, we have . Since and are invertible, we have
[TABLE]
as desired
The statement is obvious.
Based on Proposition 3.1, we have the following characterizations.
Corollary 3.2**.**
Let be a linear code and let be a non-negative integer. Then the following statements are equivalent.
. 2.
There exist nonzero elements in and generator matrices and of such that
[TABLE] 3.
There exist nonzero elements in and parity-check matrices and of such that
[TABLE]
By convention, the set (resp., ) will be referred to the empty set if (resp., ).
Proof. To prove , assume that . Let be a generator matrix of . By Proposition 3.1, we have that . Applying suitable elementary row and column operations, it follows that
[TABLE]
for some nonzero elements in and invertible matrices and over . Let and . Then and are generator matrices of such that .
Conversely, assume that holds. Then and hence by Proposition 3.1.
Since , the equivalence can be obtained similarly.
3.2 Diagonalizability of Gramians
From Subsection 3.1, it guarantees that for a given linear code over , there exist generator matrices and of such that is a diagonal matrix. Here, we focus on the diagonalizability the Gramian of a generator matrix of a linear code. The results are given in two cases based on the characteristic of the underlying finite field.
3.2.1 Odd Characteristics
For an odd prime power , the Gramian of a generator/parity-check matrix of a linear code over will be shown to be diagonalizable.
We begin with the following useful lemma.
Lemma 3.3**.**
Let be a linear code of length over . If is odd and is not Euclidean self-orthogonal, then there exists an element such that . In this case, .
Proof. Assume that is an odd prime power and is not Euclidean self-orthogonal. Then there exist and in such that . If or , we are done. Assume that and . Let . Since is odd, we have as desired. Clearly, the said element is not in .
Proposition 3.4**.**
Let be a non-zero linear code of length over . If is odd, then the Gramian of a generator matrix of is diagonalizable.
Proof. Assume that is an odd prime power. We prove by induction on the dimension of . If , then Gramian of a generator matrix of is a matrix over which is always diagonalizable.
Assume that for some positive integer and assume that the statement holds true for all linear codes of dimension .
If is Euclidean self-orthogonal, then is diagonalizable for all generator matrices of by Proposition 3.1. Assume that is not Euclidean self-orthogonal. Since is odd, there exist such that by Lemma 3.3. Let . Since , we have which implies that . By the induction hypothesis, there exists a generator matrix
[TABLE]
of whose Gramian is diagonal. Since , for all . Hence, is a generator matrix for such that the Gramian is a diagonal matrix.
The following corollary is a direct consequence of Proposition 3.4. Since a parity-check matrix of a linear code is a generator matrix for its dual, the above results can be restated including the parity-check matrix easily.
Corollary 3.5**.**
Let be a linear code such that . If is odd, then the following statements hold.
There exist nonzero elements in and a generator matrix of such that
[TABLE] 2. 2.
There exist nonzero elements in and a parity-check matrix of such that
[TABLE]
Linear codes with orthogonal or orthonormal basis are good candidates in some applications. However, in general, an orthogonal or orthonormal basis dose not need to be exist. The existence of an orthonormal basis of some Euclidean complementary dual codes has been studied in [8]. Here, characterization for the existence of an orthogonal basis of Euclidean complementary dual codes over finite fields of odd characteristic can be obtained directly from Proposition 3.4.
Corollary 3.6**.**
Let be an odd prime power and let be a linear code over . Then is Euclidean complementary dual if and only if has a Euclidean orthogonal basis.
3.2.2 Even Characteristics
The following results on the diagonalizability of the Gramians of generator and parity-check matrices of linear codes hold true for every prime powers . However, for an odd prime power , we already have stronger results described in the previous subsection. In practice, we may assume that is a two power for the following results.
Proposition 3.7**.**
Let be a linear code such that . If is maximal self-orthogonal in , then there exist nonzero elements in and a generator matrix of such that
[TABLE]
Precisely, the Gramian of a generator matrix of a linear code whose hull is maximal self-orthogonal in is diagonalizable.
Proof. Let be a basis of . Assume that is maximal self-orthogonal in . If there exists a codeword such that , then for all . This implies that is self-orthogonal in which is containing , a contradiction. Hence, for all . Extending to a basis of . Using the Gram-Schmidt process, contains an orthogonal basis, denoted by . Hence is a basis for such that for all and for all and such that or .
For , let . Let , and . Then , , and . Hence,
[TABLE]
as desired.
Similarly to the previous proposition, we can replace a generator matrix by a parity-check matrix of and derive the following result.
Corollary 3.8**.**
Let be a linear code such that . If is maximal self-orthogonal in , then there exist nonzero elements in and a parity-check matrix of such that
[TABLE]
In the case where is maximal self-orthogonal, then is maximal self-orthogonal in . Hence, we have the following corollary.
Corollary 3.9**.**
Let be a linear code. If is maximal self-orthogonal, then there exist nonzero elements in and a parity-check matrix of whose Gramian is
[TABLE]
Lemma 3.10**.**
Let be a linear code such that . Then the following statements hold.
If , then is maximal self-orthogonal in . 2.
If , then is maximal self-orthogonal in .
Proof. To prove 1), assume that . If , then we have which means . Hence, is a self-orthogonal in , i.e., is maximal self-orthogonal in . Assume that . Then there exists . Suppose that . Then . Since for all , we have which is a contradiction. Hence, . Therefore, is maximal self-orthogonal in .
By replacing with in 1), the result of 2) follows similarly.
Corollary 3.11**.**
Let be a linear code such that . If is even, then the following statements hold.
* if and only if is maximal self-orthogonal in .* 2.
* if and only if is maximal self-orthogonal in .*
Proof. Assume that is even. The sufficient part follows from Lemma 3.10. For necessity, assume that . Then there exist two linearly independent elements and in . Then and . Since is even, every element in is square. Let be an element in such that . Then and . Hence, is Euclidean self-orthogonal and . Therefore, is not maximal self-orthogonal in .
The second statement follows immediately from 1).
Corollary 3.12**.**
Let be a non-zero linear code of length over . If is even and , then the Gramian of a generator matrix of is diagonalizable.
The diagonalizabilty studied above will be useful in the applications in Section 5.
4 Hermitian Hulls of Linear Codes
For a prime power , the Hermitian inner product of and in is defined to be
[TABLE]
The Hermitian dual of is defined to be the set
[TABLE]
The Hermitian hull of a code is and denote by . A code is said to be Hermitian self-orthogonal if and it is said to be Hermitian complementary dual if . Clearly, is Hermitian self-orthogonal if . For an matrix , denote by the conjugate transpose of . For each , denote by the conjugate vector of .
In this section, a discussion on Hermitian hulls of linear codes is given. We note that most of the results in this section can be obtained using the arguments analogous to those in Section 3. Therefore, the proofs for those results will be omitted. Some proofs are provided if they are required and different from those in Section 3. For convenience, the theorem numbers are given in the form 3. if it corresponds to 3. in Section 3.
The Hermitian hull dimension of linear codes has been characterized in [11]. Here, we provide an alternative characterizations of the Hermitian hull dimension of linear codes.
Proposition 4.1**.**
Let be a linear code and let be a non-negative integer. Then the following statements are equivalent.
. 2.
* for every generator matrix of .* 3.
* for all generator matrices and of .* 4.
* for every parity-check matrix of .* 5.
* for all parity-check matrices and of .*
From Proposition 4.1, the following characterizations can be obtained directly.
Corollary 4.2**.**
Let be a linear code and let be a non-negative integer. Then the following statements are equivalent.
. 2.
There exist nonzero elements in and generator matrices and of such that
[TABLE] 3.
There exist nonzero elements in and parity-check matrices and of such that
[TABLE]
For an odd prime power , we show that is always diagonalizable for every generator matrix of a linear code over . We begin with the following useful lemma.
Lemma 4.3**.**
Let be a linear code of length over . If is odd and is not Hermitian self-orthogonal, then there exists an element such that .
Proof. Assume that is an odd prime power and is not Hermitian self-orthogonal. Then there exist and in such that . If or , we are done. Assume that and . Let . Since is odd, we have
[TABLE]
as desired.
Applying Lemma 4.3 instead of Lemma 3.3, the next proposition can be obtained using the arguments similar to those for the proof of Proposition 3.4.
Proposition 4.4**.**
Let be a non-zero linear code of length over . If is odd, then is diagonalizable for every generator generator matrix of .
The following corollary is a direct consequence of Proposition 4.4
Corollary 4.5**.**
Let be a linear code such that . If is odd, then the following statements hold.
There exist nonzero elements in and a generator matrix of such that
[TABLE] 2. 2.
There exist nonzero elements in and a parity-check matrix of such that
[TABLE]
Corollary 4.6**.**
Let be an odd prime power and let be a linear code over . Then is Hermitian complementary dual if and only if has a Hermitian orthogonal basis.
The following results hold true for every prime powers . However, for an odd prime power , we already have stronger results in discussion above. In practice, we may assume that is even.
Proposition 4.7**.**
Let be a linear code such that . If is maximal self-orthogonal in , then there exist nonzero elements in and a generator matrix of such that
[TABLE]
We can replace a generator matrix by a parity-check matrix of and derive the result as follows.
Corollary 4.8**.**
Let be a linear code such that . If is maximal self-orthogonal in , then there exist nonzero elements in and a parity-check matrix of such that
[TABLE]
Corollary 4.9**.**
Let be a linear code. If is maximal Hermitian self-orthogonal, then there exist nonzero elements in and a parity-check matrix of such that
[TABLE]
Corollary 4.10**.**
Let be a linear code such that . If is even, then the following statements hold.
* if and only if is maximal self-orthogonal in .* 2.
* if and only if is maximal self-orthogonal in .*
Corollary 4.11**.**
Let be a non-zero linear code of length over . If is even and , then is diagonalizable for every generator matrix of .
5 Applications
In this section, hulls and the diagonalizability of the Gramians discussed in Sections 3 and 4 are applied to constructions of Entanglement-Assisted Quantum Error Correcting Codes (EAQECCs). EAQECCs were introduced in [12] which can be constructed from classical linear codes. In this case, the performance of the resulting quantum codes can be determined by the performance of the underlying classical codes. Precisely, an EAQECC encodes logical qudits into physical qudits using copies of maximally entangled states and its performance is measured by its rate and net rate (. As shown in [4], the net rate of an EAQECC is positive it is possible to obtain catalytic codes. The readers may refer to [3], [11] and the references therein for more details on EAQECCs.
The following results from [11] are useful for constructions of EAQECCs from classical linear codes and their hulls.
Proposition 5.1** ([11, Corollary 3.1]).**
Let be a classical linear code and its Euclidean dual with parameters . Then there exist and EAQECCs.
Proposition 5.2** ([11, Corollary 3.2]).**
Let be a classical code and let be its Hermitian dual with parameters . Then there exists and EAQECCs.
Based on the diagonalizability of Gramians studied in Sections 3 and 4, EAQECCs can be constructed from all linear codes over finite fields of odd characteristic as follows.
Proposition 5.3**.**
Let be an odd prime power and let be a classical linear code such that . Then there exists an EAQECC with for each .
Proof. If or , then the result follows directly from Proposition 5.1. Next, assume that . Since is odd, there exists a generator matrix for such that the Gramian is diagonalizable by Proposition 3.4. Precisely, there exist linearly independent elements in such that for all and for all .
Since , we have that contains at least elements. Hence, for each , there exists such that . Let be a parity check matrix for and let be the code with parity check matrix
[TABLE]
Then
[TABLE]
Since for all and , we have that since and . Equivalently, . Since every columns of are linearly independent and for all , every columns of are linearly independent. It follows that is an code where . Then by Proposition 5.1, there exists an EAQECC.
In the same fashion, the Hermitian hulls of linear codes can be applied in constructions of EAQECCs in the following proposition.
Proposition 5.4**.**
Let be an odd prime power and let be a classical linear code such that . Then there exists an EAQECC with for each .
Proof. If or , then the result follows directly from Proposition 5.2. Next, assume that . Since is odd, there exists a generator matrix for such that is diagonalizable by Proposition 4.4. Precisely, there exist linearly independent elements in such that for all and for all .
For each , there exist such that since . Let be a generator matrix for and let be the code with parity check matrix
[TABLE]
Then
[TABLE]
Since for all and , we have that since and . Equivalently, . It is easily seen that very columns of are linearly independent. Hence, is an code where . By Proposition 5.2, there exists an EAQECC.
Observe that linear and codes with have hull dimension which implies that . From the constructions in Propositions 5.3 and 5.4, we have an EAQECC with parameters for all . Hence, the net rate of is
[TABLE]
for all classical linear codes with and since . In addition, if the dimension of the input linear code is
[TABLE]
its hull dimension is which implies that , and hence, the rate of is
[TABLE]
To obtain EAQECCs with good minimum distances, the input linear code using Propositions 5.3 and 5.4 can be chosen from the best-known linear codes in the database of [2]. Moreover, the required number of maximally entangled states can be adjusted by the parameter .
Remark 5.1**.**
We have the following observations and suggestions for the constructions of EAQECCs in Propositions 5.3 and 5.4.
By choosing best-known linear codes in [2] satisfy the condition in (1), all the EAQECCs obtained in Propositions 5.3 and 5.4 are good in the sense that they have good rate and positive net rate. Moreover, some of them have good minimum distances. 2. 2.
Under the assumption , EAQECCs constructed in Propositions 5.3 and 5.4 have good rate
[TABLE]
and positive net rate
[TABLE]
for all . It is easily seen that the condition is slightly lighter than (1) and it is equivalent to finding classical linear codes with large dimension and small Euclidean/Hermitian hull dimension. Therefore, linear complementary dual codes studied in [21, 5, 7, 8, 11, 6] would be good candidates in constructions of EAQECCs.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Assmus, E. F., Key, J. D.: Affine and projective planes, Discrete Math. 83 , 161–187 (1990).
- 2[2] Bosma, W., Cannon, J., Playoust, C.: The Magma algebra system. I. The user language, J. Symbolic Comput. 24 , 235–265 (1997).
- 3[3] Brun, T., Devetak, I., Hsieh, H. M.: Correcting quantum errors with entanglement, Science 314 , 436–439 (2006).
- 4[4] Brun T., Devetak I., Hsieh M. H.: Catalytic quantum error correction, IEEE Trans. Inform. Theory 60 , 3073–3089 (2014).
- 5[5] Carlet, C., Guilley, S.: Complementary dual codes for counter-measures to side-channel attacks, Adv. Math. Commun. 10 , 131–150 (2016).
- 6[6] Carlet, C., Mesnager, S., Tang, C., Qi, Y., Pellikaan, R.: Linear codes over 𝔽 q subscript 𝔽 𝑞 \mathbb{F}_{q} are equivalent to LCD codes for q > 3 𝑞 3 q>3 , IEEE Trans. Inform. Theory 64 , 3010–3017 (2018).
- 7[7] Carlet, C., Mesnager, S., Tang, C., Qi, Y.: Euclidean and Hermitian LCD MDS codes, Des. Codes Cryptogr. 86 , 2605–2618 (2018).
- 8[8] Carlet, C., Mesnager, S., Tang, C., Qi, Y.: New characterization and parametrization of LCD codes, IEEE Trans. Inform. Theory 65 , 39–49 (2019).
