January 01, 1970
Given a linear code \(\mathcal{C}\) of length \(n\) over \(\mathbb{F}_{q^2}\) and a nonzero vector \({\boldsymbol{u}}\in \mathbb{F}_{q^2}^n\), Sun, Ding, and Chen introduced the second kind of extended construction resulting in the code \(\overline{\mathcal{C}}({\boldsymbol{u}})\). Their construction generalizes the standard extended construction \(\overline{\mathcal{C}}(-{\boldsymbol{1}})\), that is, when \({\boldsymbol{u}}\) is fixed to \(-{\boldsymbol{1}}\). They further showed that every \([n,k,d]_{q^2}\) linear code with \(d \geq 2\) can be obtained from this construction for a suitable choice of the initial code \(\mathcal{C}\) and the extension vector \({\boldsymbol{u}}\), up to permutation equivalence. To construct entanglement-assisted quantum error-correcting codes (EAQECCs) with more flexible and potentially better parameters, we consider the Hermitian dual of such extended linear codes and apply monomial variations on them. The resulting family of linear codes consist of \(q^2\)-ary codes \(\mathcal{C}\) with respect to vector \({\boldsymbol{u}}\in \mathbb{F}_{q^2}^n \setminus \mathcal{C}\) and the scalar \(a\in \mathbb{F}_{q^2}^*\). We call them generalized extended codes, with the code denoted by \(\mathcal{C}({\boldsymbol{u}},a)\).
We prove that any generalized extended code is monomially equivalent to the Hermitian dual of a code which is closely related to a second kind of extended code of \(\mathcal{C}^{\perp_{\rm H}}\). Every \([n+1,k+1]_{q^2}\) linear code \({\mathcal{D}}\) with \(d({\mathcal{D}}^{\perp_{\rm H}})>1\) is monomially equivalent to the generalized extended code \(\mathcal{C}({\boldsymbol{u}},a)\) of an \([n,k]_{q^2}\) linear code \(\mathcal{C}\) for a fixed \(a\in\mathbb{F}_{q^2}^{*}\) and some \({\boldsymbol{u}}\in\mathbb{F}_{q^2}^{n}\). We then characterize the Hermitian hull and Hermitian dual distance of \(\mathcal{C}({\boldsymbol{u}},a)\) in terms of the position of \({\boldsymbol{u}}\) relative to \(\mathcal{C}+\mathcal{C}^{\perp_{\rm H}}\) and the interaction between \({\boldsymbol{u}}\) and the minimum weight codewords of \(\mathcal{C}^{\perp_{\rm H}}\), respectively. We obtain explicit criteria to independently control the expected Hermitian hull dimension and Hermitian dual distance of \(\mathcal{C}({\boldsymbol{u}},a)\). In particular, several conditions for simultaneously increasing the Hermitian hull dimension and the Hermitian dual distance of \(\mathcal{C}({\boldsymbol{u}},a)\) are derived.
Applying these results to the Hermitian construction for EAQECCs gives us \(267\) new EA qubit codes of lengths \(n \leq 40\) and \(14\) new EA qutrit codes of lengths \(n \leq 25\) compared to the best-known codes in Grassl’s code tables and the imporvements recorded in very recent works in the literature. Among the new parameter sets, we confirm improvements for \(236\) qubit and \(8\) qutrit codes.
Entanglement-assisted, quantum code, Hermitian dual distance, Hermitian hull, generalized extended code.
Throughout this paper, let \(\mathbb{F}_q\) denote the finite field with \(q\) elements and let \(\mathbb{F}_q^*=\mathbb{F}_q\setminus\{0\}\), where \(q\) is a prime power. An \([n,k,d]_{q^2}\) linear code \(\mathcal{C}\) is a \(k\)-dimensional linear subspace of \(\mathbb{F}_{q^2}^n\) with minimum Hamming distance \(d:=d(\mathcal{C})\). We use \({\boldsymbol{0}}\) and \({\boldsymbol{1}}\) to denote appropriate all zero and all one vectors, respectively.
The Hermitian inner product of any two vectors \({\boldsymbol{x}}=(x_1,x_2,\ldots,x_n)\) and \({\boldsymbol{y}}=(y_1,y_2,\ldots,y_n)\) in \(\mathbb{F}_{q^2}^n\) is \(\langle {\boldsymbol{x}}, {\boldsymbol{y}} \rangle_{\rm H}=\sum_{i=1}^n x_i y_i^q\). The Hermitian dual and the Hermitian hull of \(\mathcal{C}\) are defined, respectively, by \[\mathcal{C}^{\perp_{\rm H}}= \{{\boldsymbol{y}}\in \mathbb{F}_{q^2}^n \, : \, \langle {\boldsymbol{x}}, {\boldsymbol{y}} \rangle_{\rm H}=0for all {\boldsymbol{x}}\in \mathcal{C}\}and{\mathrm{Hull}}_{\rm H}(\mathcal{C})=\mathcal{C}\cap \mathcal{C}^{\perp_{\rm H}}.\] The code \(\mathcal{C}\) is Hermitian self-orthogonal if \({\mathrm{Hull}}_{\rm H}(\mathcal{C})=\mathcal{C}\). The code is Hermitian dual-containing if \({\mathrm{Hull}}_{\rm H}(\mathcal{C})=\mathcal{C}^{\perp_{\rm H}}\). It is Hermitian self-orthogonal if and only if \(\mathcal{C}^{\perp_{\rm H}}\) is Hermitian dual-containing. If \(\mathcal{C}\) is an \([n,k]_{q^2}\) linear code, then \(\mathcal{C}^{\perp_{\rm H}}\) is an \([n,n-k]_{q^2}\) linear code and \({\mathrm{Hull}}_{\rm H}(\mathcal{C})\) is an \([n,\ell]_{q^2}\) Hermitian self-orthogonal code, with \(\ell\) being the hull dimension.
A linear code \(\mathcal{C}\) can be completely described by a generator matrix \(G:=G(\mathcal{C})\) whose rows form a basis. A generator matrix \(H\) of \(\mathcal{C}^{\perp_{\rm H}}\) is a Hermitian parity-check matrix of \(\mathcal{C}\). Two linear codes \(\mathcal{C}_1\) and \(\mathcal{C}_2\) that can be generated, respectively, by \(G_1\) and \(G_2\) are permutation equivalent if there exists a permutation matrix \(P\) such that \(G_1 \, P\) is a generator matrix of \(\mathcal{C}_2\). The two codes are monomially equivalent if there exists a monomial matrix \(M\) such that \(G_1 \, M\) is a generator matrix of \(\mathcal{C}_2\). We note that \(G_2\) is not required to be equal to \(G_1P\) or \(G_1M\). Equivalent codes have the same length, dimension, minimum distance, and Hermitian dual distance. Luo et al. in [1] have shown that permutation equivalent codes have the same Hermitian hull dimension. Luo et al. in [2] and Chen in [3] established that monomial equivalence may either increase or decrease the hull dimension.
Quantum error-correcting codes (QECCs), or simply quantum codes, provide a fundamental mechanism that can protect quantum information from decoherence and other sources of quantum noise [4]–[7]. The entanglement-assisted variant, with the codes often called EAQECCs in short, utilizes pre-shared entanglement between the sender and the receiver. This allows one to construct quantum codes from arbitrary classical linear codes without requiring self-orthogonality or dual containment [8], [9].
An \([[n,\kappa,\delta;c]]_q\) EAQECC encodes \(\kappa\) logical qudits into \(n\) physical qudits. Its (quantum) minimum distance is \(\delta\), provided that \(c\) maximally entangled pairs have been shared. We typically assume \(c > 0\) to distinguish the EAQECC from a QECC as the latter does not require a pre-shared entanglement. To evaluate the performance of an \([[n,\kappa,\delta;c]]_q\) EAQECC, we consider its rate, net rate, and error-correcting capacity, which are defined, respectively, as \[\rho:=\frac{\kappa}{n}, \quad \overline{\rho}:=\frac{\kappa-c}{n}, \quadand\quad e:= \left\lfloor \frac{\delta-1}{2} \right\rfloor.\] Here, \(\rho\) measures the information transmission efficiency, \(\overline{\rho}\) reflects the effective coding rate after accounting for the entanglement, and \(e\) is the number of arbitrary qudit errors that the EAQECC can correct. It has also been confirmed in [2] that EAQECCs can indeed outperform QECCs in terms of error-correcting capacity when the rate is fixed. EAQECCs with larger values of \(\rho\), \(\overline{\rho}\), and \(e\) are preferred. An EAQECC \(\mathcal{Q}_1\) is better than \(\mathcal{Q}_2\), or \(\mathcal{Q}_1\) has improved parameters compared to \(\mathcal{Q}_2\), if \(\mathcal{Q}_1\) has at least an improvement among the parameters \(\rho\), \(\overline{\rho}\), and \(e\) when the other parameters are fixed. Equivalently, an \([[n_1,\kappa_1,\delta_1;c_1]]_q\) EAQECC \(\mathcal{Q}_1\) is better than an \([[n_2,\kappa_2,\delta_2;c_2]]_q\) EAQECC \(\mathcal{Q}_2\) if \(n_1\leq n_2\), \(\kappa_1\geq \kappa_2\), \(\delta_1\geq \delta_2\), and \(c_1\leq c_2\), with at least one of these inequalities being strict.
The symplectic, CSS, and Hermitian constructions [8], [9] form several general construction methods to derive EAQECCs from classical linear codes with respect to the symplectic, Euclidean, and Hermitian inner products, respectively. Compared to the other two construction methods, the Hermitian construction in [9] is recognized as having greater potential in constructing EAQECCs. We rephrase it in the next lemma.
Lemma 1. ( Hermitian construction)If \(\mathcal{C}\) is an \([n,k]_{q^2}\) linear code whose Hermitian dual is \(\mathcal{C}^{\perp_{\rm H}}\), then there exists an \([[n,\kappa,\delta;c]]_q\) EAQECC \(\mathcal{Q}\) with parameters \[c=k-\dim\bigl({\mathrm{Hull}}_{\rm H}(\mathcal{C})\bigr), \quad \kappa=n-2k+c, \quad \delta= \begin{cases} d^{\perp_{\rm H}}, & \text{if } \mathcal{C}^{\perp_{\rm H}}\subseteq \mathcal{C},\\[0.6ex] {{\rm{wt}}}\bigl(\mathcal{C}^{\perp_{\rm H}}\setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C})\bigr)\geq d^{\perp_{\rm H}}, & \text{otherwise}. \end{cases}\] The code \(\mathcal{Q}\) is pure if \(\delta=d^{\perp_{\rm H}}\) and is impure otherwise.
Many classes of EAQECCs with good parameters have been found by applying the Hermitian construction in Lemma 1 to specific families of classical linear codes. The works done, e.g., in [1]–[3], [10]–[12] and many references therein can be consulted for further details. Notably, by using optimal and best-known linear codes documented in [13], Luo et al. systematically constructed EAQECCs, particularly EA qubit and EA qutrit codes, of a wide range of lengths in [1]. Together with the codes obtained from [14], EA qubit codes of lengths up to \(64\) and EA qutrit codes of lengths up to \(36\) have been collected in [15] and [16], respectively. By using linear codes from the building-up construction [17], [18], concatenated codes [19], the coordinate-wise juxtaposition of codes [20]–[22], nested GRS codes and related punctured codes [23], and cyclic codes and punctured symplectic self-orthogonal quasi-cyclic codes [24], [25], some sporadic examples with improved parameters have also been discovered.
Sun, Ding, and Chen introduced and investigated the second kind of extended code \(\overline{\mathcal{C}}({\boldsymbol{u}})\) of a linear code \(\mathcal{C}\) in [26] and [27] as a generalization of the standard extension technique. For an \([n,k]_{q^2}\) linear code \(\mathcal{C}\) and a vector \({\boldsymbol{u}}=(u_1,u_2,\ldots,u_n)\in \mathbb{F}_{q^2}^n\), the second kind of extended code of \(\mathcal{C}\) with respect to \({\boldsymbol{u}}\) is \[\begin{align} \label{eq46intro-extended-code} \overline{\mathcal{C}}({\boldsymbol{u}}) = \left\{ (c_1,c_2,\ldots,c_n,c_{n+1}):\; (c_1,c_2,\ldots,c_n)\in \mathcal{C},\; c_{n+1}=\sum_{i=1}^{n}c_i u_i \right\}. \end{align}\tag{1}\] If \(\mathcal{C}\) has a generator matrix \(G\) and a Hermitian parity-check matrix \(H\), then the respective generator and Hermitian parity-check matrices of \(\overline{\mathcal{C}}({\boldsymbol{u}})\) are \[\begin{align} \label{eq46extended-matrix} \overline{G}:= \begin{pmatrix} G & G {\boldsymbol{u}}^{\top} \end{pmatrix}and\overline{H}= \begin{pmatrix} H & {\boldsymbol{0}}^{\top}\\ {\boldsymbol{u}}^{q} & -1 \end{pmatrix}. \end{align}\tag{2}\] In particular, the extended code \(\overline{\mathcal{C}}({\boldsymbol{u}})\) become the standard extended code if \({\boldsymbol{u}}=-{\boldsymbol{1}}\). A remarkable feature of this construction is its universality. As Sun et al. have proven in [26], every \([n,k,d]_q\) linear code with \(d>1\) is permutation equivalent to the extended code \(\overline{\mathcal{C}'}({\boldsymbol{u}})\) of an \([n-1,k]_q\) linear code \(\mathcal{C}'\) for some \({\boldsymbol{u}}\in \mathbb{F}_q^{n-1}\). In light of 2 , any linear code with minimum distance larger than \(1\) can be expressed algebraically in terms of the second kind of extended code.
The preceding discussion leads to the following observations.
Classical linear codes with flexible parameters and explicit hull structures are likely to yield EAQECCs with parameters that correspond to better trade-offs. Lemma 1 deals directly with the key values of \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}))\) and \(d^{\perp_{\rm H}}(\mathcal{C})\).
The family of second kind of extended codes can indeed provide candidates of classical linear codes with flexible parameters in terms of [26] and explicit algebraic structures in terms of 1 and 2 .
Permutation equivalence preserves the Hermitian dual distance and the Hermitian hull dimension. Monomial equivalence preserves the Hermitian dual distance but may change the Hermitian hull dimension. To obtain EAQECCs with more flexible and better parameters, it is therefore natural to add monomial variations to second kind of extended codes and use the resulting codes as classical ingredients in the Hermitian construction in Lemma 1.
Motivated by the above observations, we introduce a modified version of the second kind of extended code and call it a generalized extended code. Let \(\mathcal{C}\) be an \([n,k]_{q^2}\) linear code. Given a vector \(\mathbf{u}\in \mathbb{F}_{q^2}^n\) and an element \(a\in \mathbb{F}_{q^2}^*\), we define the generalized extended code of \(\mathcal{C}\) with respect to the extension vector \(\mathbf{u}\in \mathbb{F}_{q^2}^n\setminus \mathcal{C}\) and the scalar \(a\in \mathbb{F}_{q^2}^*\) by \[\begin{align} \label{eq46modified} \mathcal{C}({\boldsymbol{u}},a):=\{ {\boldsymbol{c}}_{({\boldsymbol{u}},a)}=({\boldsymbol{c}}+b {\boldsymbol{u}},~ ab) :~{\boldsymbol{c}}\in \mathcal{C},~ b\in \mathbb{F}_{q^2}\}, \end{align}\tag{3}\] where the condition \(\mathbf{u}\in \mathbb{F}_{q^2}^n\setminus \mathcal{C}\) excludes the trivial case in which \(\mathcal{C}(\mathbf{u},a)\) contains the word \((0,0,\ldots,0,1)\). By Theorem 1, \(\mathcal{C}({\boldsymbol{u}},a)\) is monomially equivalent to the Hermitian dual of the second kind of extended code of \(\overline{\mathcal{C}^{\perp_{\rm H}}}({\boldsymbol{u}}^q)\) and every \([n+1,k+1]_{q^2}\) linear code \({\mathcal{D}}\) with \(d({\mathcal{D}}^{\perp_{\rm H}})>1\) is monomially equivalent to a generalized extended code. Although the Hermitian hulls of a linear code and its Hermitian dual coincide, the generalized extended code gives more flexibility in controlling the Hermitian hull dimension, while retaining the advantages of second-kind extended codes in terms of parameter flexibility and explicit algebraic structure. We state the central question that this paper and answer it affirmatively.
Problem 1. Can generalized extended codes \(\mathcal{C}({\boldsymbol{u}},a)\) be used to produce improved EAQECCs?
Our main contributions are summarized as follows, with the notation explained soon after in Subsection 2.1.
Theorem 1 states the advantages of the generalized extended codes \(\mathcal{C}({\boldsymbol{u}},a)\) over the second kind of extended codes. Remark 2 provides further explanation.
To determine the number of required maximally entangled pairs in an EAQECC obtained from \(\mathcal{C}({\boldsymbol{u}},a)\), Theorem 2 gives a complete characterization of \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}({\boldsymbol{u}},a)))\) in terms of \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}))\), according to the position of the extension vector \({\boldsymbol{u}}\) relative to the space \(\mathcal{C}+\mathcal{C}^{\perp_{\rm H}}\). Although the general formula involves a \(\{1\}\)-inverse of \(G \, G^\dagger\), where \(G\) is a generator matrix of \(\mathcal{C}\), we prove that the resulting scalar is independent of the chosen inverse.
With the help of the key reduction in Statement 1, Theorem 3 gives a more explicit characterization of \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}({\boldsymbol{u}},a)))\) and determines the explicit structures of \({\mathrm{Hull}}_{\rm H}(\mathcal{C}({\boldsymbol{u}},a))\) in the three possible cases. The difference between Theorems 2 and 3 is illustrated in Remark 4 and Figure 1.
Lemma 8 is on the existence of extension vectors \({\boldsymbol{u}}\in \mathcal{C}^{\perp_{\rm H}}\setminus{\mathrm{Hull}}_{\rm H}(\mathcal{C})\) satisfying \({\boldsymbol{u}}{\boldsymbol{u}}^\dagger=0\) or \({\boldsymbol{u}}{\boldsymbol{u}}^\dagger\neq 0\). Based on the lemma, Theorem 4 gives necessary and sufficient conditions for \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}({\boldsymbol{u}},a)))=\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}))\) and for \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}({\boldsymbol{u}},a)))=\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}))+1\). As a consequence, Corollary 1 supplies necessary and sufficient conditions to obtain Hermitian self-orthogonal codes and linear codes with large Hermitian hulls from \(\mathcal{C}({\boldsymbol{u}},a)\).
To evaluate the error-correcting capability of an EAQECC obtained from \(\mathcal{C}({\boldsymbol{u}},a)\), we determine in Theorem 5 that the Hermitian dual distance of \(\mathcal{C}({\boldsymbol{u}},a)\) is either \(d^{\perp_{\rm H}}\) or \(d^{\perp_{\rm H}}+1\), where \(d^{\perp_{\rm H}}\) is the Hermitian dual distance of the initial code \(\mathcal{C}\). In the cases of \({\boldsymbol{u}}\in \mathbb{F}_{q^2}^n\setminus \mathcal{C}\) and \({\boldsymbol{u}}\in \mathcal{C}^{\perp_{\rm H}}\setminus{\mathrm{Hull}}_{\rm H}(\mathcal{C})\), Theorems 6 and 7 give two equivalent characterizations of the condition for \(d(\mathcal{C}({\boldsymbol{u}},a)^{\perp_{\rm H}})=d^{\perp_{\rm H}}+1\) in terms of the existence of maximal subcodes of \(\mathcal{C}^{\perp_{\rm H}}\) that satisfy specific properties. Moreover, we obtain a sufficient existence condition for an extension vector \({\boldsymbol{u}}\) in Theorem 8 by an approach from finite geometry. Remarks 6 and 7 give further discussions on the feasibility of the sufficient condition.
To obtain better EAQECCs, Theorem 9 identifies when the Hermitian hull dimension and the Hermitian dual distance of \(\mathcal{C}({\boldsymbol{u}},a)\) can be increased simultaneously. Corollary 3 confirms the existence of \(a\) to achieve this goal for any given \[{\boldsymbol{u}} \in \mathcal{C}^{\perp_{\rm H}} \setminus \left( \mathcal{Z}_{\rm H} \cup \bigcup_{{\boldsymbol{e}}\in \mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}})} S_{\boldsymbol{e}} \right)\subseteq \mathcal{C}^{\perp_{\rm H}}\setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C}),\] where \(\mathcal{Z}_{\rm H}\) is the set of self-orthogonal codewords in \(\mathcal{C}^{\perp_{\rm H}}\) and \(S_{\boldsymbol{e}}\) is the maximal subcode of \(\mathcal{C}^{\perp_{\rm H}}\) orthogonal to \({\boldsymbol{e}}\in \mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}})\). Example 1 illustrates the operational meaning of Theorem 9 and Corollary 3 in the classical setting, where we show that, even when the base code \(\mathcal{C}\) is not optimal, our generalized extended codes can produce optimal linear codes with larger Hermitian hulls compared to the records in Grassl’s online tables [13].
Applying the above theoretical results, Theorem 10 and Table 1 then translate the possible changes \((\Delta_{{\mathrm{Hull}}_{\rm H}},\Delta_{d^{\perp_{\rm H}}})\) into six families of EAQECCs. Examples 2 and 3 illustrate concrete ways to apply our results to obtain new and improved EA qubit and qutrit codes from \(\mathcal{C}({\boldsymbol{u}},a)\).
Compared to the best-known EA qubit and qutrit codes in Grassl’s online tables [15], [16] and the latest records in [17]–[21], [23], [25], we obtain \(267\) new qubit codes of lengths up to \(40\) and \(14\) qutrit codes of lengths up to \(25\). Among these entanglement-assisted codes, \(236\) qubit and \(8\) qutrit are confirmed to have improved parameters. In fact, \(180\) of them have simultaneous improvements in two or more parameters. Such improvements are rather uncommon in the literature. Tables 1 and 3 list the \(281\) new and improved EAQECCs obtained from \(\mathcal{C}({\boldsymbol{u}},a)\). Table 4 summarizes their distribution. In addition, we find \(10\) known EAQECCs with improved parameters compared to [15], [16] in Table 5. As stated in Remark 10, these \(10\) extra improvements have already been reported in the literature based on differing methods, while we obtain them in a unified manner.
The rest of this paper is organized as follows. In Section 2, we recall basic notation used in this paper and preliminary results on generalized extended codes. In Section 3, we study the Hermitian hulls of generalized extended codes. In Section 4, we characterize when the Hermitian dual distance can be increased, and when the Hermitian hull dimension and the Hermitian dual distance can be improved simultaneously. In Section 5, we present improved EA qubit and qutrit codes. Finally, Section 6 concludes the paper and discusses possible research directions.
The sum of two linear codes \(\mathcal{C}_1\) and \(\mathcal{C}_2\) of the same length is \(\mathcal{C}_1+\mathcal{C}_2:=\{{\mathbf{c}}_1+{\mathbf{c}}_2:~{\mathbf{c}}_1 \in \mathcal{C}_1,~{\mathbf{c}}_2\in \mathcal{C}_2\}.\) If \(\mathcal{C}_1\cap \mathcal{C}_2=\{{\boldsymbol{0}}\}\), then \(\mathcal{C}_1+\mathcal{C}_2\) is called the direct sum of \(\mathcal{C}_1\) and \(\mathcal{C}_2\), denoted by \(\mathcal{C}_1\oplus \mathcal{C}_2\).
We use \(G^\dagger\) and \({\boldsymbol{u}}^\dagger\) to denote the conjugate transpose of a matrix \(G\) and a vector \({\boldsymbol{u}}\) over \(\mathbb{F}_{q^2}\), respectively.
For any two vectors \({\boldsymbol{u}}\) and \({\boldsymbol{v}}\) in \(\mathbb{F}_{q^2}^n\), we say that \({\boldsymbol{u}}\) is Hermitian orthogonal to \({\boldsymbol{v}}\) if \(\langle {\boldsymbol{u}}, {\boldsymbol{v}}\rangle_{\rm H}=0\).
\({\mathrm{Col}}(G)\) denotes the column space of \(G\).
\(\mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}}):=\{{\boldsymbol{e}}\in \mathcal{C}^{\perp_{\rm H}}:~ {{\rm{wt}}}({\boldsymbol{e}})=d^{\perp_{\rm H}}\}\), where \(d^{\perp_{\rm H}}:=d(\mathcal{C}^{\perp_{\rm H}})\). In general, \(\mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}})\) cannot form a linear subspace.
For a finite-dimensional vector space \(V\) over \(\mathbb{F}_{q^2}\), \({\mathrm{Hom}}(V, \mathbb{F}_{q^2})\) denotes the space of all \(\mathbb{F}_{q^2}\)-linear functionals from \(V\) to \(\mathbb{F}_{q^2}\). It is clear that \(\dim({\mathrm{Hom}}(V, \mathbb{F}_{q^2}))=\dim(V)\).
A subcode \(S \subsetneq \mathcal{C}\) is called a maximal subcode if its codimension in \(\mathcal{C}\) is \(1\), that is, \(\dim(\mathcal{C}) - \dim(S) = 1\).
For a linear map \(f\), \(\ker(f)\) and \(\operatorname{Im}(f)\) denote the kernel and the image of \(f\), respectively.
If \(W\) is a subspace of a vector space \(V\), then \(V/W\) denotes the quotient space of \(V\) modulo \(W\).
We use \(\phi\) to denote a canonical map or isomorphism. In our context, the canonical linear map \[\phi: \mathbb{F}_{q^2}^n \to {\mathrm{Hom}}(\mathcal{C}^{\perp_{\rm H}},\mathbb{F}_{q^2})\] is defined by \(\phi(\mathbf{u})(\mathbf{x}) = \mathbf{x}\mathbf{u}^\dagger\) for all \(\mathbf{x} \in \mathcal{C}^{\perp_{\rm H}}\).
For an \([n,k,d]_{q^2}\) linear code \(\mathcal{C}\), the set \[\mathcal{C}\times\{0\}:=\{({\boldsymbol{c}},0):~{\boldsymbol{c}}\in \mathcal{C}\}\] yields an \([n+1,k,d]_{q^2}\) linear code, which is a subcode of \(\mathcal{C}({\boldsymbol{u}},a)\) for any \({\boldsymbol{u}}\in \mathbb{F}_{q^2}^n\) and \(a\in \mathbb{F}_{q^2}^*\).
Lemma 2. ( [1])If \(\mathcal{C}\) is an \([n,k]_{q^2}\) linear code with a generator matrix \(G\), then \[\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}))=k-{\rm rank}\!\left(G \, G^\dagger\right).\]
Lemma 3. ( [26])Every \([n,k,d]_q\) linear code with \(d>1\) is permutation equivalent to the extended code \(\overline{\mathcal{C}'}({\boldsymbol{u}})\) of an \([n-1,k]_q\) linear code \(\mathcal{C}'\) for some \({\boldsymbol{u}}\in \mathbb{F}_q^{n-1}\).
Lemma 4. Let \(\mathcal{C}\) be an \([n,k]_{q^2}\) linear code with generator matrix \(G\) and Hermitian parity-check matrix \(H\). For any \(\mathbf{u}\in \mathbb{F}_{q^2}^n\setminus \mathcal{C}\) and \(a\in \mathbb{F}_{q^2}^*\), the linear code \(\mathcal{C}({\boldsymbol{u}},a)\) has parameters \([n+1,k+1]_{q^2}\) and respective generator and Hermitian parity-check matrices \[\begin{align} \label{eq46generator-parity-matrix} G_{({\boldsymbol{u}},a)}= \begin{pmatrix}G & {\boldsymbol{0}}\\ {\boldsymbol{u}} & a \end{pmatrix}andH_{({\boldsymbol{u}},a)}= \begin{pmatrix} H & -a^{-q}H{\boldsymbol{u}}^\dagger \end{pmatrix}. \end{align}\tag{4}\]
Since \(\mathbf{u}\in \mathbb{F}_{q^2}^n\setminus \mathcal{C}\), we can use 3 to confirm that \(\mathcal{C}({\boldsymbol{u}},a)\) has parameters \([n+1,k+1]_{q^2}\) and generator matrix \(G_{({\boldsymbol{u}},a)}\). To confirm that \(H_{({\boldsymbol{u}},a)}\) is a parity-check matrix of \(\mathcal{C}({\boldsymbol{u}},a)\), we use two facts, namely, \({\rm rank}(H_{({\boldsymbol{u}},a)})=n-k\) and \[\begin{pmatrix} H & -a^{-q}H{\boldsymbol{u}}^\dagger \end{pmatrix} \begin{pmatrix} G & {\boldsymbol{0}}\\ {\boldsymbol{u}} & a \end{pmatrix}^\dagger = \begin{pmatrix} H & -a^{-q}H{\boldsymbol{u}}^\dagger \end{pmatrix} \begin{pmatrix} G^\dagger & {\boldsymbol{u}}^\dagger\\ {\boldsymbol{0}} & a^q \end{pmatrix} = \begin{pmatrix} HG^\dagger & H{\boldsymbol{u}}^\dagger-H{\boldsymbol{u}}^\dagger \end{pmatrix} = {\boldsymbol{0}}_{(n-k)\times (k+1)}.\] Thus, the desired conclusion is confirmed.
Theorem 1. Let \(\overset{\rm p}{\backsimeq}\) and \(\overset{\rm m}{\backsimeq}\) denote, respectively, permutation equivalence and monomial equivalence. If \(\mathcal{C}\) is an \([n,k]_{q^2}\) linear code, then the following statements hold.
For any \({\boldsymbol{u}}\in\mathbb{F}_{q^2}^{n}\) and \(a\in\mathbb{F}_{q^2}^{*}\), the generalized extended code \(\mathcal{C}({\boldsymbol{u}},a)\) is permutation equivalent to the Hermitian dual of a second kind of extended code of \(\mathcal{C}^{\perp_{\rm H}}\), that is, \[\mathcal{C}({\boldsymbol{u}},a) \overset{\rm p}{\backsimeq} \left( \overline{\mathcal{C}^{\perp_{\rm H}}}({\boldsymbol{u}}^q) \right)^{\perp_{\rm H}}.\]
Every \([n+1,k+1]_{q^2}\) linear code \({\mathcal{D}}\) with \(d({\mathcal{D}}^{\perp_{\rm H}})>1\) is monomially equivalent to the generalized extended code \(\mathcal{C}({\boldsymbol{u}},a)\) of an \([n,k]_{q^2}\) linear code \(\mathcal{C}\) for a fixed \(a\in\mathbb{F}_{q^2}^{*}\) and some \({\boldsymbol{u}}\in\mathbb{F}_{q^2}^{n}\).
If \(G\) is a generator matrix of \(\mathcal{C}\), then \(G\) is a Hermitian parity-check matrix of \(\mathcal{C}^{\perp_{\rm H}}\). By 2 , the second kind of extended code \(\overline{\mathcal{C}^{\perp_{\rm H}}}({\boldsymbol{u}}^{q})\) has a Hermitian parity-check matrix \[\begin{pmatrix} G & {\boldsymbol{0}}^{\top}\\ {\boldsymbol{u}} & -1 \end{pmatrix} \rightsquigarrow \begin{pmatrix} G & {\boldsymbol{0}}^{\top}\\ {\boldsymbol{u}} & a \end{pmatrix} = \begin{pmatrix} G & {\boldsymbol{0}}^{\top}\\ {\boldsymbol{u}} & -1 \end{pmatrix} \, \operatorname{diag}(1,1,\ldots,1,-a),\] where \(\operatorname{diag}(1,1,\ldots,1,-a)\) is an \((n+1)\times(n+1)\) monomial matrix with the specified elements along the diagonal and \(\rightsquigarrow\) denotes the corresponding monomial transformation. Taking Lemma 4 into account, the two matrices above are generator matrices of \(\left(\overline{\mathcal{C}^{\perp_{\rm H}}}({\boldsymbol{u}}^{q})\right)^{\perp_{\rm H}}\) and \(\mathcal{C}({\boldsymbol{u}},a)\), respectively. Thus, \(\mathcal{C}({\boldsymbol{u}},a) \overset{\rm p}{\backsimeq} \left( \overline{\mathcal{C}^{\perp_{\rm H}}}({\boldsymbol{u}}^{q}) \right)^{\perp_{\rm H}}\).
Applying Lemma 3 over \(\mathbb{F}_{q^2}\) to \({\mathcal{D}}^{\perp_{\rm H}}\), there exist an \([n,n-k]_{q^2}\) linear code \({\mathcal{D}}'\) and a vector \({\boldsymbol{v}}\in\mathbb{F}_{q^2}^{n}\) such that \({\mathcal{D}}^{\perp_{\rm H}}\) is permutation equivalent to \(\overline{{\mathcal{D}}'}({\boldsymbol{v}})\). Since taking Hermitian dual preserves permutation equivalence, \({\mathcal{D}}\) is permutation equivalent to \(\left(\overline{{\mathcal{D}}'}({\boldsymbol{v}})\right)^{\perp_{\rm H}}\). If \(\mathcal{C}=({\mathcal{D}}')^{\perp_{\rm H}}\), then \(\mathcal{C}\) is an \([n,k]_{q^2}\) linear code and \({\mathcal{D}}'=\mathcal{C}^{\perp_{\rm H}}\). By Statement 1), we have \[{\mathcal{D}} \overset{\rm p}{\backsimeq} \left(\overline{{\mathcal{D}}'}({\boldsymbol{v}})\right)^{\perp_{\rm H}} = \left(\overline{\mathcal{C}^{\perp_{\rm H}}}({\boldsymbol{v}})\right)^{\perp_{\rm H}} \overset{\rm m}{\backsimeq} \mathcal{C}({\boldsymbol{v}}^{q},a).\] Thus, \({\mathcal{D}}\) is monomially equivalent to \(\mathcal{C}({\boldsymbol{u}},a)\) with \({\boldsymbol{u}}={\boldsymbol{v}}^{q}\) and any fixed \(a\in\mathbb{F}_{q^2}^{*}\).
Remark 1. Keeping the notation in Theorem 1, the monomial equivalence in Statement 1) can be sharpened after changing the extension vector in the second kind of extended code. More precisely, \[\mathcal{C}({\boldsymbol{u}},a)= \left(\overline{\mathcal{C}^{\perp_{\rm H}}}(-a^{-q}{\boldsymbol{u}}^q)\right)^{\perp_{\rm H}}.\] Consequently, every \([n+1,k+1]_{q^2}\) linear code \({\mathcal{D}}\) with \(d({\mathcal{D}}^{\perp_{\rm H}})>1\) is permutation equivalent to a generalized extended code \(\mathcal{C}({\boldsymbol{u}},a)\) of some \([n,k]_{q^2}\) linear code \(\mathcal{C}\).
The next remark explains why we introduce and work with generalized extended code \(\mathcal{C}({\boldsymbol{u}},a)\) instead of working directly with the second kind of extended code \(\overline{\mathcal{C}}({\boldsymbol{u}})\) in constructing EAQECCs with improved parameters.
Remark 2. The Hermitian construction in Lemma 1 identifies linear codes whose Hermitian hull dimension and Hermitian dual distance can be controlled effectively as the main classical ingredient. The hull dimension determines both the number of encoded qudits and the amount of required pre-shared entanglement. The Hermitian dual distance gives a lower bound on the minimum distance of the resulting EAQECC. The generalized extended code \(\mathcal{C}({\boldsymbol{u}},a)\) is designed to provide more flexibility than the second kind of extended code \(\overline{\mathcal{C}}({\boldsymbol{u}})\) in controlling these two quantities.
We start with the Hermitian hull dimension. If \(\mathcal{C}\) has generator matrix \(G\), then, by Lemma 2, the dimension is determined by the rank of the corresponding Gram matrix. For the second kind of extended code \(\overline{\mathcal{C}}({\boldsymbol{u}})\), we can use 2 to infer \[\begin{align} \overline{G} \, \overline{G}^{\dagger} = G \, G^{\dagger}+ G \, {\boldsymbol{u}}^{\top} \, {\boldsymbol{u}}^q \, G^{\dagger} = G \, \left(I_n+{\boldsymbol{u}}^{\top}{\boldsymbol{u}}^q \right) \, G^{\dagger}, \end{align}\] Thus, the Hermitian hull dimension of \(\overline{\mathcal{C}}({\boldsymbol{u}})\) is governed by a rank-one perturbation of \(G \, G^\dagger\). Although this form is useful, the influence of \(I_n+{\boldsymbol{u}}^{\top}{\boldsymbol{u}}^q\) on the original Gram matrix \(G \, G^\dagger\) is not easy to characterize.
In contrast, for the generalized extended code \(\mathcal{C}({\boldsymbol{u}},a)\), it follows from 4 that \[\begin{align} \label{eq46gram-block} G_{({\boldsymbol{u}},a)} \, G_{({\boldsymbol{u}},a)}^\dagger = \begin{pmatrix} G \, G^\dagger & G \, {\boldsymbol{u}}^\dagger\\ {\boldsymbol{u}} \, G^\dagger & {\boldsymbol{u}} \, {\boldsymbol{u}}^\dagger + a^{q+1} \end{pmatrix}. \end{align}\tag{5}\] This block form separates the old Gram matrix \(G \, G^\dagger\), the anti-diagonal terms determined by \({\boldsymbol{u}}\), and the adjustable scalar \({\boldsymbol{u}}{\boldsymbol{u}}^\dagger+a^{q+1}\). Hence, once the extension vector \({\boldsymbol{u}}\) is fixed, the nonzero element \(a\) still provides an additional degree of freedom for adjusting the Hermitian hull dimension. This explicit block structure is the main reason why we can characterize the Hermitian hull of \(\mathcal{C}({\boldsymbol{u}},a)\) effectively.
Regarding the Hermitian dual distance, both the second kind of extended codes and our generalized extended codes provide possible ways to control it through the choice of the extension vector \({\boldsymbol{u}}\). An equivalent relation in Theorem 1 shows that \(\mathcal{C}({\boldsymbol{u}},a)\) is closely connected with the Hermitian dual of a second kind of extended code of \(\mathcal{C}^{\perp_{\rm H}}\). Hence, such a code can still be useful for the purpose. In the case of our generalized extended code, once \({\boldsymbol{u}}\) is fixed, the Hermitian dual code has the simple form described in Lemma 4. As will be shown later in Theorem 5, this leads to a direct criterion, which is independent of the choice of \(a\in\mathbb{F}_{q^2}^{*}\), for determining whether the Hermitian dual distance of \(\mathcal{C}({\boldsymbol{u}},a)\) increases. We can thus use \({\boldsymbol{u}}\) to control the Hermitian dual distance, while the scalar \(a\) remains available for adjusting the Hermitian hull dimension.
This section is devoted to the study of Hermitian hulls of generalized extended codes. In Subsection 3.1, we characterize the dimension and structure of \({\mathrm{Hull}}_{\rm H}(\mathcal{C}({\boldsymbol{u}},a))\). In Subsection 3.2, we further derive explicit conditions under which suitable choices of \({\boldsymbol{u}}\) and \(a\) allow us to control the dimension of \({\mathrm{Hull}}_{\rm H}(\mathcal{C}({\boldsymbol{u}},a))\).
With the help of Lemma 2 and 5 , we can now characterize the dimension of \({\mathrm{Hull}}_{\rm H}(\mathcal{C}({\boldsymbol{u}},a))\). We begin with the column space of \(G \, G^\dagger\).
Lemma 5. Let \(\mathcal{C}\) be an \([n,k]_{q^2}\) linear code with a generator matrix \(G\) and let \(\mathbf{u}\in \mathbb{F}_{q^2}^n\). We have \(G \mathbf{u}^\dagger\in {\mathrm{Col}}\!\left(G \, G^\dagger\right)\) if and only if \(\mathbf{u}\in \mathcal{C}+\mathcal{C}^{\perp_{\rm H}}\).
We first consider the necessary condition. Since \(G \mathbf{u}^\dagger\in {\mathrm{Col}}\!\left(G \, G^\dagger\right)\), there is a column vector \(\mathbf{y}\) of length \(k\) over \(\mathbb{F}_{q^2}\) such that \(G\mathbf{u}^\dagger = G \, G^\dagger \, \mathbf{y}\). If \(\mathbf{c} = \mathbf{y}^\dagger \, G\in \mathcal{C}\), where \(\mathbf{y}^\dagger\) is a row vector of length \(k\) over \(\mathbb{F}_{q^2}\), then \[G\mathbf{c}^\dagger = G \, G^\dagger\mathbf{y} = G\mathbf{u}^\dagger,\] which implies that \(G(\mathbf{u}-\mathbf{c})^\dagger ={\boldsymbol{0}}\) and, therefore, \(\mathbf{u}-\mathbf{c} \in \mathcal{C}^{\perp_{\rm H}}\). Thus, \[\mathbf{u}=\mathbf{c}+(\mathbf{u}-\mathbf{c})\in \mathcal{C}+\mathcal{C}^{\perp_{\rm H}}.\]
Conversely, since \(\mathbf{u}\in \mathcal{C}+\mathcal{C}^{\perp_{\rm H}}\), there exist \(\mathbf{c}\in \mathcal{C}\) and \(\mathbf{e}\in \mathcal{C}^{\perp_{\rm H}}\) such that \(\mathbf{u} = \mathbf{c}+\mathbf{e}\). Since \(\mathbf{c}\in \mathcal{C}\), we can write \(\mathbf{c} =\mathbf{x} \, G\) for some vector \(\mathbf{x} \in \mathbb{F}_{q^2}^k\). Since \(\mathbf{e}\in \mathcal{C}^{\perp_{\rm H}}\), we conclude the proof by verifying that \[G\mathbf{u}^\dagger = G\mathbf{c}^\dagger+G\mathbf{e}^\dagger = G \, G^\dagger \mathbf{x}^\dagger \in {\mathrm{Col}}\left(G \, G^\dagger\right).\]
Let a linear code \(\mathcal{C}\) with generator matrix \(G\) be given. It is well-known that the corresponding Gram matrix \(G \, G^\dagger\) is nonsingular if and only if \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C})) =0\). When \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}))>0\), the Gram matrix \(G \, G^\dagger\) is singular and, hence, does not have an inverse. In this case, we need to use the \(\{1\}\)-inverse of \(G \, G^\dagger\) to characterize the Hermitian hull of \(\mathcal{C}({\boldsymbol{u}},a)\).
Definition 1. Let \(A\) be an \(m \times n\) matrix over a field \(\mathbb{F}\). A matrix \(X\) of size \(n \times m\) over \(\mathbb{F}\) is called a \(\{1\}\)-inverse (or a generalized inverse) of \(A\) if it satisfies the condition \[A \, X \, A = A.\] The set of all \(\{1\}\)-inverses of \(A\) is denoted by \(A\{1\}\). A matrix \(X \in A\{1\}\) is typically denoted by \(A^{-}\).
Every matrix over \(\mathbb{F}_{q^2}\) has at least one \(\{1\}\)-inverse. The \(\{1\}\)-inverse of \(A\) is uniquely determined and coincides with the inverse \(A^{-1}\) if and only if \(A\) is a square matrix with full rank. Although the \(\{1\}\)-inverse of \(G \, G^\dagger\) is not unique, it can still be used to characterize the Hermitian hull of \(\mathcal{C}({\boldsymbol{u}},a)\), as stated in the following theorem.
Theorem 2. Let \(\mathcal{C}\) be an \([n,k]_{q^2}\) linear code with \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}))=\ell\). Let \(S=\mathbf{u} G^\dagger (G \, G^\dagger)^- \, G\mathbf{u}^\dagger\), where \((G \, G^\dagger)^-\) denotes the \(\{1\}\)-inverse of \(G \, G^\dagger\). For any \(\mathbf{u}\in \mathbb{F}_{q^2}^n\setminus \mathcal{C}\) and \(a\in \mathbb{F}_{q^2}^*\), the linear code \(\mathcal{C}(\mathbf{u},a)\) has parameters \([n+1,k+1]_{q^2}\), with \[\begin{align} \label{eq46hull111} \dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}(\mathbf{u},a))) =\begin{cases} \ell -1 , & if\mathbf{u}\notin \mathcal{C}+\mathcal{C}^{\perp_{\rm H}}, \\\ell, & if\mathbf{u}\in (\mathcal{C}+\mathcal{C}^{\perp_{\rm H}})\setminus \mathcal{C} and\mathbf{u}\mathbf{u}^\dagger + a^{q+1} \neq S, \\\ell + 1 , & if\mathbf{u}\in (\mathcal{C}+\mathcal{C}^{\perp_{\rm H}})\setminus \mathcal{C} and\mathbf{u}\mathbf{u}^\dagger + a^{q+1} = S. \end{cases} \end{align}\tag{6}\] Moreover, the value of \(S\) is independent of the choice of the \(\{1\}\)-inverse \((G \, G^\dagger)^-\).
By Lemmas 2 and 4, we have \[\begin{align} G_{(\mathbf{u},a)} \, G_{(\mathbf{u},a)}^\dagger &= \begin{pmatrix} G \, G^\dagger & G\mathbf{u}^\dagger \\ \mathbf{u}G^\dagger & \mathbf{u}\mathbf{u}^\dagger + a^{q+1} \end{pmatrix}and\\ \dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}(\mathbf{u},a))) &= k+1 - {\rm rank}\left(G_{(\mathbf{u},a)} G_{(\mathbf{u},a)}^\dagger\right). \end{align}\] We proceed to consider the following two cases.
\(\mathbf{u}\notin \mathcal{C}+\mathcal{C}^{\perp_{\rm H}}\). By Lemma 5, we know that \(G\mathbf{u}^\dagger\notin {\mathrm{Col}}(G \, G^\dagger)\), which implies \({\rm rank}((G \, G^\dagger \, G \mathbf{u}^\dagger))={\rm rank}(G \, G^\dagger)+1\). Since \(\left(G_{(\mathbf{u},a)} \, G_{(\mathbf{u},a)}^\dagger\right)^\dagger = G_{(\mathbf{u},a)} \, G_{(\mathbf{u},a)}^\dagger\), if the last row is a linear combination of the first \(k\) rows, then there exists a row vector \(\mathbf{e}\) of length \(k\) such that \(\mathbf{e}G \, G^\dagger = \mathbf{u}G^\dagger\). Taking the Hermitian conjugate yields \(G \, G^\dagger \mathbf{e}^\dagger = G\mathbf{u}^\dagger\), which contradicts \(G\mathbf{u}^\dagger \notin {\mathrm{Col}}(G \, G^\dagger)\). Hence, \({\rm rank}\left(G_{(\mathbf{u},a)} \, G_{(\mathbf{u},a)}^\dagger\right) = {\rm rank}(G \, G^\dagger) + 2\). Substituting the rank value into the formula for \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}(\mathbf{u},a)))\) gives \[\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}(\mathbf{u},a))) = k + 1 - ({\rm rank}(G \, G^\dagger) + 2) = (k - {\rm rank}(G \, G^\dagger)) - 1 = \ell -1.\]
\(\mathbf{u}\in \mathcal{C}+\mathcal{C}^{\perp_{\rm H}}\). We perform the following block congruence transformation on \(G_{(\mathbf{u},a)} G_{(\mathbf{u},a)}^\dagger\). \[\begin{pmatrix} I_k & \mathbf{0} \\ -\mathbf{u}G^\dagger (G \, G^\dagger)^- & 1 \end{pmatrix} G_{(\mathbf{u},a)} \, G_{(\mathbf{u},a)}^\dagger \begin{pmatrix} I_k & \mathbf{0} \\ -\mathbf{u}G^\dagger (G \, G^\dagger)^- & 1 \end{pmatrix}^\dagger = \begin{pmatrix} G \, G^\dagger & \mathbf{0} \\ \mathbf{0} & \mathbf{u}\mathbf{u}^\dagger + a^{q+1} - S \end{pmatrix},\] with \(S:=\mathbf{u}G^\dagger (G \, G^\dagger)^- G\mathbf{u}^\dagger\) and \((G \, G^\dagger)^-\) being the generalized inverse matrix of \(G \, G^\dagger\). We divide the analysis into two.
If \(\mathbf{u}\mathbf{u}^\dagger + a^{q+1} \neq S\), then \({\rm rank}\left(G_{(\mathbf{u},a)} \, G_{(\mathbf{u},a)}^\dagger\right) = {\rm rank}(G \, G^\dagger) + 1\). Thus, \[\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}(\mathbf{u},a))) = k + 1 - ({\rm rank}(G \, G^\dagger) + 1) = \ell.\]
If \(\mathbf{u}\mathbf{u}^\dagger + a^{q+1} = S\), then \({\rm rank}\left(G_{(\mathbf{u},a)} \, G_{(\mathbf{u},a)}^\dagger \right) = {\rm rank}(G \, G^\dagger)\). Thus, \[\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}(\mathbf{u},a))) = k + 1 - {\rm rank}(G \, G^\dagger) = \ell + 1.\]
Now that all cases have been covered, we establish that the value of \(S\) is independent of the \(\{1\}\)-inverse \((G \, G^\dagger)^-\). If there are two row vectors \({\boldsymbol{y}}_1,~{\boldsymbol{y}}_2\in \mathbb{F}_{q^2}^k\) such that \(G \, G^\dagger {\boldsymbol{y}}_1^\dagger=G{\boldsymbol{u}}^\dagger\) and \(G \, G^\dagger {\boldsymbol{y}}_2^\dagger=G{\boldsymbol{u}}^\dagger\), then \[\begin{align} \label{eq46S} S={\boldsymbol{y}}_i G \, G^\dagger (G \, G^\dagger)^{-}G \, G^\dagger {\boldsymbol{y}}_i^\dagger={\boldsymbol{y}}_iG \, G^\dagger{\boldsymbol{y}}_i^\daggerfori=1,2. \end{align}\tag{7}\] Observing that \(G \, G^\dagger ({\boldsymbol{y}}_1-{\boldsymbol{y}}_2)^\dagger={\boldsymbol{0}}\), we let \({\boldsymbol{z}}={\boldsymbol{y}}_1-{\boldsymbol{y}}_2\). We use 7 to infer that \[\begin{align} \begin{aligned} S = {\boldsymbol{y}}_1G \, G^\dagger{\boldsymbol{y}}_1^\dagger = ({\boldsymbol{z}}+{\boldsymbol{y}}_2)G \, G^\dagger({\boldsymbol{z}}+{\boldsymbol{y}}_2)^\dagger = {\boldsymbol{z}}G \, G^\dagger{\boldsymbol{z}}^\dagger+{\boldsymbol{z}}G \, G^\dagger{\boldsymbol{y}}_2^\dagger+ {\boldsymbol{y}}_2G \, G^\dagger{\boldsymbol{z}}^\dagger+{\boldsymbol{y}}_2G \, G^\dagger{\boldsymbol{y}}_2^\dagger = {\boldsymbol{y}}_2G \, G^\dagger{\boldsymbol{y}}_2^\dagger. \end{aligned} \end{align}\] Thus, \(S\) is independent of the choice of \((G \, G^\dagger)^-\).
Remark 3. Given an \([n,k]_{q^2}\) linear code with generator matrix \(G\) and \(\ell\)-dimensional Hermitian hull, two facts are well-known.
There exists a \(k\times k\) nonsingular matrix \(D\) such that \[D \, G \, G^\dagger \, D^\dagger= \begin{pmatrix} I_{k-\ell} & {\boldsymbol{0}} \\ {\boldsymbol{0}} & {\boldsymbol{0}} \end{pmatrix}.\]
For any matrices \(U\), \(V\), and \(W\) over \(\mathbb{F}_{q^2}\), the \(\{1\}\)-inverse of \(G \, G^\dagger\) must be of the form \[(D^{\dagger})^{-1} \begin{pmatrix} I_{k-\ell} & U \\ V & W \end{pmatrix} D^{-1}.\]
Hence, there are \(q^{2\ell(2k - \ell)}\) possible \(\{1\}\)-inverse matrices \((G \, G^\dagger)^{-}\) of \(G \, G^\dagger\). We have just shown in Theorem 2 that the value of \(S\) is independent of the choice of \((G \, G^\dagger)^{-}\).
We obtain \(S={\boldsymbol{y}}_iG \, G^\dagger{\boldsymbol{y}}_i^\dagger~{\rm for}~i=1,2\) in 7 . Since \({\boldsymbol{y}}_iG\) gives a codeword \({\boldsymbol{c}}_i\in \mathcal{C}\), if we let \({\boldsymbol{e}}_i :={\boldsymbol{u}}-{\boldsymbol{c}}_i\), then \[G{\boldsymbol{e}}_i^{\dagger} = G{\boldsymbol{u}}^\dagger - G{\boldsymbol{c}}_i^{\dagger} = G \, G^\dagger{\boldsymbol{y}}_i^\dagger - G \, G^\dagger{\boldsymbol{y}}_i^\dagger = {\boldsymbol{0}}\] and, hence, \({\boldsymbol{e}}_{i}\in \mathcal{C}^{\perp_{\rm H}}\) for \(i=1,2\). Moreover, since \({\boldsymbol{c}}_i\in\mathcal{C}\) and \({\boldsymbol{e}}_i\in\mathcal{C}^{\perp_{\rm H}}\), we have \({\boldsymbol{c}}_i{\boldsymbol{e}}_i^\dagger={\boldsymbol{e}}_i{\boldsymbol{c}}_i^\dagger=0\). Therefore, \[{\boldsymbol{u}}{\boldsymbol{u}}^\dagger-S = ({\boldsymbol{c}}_i+{\boldsymbol{e}}_i)({\boldsymbol{c}}_i+{\boldsymbol{e}}_i)^\dagger - {\boldsymbol{y}}_iG \, G^\dagger{\boldsymbol{y}}_i^\dagger = {\boldsymbol{e}}_i{\boldsymbol{e}}_i^\dagger.\] Thus, in this case, \({\boldsymbol{u}}{\boldsymbol{u}}^\dagger+a^{q+1}-S = {\boldsymbol{e}}_i{\boldsymbol{e}}_i^\dagger+a^{q+1}\), which is independent of the chosen representative \({\boldsymbol{e}}_i\in\mathcal{C}^{\perp_{\rm H}}\) in the decomposition \({\boldsymbol{u}}={\boldsymbol{c}}_i+{\boldsymbol{e}}_i\).
We highlight that this reduction follows directly from the definition of generalized extended codes. For any \({\boldsymbol{c}}_0\in\mathcal{C}\) and \(a\in\mathbb{F}_{q^2}^{*}\), we have \[\begin{align} \mathcal{C}({\boldsymbol{u}}+{\boldsymbol{c}}_0,a) &=\{({\boldsymbol{c}}+b({\boldsymbol{u}}+{\boldsymbol{c}}_0),ab):{\boldsymbol{c}}\in\mathcal{C},\;b\in\mathbb{F}_{q^2}\}\\ &=\{(({\boldsymbol{c}}+b{\boldsymbol{c}}_0)+b{\boldsymbol{u}},ab):{\boldsymbol{c}}\in\mathcal{C},\;b\in\mathbb{F}_{q^2}\} =\mathcal{C}({\boldsymbol{u}},a). \end{align}\] The generalized extended code depends on the extension vector \({\boldsymbol{u}}\) only through its coset modulo \(\mathcal{C}\). In particular, if \({\boldsymbol{u}}\in(\mathcal{C}+\mathcal{C}^{\perp_{\rm H}})\setminus\mathcal{C}\), then one may replace \({\boldsymbol{u}}\) by any representative in \(\mathcal{C}^{\perp_{\rm H}}\setminus{\mathrm{Hull}}_{\rm H}(\mathcal{C})\) without changing the resulting generalized extended code. The following statement formalizes the reduction.
Statement 1. To study the generalized extended code \(\mathcal{C}({\boldsymbol{u}},a)\) when \({\boldsymbol{u}}\in(\mathcal{C}+\mathcal{C}^{\perp_{\rm H}})\setminus\mathcal{C}\), it suffices to consider \({\boldsymbol{u}} \in \mathcal{C}^{\perp_{\rm H}}\setminus{\mathrm{Hull}}_{\rm H}(\mathcal{C})\) instead of \({\boldsymbol{u}}\in(\mathcal{C}+\mathcal{C}^{\perp_{\rm H}})\setminus\mathcal{C}.\)
The statement provides the motivation to rewrite the second and third cases of 6 in Theorem 2 by taking the representative \({\boldsymbol{u}}\in\mathcal{C}^{\perp_{\rm H}}\setminus{\mathrm{Hull}}_{\rm H}(\mathcal{C})\). In the next theorem, we determine the explicit form of \({\mathrm{Hull}}_{\rm H}(\mathcal{C}({\boldsymbol{u}},a))\). To do so, we need the following lemma.
Lemma 6. Let \(\mathcal{C}\) be an \([n,k]_{q^2}\) linear code and let \({\boldsymbol{u}}\in \mathbb{F}_{q^2}^n\). Let \[\mathcal{C}_{\boldsymbol{u}}:=\left\{{\boldsymbol{x}}\in \mathcal{C}\, : \;{\boldsymbol{u}}{\boldsymbol{x}}^\dagger=0\right\}.\] If there exists an \({\boldsymbol{x}}\in \mathcal{C}\) such that \({\boldsymbol{u}}{\boldsymbol{x}}^\dagger\neq 0\), then \(\mathcal{C}_{\boldsymbol{u}}\) is a maximal subcode of \(\mathcal{C}\). In particular, \(\dim(\mathcal{C}_{\boldsymbol{u}})=k-1\).
Consider the map \(f_{\boldsymbol{u}} : \mathcal{C}\to \mathbb{F}_{q^2}\) that sends \({\boldsymbol{x}} \mapsto {\boldsymbol{u}} \, {\boldsymbol{x}}^\dagger\). Under the assumption, \(f_{\boldsymbol{u}}\) is a nonzero \(\mathbb{F}_{q^2}\)-linear map and \(\mathcal{C}_{\boldsymbol{u}}\subsetneq \mathcal{C}\). Since \(\dim_{\mathbb{F}_{q^2}}(\mathbb{F}_{q^2})=1\), we have \(\dim(\operatorname{Im}(f_{\boldsymbol{u}}))=1\). By the rank-nullity theorem in linear algebra, \[\dim(\mathcal{C}_{\boldsymbol{u}})=\dim(\ker(f_{\boldsymbol{u}}))=\dim(\mathcal{C})-\dim(\operatorname{Im}(f_{\boldsymbol{u}}))=k-1.\] Hence, \(\mathcal{C}_{\boldsymbol{u}}\) has codimension one in \(\mathcal{C}\) and, thus, is a maximal subcode of \(\mathcal{C}\).
Theorem 3. Let \(\mathcal{C}\) be an \([n,k]_{q^2}\) linear code. For any \(\mathbf{u}\in \mathbb{F}_{q^2}^n\setminus \mathcal{C}\), and \(a\in \mathbb{F}_{q^2}^*\), the following statements hold.
If \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}))=\ell\), then \(\mathcal{C}(\mathbf{u},a)\) is an \([n+1,k+1]_{q^2}\) linear code with \[\begin{align} \label{eq46hull222} \dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}(\mathbf{u},a))) = \begin{cases} \ell-1, & if\mathbf{u}\notin \mathcal{C}+\mathcal{C}^{\perp_{\rm H}},\\ \ell, & if\mathbf{u}\in \mathcal{C}^{\perp_{\rm H}} \setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C})and{\boldsymbol{u}}{\boldsymbol{u}}^\dagger+a^{q+1}\neq 0, \\ \ell+1, & if\mathbf{u}\in \mathcal{C}^{\perp_{\rm H}}\setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C})and{\boldsymbol{u}}{\boldsymbol{u}}^\dagger+a^{q+1}=0. \end{cases} \end{align}\tag{8}\]
The Hermitian hull of \(\mathcal{C}(\mathbf{u},a)\) is given by \[\begin{align} \label{eq46hull333} {\mathrm{Hull}}_{\rm H}(\mathcal{C}(\mathbf{u},a)) = \begin{cases} {\mathrm{Hull}}_{\rm H}(\mathcal{C})_{\boldsymbol{u}}\times \{0\}, & if\mathbf{u}\notin \mathcal{C}+\mathcal{C}^{\perp_{\rm H}},\\ {\mathrm{Hull}}_{\rm H}(\mathcal{C})\times \{0\}, & if\mathbf{u}\in \mathcal{C}^{\perp_{\rm H}}\setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C})and{\boldsymbol{u}}{\boldsymbol{u}}^\dagger+a^{q+1}\neq 0,\\ {\mathrm{Hull}}_{\rm H}(\mathcal{C})({\boldsymbol{u}},a), & if\mathbf{u}\in \mathcal{C}^{\perp_{\rm H}}\setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C}) and {\boldsymbol{u}}{\boldsymbol{u}}^\dagger+a^{q+1}=0, \end{cases} \end{align}\tag{9}\] where \({\mathrm{Hull}}_{\rm H}(\mathcal{C})_{\boldsymbol{u}}:=\{{\boldsymbol{c}} \, : \, {\boldsymbol{c}}\in {\mathrm{Hull}}_{\rm H}(\mathcal{C}),\;{\boldsymbol{c}}{\boldsymbol{u}}^\dagger=0\}\) is a maximal subcode of \({\mathrm{Hull}}_{\rm H}(\mathcal{C})\).
Confirming the first assertion is straightforward by Theorem 2 and Statement 1.
For the second assertion, we select any codeword \({\boldsymbol{c}}_{({\boldsymbol{u}},a)} = ({\boldsymbol{c}}+b{\boldsymbol{u}},ab) \in \mathcal{C}({\boldsymbol{u}},a)\) with \({\boldsymbol{c}}\in \mathcal{C}\) and \(b\in \mathbb{F}_{q^2}\). Then \({\boldsymbol{c}}_{({\boldsymbol{u}},a)}\in {\mathrm{Hull}}_{\rm H}(\mathcal{C}({\boldsymbol{u}},a))\) if and only if \({\boldsymbol{c}}_{({\boldsymbol{u}},a)}\) is Hermitian orthogonal to every codeword of \(\mathcal{C}({\boldsymbol{u}},a)\). Since \(\mathcal{C}({\boldsymbol{u}},a)\) is generated by \(({\boldsymbol{c}}',0)\), with \({\boldsymbol{c}}'\in \mathcal{C}\), and \(({\boldsymbol{u}},a)\), we get \[\begin{align} & ({\boldsymbol{c}}+b{\boldsymbol{u}}) \, {\boldsymbol{c}}'^\dagger =0for all{\boldsymbol{c}}'\in \mathcal{C} and \tag{10}\\ & ({\boldsymbol{c}}+b{\boldsymbol{u}}){\boldsymbol{u}}^\dagger+a^{q+1}b =0. \tag{11} \end{align}\]
We have two cases to consider.
\({\boldsymbol{u}}\notin \mathcal{C}+\mathcal{C}^{\perp_{\rm H}}\). By 10 , we have \({\boldsymbol{c}}+b{\boldsymbol{u}}\in \mathcal{C}^{\perp_{\rm H}}\). If \(b\neq 0\), then \[{\boldsymbol{u}}=b^{-1}\bigl(({\boldsymbol{c}}+b{\boldsymbol{u}})-{\boldsymbol{c}}\bigr)\in \mathcal{C}+\mathcal{C}^{\perp_{\rm H}},\] which is a contradiction. Hence, \(b=0\) and 10 yields \({\boldsymbol{c}}\in {\mathrm{Hull}}_{\rm H}(\mathcal{C})\). We rewrite 11 as \({\boldsymbol{c}}{\boldsymbol{u}}^\dagger=0\) and infer that \[{\mathrm{Hull}}_{\rm H}(\mathcal{C}({\boldsymbol{u}},a)) = \{({\boldsymbol{c}},0) \, : \, {\boldsymbol{c}}\in {\mathrm{Hull}}_{\rm H}(\mathcal{C}),\;{\boldsymbol{c}}{\boldsymbol{u}}^\dagger=0\} = {\mathrm{Hull}}_{\rm H}(\mathcal{C})_{\boldsymbol{u}}\times \{0\}.\] To verify that \({\mathrm{Hull}}_{\rm H}(\mathcal{C})_{\boldsymbol{u}}\) is a maximal subcode of \({\mathrm{Hull}}_{\rm H}(\mathcal{C})\), it suffices to confirm the existence of some \(\mathbf{c} \in {\mathrm{Hull}}_{\rm H}(\mathcal{C})\) such that \(\mathbf{c}\mathbf{u}^\dagger \neq 0\) according to Lemma 6. If \(\mathbf{c}\mathbf{u}^\dagger = 0\) for all \(\mathbf{c} \in {\mathrm{Hull}}_{\rm H}(\mathcal{C})\), then \[\mathbf{u} \in ({\mathrm{Hull}}_{\rm H}(\mathcal{C}))^{\perp_{\rm H}} = (\mathcal{C}\cap \mathcal{C}^{\perp_{\rm H}})^{\perp_{\rm H}} = \mathcal{C}+ \mathcal{C}^{\perp_{\rm H}},\] which contradicts the assumption that \(\mathbf{u} \notin \mathcal{C}+ \mathcal{C}^{\perp_{\rm H}}\). Since such a \(\mathbf{c}\) exists, we conclude that \({\mathrm{Hull}}_{\rm H}(\mathcal{C})_{\mathbf{u}}\) is a maximal subcode of \({\mathrm{Hull}}_{\rm H}(\mathcal{C})\).
\({\boldsymbol{u}}\in \mathcal{C}^{\perp_{\rm H}}\setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C})\). The equality in 10 reduces to \({\mathbf{c}}{\mathbf{c}}'^\dagger=0\), which means that \({\boldsymbol{c}} \in {\mathrm{Hull}}_{\rm H}(\mathcal{C}) \subseteq \mathcal{C}.\) Combining with the fact that \({\boldsymbol{u}}\in \mathcal{C}^{\perp_{\rm H}}\), we write 11 as \({\boldsymbol{c}}{\boldsymbol{u}}^\dagger+ b\bigl({\boldsymbol{u}}{\boldsymbol{u}}^\dagger + a^{q+1}\bigr) = b\bigl({\boldsymbol{u}}{\boldsymbol{u}}^\dagger+a^{q+1}\bigr)=0\).
If \({\boldsymbol{u}}{\boldsymbol{u}}^\dagger+a^{q+1}\neq 0\), then \(b=0\) and, hence, \[{\mathrm{Hull}}_{\rm H}(\mathcal{C}({\boldsymbol{u}},a))=\{({\mathbf{c}}, 0) \, : \, {\mathbf{c}}\in {\mathrm{Hull}}_{\rm H}(\mathcal{C})\}={\mathrm{Hull}}_{\rm H}(\mathcal{C})\times\{0\}.\]
If \({\boldsymbol{u}}{\boldsymbol{u}}^\dagger+a^{q+1}=0\), then \(b\) is arbitrary. Thus, \[{\mathrm{Hull}}_{\rm H}(\mathcal{C}({\boldsymbol{u}},a)) = \{({\boldsymbol{c}}+b{\boldsymbol{u}},ab) \, : \, {\boldsymbol{c}}\in {\mathrm{Hull}}_{\rm H}(\mathcal{C}),\;b\in \mathbb{F}_{q^2}\} = {\mathrm{Hull}}_{\rm H}(\mathcal{C})({\boldsymbol{u}},a).\]
Having covered the two cases, the proof is now complete.
Remark 4. The reduction in Statement 1, which Figure 1 illustrates, is useful for the construction of EAQECCs from generalized extended codes. By the Hermitian construction in Lemma 1, the Hermitian hull dimension determines the dimension and the required number of pre-shared entanglement in the resulting EAQECCs. Hence, in selecting extension vectors that preserve or increase the hull dimension, it is enough to work in the reduced space \(\mathcal{C}^{\perp_{\rm H}}\setminus{\mathrm{Hull}}_{\rm H}(\mathcal{C})\) instead of the whole space \((\mathcal{C}+\mathcal{C}^{\perp_{\rm H}})\setminus\mathcal{C}\). This reduction eliminates equivalent choices of extension vectors that result in the same generalized extended code. It also provides a simpler setting in which the influence of the scalar \(a\in\mathbb{F}_{q^2}^{*}\) on the Hermitian hull dimension can be described explicitly. Consequently, Statement 1 simplifies the process of controlling the Hermitian hulls by reducing it to the study of representatives within \(\mathcal{C}^{\perp_{\rm H}}\setminus{\mathrm{Hull}}_{\rm H}(\mathcal{C})\).
Based on 8 , there must be an \({\boldsymbol{u}}\in \mathbb{F}_{q^2}^n\setminus \mathcal{C}\) such that \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}(\mathbf{u}, a))) = \dim({\mathrm{Hull}}_{\rm H}(\mathcal{C})) - 1\) for any \(a\in \mathbb{F}_{q^2}^*\), provided that \(\mathcal{C}\oplus \mathcal{C}^{\perp_{\rm H}}\neq \mathbb{F}_{q^2}^n\). This is equivalent to saying that \(\mathcal{C}\) is not a Hermitian LCD code. On the other hand, we can also establish necessary and sufficient conditions that prevent \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}(\mathbf{u}, a)))\) from decreasing. We reproduce a useful lemma before proving another one.
Lemma 7. Let \(\mathcal{C}\) be a linear code over \(\mathbb{F}_{q^2}\). If \(\mathbf{x}\mathbf{x}^\dagger = 0\) for all \(\mathbf{x} \in \mathcal{C}\), then \(\mathcal{C}\) is Hermitian self-orthogonal.
For any \(\mathbf{x},\mathbf{y}\in\mathcal{C}\), since \(\mathcal{C}\) is linear, we have \(\mathbf{x}+\mathbf{y}\in\mathcal{C}\). By the assumption, we have \(0=(\mathbf{x}+\mathbf{y})(\mathbf{x}+\mathbf{y})^\dagger =\mathbf{x}\mathbf{y}^\dagger+\mathbf{y}\mathbf{x}^\dagger .\) Similarly, taking \(\lambda\in\mathbb{F}_{q^2}\setminus\mathbb{F}_q\), from \(\mathbf{x}+\lambda\mathbf{y}\in\mathcal{C}\) we get \(0=\lambda^q\mathbf{x}\mathbf{y}^\dagger +\lambda\mathbf{y}\mathbf{x}^\dagger .\) Since \(\lambda^q\ne\lambda\), combining this two equations yields that \(\mathbf{x}\mathbf{y}^\dagger=0\) for any \(\mathbf{x},\mathbf{y}\in\mathcal{C}\). It follows that \(\mathcal{C}\subseteq\mathcal{C}^{\perp_H}\). This completes the proof.
Lemma 8. If \(\mathcal{C}\) is an \([n,k]_{q^2}\) linear code with \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C})) = \ell\), then the following statements hold.
If \(\ell = n-k-1\), then \(\mathbf{u}\mathbf{u}^\dagger \neq 0\) for all \(\mathbf{u} \in \mathcal{C}^{\perp_{\rm H}} \setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C})\).
If \(\ell < n-k-1\), then there exists a vector \(\mathbf{u} \in \mathcal{C}^{\perp_{\rm H}} \setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C})\) such that \(\mathbf{u}\mathbf{u}^\dagger = 0\).
If \(\ell \leq n-k-1\), then there exists a vector \(\mathbf{w} \in \mathcal{C}^{\perp_{\rm H}} \setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C})\) such that \(\mathbf{w} \mathbf{w}^\dagger \neq 0\).
We define a quantity \[\Delta := \dim(\mathcal{C}^{\perp_{\rm H}}) - \dim({\mathrm{Hull}}_{\rm H}(\mathcal{C})) = n - k - \ell.\]
Since \(\ell = n-k-1\), we have \(\Delta = 1\). Let \(\mathbf{u}\) be any vector in \(\mathcal{C}^{\perp_{\rm H}} \setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C})\). By definition, \({\mathrm{Hull}}_{\rm H}(\mathcal{C})\) consists of vectors in \(\mathcal{C}^{\perp_{\rm H}}\) that are Hermitian orthogonal to the entire space \(\mathcal{C}^{\perp_{\rm H}}\). Since \(\Delta=1\) and \(\mathbf{u} \in \mathcal{C}^{\perp_{\rm H}} \setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C})\), we can express \(\mathcal{C}^{\perp_{\rm H}}\) as the direct sum \[\begin{align} \label{eq46direct-sum1} \mathcal{C}^{\perp_{\rm H}} = {\mathrm{Hull}}_{\rm H}(\mathcal{C}) \oplus \langle \mathbf{u} \rangle, \end{align}\tag{12}\] where \(\langle \mathbf{u} \rangle\) denotes the \(1\)-dimensional subspace spanned by \(\mathbf{u}\). Hence, any vector \(\mathbf{x} \in \mathcal{C}^{\perp_{\rm H}}\) can be uniquely decomposed as \(\mathbf{x} = c\mathbf{u} + \mathbf{h}\) for some element \(c \in \mathbb{F}_{q^2}\) and a vector \(\mathbf{h} \in {\mathrm{Hull}}_{\rm H}(\mathcal{C})\). For a contradiction, let \(\mathbf{u}\mathbf{u}^\dagger = 0\). Since \({\boldsymbol{u}}\in \mathcal{C}^{\perp_{\rm H}}\) and \({\boldsymbol{h}}\in {\mathrm{Hull}}_{\rm H}(\mathcal{C})\), it is clear that \({\boldsymbol{u}}{\boldsymbol{h}}^\dagger=0\). Therefore, \(\mathbf{u}(c\mathbf{u} + \mathbf{h})^\dagger=0\) for any \(c \in \mathbb{F}_{q^2}\), which implies that \(\mathbf{u}\) is Hermitian orthogonal to every vector \(\mathbf{x} \in \mathcal{C}^{\perp_{\rm H}}\). Since \(\mathbf{u} \in {\mathrm{Hull}}_{\rm H}(\mathcal{C})\) obviously contradicts \(\mathbf{u} \in \mathcal{C}^{\perp_{\rm H}} \setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C})\), we conclude that \(\mathbf{u}\mathbf{u}^\dagger \neq 0\).
Since \(\ell < n-k-1\), we have \(\Delta = n - k - \ell \geq 2\). Hence, there exist at least two vectors \(\mathbf{v}_1, \mathbf{v}_2 \in \mathcal{C}^{\perp_{\rm H}} \setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C})\) such that \(\mathbf{v}_1, \mathbf{v}_2\), and \({\mathrm{Hull}}_{\rm H}(\mathcal{C})\) are linearly independent. We consider a linear combination \(\mathbf{u} = x\mathbf{v}_1 + y\mathbf{v}_2\), with \(x, y \in \mathbb{F}_{q^2}\), and confirm that \[\begin{align} \label{eq46uu111} \mathbf{u}\mathbf{u}^\dagger &= (x\mathbf{v}_1 + y\mathbf{v}_2)(x\mathbf{v}_1 + y\mathbf{v}_2)^\dagger = x^{q+1} \, \mathbf{v}_1\mathbf{v}_1^\dagger + x \, y^q \, \mathbf{v}_1\mathbf{v}_2^\dagger + x^q \, y \, \mathbf{v}_2\mathbf{v}_1^\dagger + y^{q+1} \, \mathbf{v}_2\mathbf{v}_2^\dagger. \end{align}\tag{13}\] Let \(\alpha = \mathbf{v}_1\mathbf{v}_1^\dagger\), \(\beta = \mathbf{v}_1\mathbf{v}_2^\dagger\), and \(\gamma = \mathbf{v}_2\mathbf{v}_2^\dagger\). Hence, \(\alpha, \gamma \in \mathbb{F}_q\) and \(\beta \in \mathbb{F}_{q^2}\). Since \(\mathbf{v}_2\mathbf{v}_1^\dagger = \beta^q\), we can use 13 to infer that \(\mathbf{u}\mathbf{u}^\dagger = \alpha \, x^{q+1} + \beta \, x \, y^q + \beta^q \, x^q \, y + \gamma \, y^{q+1}\). To find a vector satisfying \(\mathbf{u}\mathbf{u}^\dagger = 0\), it suffices to solve the following homogeneous polynomial equation of degree \(q+1\). \[\begin{align} \label{eq46homogeneous} \alpha \, x^{q+1} + \beta \, x \, y^q + \beta^q \, x^q \, y + \gamma \, y^{q+1} = 0 \end{align}\tag{14}\] in variables \(x\) and \(y\) over \(\mathbb{F}_{q^2}\), with the evaluation being restricted to the subfield \(\mathbb{F}_q\). We verify that 14 always admits a non-trivial solution \((x_0, y_0) \in (\mathbb{F}_{q^2}^*)^2\). By setting \((x, y)\) to be this non-trivial solution \((x_0, y_0)\), we immediately obtain a vector \(\mathbf{u} = x_0 \mathbf{v}_1 + y_0 \mathbf{v}_2\) that satisfies \(\mathbf{u}\mathbf{u}^\dagger = 0\). Furthermore, since \(\mathbf{v}_1\) and \(\mathbf{v}_2\) are linearly independent modulo \({\mathrm{Hull}}_{\rm H}(\mathcal{C})\), their non-trivial linear combination cannot belong to \({\mathrm{Hull}}_{\rm H}(\mathcal{C})\). This ensures that \(\mathbf{u} \in \mathcal{C}^{\perp_{\rm H}} \setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C})\).
By extending the direct sum decomposition in 12 to \(\mathcal{C}^{\perp_{\rm H}} = {\mathrm{Hull}}_{\rm H}(\mathcal{C}) \oplus \text{span}\{\mathbf{v}_{\ell+1}, \mathbf{v}_{\ell+2}, \dots, \mathbf{v}_{n-k}\}\), the third assertion can be proved similarly by contradiction, where the \(n-k-\ell\) vectors \(\mathbf{v}_{\ell+1}, \mathbf{v}_{\ell+2}, \dots, \mathbf{v}_{n-k} \in \mathcal{C}^{\perp_{\rm H}} \setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C})\) are linearly independent. In short, if \(\mathbf{w}\mathbf{w}^\dagger = 0\) holds for all \(\mathbf{w} \in \mathcal{C}^{\perp_{\rm H}} \setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C})\), then \(\mathbf{x} \mathbf{x}^\dagger = 0\) for all \(\mathbf{x} \in \mathcal{C}^{\perp_{\rm H}}\). By Lemma 7, the code \(\mathcal{C}^{\perp_{\rm H}}\) is Hermitian self-orthogonal, that is, \(\mathcal{C}^{\perp_{\rm H}} \subseteq \mathcal{C}\) and, hence, \(\ell = n-k\), contradicting the hypothesis \(\ell \leq n-k-1\).
The proof is now complete.
Using Lemma 8, we can establish necessary and sufficient condition for the existence of extension vectors that either preserve or increase the Hermitian hull dimension.
Theorem 4. If \(\mathcal{C}\) is an \([n,k]_{q^2}\) linear code with \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C})) = \ell\), then the following assertions hold.
There exists a vector \(\mathbf{u}_1 \in \mathbb{F}_{q^2}^n \setminus \mathcal{C}\) and an element \(a_1 \in \mathbb{F}_{q^2}^*\) such that \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}(\mathbf{u}_1, a_1))) = \ell\) if and only if \(\ell < n-k\) and \((q, \ell)\neq (2,n-k-1)\).
There exists a vector \(\mathbf{u}_2 \in \mathbb{F}_{q^2}^n \setminus \mathcal{C}\) and an element \(a_2 \in \mathbb{F}_{q^2}^*\) such that \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}(\mathbf{u}_2, a_2))) = \ell+1\) if and only if \(\ell < n-k\).
We prove the necessity and then the sufficiency, each time for both assertions.
For the necessary conditions, let us assume the existence of \(\mathbf{u}_i \in \mathbb{F}_{q^2}^n \setminus \mathcal{C}\) and \(a_i \in \mathbb{F}_{q^2}^*\) such that \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}(\mathbf{u}_i, a_i))) \in \{\ell, \ell+1\}\) for \(i \in \{1, 2\}\). In both assertions, the new Hermitian hull dimension is \(\geq \ell\). For a contradiction, suppose that \(\ell = n-k\), which implies that \(\mathcal{C}^{\perp_{\rm H}} \subseteq \mathcal{C}\). For either statement under consideration, \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}(\mathbf{u}_i, a_i))) \geq \ell = n-k\). Since \(\dim(\mathcal{C}(\mathbf{u}_i, a_i)^{\perp_{\rm H}})=n-k\) and \({\mathrm{Hull}}_{\rm H}(\mathcal{C}(\mathbf{u}_i, a_i)) \subseteq \mathcal{C}(\mathbf{u}_i, a_i)^{\perp_{\rm H}}\), then \(\mathcal{C}(\mathbf{u}_i, a_i)^{\perp_{\rm H}} \subseteq \mathcal{C}(\mathbf{u}_i, a_i)\). We recall that any codeword in \(\mathcal{C}(\mathbf{u}_i, a_i)^{\perp_{\rm H}}\) takes the form \((\mathbf{x}, \, -a_i^{-q} \, \mathbf{x} \, \mathbf{u}_i^\dagger)\), with \(\mathbf{x} \in \mathcal{C}^{\perp_{\rm H}}\). Since \(\mathcal{C}(\mathbf{u}_i, a_i)^{\perp_{\rm H}} \subseteq \mathcal{C}(\mathbf{u}_i, a_i)\), the vector \((\mathbf{x}, \, -a_i^{-q}\mathbf{x}\mathbf{u}_i^\dagger)\) can also be generated by \(\mathcal{C}(\mathbf{u}_i, a_i)\). In other words, there exist \(\mathbf{c} \in \mathcal{C}\) and \(b \in \mathbb{F}_{q^2}\) such that \[\mathbf{x} = \mathbf{c} + b \, \mathbf{u}_iand-a_i^{-q} \, \mathbf{x} \, \mathbf{u}_i^\dagger = a_i \, b.\] Since \(\mathbf{x} \in \mathcal{C}^{\perp_{\rm H}} \subseteq \mathcal{C}\) and \(\mathbf{c} \in \mathcal{C}\), we infer that \(b \, \mathbf{u}_i = \mathbf{x} - \mathbf{c} \in \mathcal{C}\). However, \(\mathbf{u}_i \in \mathbb{F}_{q^2}^n \setminus \mathcal{C}\) implies \(b = 0\). Consequently, the last coordinate is always \(-a_i^{-q} \, \mathbf{x} \, \mathbf{u}_i^\dagger=0 \, a_i = 0\), leading to \(\mathbf{x} \, \mathbf{u}_i^\dagger = 0\) for all \(\mathbf{x} \in \mathcal{C}^{\perp_{\rm H}}\). Hence, \(\mathbf{u}_i \in (\mathcal{C}^{\perp_{\rm H}})^{\perp_{\rm H}} = \mathcal{C}\), which is a contradiction. Thus, \(\ell \leq n-k-1\), which means that \(\ell < n-k\). We are done with the necessary condition of \(\ell < n-k\) for both statements.
To establish the necessity of the condition \((q, \ell) \neq (2, n-k-1)\) in the first assertion, we assume towards a contradiction that \(\ell < n-k\), \(q = 2\), and \(\ell = n-k-1\). Let there be \(\mathbf{u}_1 \in \mathbb{F}_{q^2}^n \setminus \mathcal{C}\) and \(a_1 \in \mathbb{F}_{q^2}^*\) such that \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}(\mathbf{u}_1, a_1))) = \ell\). Based on Statement 1 and Theorem 3, we can further assume, without loss of generality, that \(\mathbf{u}_1 \in \mathcal{C}^{\perp_{\rm H}} \setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C})\). Since \(\ell = n-k-1\), we have \(\dim(\mathcal{C}^{\perp_{\rm H}}) - \dim({\mathrm{Hull}}_{\rm H}(\mathcal{C})) = 1\). It then follows from Lemma 8 Item 1) that \(0\neq \mathbf{u}_1\mathbf{u}_1^\dagger \in \mathbb{F}_2^*\) for any \({\boldsymbol{u}}_1\in \mathcal{C}^{\perp_{\rm H}} \setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C})\). This forces \(\mathbf{u}_1\mathbf{u}_1^\dagger = 1\). For any \(a_1 \in \mathbb{F}_4^*\), however, its \((q+1)^{\rm th}\) power is uniquely determined as \(a_1^{2+1} = a_1^3 = 1\). Hence, \(\mathbf{u}_1\mathbf{u}_1^\dagger + a_1^{q+1} = 1 + 1 = 0\) always holds over \(\mathbb{F}_2\). By Theorem 3, we get \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}(\mathbf{u}_1, a_1))) = \ell+1\) for any \({\boldsymbol{u}}_1\in \mathcal{C}^{\perp_{\rm H}}\setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C})\) and \(a_1\in \mathbb{F}_4^*\), which is a contradiction. This completes the justification that the condition \((q, \ell) \neq (2, n-k-1)\) is necessary.
On the sufficient conditions, we first work on the condition for the second assertion before moving on to the first assertion. For the second assertion, since \(\ell < n-k\), we have \(\dim(\mathcal{C}^{\perp_{\rm H}}) - \dim({\mathrm{Hull}}_{\rm H}(\mathcal{C})) = n - k - \ell \geq 1\). By Lemma 8 Item 3), there must exist a vector \(\mathbf{u}_2 \in \mathcal{C}^{\perp_{\rm H}} \setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C})\subseteq \mathbb{F}_{q^2}^n\setminus \mathcal{C}\) such that \(\mathbf{u}_2\mathbf{u}_2^\dagger \neq 0\), which implies \(-\mathbf{u}_2\mathbf{u}_2^\dagger \in \mathbb{F}_q^*\). For any finite field \(\mathbb{F}_{q^2}\), the \((q+1)^{\rm th}\) power map from \(\mathbb{F}_{q^2}^*\) to \(\mathbb{F}_q^*\) is surjective. Hence, there exists at least one element \(a_2 \in \mathbb{F}_{q^2}^*\) such that \((a_2)^{q+1} = -\mathbf{u}_2 \mathbf{u}_2^\dagger\), which means that \(\mathbf{u}_2\mathbf{u}_2^\dagger + (a_2)^{q+1} = 0\). Based on Theorem 3, we get \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}(\mathbf{u}_2,a_2))) = \ell+1\).
For the first assertion, we assume \(\ell < n-k\) and \((q, \ell) \neq (2, n-k-1)\). We select \(\mathbf{u}_1 \in (\mathcal{C}^{\perp_{\rm H}} \setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C})) \subseteq (\mathbb{F}_{q^2}^n\setminus \mathcal{C})\) and \(a_1 \in \mathbb{F}_{q^2}^*\) such that \(\mathbf{u}_1\mathbf{u}_1^\dagger + (a_1)^{q+1} \neq 0\). We continue our analysis by considering two cases, namely when \(q>2\) and \(q=2\).
\(q > 2\). We choose the same vector \(\mathbf{u}_1 = \mathbf{u}_2 \in \mathcal{C}^{\perp_{\rm H}} \setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C})\) as in the proof of the second assertion earlier, where \(\mathbf{u}_1\mathbf{u}_1^\dagger \neq 0\). Since the subfield \(\mathbb{F}_q^*\) contains \(q-1 \geq 2\) nonzero elements, and the \((q+1)^{\rm th}\) power map is surjective, there exists at least one element \(a_1 \in \mathbb{F}_{q^2}^*\) such that \((a_1)^{q+1} \neq -\mathbf{u}_1 \mathbf{u}_1^\dagger\), ensuring \(\mathbf{u}_1\mathbf{u}_1^\dagger + a_1^{q+1} \neq 0\).
\(q = 2\) and \(n - k - \ell \geq 2\). Since \(\dim(\mathcal{C}^{\perp_{\rm H}}) - \dim({\mathrm{Hull}}_{\rm H}(\mathcal{C})) \geq 2\), we know from Lemma 8 Item 2) that there exists a vector \(\mathbf{u}_1 \in \mathcal{C}^{\perp_{\rm H}}\setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C})\) such that \(\mathbf{u}_1\mathbf{u}_1^\dagger = 0\). For any \(a_1 \in \mathbb{F}_4^*\), its \((q+1)^{\rm th}\) power is uniquely determined as \((a_1)^{2+1} = (a_1)^3 = 1\). Consequently, we obtain \(\mathbf{u}_1\mathbf{u}_1^\dagger + (a_1)^{q+1} = 0 + 1 = 1 \neq 0\).
In both cases, we have successfully found \(\mathbf{u}_1 \in \mathcal{C}^{\perp_{\rm H}} \setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C})\) and \(a_1 \in \mathbb{F}_{q^2}^*\) satisfying \(\mathbf{u}_1\mathbf{u}_1^\dagger + (a_1)^{q+1} \neq 0\). Thus, by Theorem 3, we conclude that \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}(\mathbf{u}_1,a_1))) = \ell\).
Applying the sequence of extensions \(\mathcal{C}_i = \mathcal{C}_{i-1}({\boldsymbol{u}}_i, a_i)\) with \(i\geq 0\) from Theorem 3 Item 1) does not yield a Hermitian self-orthogonal code for any choice of \({\boldsymbol{u}}_i\) and \(a_i\), unless the initial code \(\mathcal{C}_0=\mathcal{C}\) with \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}))=\ell\) is already Hermitian self-orthogonal. Indeed, in each iterative step, the code dimension always increases by \(1\) while the Hermitian hull dimension increases by at most \(1\). Thus, the dimensional gap \[\begin{align} \label{eq46gap} \Delta_i = \dim(\mathcal{C}_i) - \dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}_i)) \end{align}\tag{15}\] is a non-decreasing sequence throughout the process. If \(\Delta_0 > 0\) initially, then after \(m\) iterations we have \(\Delta_m \geq \Delta_0 > 0\). Hence, it is impossible to achieve the Hermitian self-orthogonal condition \(\Delta_m = 0\) through this iterative construction.
Conversely, by meticulously controlling the gap sequence \(\Delta_i\) in 15 , there are precise iterative pathways to construct \([n+m, k+m]_{q^2}\) linear codes with a \((k+m-1)\)-dimensional Hermitian hull. Such codes have the second largest possible dimension of the Hermitian hull and some references, e.g., [12], [28]–[30], call them codes with large Hermitian hulls or almost Hermitian self-orthogonal codes.
We formalize these iterative structural conditions as a corollary.
Corollary 1. Let \(\mathcal{C}_0\) be an \([n,k]_{q^2}\) code. If \(\mathcal{C}_i = \mathcal{C}_{i-1}({\boldsymbol{u}}_i, a_i)\) for \(1 \leq i \leq m\), where \({\boldsymbol{u}}_i \in \mathbb{F}_{q^2}^{n+i-1} \setminus \mathcal{C}_{i-1}\) and \(a_i \in \mathbb{F}_{q^2}^*\), form a sequence of iteratively generalized extended codes, then \(\mathcal{C}_m\) is an \([n+m, k+m]_{q^2}\) code and the following statements hold.
The code \(\mathcal{C}_m\) is Hermitian self-orthogonal if and only if \(\mathcal{C}_0\) is Hermitian self-orthogonal and the vector \({\boldsymbol{u}}_i \in \mathcal{C}_{i-1}^{\perp_{\rm H}} \setminus \mathcal{C}_{i-1}\) is such that \((a_i)^{q+1} = -{\boldsymbol{u}}_i{\boldsymbol{u}}_i^\dagger\) for all \(1 \leq i \leq m\).
The code \(\mathcal{C}_m\) has a \((k+m-1)\)-dimensional Hermitian hull if and only if \({\boldsymbol{u}}_i \in \mathcal{C}_{i-1}^{\perp_{\rm H}} \setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C}_{i-1})\) for all \(1 \leq i \leq m\) and exactly one of the following conditions holds.
The code \(\mathcal{C}_0\) is Hermitian self-orthogonal and there exists exactly one index \(j \in \{1, 2, \dots, m\}\) such that \((a_j)^{q+1} \neq -{\boldsymbol{u}}_j{\boldsymbol{u}}_j^\dagger\) while \((a_i)^{q+1} = -{\boldsymbol{u}}_i{\boldsymbol{u}}_i^\dagger\) for all \(i \neq j\).
The code \(\mathcal{C}_0\) is such that \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}_0)) = k-1\) and \((a_i)^{q+1} = -{\boldsymbol{u}}_i{\boldsymbol{u}}_i^\dagger\) for all \(1 \leq i \leq m\).
Let \(\Delta_i = \dim(\mathcal{C}_i) - \dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}_i))\) denote the dimensional gap at the \(i^{\rm th}\) step. Since \(\dim(\mathcal{C}_i) = \dim(\mathcal{C}_{i-1}) + 1\), the increment \(\Delta_i - \Delta_{i-1}\) depends only on the variation of the Hermitian hull dimension. By Statement 1, whenever an extension vector lies in \((\mathcal{C}_{i-1}+\mathcal{C}_{i-1}^{\perp_{\rm H}})\setminus\mathcal{C}_{i-1}\), we may replace it by a representative in \(\mathcal{C}_{i-1}^{\perp_{\rm H}}\setminus{\mathrm{Hull}}_{\rm H}(\mathcal{C}_{i-1})\) without changing the resulting generalized extended code. Three rules of increment can therefore be stated for these representatives.
\(\Delta_i - \Delta_{i-1} = 0\) if and only if \({\boldsymbol{u}}_i \in \mathcal{C}_{i-1}^{\perp_{\rm H}} \setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C}_{i-1})\) and \((a_i)^{q+1} = -{\boldsymbol{u}}_i{\boldsymbol{u}}_i^\dagger\).
\(\Delta_i - \Delta_{i-1} = 1\) if and only if \({\boldsymbol{u}}_i \in \mathcal{C}_{i-1}^{\perp_{\rm H}} \setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C}_{i-1})\) and \((a_i)^{q+1} \neq -{\boldsymbol{u}}_i{\boldsymbol{u}}_i^\dagger\).
For any other possible choices of \({\boldsymbol{u}}_i\in \mathbb{F}_{q^2}^{n+i-1} \setminus \mathcal{C}_{i-1}\), the dimension \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}_i))\) either remains unchanged or decreases, leading to \(\Delta_i - \Delta_{i-1} \geq 2\).
Thus, the sequence \((\Delta_0, \Delta_1, \dots, \Delta_m)\) is non-decreasing. We now proceed to justify the statements listed above.
The code \(\mathcal{C}_m\) is Hermitian self-orthogonal if and only if \(\Delta_m = 0\). Since \(\Delta_i\) is a non-decreasing sequence of non-negative integers, the condition \(\Delta_m = 0\) is equivalent to \(\Delta_0 = 0\) and \(\Delta_i -\Delta_{i-1} = 0\) for all \(1 \leq i \leq m\). On the one hand, the initial condition \(\Delta_0 = 0\) holds if and only if \(\mathcal{C}_0\) is Hermitian self-orthogonal. On the other hand, since \(\mathcal{C}_{i-1}\) inherits the Hermitian self-orthogonality, the condition \(\Delta_i - \Delta_{i-1} = 0\) requires \({\boldsymbol{u}}_i \in \mathcal{C}_{i-1}^{\perp_{\rm H}} \setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C}_{i-1})= \mathcal{C}_{i-1}^{\perp_{\rm H}} \setminus \mathcal{C}_{i-1}\) and \((a_i)^{q+1} = -{\boldsymbol{u}}_i{\boldsymbol{u}}_i^\dagger\) for all \(1 \leq i \leq m\).
The code \(\mathcal{C}_m\) has a \((k+m-1)\)-dimensional Hermitian hull if and only if \(\Delta_m = 1\), which is further equivalent to exactly one of the following two cases.
\(\Delta_0 = 0\). The code \(\mathcal{C}_0\) is Hermitian self-orthogonal and \(\Delta_j - \Delta_{j-1} = 1\) for exactly one index \(j\), with \(\Delta_i - \Delta_{i-1} = 0\) for all \(i \neq j\). By above increment rules, this claim holds if and only if \((a_j)^{q+1} \neq -{\boldsymbol{u}}_j{\boldsymbol{u}}_j^\dagger\) for exactly one index \(j\in \{1,2,\ldots,m\}\) and \((a_i)^{q+1} = -{\boldsymbol{u}}_i{\boldsymbol{u}}_i^\dagger\) for all \(1\leq i \leq m\) such that \(i \neq j\).
\(\Delta_0 = 1\). Hence, \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}_0)) = k-1\) and \(\Delta_i - \Delta_{i-1} = 0\) for all \(1 \leq i \leq m\). This holds if and only if \((a_i)^{q+1} = -{\boldsymbol{u}}_i{\boldsymbol{u}}_i^\dagger\) for all \(1 \leq i \leq m\).
In addition, to ensure that \(\Delta_i - \Delta_{i-1} \leq 1\) for all \(1 \leq i \leq m\), the added vectors satisfy \({\boldsymbol{u}}_i \in \mathcal{C}_{i-1}^{\perp_{\rm H}} \setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C}_{i-1})\) in both cases. The second statement is, thus, justified.
This section studies the Hermitian dual distances of generalized extended codes \(\mathcal{C}({\boldsymbol{u}},a)\). In Subsection 4.1, we characterize the Hermitian dual distance of \(\mathcal{C}({\boldsymbol{u}},a)\) and give explicit conditions under which it increases. Some of these conditions are necessary and sufficient. We derive conditions that increase the Hermitian dual distance and the Hermitian hull dimension simultaneously in Subsection 4.2.
We keep the notation \(\mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}})=\{{\boldsymbol{e}}\in \mathcal{C}^{\perp_{\rm H}}:~{{\rm{wt}}}({\boldsymbol{e}})=d^{\perp_{\rm H}}\}\) and give an easy characterization on the minimum distance of \(\mathcal{C}({\boldsymbol{u}},a)^{\perp_{\rm H}}\) based on the minimum distance of \(\mathcal{C}^{\perp_{\rm H}}\).
Theorem 5. Let \(\mathcal{C}\) be an \([n,k,d]_{q^2}\) linear code with Hermitian dual distance \(d^{\perp_{\rm H}}\). For any \(\mathbf{u}\in \mathbb{F}_{q^2}^n\setminus \mathcal{C}\) and \(a\in \mathbb{F}_{q^2}^*\), we have \[\begin{align} d\bigl(\mathcal{C}({\boldsymbol{u}},a)^{\perp_{\rm H}}\bigr)= \begin{cases} d^{\perp_{\rm H}}, & if {\boldsymbol{e}}{\boldsymbol{u}}^\dagger=0~\text{for~some~} {\boldsymbol{e}}\in \mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}}), \\d^{\perp_{\rm H}}+1, & if{\boldsymbol{e}}{\boldsymbol{u}}^\dagger\neq 0~\text{for~any~} {\boldsymbol{e}}\in \mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}}). \end{cases} \end{align}\]
We use 4 to derive \[\mathcal{C}({\boldsymbol{u}},a)^{\perp_{\rm H}}=\{{\boldsymbol{e}}_{({\boldsymbol{u}},a)}=({\boldsymbol{e}}, -a^{-q}{\boldsymbol{e}}{\boldsymbol{u}}^\dagger):~{\boldsymbol{e}}\in \mathcal{C}^{\perp_{\rm H}} \},\] which implies that \[\begin{align} {{\rm{wt}}}({\boldsymbol{e}}_{({\boldsymbol{u}},a)}) &= \begin{cases} {{\rm{wt}}}({\boldsymbol{e}}), & if{\boldsymbol{e}}{\boldsymbol{u}}^\dagger=0, \\ {{\rm{wt}}}({\boldsymbol{e}})+1, & if{\boldsymbol{e}}{\boldsymbol{u}}^\dagger \neq 0, \end{cases} and\\ d\bigl(\mathcal{C}({\boldsymbol{u}},a)^{\perp_{\rm H}}\bigr) &= \begin{cases} d^{\perp_{\rm H}}, & if there exists{\boldsymbol{e}}\in \mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}})such that{\boldsymbol{e}}{\boldsymbol{u}}^\dagger=0, \\d^{\perp_{\rm H}}+1 & for all{\boldsymbol{e}}\in \mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}})for which{\boldsymbol{e}}{\boldsymbol{u}}^\dagger\neq 0. \end{cases} \end{align}\] This completes the proof.
Remark 5. Before Statement 1, we have written \({\boldsymbol{u}}={\boldsymbol{c}}_i+{\boldsymbol{e}}_i\) with \({\boldsymbol{c}}_i\in \mathcal{C}\) and \({\boldsymbol{e}}_i\in \mathcal{C}^{\perp_{\rm H}}\) when \({\boldsymbol{u}}\in\mathcal{C}+\mathcal{C}^{\perp_{\rm H}}\). For any \({\boldsymbol{e}}\in \mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}})\), we have \[{\boldsymbol{e}}{\boldsymbol{u}}^\dagger = {\boldsymbol{e}}({\boldsymbol{c}}_i+{\boldsymbol{e}}_i)^\dagger = {\boldsymbol{e}}{\boldsymbol{c}}_i^\dagger+{\boldsymbol{e}}{\boldsymbol{e}}_i^\dagger = {\boldsymbol{e}}{\boldsymbol{e}}_i^\dagger.\] Hence, the condition \({\boldsymbol{e}}{\boldsymbol{u}}^\dagger=0\) in Theorem 5 depends only on the component \({\boldsymbol{e}}_i \in \mathcal{C}^{\perp_{\rm H}}\) of \({\boldsymbol{u}}\). Furthermore, if \({\boldsymbol{e}}\in {\mathrm{Hull}}_{\rm H}(\mathcal{C})\), then \({\boldsymbol{e}}\in \mathcal{C}\) and, therefore, the choice of \({\boldsymbol{e}}\) does not produce a new nontrivial representative modulo \(\mathcal{C}\). This fact reinforces our motivation for simplifying \({\boldsymbol{u}}\in\mathcal{C}+\mathcal{C}^{\perp_{\rm H}}\) to \({\boldsymbol{u}}\in\mathcal{C}^{\perp_{\rm H}}\setminus{\mathrm{Hull}}_{\rm H}(\mathcal{C})\) in Statement 1.
The next two theorems give necessary and sufficient conditions for the Hermitian dual distance of \(\mathcal{C}({\boldsymbol{u}},a)\) to increase by \(1\) compared with that of \(\mathcal{C}\). Combined with Statement 1 and Remark 5, these conditions are stated with respect to the two search spaces \(\mathbb{F}_{q^2}^n\setminus\mathcal{C}\) and \(\mathcal{C}^{\perp_{\rm H}}\setminus{\mathrm{Hull}}_{\rm H}(\mathcal{C})\), respectively. By Theorem 5, the Hermitian dual distance of \(\mathcal{C}({\boldsymbol{u}},a)\) is either \(d^{\perp_{\rm H}}\) or \(d^{\perp_{\rm H}}+1\). Hence, by taking the negations of the following two criteria, we immediately obtain necessary and sufficient conditions for \(d\bigl((\mathcal{C}({\boldsymbol{u}},a))^{\perp_{\rm H}}\bigr) =d^{\perp_{\rm H}}\).
Theorem 6. Let \(\mathcal{C}\) be an \([n,k]_{q^2}\) linear code with Hermitian dual distance \(d^{\perp_{\rm H}}\). For any \(a\in \mathbb{F}_{q^2}^*\), there is a vector \(\mathbf{u}\in \mathbb{F}_{q^2}^n\setminus \mathcal{C}\) such that \(d\bigl((\mathcal{C}(\mathbf{u},a))^{\perp_{\rm H}}\bigr)=d^{\perp_{\rm H}}+1\) if and only if there exists a maximal subcode \(S\subsetneq \mathcal{C}^{\perp_{\rm H}}\) such that \[S\cap \mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}})=\emptyset.\]
By Theorem 5, the condition \(d\bigl((\mathcal{C}(\mathbf{u},a))^{\perp_{\rm H}}\bigr)=d^{\perp_{\rm H}}+1\) is equivalent to \(\mathbf{e}\mathbf{u}^\dagger\neq 0\) for all \(\mathbf{e}\in \mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}})\). We define the set \[S_{\mathbf{u}} := \{\mathbf{x}\in \mathcal{C}^{\perp_{\rm H}}:~\mathbf{x}\mathbf{u}^\dagger=0\}.\] Since \(\mathbf{u}\notin \mathcal{C}=(\mathcal{C}^{\perp_{\rm H}})^{\perp_{\rm H}}\), there exists \({\boldsymbol{x}}\in \mathcal{C}^{\perp_{\rm H}}\) such that \(\mathbf{x}\mathbf{u}^\dagger\neq 0\). Applying Lemma 6 to the code \(\mathcal{C}^{\perp_{\rm H}}\), we confirm that \(S_{\boldsymbol{u}}\) is a maximal subcode of \(\mathcal{C}^{\perp_{\rm H}}\). The above non-orthogonality condition \(\mathbf{e}\mathbf{u}^\dagger\neq 0\) is equivalent to \(S_{\mathbf{u}}\cap \mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}})=\emptyset\).
Conversely, let us assume that there exists a maximal subcode \(S\subsetneq \mathcal{C}^{\perp_{\rm H}}\) such that \(S \cap \mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}})=\emptyset\). Since \(S\) has codimension \(1\) in \(\mathcal{C}^{\perp_{\rm H}}\), there exists a nonzero linear functional \(f\) from \(\mathcal{C}^{\perp_{\rm H}}\) to \(\mathbb{F}_{q^2}\) with \(\ker(f)=S\). Now, for each \(\mathbf{u}\in \mathbb{F}_{q^2}^n\), we define the map \[\phi:\mathcal{C}^{\perp_{\rm H}} \to \mathbb{F}_{q^2}, sending\mathbf{x} \mapsto \mathbf{x} \mathbf{u}^\dagger.\] It is straightforward to verify that \(\phi\) is an \(\mathbb{F}_{q^2}\)-linear functional on \(\mathcal{C}^{\perp_{\rm H}}\). Hence, we obtain a linear map \[\Phi:~\mathbb{F}_{q^2}^n \to {\mathrm{Hom}}(\mathcal{C}^{\perp_{\rm H}},\mathbb{F}_{q^2}) , sending\mathbf{u} \mapsto \phi.\] Since the Hermitian inner product is nondegenerate, \[\ker(\Phi) = \{\mathbf{u}\in \mathbb{F}_{q^2}^n:~\phi=0\} = (\mathcal{C}^{\perp_{\rm H}})^{\perp_{\rm H}} = \mathcal{C}.\] By the first isomorphism theorem, we get \(\mathbb{F}_{q^2}^n/\mathcal{C}\cong \operatorname{Im}(\Phi)\). Due to the fact that \[\dim(\mathbb{F}_{q^2}^n/\mathcal{C})=n-k =\dim(\mathcal{C}^{\perp_{\rm H}})= \dim\bigl({\mathrm{Hom}}(\mathcal{C}^{\perp_{\rm H}},\mathbb{F}_{q^2})\bigr),\] we have \(\operatorname{Im}(\Phi) = {\mathrm{Hom}}(\mathcal{C}^{\perp_{\rm H}},\mathbb{F}_{q^2})\) and, hence, \(\mathbb{F}_{q^2}^n/\mathcal{C}\cong {\mathrm{Hom}}(\mathcal{C}^{\perp_{\rm H}},\mathbb{F}_{q^2})\). We can also verify the existence of \(\mathbf{u}\in \mathbb{F}_{q^2}^n\) such that \(f=\phi\), that is, \[f(\mathbf{x})=\phi({\boldsymbol{x}})=\mathbf{x}\mathbf{u}^\daggerfor every\mathbf{x}\in \mathcal{C}^{\perp_{\rm H}}.\] Since \(f \neq 0\), we have \(\phi\neq 0\) and \(\mathbf{u}\notin \ker(\Phi)=\mathcal{C}\). Thus, we have found a vector \({\boldsymbol{u}}\in \mathbb{F}_{q^2}^n\setminus \mathcal{C}\) such that \[\begin{align} S=\ker(f)=\{\mathbf{x}\in \mathcal{C}^{\perp_{\rm H}} \, : \, \mathbf{x}\mathbf{u}^\dagger=0\}. \end{align}\] By the assumption that \(S\cap \mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}}) = \emptyset\), we get \(\mathbf{e}\mathbf{u}^\dagger\neq 0\) for each \(\mathbf{e}\in \mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}})\). To complete the proof, we use Theorem 5 to establish the desired conclusion that \(d\bigl((\mathcal{C}(\mathbf{u},a))^{\perp_{\rm H}}\bigr) = d^{\perp_{\rm H}}+1\) for every \(a\in \mathbb{F}_{q^2}^*\).
Theorem 7. Let \(\mathcal{C}\) be an \([n,k]_{q^2}\) linear code with Hermitian dual distance \(d^{\perp_{\rm H}}\). For any \(a\in \mathbb{F}_{q^2}^*\), there is a vector \(\mathbf{u}\in \mathcal{C}^{\perp_{\rm H}}\setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C})\) such that \(d\bigl((\mathcal{C}(\mathbf{u},a))^{\perp_{\rm H}}\bigr)=d^{\perp_{\rm H}}+1\) if and only if there exists a maximal subcode \(S\subsetneq \mathcal{C}^{\perp_{\rm H}}\) such that \[{\mathrm{Hull}}_{\rm H}(\mathcal{C})\subseteq SandS\cap \mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}})=\emptyset.\]
We assume that there exists \(\mathbf{u}\in \mathcal{C}^{\perp_{\rm H}}\setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C})\) such that \(d\bigl((\mathcal{C}(\mathbf{u},a))^{\perp_{\rm H}}\bigr)=d^{\perp_{\rm H}}+1\). Let \[S_{\mathbf{u}} := \{\mathbf{x}\in \mathcal{C}^{\perp_{\rm H}} \, : \, \mathbf{x}\mathbf{u}^\dagger=0\}.\] Since \(\mathbf{u}\notin {\mathrm{Hull}}_{\rm H}(\mathcal{C})\subseteq \mathcal{C}\), it is clear that \(\mathbf{u}\notin \mathcal{C}\). Hence, there exists \({\boldsymbol{x}}\in \mathcal{C}^{\perp_{\rm H}}\) such that \(\mathbf{x}\mathbf{u}^\dagger\neq 0\). By Lemma 6, we know that \(S_{\boldsymbol{u}}\) is a maximal subcode of \(\mathcal{C}^{\perp_{\rm H}}\) and \(S_{\mathbf{u}}\cap \mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}})=\emptyset\). For any \(\mathbf{h}\in {\mathrm{Hull}}_{\rm H}(\mathcal{C})\), since \(\mathbf{h}\in {\mathrm{Hull}}_{\rm H}(\mathcal{C})\subseteq \mathcal{C}\) and \(\mathbf{u} \in \mathcal{C}^{\perp_{\rm H}}\), we have \(\mathbf{h}\mathbf{u}^\dagger=0\), which implies that \(\mathbf{h}\in S_{\mathbf{u}}\). Therefore, \({\mathrm{Hull}}_{\rm H}(\mathcal{C})\subseteq S_{\mathbf{u}}\)
Conversely, we start with a maximal subcode \(S\subsetneq \mathcal{C}^{\perp_{\rm H}}\) such that \({\mathrm{Hull}}_{\rm H}(\mathcal{C})\subseteq S\) and \(S\cap \mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}})=\emptyset\). Similar to the second part of the proof of Theorem 6, it suffices to find a linear functional \(f\in {\mathrm{Hom}}(\mathcal{C}^{\perp_{\rm H}}, \mathbb{F}_{q^2})\) and a vector \({\boldsymbol{u}}\in \mathcal{C}^{\perp_{\rm H}}\setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C})\) such that \[\begin{align} S=\ker(f)=\{\mathbf{x}\in \mathcal{C}^{\perp_{\rm H}} \, : \, \mathbf{x}\mathbf{u}^\dagger=0\}. \end{align}\] Since \({\mathrm{Hull}}_{\rm H}(\mathcal{C}) = {\mathrm{Hull}}_{\rm H}(\mathcal{C}^{\perp_{\rm H}}) = \mathcal{C}^{\perp_{\rm H}}\cap (\mathcal{C}^{\perp_{\rm H}})^{\perp_{\rm H}}\), we can choose a basis \(\{\mathbf{h}_1,\mathbf{h}_2,\ldots,\mathbf{h}_\ell,\mathbf{v}_{\ell+1},\mathbf{v}_{\ell+2},\ldots,\mathbf{v}_{n-k}\}\) of \(\mathcal{C}^{\perp_{\rm H}}\) such that \[\begin{align} \label{eq46hull95depo111} \mathcal{C}^{\perp_{\rm H}}={\mathrm{Hull}}_{\rm H}(\mathcal{C}^{\perp_{\rm H}})\oplus {\rm span}\{\mathbf{v}_{\ell+1},\mathbf{v}_{\ell+2},\ldots,\mathbf{v}_{n-k}\} = {\mathrm{Hull}}_{\rm H}(\mathcal{C})\oplus {\rm span}\{\mathbf{v}_{\ell+1},\mathbf{v}_{\ell+2},\ldots,\mathbf{v}_{n-k}\} \end{align}\tag{16}\] and, for all admissible indices \(i\) and \(j\), \[\begin{align} \label{eq46hull95depo222} \mathbf{h}_i\mathbf{h}_j^\dagger=0, ~ \mathbf{h}_i\mathbf{v}_j^\dagger=0 , and\mathbf{v}_i\mathbf{v}_j^\dagger = \delta_{ij}, \end{align}\tag{17}\] where \(0\leq \ell=\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}))\leq \min\{k,n-k\}\) and \(\delta_{ij}\) is the Kronecker delta. Since \(S\) is a maximal subcode of \(\mathcal{C}^{\perp_{\rm H}}\) containing \({\mathrm{Hull}}_{\rm H}(\mathcal{C})\), there is a nonzero linear functional \(f\in {\mathrm{Hom}}(\mathcal{C}^{\perp_{\rm H}},\mathbb{F}_{q^2})\) such that \(S=\ker(f)\). Since \({\mathrm{Hull}}_{\rm H}(\mathcal{C})\subseteq S=\ker(f)\), we have \[\begin{align} \label{eq46hull95depo333} f(\mathbf{h}_i)=0for1\leq i\leq \ell. \end{align}\tag{18}\] We write \[\begin{align} \label{eq46hull95depo444} f(\mathbf{v}_j)=b_jfor\ell+1\leq j\leq n-k. \end{align}\tag{19}\] Since \(f\neq 0\), not all \(b_j\) are zero. Letting \[\begin{align} \label{eq46uuu} \mathbf{u}=\sum_{j=\ell+1}^{n-k} b_j^{q} \, \mathbf{v}_j\in {\rm span}\{\mathbf{v}_{\ell+1},\mathbf{v}_{\ell+2},\ldots,\mathbf{v}_{n-k}\}\setminus \{{\boldsymbol{0}}\} \subseteq \mathcal{C}^{\perp_{\rm H}}\setminus \{{\boldsymbol{0}}\}, \end{align}\tag{20}\] we infer that \({\boldsymbol{u}}\notin {\mathrm{Hull}}_{\rm H}(\mathcal{C})\) and, hence, \({\boldsymbol{u}} \in \mathcal{C}^{\perp_{\rm H}}\setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C})\). Otherwise, \[{\boldsymbol{u}}\in {\mathrm{Hull}}_{\rm H}(\mathcal{C}) \, \cap \, {\rm span}\{\mathbf{v}_{\ell+1},\mathbf{v}_{\ell+2},\ldots,\mathbf{v}_{n-k}\}.\] By 16 , we get \({\boldsymbol{u}}={\boldsymbol{0}}\), which is a contradiction. Moreover, for any \[\mathbf{x}=\sum_{i=1}^{\ell}x_i\mathbf{h}_i+\sum_{j=\ell+1}^{n-k}x_j\mathbf{v}_j \in \mathcal{C}^{\perp_{\rm H}},\] it follows from 17 , 18 , and 19 that \[\mathbf{x}\mathbf{u}^\dagger = \sum_{j=\ell+1}^{n-k} x_j \, b_j =\sum_{i=1}^{\ell} x_i \, f(\mathbf{h}_i) + \sum_{j=\ell+1}^{n-k} x_j \, f(\mathbf{v}_j)= f(\mathbf{x}).\] Thus, \(S=\ker(f) =\{\mathbf{x}\in \mathcal{C}^{\perp_{\rm H}} \, : \, \mathbf{x}\mathbf{u}^\dagger=0\}\) for the vector \(\mathbf{u}\in \mathcal{C}^{\perp_{\rm H}}\setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C})\) given in 20 .
The following is a direct corollary to Theorem 7.
Corollary 2. Let \(\mathcal{C}\) be an \([n,k]_{q^2}\) linear code with Hermitian dual distance \(d^{\perp_{\rm H}}\). For any \(a\in \mathbb{F}_{q^2}^*\), if there is a vector \(\mathbf{u}\in \mathcal{C}^{\perp_{\rm H}}\setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C})\) such that \(d\bigl((\mathcal{C}(\mathbf{u},a))^{\perp_{\rm H}}\bigr)=d^{\perp_{\rm H}}+1\), then \({\mathrm{Hull}}_{\rm H}(\mathcal{C})\cap \mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}}) = \emptyset\).
The next theorem gives a uniform sufficient condition for the existence of an extension vector that increases the Hermitian dual distance. Since our proof uses a projective-geometric covering argument, we state it for \(\dim(\mathcal{C}^{\perp_{\rm H}})\geq 3\).
Theorem 8. Let \(\mathcal{C}\) be an \([n,k]_{q^2}\) linear code with Hermitian dual distance \(d^{\perp_{\rm H}}\) and \(\dim(\mathcal{C}^{\perp_{\rm H}})\geq 3.\) If the two conditions, namely,
\(\mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}})\cup\{\mathbf{0}\}\) contains no \(2\)-dimensional subspace and
\(A_{d^{\perp_{\rm H}}}\leq (q^2-1)(q^2+q)\)
are both met, then there is a vector \(\mathbf{u}\in \mathbb{F}_{q^2}^n\setminus \mathcal{C}\) such that \(d\bigl((\mathcal{C}(\mathbf{u},a))^{\perp_{\rm H}}\bigr)=d^{\perp_{\rm H}} +1\) for every \(a\in \mathbb{F}_{q^2}^*\).
By Theorem 6, it suffices to show that there exists a maximal subcode \(S\subsetneq \mathcal{C}^{\perp_{\rm H}}\) such that \(S\cap \mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}})=\emptyset\). Assume, to the contrary, that every maximal subcode of \(\mathcal{C}^{\perp_{\rm H}}\) contains at least one minimum weight codeword of \(\mathcal{C}^{\perp_{\rm H}}\). Let \(\mathcal{P}_{\min} := \{\langle \mathbf{e}\rangle:~\mathbf{e}\in \mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}})\}\), where \(\langle \mathbf{e}\rangle\) denotes the \(1\)-dimensional subspace generated by \(\mathbf{e}\). Since scalar multiplication does not change the Hamming weight, each element of \(\mathcal{P}_{\min}\) contributes exactly \(q^2-1\) nonzero minimum weight codewords. Therefore, \[\begin{align} \label{eq46Pmin} |\mathcal{P}_{\min}|=\frac{A_{d^{\perp_{\rm H}}}}{q^2-1}\leq q^2+q. \end{align}\tag{21}\]
The \(1\)-dimensional subspaces of \(\mathcal{C}^{\perp_{\rm H}}\) are precisely the points of the projective space \(PG(\dim(\mathcal{C}^{\perp_{\rm H}})-1,q^2)=PG(n-k-1,q^2)\) with \(n-k-1\geq 2\). The maximal subcodes of \(\mathcal{C}^{\perp_{\rm H}}\) are precisely its hyperplanes. By the assumption, every maximal subcode of \(\mathcal{C}^{\perp_{\rm H}}\) contains at least one minimum weight codeword and, therefore, it contains at least one point of \(\mathcal{P}_{\min}\). This is equivalent to stating that \(\mathcal{P}_{\min}\) meets every hyperplane of \(PG(n-k-1,q^2)\). Since a projective line in \(PG(n-k-1,q^2)\) corresponds to the set of all \(1\)-dimensional subspaces which are contained in a \(2\)-dimensional subspace of \(\mathcal{C}^{\perp_{\rm H}}\) and since \(\mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}})\cup\{\mathbf{0}\}\) contains no \(2\)-dimensional subspace, the set \(\mathcal{P}_{\min}\) does not contain all points of any projective line.
In summary, we regard \(\mathcal{P}_{\min}\) as a point set in \(PG(\dim(\mathcal{C}^{\perp_{\rm H}})-1,q^2)\) that meets every hyperplane but does not contain all points of any projective line. By Bruen Theorem for projective planes [31] and its generalization in higher-dimensional spaces [32], we can conclude that \(|\mathcal{P}_{\min}|\geq q^2+q+1\), which contradicts 21 . This completes the proof.
Remark 6. At first glance, the structural and numerical prerequisites in Theorem 8 seem restrictive. A deeper algebraic and combinatorial analysis, however, reveals that these conditions are in fact remarkably mild and naturally met by a vast majority of linear codes. We highlight this feasibility by stating two theoretical insights.
The first condition is equivalent to saying that \(\mathcal{C}^{\perp_{\rm H}}\) contains no \(2\)-dimensional constant-weight subcode whose nonzero codewords all have weight \(d^{\perp_{\rm H}}\). We know from [33] that every \(q^2\)-ary constant-weight linear code is, up to monomial equivalence, a repetition of a simplex code, possibly with additional zero coordinates. Furthermore, every \(2\)-dimensional \(q^2\)-ary constant-weight code has nonzero weight divisible by \(q^2\). Thus, the first condition in the theorem is automatically satisfied if \(d^{\perp_{\rm H}}\not\equiv 0 \pmod{q^2}\).
If \(\mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}})\cup\{\mathbf{0}\}\) contains at least one \(2\)-dimensional subspace, then there are at least \(q^4-1\) nonzero vectors with Hamming weights \(d^{\perp_{\rm H}}\) in \(\mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}})\). Hence, \(A_{d^{\perp_{\rm H}}}\geq q^4-1\). Since \((q^2-1)(q^2+q)>q^4-1\) for any \(q \geq 2\), both conditions that Theorem 8 requires are met if \(A_{d^{\perp_{\rm H}}}< q^4-1\).
Remark 7. The assumption \(\dim(\mathcal{C}^{\perp_{\rm H}})\geq 3\) in Theorem 8 excludes only low-dimensional dual spaces. When \(\dim(\mathcal{C}^{\perp_{\rm H}})=1\), the available nonzero directions are too limited for the above projective covering argument. When \(\dim(\mathcal{C}^{\perp_{\rm H}})=2\), the behavior depends on the concrete distribution of the minimum weight codewords in \(\mathcal{C}^{\perp_{\rm H}}\). These exceptional cases can be treated separately, checked directly, and are not needed for the uniform criterion in Theorem 8.
On the other hand, Theorem 8 gives a uniform sufficient condition valid for all \(\dim(\mathcal{C}^{\perp_{\rm H}})\geq 3\). The above bound is sharp in the plane case \(\dim(\mathcal{C}^{\perp_{\rm H}})=3\) [31], where the associated projective space is \(PG(2,q^2)\). When \(\dim(\mathcal{C}^{\perp_{\rm H}})>3\), stronger lower bounds for \(\mathcal{P}_{\min}\) are available [32]. Consequently, the numerical condition \(A_{d^{\perp_{\rm H}}}\leq (q^2-1)(q^2+q)\) in Theorem 8 can be replaced by weaker bounds that lead to sharper sufficient criteria. We keep the present formulation because it is dimension-free and easy to apply.
To design EAQECCs with better parameters, we focus on the case where \[d(\mathcal{C}({\boldsymbol{u}},a)^{\perp_{\rm H}})=d(\mathcal{C}^{\perp_{\rm H}})+1and\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}(\mathbf{u}, a)))=\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}))+1.\] This allows us to obtain higher error handling capabilities while requiring fewer number of entangled pairs. Based on Statement 1, we only need to select \({\boldsymbol{u}}\) from \(\mathcal{C}^{\perp_{\rm H}} \setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C})\) properly. To do this, we use Theorem 3 Part 1), Theorem 7, and two subsets of \(\mathcal{C}^{\perp_{\rm H}}\), namely,
the set \(\mathcal{Z}_{\rm H}=\{\mathbf{x}\in \mathcal{C}^{\perp_{\rm H}} \, : \, \mathbf{x}\mathbf{x}^\dagger=0\}\subseteq \mathcal{C}^{\perp_{\rm H}}\) of self-orthogonal codewords in \(\mathcal{C}^{\perp_{\rm H}}\) and
the maximal subcode \(S_{{\boldsymbol{e}}}=\{\mathbf{x}\in \mathcal{C}^{\perp_{\rm H}} \, : \, \mathbf{x}{\boldsymbol{e}}^\dagger=0\}\) of \(\mathcal{C}^{\perp_{\rm H}}\) which is orthogonal to \({\boldsymbol{e}}\in \mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}})\).
Theorem 9. Let \(\mathcal{C}\) be an \([n,k]_{q^2}\) linear code with \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}))=\ell\) and Hermitian dual distance \(d^{\perp_{\rm H}}\). For a fixed \(\mathbf{u}\in \mathcal{C}^{\perp_{\rm H}}\setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C})\), there exists \(a\in \mathbb{F}_{q^2}^*\) such that \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}(\mathbf{u}, a)))=\ell+1\) and \(d(\mathcal{C}(\mathbf{u},a)^{\perp_{\rm H}})=d^{\perp_{\rm H}}+1\) if and only if \[\begin{align} \label{eq46u95space} {\boldsymbol{u}}\notin \mathcal{Z}_{\rm H} \bigcup \left(\bigcup_{{\boldsymbol{e}}\in \mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}})} S_{{\boldsymbol{e}}}\right). \end{align}\tag{22}\] In particular, the existence of such a vector \({\boldsymbol{u}}\) implies \[\label{eq:vectoru} \mathcal{C}^{\perp_{\rm H}}\not\subseteq \mathcal{Z}_{\rm H} \bigcup \left(\bigcup_{{\boldsymbol{e}}\in \mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}})} S_{{\boldsymbol{e}}}\right).\tag{23}\]
Let \({\boldsymbol{u}}\in \mathcal{C}^{\perp_{\rm H}}\setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C})\) and \(a\in \mathbb{F}_{q^2}^*\) such that \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}({\boldsymbol{u}},a))) = \ell+1\) and \(d(\mathcal{C}({\boldsymbol{u}},a)^{\perp_{\rm H}})=d^{\perp_{\rm H}}+1\) be given. By Theorem 5, Statement 1, and Theorem 3, we have \({\boldsymbol{u}}{\boldsymbol{e}}^\dagger\neq 0\) for all \({\boldsymbol{e}}\in \mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}})\) and \({\boldsymbol{u}}{\boldsymbol{u}}^\dagger+a^{q+1}=0\). Hence, \({\boldsymbol{u}}\notin S_{{\boldsymbol{e}}}\) for all \({\boldsymbol{e}}\in \mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}})\) and \({\boldsymbol{u}}\notin \mathcal{Z}_{\rm H}\), yielding 22 . Moreover, since \(\mathbf{u}\in \mathcal{C}^{\perp_{\rm H}}\), we arrive at 23 .
Conversely, let \(\mathbf{u}\in \mathcal{C}^{\perp_{\rm H}}\setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C})\) be such that \({\boldsymbol{u}}\notin \mathcal{Z}_{\rm H}\) and \({\boldsymbol{u}}\notin S_{{\boldsymbol{e}}}\) for all \({\boldsymbol{e}}\in \mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}})\). Since \({\boldsymbol{u}}\notin S_{{\boldsymbol{e}}}\), we know that \({\boldsymbol{u}}{\boldsymbol{e}}^\dagger\neq 0\) for all \({\boldsymbol{e}}\in \mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}})\). Applying Theorem 5 results in \(d(\mathcal{C}({\boldsymbol{u}},a)^{\perp_{\rm H}})=d^{\perp_{\rm H}}+1\). In addition, \({\boldsymbol{u}}\notin \mathcal{Z}_{\rm H}\) implies that \({\boldsymbol{u}}{\boldsymbol{u}}^\dagger\in \mathbb{F}_q^*\). We now define the norm map \[{\rm Norm}:~\mathbb{F}_{q^2}^* \to \mathbb{F}_q^* , sendinga \mapsto a^{q+1}.\] Since \({\rm Norm}(\cdot)\) is surjective, there is always an element \(a\in \mathbb{F}_{q^2}^*\) such that \(a^{q+1}=-{\boldsymbol{u}}{\boldsymbol{u}}^\dagger\). By Theorem 3, we conclude that \[\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}({\boldsymbol{u}},a)))=\ell+1.\]
Corollary 3. Let \(\mathcal{C}\) be an \([n,k]_{q^2}\) linear code with \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}))=\ell\) and Hermitian dual distance \(d^{\perp_{\rm H}}\). For any vector \[\begin{align} \label{eq46u95space222} {\boldsymbol{u}}\in \mathcal{C}^{\perp_{\rm H}} \setminus \left( \mathcal{Z}_{\rm H} \bigcup \left(\bigcup_{{\boldsymbol{e}}\in \mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}})} S_{\boldsymbol{e}} \right) \right) \subseteq \mathcal{C}^{\perp_{\rm H}}\setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C}), \end{align}\tag{24}\] there exists an element \(a\in \mathbb{F}_{q^2}^*\) such that \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}({\boldsymbol{u}},a)))=\ell+1\) and \(d(\mathcal{C}({\boldsymbol{u}},a)^{\perp_{\rm H}})=d^{\perp_{\rm H}}+1\).
Since every codeword in \({\mathrm{Hull}}_{\rm H}(\mathcal{C})\) is self-orthogonal, \({\mathrm{Hull}}_{\rm H}(\mathcal{C})\subseteq \mathcal{Z}_{\rm H}\), which implies that \[\mathcal{C}^{\perp_{\rm H}} \setminus \left(\mathcal{Z}_{\rm H} \bigcup \left(\bigcup_{{\boldsymbol{e}} \in \mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}})} S_{\boldsymbol{e}} \right) \right) \subseteq \mathcal{C}^{\perp_{\rm H}}\setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C}).\] By 24 , we get \[{\boldsymbol{u}}\in \mathcal{C}^{\perp_{\rm H}}\setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C})~{\rm and}~ {\boldsymbol{u}}\notin \mathcal{Z}_{\rm H} \bigcup \left(\bigcup_{{\boldsymbol{e}}\in \mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}})} S_{\boldsymbol{e}}\right).\] The desired result then follows from Theorem 9.
Remark 8. According to Corollary 2 and Theorem 4, it is possible to find an appropriate vector \({\boldsymbol{u}}\in \mathcal{C}^{\perp_{\rm H}}\setminus {\mathrm{Hull}}_{\rm H}(\mathcal{C})\) and an element \(a\in \mathbb{F}_{q^2}^*\) such that \(d(\mathcal{C}({\boldsymbol{u}},a)^{\perp_{\rm H}})=d(\mathcal{C}^{\perp_{\rm H}})+1\) and \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}(\mathbf{u}, a)))\in \{\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C})),~ \dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}))+1\}\) only if \[\begin{align} \label{eq46necessary95conditions} \mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}})\cap {\mathrm{Hull}}_{\rm H}(\mathcal{C})=\emptyset~{\rm and}~\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}))\leq n-k-1. \end{align}\tag{25}\] The two conditions in 25 are satisfied if 22 holds. This is why we omit them from Theorem 9.
We end this section with an example illustrating the operational meaning of Theorem 9 in the classical setting. Even when the original code is not optimal, the generalized extension can produce optimal linear codes with larger Hermitian hulls.
Example 1. Let \(\mathbb{F}_4 = \{0, 1, \omega, \omega^2\}\) with \(\omega^2 + \omega + 1 = 0\). Let \(\mathcal{C}\) be the \([6, 3, 3]_4\) NMDS code with generator matrix \[G = \begin{pmatrix} 1 & 0 & 0 & \omega^2 & \omega & 0 \\ 0 & 1 & 0 & \omega^2 & \omega^2 & 1 \\ 0 & 0 & 1 & \omega^2 & 1 & \omega^2 \end{pmatrix}.\] The code has \(1\)-dimensional Hermitian hull. Since there is a \([6,3,4]_4\) MDS code on record [13], the \([6, 3, 3]_4\) NMDS code \(\mathcal{C}^{\perp_{\rm H}}\) is not optimal. Let \(\mathcal{C}({\boldsymbol{u}}, 1)\) be the generalized extended code of \(\mathcal{C}\). Fixing \(a=1\), we have Table ¿tbl:tab:extension95results?.
| Increase in | \(\mathbf{u}\) | \(\dim(\Hull_{\rm H}(\C({\bf u}, 1)))\) | \(d^{\perp_{\rm H}}(\C({\bf u}, 1))\) | \({\bf u}\notin \mathcal{Z}_H\) | \({\bf u}\notin \bigcup_{{\bf e}\in \mathbf W_{\min}(C^{\perp_H})} S_{{\bf e}}\) | Optimal |
|---|---|---|---|---|---|---|
| Hull | \((1, 1, 1, 0, \omega, \omega)\) | 2 | 3 | Yes | No | No |
| Distance | \((1, 0, \omega^2, 0, \omega, \omega^2)\) | 1 | 4 | No | Yes | Yes |
| Both | \((0, 1, \omega, 0, 0, 1)\) | 2 | 4 | Yes | Yes | Yes |
The answer to whether the Hermitian dual code \((\C({\bf u},1))^{\perp_{\rm H}}\) with parameters \([7,3]_4\) has the optimal minimum distance \(4\).
The optimal \([7,3,4]_4\) linear code documented in Grassl’s table [13] happens to be Hermitian LCD. Therefore, we start with a non-optimal code \(\mathcal{C}\) and finally obtain two optimal linear codes \(\mathcal{C}({\boldsymbol{u}}, 1)^{\perp_{\rm H}}\) with larger Hermitian hulls. In addition, although the first generalized extended code \((\mathcal{C}((1, 1, 1, 0, \omega, \omega),1))^{\perp_{\rm H}}\) in Table ¿tbl:tab:extension95results? is not optimal compared to [13], it has a larger Hermitian hull dimension than that of \(\mathcal{C}\).
Luo, Ezerman, Grassl, and Ling gave three propagation rules in [1] and applied them to optimal and best-known linear codes in [13]. Together with the EAQECCs obtained in [14], Grassl’s online tables [15], [16] collect best-known qubit and qutrit codes of lengths up to \(64\) and \(36\), respectively. Motivated by these tables, several sporadic improvements have been obtained by different methods in, e.g., [17]–[21], [23], [25].
In this section, we use the results in Sections 3 and 4 to construct EAQECCs from generalized extended codes. The goal is to obtain quantum codes whose parameters improve on those in [15]–[21], [23], [25].
Given an \([n,k]_{q^2}\) linear code \(\mathcal{C}\), Lemma 1 yields an EAQECC \(\mathcal{Q}(\mathcal{C})\) with parameters \[\begin{align} \label{eq46EAQECC95parameters} [[n,\kappa:=n-k-\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C})),\delta\geq d(\mathcal{C}^{\perp_{\rm H}}); c:=k-\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}))]]_q. \end{align}\tag{26}\] We call \(\mathcal{Q}(\mathcal{C})\) pure if \(\delta=d(\mathcal{C}^{\perp_{\rm H}})\) and impure if \(\delta>d(\mathcal{C}^{\perp_{\rm H}})\). Since \((\mathcal{C}^{\perp_{\rm H}})^{\perp_{\rm H}}=\mathcal{C}\) and \({\mathrm{Hull}}_{\rm H}(\mathcal{C}^{\perp_{\rm H}})={\mathrm{Hull}}_{\rm H}(\mathcal{C})\), one can also obtain a \(\mathcal{Q}(\mathcal{C}^{\perp_{\rm H}})\) by applying Lemma 1 to \(\mathcal{C}^{\perp_{\rm H}}\). Regarding \(\mathcal{C}^{\perp_{\rm H}}\) as a new linear code, we can apply the results in Sections 3 and 4 to \(\mathcal{C}^{\perp_{\rm H}}\) and then apply Lemma 1 to the resulting codes. Here, we keep our focus on the quantum codes obtained from the generalized extended code \(\mathcal{C}({\boldsymbol{u}},a)\).
Theorem 10. Let \(\mathcal{C}\) be an \([n,k]_{q^2}\) linear code with \(\ell=\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}))\) and \(d^{\perp_{\rm H}}=d(\mathcal{C}^{\perp_{\rm H}})\). For \({\boldsymbol{u}}\in\mathbb{F}_{q^2}^n\setminus \mathcal{C}\) and \(a\in\mathbb{F}_{q^2}^*\), the generalized extended code \(\mathcal{C}({\boldsymbol{u}},a)\) is an \([n+1,k+1]_{q^2}\) linear code and \[d(\mathcal{C}({\boldsymbol{u}},a)^{\perp_{\rm H}}) = \begin{cases} d^{\perp_{\rm H}},& \text{if }{\boldsymbol{e}}{\boldsymbol{u}}^{\dagger}=0 \text{ for some } {\boldsymbol{e}}\in\mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}}),\\d^{\perp_{\rm H}}+1,& \text{otherwise}. \end{cases}\] The value of \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}({\boldsymbol{u}},a)))\), which can be \(\ell-1\), \(\ell\), or \(\ell+1\), is determined according to Theorems 2 and 3. Lemma 1 gives an EAQECC with parameters \[[[n+1,n-k-\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}({\boldsymbol{u}},a))),\delta\geq d(\mathcal{C}({\boldsymbol{u}},a)^{\perp_{\rm H}}); k+1-\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}({\boldsymbol{u}},a)))]]_q.\]
The length and dimension of \(\mathcal{C}({\boldsymbol{u}},a)\) follow from Lemma 4. The Hermitian dual distance is from Theorem 5. The statement on the Hermitian hull dimension follows from Theorems 2 and 3. The final parameter conversion is done according to Lemma 1.
We now record the corresponding parameter changes. Suppose that the \([n,k]_{q^2}\) initial code \(\mathcal{C}\) has \(\ell\)-dimensional Hermitian hull and Hermitian dual distance \(d^{\perp_{\rm H}}\). Let \[\Delta_{{\mathrm{Hull}}_{\rm H}} :=\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}({\boldsymbol{u}},a)))-\elland\Delta_{d^{\perp_{\rm H}}} := d(\mathcal{C}({\boldsymbol{u}},a)^{\perp_{\rm H}})-d^{\perp_{\rm H}} .\] Let \(\mathsf H({\boldsymbol{u}})\) stands for the proposition: \({\boldsymbol{e}}{\boldsymbol{u}}^{\dagger}\neq0\) for all \({\boldsymbol{e}}\in\mathbf{W}_{\min}(\mathcal{C}^{\perp_{\rm H}})\). By Theorem 5, \(\mathsf H({\boldsymbol{u}})\) is necessary and sufficient for \(d(\mathcal{C}({\boldsymbol{u}},a)^{\perp_{\rm H}})=d^{\perp_{\rm H}}+1\). Otherwise, \(d(\mathcal{C}({\boldsymbol{u}},a)^{\perp_{\rm H}})=d^{\perp_{\rm H}}\). Using Theorems 2 and 3 as well as Statement 1, we deduce that \[\Delta_{{\mathrm{Hull}}_{\rm H}}= \begin{cases} -1, & if {\boldsymbol{u}}\notin\mathcal{C}+\mathcal{C}^{\perp_{\rm H}},\\ 0,& if {\boldsymbol{u}}\in\mathcal{C}^{\perp_{\rm H}}\setminus{\mathrm{Hull}}_{\rm H}(\mathcal{C})such that{\boldsymbol{u}}{\boldsymbol{u}}^{\dagger}+a^{q+1}\neq0,\\ 1,& if{\boldsymbol{u}}\in\mathcal{C}^{\perp_{\rm H}}\setminus{\mathrm{Hull}}_{\rm H}(\mathcal{C})such that{\boldsymbol{u}}{\boldsymbol{u}}^{\dagger}+a^{q+1}=0. \end{cases}\] Applying Lemma 1 to the results in Sections 3 and 4, we immediately get six families of EAQECCs from \(\mathcal{C}({\boldsymbol{u}},a)\). Table 1 lists their parameters, with the initial \([[n,\kappa,\delta;c]]_q\) EAQECCs obtained from \(\mathcal{C}\) are assumed to be pure, for simplicity. In the rare occasions that the initial EAQECCs are impure, one only needs to replace \(\delta\) by \(d(\mathcal{C}^{\perp_{\rm H}})\) in the displayed lower bounds accordingly.
| Family | Condition on \(({\bf u},a)\) | \((\Delta_{\Hull_{\rm H}},\Delta_{d^{\perp_{\rm H}}})\) | Parameters of \(\mathcal{Q}(\C({\bf u},a))\) | References |
|---|---|---|---|---|
| \(1\) | \({\bf u}\notin \left(\C+\C^{\perp_{\rm H}}\right)\) and \(\neg\mathsf H({\bf u})\) | \((-1,0)\) | \([[n+1,\kappa+1,\ge \delta;c+2]]_q\) | Thms. [th46hull] and [th46distance] |
| \(2\) | \({\bf u}\notin \left(\C+\C^{\perp_{\rm H}}\right)\) and \(\mathsf H({\bf u})\) | \((-1,1)\) | \([[n+1,\kappa+1,\ge \delta+1;c+2]]_q\) | Thms. [th46hull] and [th46distance] |
| \(3\) | \({\bf u}\in\C^{\perp_{\rm H}}\setminus\Hull_{\rm H}(\C)\), \({\bf u}{\bf u}^{\dagger}+a^{q+1}\neq0\), \(\neg\mathsf H({\bf u})\) | \((0,0)\) | \([[n+1,\kappa,\ge \delta;c+1]]_q\) | Statement [state461], Thms. [th46hull222] and [th46distance] |
| \(4\) | \({\bf u}\in\C^{\perp_{\rm H}}\setminus\Hull_{\rm H}(\C)\), \({\bf u}{\bf u}^{\dagger}+a^{q+1}\neq0\), \(\mathsf H({\bf u})\) | \((0,1)\) | \([[n+1,\kappa,\ge \delta+1;c+1]]_q\) | Statement [state461], Thms. [th46hull222] and [th46distance] |
| \(5\) | \({\bf u}\in\C^{\perp_{\rm H}}\setminus\Hull_{\rm H}(\C)\), \({\bf u}{\bf u}^{\dagger}+a^{q+1}=0\), \(\neg\mathsf H({\bf u})\) | \((1,0)\) | \([[n+1,\kappa-1,\ge \delta;c]]_q\) | Statement [state461], Thms. [th46hull222] and [th46distance] |
| \(6\) | \({\bf u}\in\C^{\perp_{\rm H}}\setminus\Hull_{\rm H}(\C)\), \({\bf u}{\bf u}^{\dagger}+a^{q+1}=0\), \(\mathsf H({\bf u})\) | \((1,1)\) | \([[n+1,\kappa-1,\ge \delta+1;c]]_q\) | Statement [state461], Thms. [th46hull222] and [th46distance] |
For simplicity, the initial \([[n,\kappa,\delta;c]]_q\) EAQECC \(\mathcal{Q}(\C)\) is assumed to be pure, that is, \(\kappa = n-k-\ell\), \(c=k-\ell\), and \(\delta=d(\C^{\perp_{\rm H}})\). If \(\mathcal{Q}(C)\) is impure, then we can replace \(\delta\) in the table by \(d(\C^{\perp_{\rm H}})\), while keeping the dimension and the number of entangled pairs unchanged.
Remark 9. The role of the preceding theory is summarized in Table 1. In each listed search region, the conditions are necessary and sufficient for the corresponding changes \(\Delta_{{\mathrm{Hull}}_{\rm H}}\) and \(\Delta_{d^{\perp_{\rm H}}}\). Note that the other results presented in Sections 3 and 4 can further narrow down the search space for or confirm the existence of \({\boldsymbol{u}}\) and \(a\). For example, Theorem 4 and Corollary 2 can be used to exclude the cases where the Hermitian hull dimension or the Hermitian dual distance cannot be increased, respectively. In particular, Corollary 3 provides a constructive sufficient condition for increasing the Hermitian hull dimension and the Hermitian dual distance and, hence, yields the sixth family of EAQECCs in Table 1. We present more implementation details of these results in Table ¿tbl:tab:criteria-for-search?.
| Tool | Controlled Quantity | Condition | Operational Meaning for Table [tbl:tab:parameter-transformations] |
|---|---|---|---|
| Lemma [lem:column-space-characterization] | \(\Delta_{\Hull_{\rm H}}\) | NS | Tests whether \({\bf u}\) lies in the sum space. |
| Lemma [lem46maximal95subcode95general] | \(\Delta_{d^{\perp_{\rm H}}}\) | S | Produces maximal subcodes used in dual-distance tests. |
| Lemma [lem46uu] | \(\Delta_{\Hull_{\rm H}}\) | NS | Helps choose \(a\) for Families \(3\) to \(6\). |
| Theorem [th:necessary95condition95hull] | \(\Delta_{\Hull_{\rm H}}\) | NS | Decides whether Families \(3\) to \(6\) occur. |
| Corollary [coro46so] | \(\Delta_{\Hull_{\rm H}}\) | NS | Controls repeated use of Families \(3\) to \(6\). |
| Theorem [th46subcode95characterization] | \(\Delta_{d^{\perp_{\rm H}}}\) | NS | Determines the existence of families with \(\Delta_{d^{\perp_{\rm H}}}=1\) in the full space. |
| Theorem [th:dualspace95characterization] | \(\Delta_{d^{\perp_{\rm H}}}\) | NS | Determines existence of Families \(4\) to \(6\) in the reduced space. |
| Corollary [cor:degeneration95hull] | \(\Delta_{d^{\perp_{\rm H}}}\) | N | Excludes Families \(4\) and \(6\) when it fails. |
| Theorem [th46sufficient95increment] | \(\Delta_{d^{\perp_{\rm H}}}\) | S | Guarantees some family with \(\Delta_{d^{\perp_{\rm H}}}=1\). |
| Theorem [th46increasing95both] | \((\Delta_{\Hull_{\rm H}},\Delta_{d^{\perp_{\rm H}}})\) | NS | Characterizes Family \(6\), namely \((\Delta_{\Hull_{\rm H}},\Delta_{d^{\perp_{\rm H}}})=(1,1)\). |
| Corollary [cor:constructive95choice95u] | \((\Delta_{\Hull_{\rm H}},\Delta_{d^{\perp_{\rm H}}})\) | S | Gives an explicit search criterion for Family \(6\). |
Next, we apply Tables 1 and ¿tbl:tab:criteria-for-search? to construct improved EA qubit and qutrit codes. We start two examples that illustrate how to apply the results in Sections 3 and 4 to obtain improved EAQECCs.
Example 2. Let \(\mathbb{F}_4=\{0,1,\omega,\omega^2\}\) with \(\omega^2=\omega+1\). Let \(\mathcal{C}_1\) be the \([9,7]_4\) linear code generated by \[G= \begin{pmatrix} 1 & 0 & 0 & 0 & 0 & 0 & 0 & \omega^2 & \omega\\ 0 & 1 & 0 & 0 & 0 & 0 & 0 & \omega^2 & \omega^2\\ 0 & 0 & 1 & 0 & 0 & 0 & 0 & \omega^2 & \omega^2\\ 0 & 0 & 0 & 1 & 0 & 0 & 0 & \omega^2 & \omega\\ 0 & 0 & 0 & 0 & 1 & 0 & 0 & 0 & \omega\\ 0 & 0 & 0 & 0 & 0 & 1 & 0 & 1 & 0\\ 0 & 0 & 0 & 0 & 0 & 0 & 1 & \omega^2 & 1 \end{pmatrix}.\] We quickly confirm that \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}_1))=1\) and \(d(\mathcal{C}_1^{\perp_{\rm H}})=7\). Upon selecting \({\boldsymbol{u}}_1=(\omega^2,0,\omega^2,\omega^2,1,1,\omega,1,1)\) and \(a=1\), a direct computation yields \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}_1({\boldsymbol{u}}_1,1)))=0\) and \(d(\mathcal{C}_1({\boldsymbol{u}}_1,1)^{\perp_{\rm H}})=7\). Thus, \((\Delta_{{\mathrm{Hull}}_{\rm H}},\Delta_{d^{\perp_{\rm H}}})=(-1,0)\), which corresponds to Family \(1\) in Table 1.
Applying Lemma 1 to \(\mathcal{C}_1({\boldsymbol{u}}_1,1)\) and computing the actual minimum distance yield \(\mathcal{Q}(\mathcal{C}_1({\boldsymbol{u}}_1,1))\) with parameters \([[10,2,7;8]]_2\). Compared with the best-known \([[12,2, 7;9]]_2\) code in [15], our \(\mathcal{Q}(\mathcal{C}_1({\boldsymbol{u}}_1,1))\) maintains the same dimension and minimum distance. It features a shorter length and requires fewer pre-shared entangled pairs.
Example 3. Let \(\mathbb{F}_9=\{0,1,\omega,\omega^2,\omega^3,\omega^4,\omega^5,\omega^6,\omega^7\}\) with \(\omega^2=\omega+1\). Let \(\mathcal{C}_2\) be the \([7,6]_9\) linear code generated by \[G= \begin{pmatrix} 1 & 0 & 0 & 0 & 0 & 0 & 1\\ 0 & 1 & 0 & 0 & 0 & 0 & \omega^2\\ 0 & 0 & 1 & 0 & 0 & 0 & \omega\\ 0 & 0 & 0 & 1 & 0 & 0 & \omega^5\\ 0 & 0 & 0 & 0 & 1 & 0 & \omega^2\\ 0 & 0 & 0 & 0 & 0 & 1 & \omega \end{pmatrix}.\] The code has \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}_2))=0\) and \(d(\mathcal{C}_2^{\perp_{\rm H}})=7\). Choosing \({\boldsymbol{u}}_2=(\omega^7,\omega^5,\omega^2,\omega^6,\omega^5,\omega^2,\omega^3)\) and \(a=1\) yields \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}_2({\boldsymbol{u}}_2,1)))=1\) and \(d(\mathcal{C}_2({\boldsymbol{u}}_2,1)^{\perp_{\rm H}})=8\). Thus, \((\Delta_{{\mathrm{Hull}}_{\rm H}},\Delta_{d^{\perp_{\rm H}}})=(1,1)\), which corresponds to Family \(6\) in Table 1.
Applying Lemma 1 to \(\mathcal{C}_2({\boldsymbol{u}}_2,1)\) produces \(\mathcal{Q}(\mathcal{C}_2({\boldsymbol{u}}_2,1))\) with parameters \([[8,0,8;6]]_3\). Here, \(\mathcal{Q}(\mathcal{C}_2({\boldsymbol{u}}_2,1))\) is pure since it has zero dimension. Compared with the best-known \([[9,0,8;6]]_3\) code in [16], our \(\mathcal{Q}(\mathcal{C}_2({\boldsymbol{u}}_2,1))\) has the same dimension, minimum distance, and number of entangled pairs, but has a shorter length.
In manners similar to Examples 2 and 3, we obtain numerous improved and new EAQECCs by applying the results in Sections 3 and 4.
After comparing with the known parameters of qubit and qutrit codes in [15], [16] and the latest records in [17]–[21], [23], [25], we present \(281\) qubit and qutrit codes in the specified ranges of lengths, including \(267\) qubit parameters for lengths up to \(40\) and \(14\) qutrit parameters for lengths up to \(25\). Among them, \(244\) parameter sets improve on the best-known records. The remaining \(37\) are new in the sense that, to the best of our knowledge, they have not been reported before.
Tables 1 and 3 list our new and improved parameters, obtained from \(\mathcal{C}({\boldsymbol{u}},a)\). The following abbreviations in the tables signify the exact parameter(s) in which our quantum codes are better than the best-known ones in [15]–[21], [23], [25]. The codes of type SL have shorter length. Those of Type HD have higher dimension. The Type LD is for codes with larger minimum distance. If the codes require less number of pre-shared entangled pairs, then they are of Type LE. The codes of Type MI have multiple simultaneous improvements, having two or more of the above four improvement types. We use NP to indicate that the parameters are new.
The “Source” column records the source of the corresponding known qubit or qutrit entanglement-assisted codes. The “\(\Delta_{{\mathrm{Hull}}_{\rm H}}\)” and “\(\Delta_{d^{\perp_{\rm H}}}\)” columns record, respectively, the changes in the Hermitian hull dimension and the Hermitian dual distance from \(\mathcal{C}\) to the generalized extended code \(\mathcal{C}({\boldsymbol{u}},a)\). To save space, we do not list the detailed information about the initial linear code \(\mathcal{C}\), extension vector \({\boldsymbol{u}}\), and scalar \(a\). Interested readers are invited to inspect our online database [34] for the information.
| No. | Our Qutrit Code | Known Code | Source | \(\Delta_{\Hull_{\rm H}}\) | \(\Delta_{d^{\perp_{\rm H}}}\) | Type |
|---|---|---|---|---|---|---|
| \(1\) | \([[7,1,7;6]]_3\) | \(-\) | \(-\) | 0 | 1 | NP |
| \(2\) | \([[8,0,8;6]]_3\) | \([[9,0,8;6]]_3\) | [16] | 1 | 1 | SL |
| \(3\) | \([[8,1,8;7]]_3\) | \([[11,0,8;7]]_3\) | [16] | 0 | 1 | MI |
| \(4\) | \([[13,3,7;4]]_3\) | \([[13,3,7;5]]_3\) | [16] | 0 | 1 | LE |
| \(5\) | \([[17,2,15;15]]_3\) | \([[26,0,14;18]]_3\) | [16] | 0 | 1 | MI |
| \(6\) | \([[18,2,16;16]]_3\) | \([[21,0,16;16]]_3\) | [16] | 0 | 1 | MI |
| \(7\) | \([[19,2,17;17]]_3\) | \([[26,0,14;18]]_3\) | [16] | 0 | 1 | MI |
| \(8\) | \([[19,3,15;16]]_3\) | \([[26,0,14;18]]_3\) | [16] | 0 | 1 | MI |
| \(9\) | \([[21,2,18;19]]_3\) | \(-\) | \(-\) | 0 | 1 | NP |
| \(10\) | \([[22,2,19;20]]_3\) | \(-\) | \(-\) | 0 | 1 | NP |
| \(11\) | \([[23,2,20;21]]_3\) | \(-\) | \(-\) | 0 | 1 | NP |
| \(12\) | \([[24,2,21;22]]_3\) | \(-\) | \(-\) | 0 | 1 | NP |
| \(13\) | \([[25,2,22;23]]_3\) | \([[26,2,22;24]]_3\) | [21] | 0 | 1 | MI |
| \(14\) | \([[25,3,20;22]]_3\) | \(-\) | \(-\) | 0 | 1 | NP |
Remark 10. Table 4 summarizes the distribution of the listed entries according to the parameter changes in Table 1 and construction source. In particular, \(10\) extra EAQECCs obtainable from our generalized extended codes are already known to improve Grassl’s tables [15], [16] by different methods in [17], [20]–[23]. We emphasize that these \(10\) EAQECCs are not included in Tables 1 and 3, and they are constructed in a unified way via our generalized extended codes, which is different from the methods used in the cited papers.
| No. | \((\Delta_{\Hull_{\rm H}},\Delta_{d^{\perp_{\rm H}}})\) | # Qubit Codes | # Qutrit Codes | # Improved | # New | Total |
|---|---|---|---|---|---|---|
| 1 | \((-1,0)\) | \(11\) | \(0\) | \(9\) | \(2\) | \(11\) |
| 2 | \((-1,1)\) | \(57\) | \(0\) | \(53\) | \(4\) | \(57\) |
| 3 | \((0,0)\) | \(13\) | \(0\) | \(13\) | \(0\) | \(13\) |
| 4 | \((0,1)\) | \(121\) | \(13\) | \(104\) | \(30\) | \(134\) |
| 5 | \((1,0)\) | \(13\) | \(0\) | \(13\) | \(0\) | \(13\) |
| 6 | \((1,1)\) | \(52\) | \(1\) | \(52\) | \(1\) | \(53\) |
| Total | \(-\) | \(267\) | \(14\) | \(244\) | \(37\) | \(281\) |
| No. | Our Qubit Code | Known Code in [15] | \(\Delta_{\Hull_{\rm H}}\) | \(\Delta_{d^{\perp_{\rm H}}}\) | Type | Also obtained in |
|---|---|---|---|---|---|---|
| \(1\) | \([[9,2,5;3]]_2\) | \([[9,2,5;4]]_2\) | \(-1\) | \(1\) | LE | [17] |
| \(2\) | \([[9,3,5;4]]_2\) | \([[9,2,5;4]]_2\) | \(0\) | \(1\) | HD | [22] |
| \(3\) | \([[11,2,7;7]]_2\) | \([[12,2,7;9]]_2\) | \(1\) | \(1\) | MI | [22] |
| \(4\) | \([[11,5,4;2]]_2\) | \([[11,5,4;3]]_2\) | \(1\) | \(1\) | LE | [17] |
| \(5\) | \([[13,3,6;4]]_2\) | \([[13,3,6;5]]_2\) | \(1\) | \(1\) | LE | [17] |
| No. | Our Qutrit Code | Known Code in [16] | \(\Delta_{\Hull_{\rm H}}\) | \(\Delta_{d^{\perp_{\rm H}}}\) | Type | Also obtained in |
| \(6\) | \([[7,0,7;5]]_3\) | \([[11,0,7;5]]_3\) | \(1\) | \(1\) | SL | [23] |
| \(7\) | \([[7,2,5;3]]_3\) | \([[7,2,5;4]]_3\) | \(0\) | \(1\) | LE | [17] |
| \(8\) | \([[9,0,9;7]]_3\) | \([[9,0,9;8]]_3\) | \(1\) | \(1\) | LE | [20] |
| \(9\) | \([[15,2,13;13]]_3\) | \([[23,0,13;13]]_3\) | \(0\) | \(1\) | MI | [21] |
| \(10\) | \([[16,2,14;14]]_3\) | \([[26,0,14;18]]_3\) | \(0\) | \(1\) | MI | [23] |
In this paper, we propose generalized extended codes \(\mathcal{C}({\boldsymbol{u}},a)\) of\(q^2\)-ary linear codes and use them to construct EAQECCs via the Hermitian construction. This class of codes is obtained by considering the Hermitian dual of certain second kind of extended codes discussed in [26], [27] together with some monomial variations. We prove that every \([n+1,k+1]_{q^2}\) linear code whose Hermitian dual distance is greater than one is monomially equivalent to a generalized extended code. This shows that generalized extended codes provide a unified representation for a large class of linear codes while retaining an explicit algebraic form suitable for controlling the Hermitian hulls and Hermitian dual distances.
We have determined the Hermitian hull dimension and the Hermitian dual distance of \(\mathcal{C}({\boldsymbol{u}},a)\). For the Hermitian hull, we establish that, if \(\ell=\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}))\), then \(\dim({\mathrm{Hull}}_{\rm H}(\mathcal{C}({\boldsymbol{u}},a)))\) can only be \(\ell-1\), \(\ell\), or \(\ell+1\). The exact case is classified by the position of the extension vector \({\boldsymbol{u}}\) relative to \(\mathcal{C}+\mathcal{C}^{\perp_{\rm H}}\). We also show that, in the relevant case \({\boldsymbol{u}}\in (\mathcal{C}+\mathcal{C}^{\perp_{\rm H}})\setminus \mathcal{C}\), it suffices to study the representatives in \(\mathcal{C}^{\perp_{\rm H}}\setminus{\mathrm{Hull}}_{\rm H}(\mathcal{C})\). For the Hermitian dual distance, we prove that \(d(\mathcal{C}({\boldsymbol{u}},a)^{\perp_{\rm H}})\) is either \(d(\mathcal{C}^{\perp_{\rm H}})\) or \(d(\mathcal{C}^{\perp_{\rm H}})+1\). We then give necessary and sufficient conditions for the latter case in terms of the interaction between \({\boldsymbol{u}}\) and the minimum weight codewords of \(\mathcal{C}^{\perp_{\rm H}}\). These criteria were further reformulated in terms of maximal subcodes and finite-geometric conditions. In particular, we obtain explicit conditions under which the Hermitian hull dimension and the Hermitian dual distance increase simultaneously.
Applying these structural results to the Hermitian construction, we obtain six families of EAQECCs arising from \(\mathcal{C}({\boldsymbol{u}},a)\). The examples and tables show that generalized extended codes \(\mathcal{C}({\boldsymbol{u}},a)\) can produce new or improved EAQECCs. After detailed comparisons with best-known results collected in Grassl’s online tables [15], [16] and the latest records reported in [17]–[21], [23], [25], our construction produces \(281\) new or improved parameters of qubit and qutrit EA codes, including \(267\) qubit parameters for lengths \(7 \leq n \leq 40\) and \(14\) qutrit parameters for lengths \(7 \leq n \leq 25\). Among them, \(244\) codes have improved parameters when compared with the previous best-known while \(37\) codes have are new parameters. Improvements occur in terms of length, dimension, minimum distance, as well as the amount of entanglement, with \(180\) instances having simultaneous improvements in two or more parameters. Our construction also reproduces \(10\) further improvements over Grassl’s tables previously obtained by different methods in [17], [20]–[23], showing that generalized extended codes indeed provide a unified framework for obtaining excellent EAQECCs.
In addition to the Hermitian construction, the CSS and symplectic constructions constitute important methods for constructing EAQECCs. Extend the results in this paper to the Euclidean inner product setting is straightforward. The symplectic case, however, appears more complicated and may be worthy of a separate investigation.
This research is supported by the Nanyang Technological University Research Grant under No. 04INS000047C230GRT01.↩︎
Yang Li is with the School of Physical and Mathematical Sciences, Nanyang Technological University, 21 Nanyang Link, Singapore 637371, Singapore (email: yanglimath@163.com).↩︎
Martianus Frederic Ezerman is with the School of Physical and Mathematical Sciences, Nanyang Technological University, 21 Nanyang Link, Singapore 637371, Singapore (email: fredezerman@ntu.edu.sg).↩︎
Shitao Li is with the School of Internet, Anhui University, Hefei, Anhui 230039, China (email: lishitao0216@163.com).↩︎
San Ling is with the School of Physical and Mathematical Sciences, Nanyang Technological University, 21 Nanyang Link, Singapore 637371, Singapore (email: lingsan@ntu.edu.sg). He is also with VinUniversity, Vinhomes Ocean Park, Gia Lam, Hanoi 100000, Vietnam (email: ling.s@vinuni.edu.vn).↩︎
Zhonghua Sun is with the School of Mathematics, Hefei University of Technology, Hefei, 230601, Anhui, China (email: sunzhonghuas@163.com).↩︎