1 Introduction

Cyclic codes over the finite field were introduced by Prange [49] in 1957 and further generalized as constacyclic codes by Berlekamp [7]. These codes are the most studied linear codes due to their rich algebraic structure and contain many classical codes such as quadratic residue codes, Reed–Solomon codes and BCH codes. But the study of codes over rings attracted researchers after the seminal work of Hammons et al. [33] in which they established a link between linear codes over \(\mathbb {Z}_4\) and nonlinear binary codes. They [33] showed that certain good nonlinear codes (e.g., Kerdock, Preparata and Goethal codes) could be viewed as gray images of linear codes over \(\mathbb {Z}_4\). In 1933, Ore [35] introduced a generalization of the polynomial ring as a skew polynomial ring which served as an example of a noncommutative ring. Recently, Boucher et al. [10] studied cyclic codes over a skew polynomial ring with non-trivial automorphism and called skew cyclic codes. Along with their algebraic richness, they [12] obtained many new codes whose minimum distances are comparatively larger than previously best-known codes. Again, skew cyclic codes are generalized as skew constacyclic codes in [11] over Galois rings and further studied by Jitman et al. [34] over chain rings. After that, many authors [8, 21, 27, 30, 47, 53, 60] studied skew codes such as skew constacyclic, skew quasi-cyclic, skew multi-twisted codes, etc.

In recent decades, the problem of constructing quantum codes with good parameters has become a very active research area due to their importance in quantum computation and quantum information transmission. After introducing the first quantum code by Shor [54] and a connection between classical binary codes and quantum codes by Calderbank et al. [14], the study of quantum error-correcting codes increased at an astonishing rate.

Let q be a prime power and \(({\mathbb {C}}^{q})^{\otimes n}={\mathbb {C}}^{q} \otimes {\mathbb {C}}^{q} \otimes \dots \otimes {\mathbb {C}}^{q} ~(n-\text {times})\) be an n-dimensional complex Hilbert space. A q-ary quantum code \({\mathcal {Q}}\) of length n over \({\mathbb {F}}_q\) is a \(q^k\)-dimensional subspace of \(({\mathbb {C}}^{q})^{\otimes n}\), denoted by \([[n,k,d]]_q\) where d is the minimum distance of \({\mathcal {Q}}\). A quantum code with the minimum distance d can correct both bit flip and phase shift type of errors up to \(\lfloor \frac{d-1}{2}\rfloor \). As in [51], similar to the singleton bound for classical codes, quantum codes satisfy \(k \le n-2d+2\) and a quantum code attains this bound, known as the quantum maximum distance separable (MDS) code.

In 1999, Rains [52] obtained many non-binary quantum MDS codes of minimum distance 2 from classical linear codes over \({\mathbb {F}}_q\). Further, Grassl et al. [24] constructed many classes of quantum MDS codes over \({\mathbb {F}}_q\). In 2015, Grassl and Rötteler [25] obtained several classes of quantum MDS codes with magnificent minimum distances over small fields. Afterward, many authors [1, 2, 16, 25, 26, 28, 31, 37, 41, 56, 57] used different classes of linear codes over a finite field to construct optimal quantum codes.

It has also been noticed that classical linear (cyclic or constacyclic) codes over finite rings can be viewed as an excellent resource for producing many good quantum codes. In 2009, Qian et al. [50] obtained many binary quantum codes from cyclic codes over the ring \({\mathbb {F}}_2+u{\mathbb {F}}_2\) where \(u^2=0\). Further, Kai and Zhu [36] presented several new quantum codes from cyclic codes over the ring \({\mathbb {F}}_4+u{\mathbb {F}}_4\) with \(u^2=0\). In 2015, Ashraf and Mohammad [3] constructed quantum codes over \({\mathbb {F}}_{p}\) from cyclic codes over the non-chain ring \({\mathbb {F}}_{p}+v{\mathbb {F}}_{p}\). Dertli et al. [17] studied cyclic codes over the ring \({\mathbb {F}}_{2}+u{\mathbb {F}}_{2}+v{\mathbb {F}}_{2}+uv{\mathbb {F}}_{2}\) and constructed some new binary quantum codes. Again, Ashraf and Mohammad [4] generalized their work over the ring \({\mathbb {F}}_{q}+u{\mathbb {F}}_{q}+v{\mathbb {F}}_{q}+uv{\mathbb {F}}_{q}\) and obtained many new non-binary quantum codes. Later, Gao and Wang [22] discussed the structural properties of u-constacyclic codes over the ring \({\mathbb {F}}_p+u{\mathbb {F}}_p,\) where \(u^2=1\) and constructed several new non-binary quantum codes. Further, Ma et al. [44] considered the ring \({\mathbb {F}}_p+v{\mathbb {F}}_p+v^2{\mathbb {F}}_p\) and obtained some new quantum codes. Recently, Habibul et al. [32] constructed quantum codes from constacyclic codes over the family of the non-chain rings \(R_{k,m}\). For more literature on quantum codes from cyclic or constacyclic codes over different rings, we refer [20, 29, 40, 45, 58]. On the other hand, Ezerman et al. [19] constructed asymmetric quantum codes over GF(4) from skew cyclic codes in 2010. Recently, Li et al. [39] constructed many quantum codes by considering skew constacyclic codes over \({\mathbb {F}}_{q^2} [u, v]/< u^2 -u, v^2 -v, uv -vu>\). In 2022, Verma et al. [55], obtained several new quantum codes and quantum MDS codes from additive skew constacyclic codes over \(R_{l,m}\).

In 1992, Massey [46] introduced linear complementary dual (LCD) codes, a new class of linear codes. These codes had shown to be an optimal linear coding solution of a two-user binary adder channel. Later, Yang and Massey [59] gave a necessary and sufficient condition for cyclic codes over a finite field to be LCD. In 2015, Liu and Liu [43] studied LCD codes over finite chain ring. Afterward, Li [38] studied Hermitian LCD codes from cyclic codes. In 2018, Carlet et al. [15] studied Euclidean and Hermitian MDS LCD codes. Again, Liu and Wang [42] studied LCD codes over rings. Recently, Prakash et al. [48] discussed the structure of LCD codes over a non-chain ring \({\mathbb {F}}_q+u{\mathbb {F}}_q\) where \(u^2=1\) and q is a power of an odd prime. More recently, Boulanouar et al. [6] obtained some results for skew constacyclic codes over the finite field to be LCD, and as an application, many MDS codes are presented.

Since skew polynomial rings are noncommutative and not a unique factorization domain (UFD), polynomials exhibit more factorizations and, consequently, more ideals than in the case of commutative rings. Recently, skew codes have been used to construct many new linear codes with better Hamming distance than already known linear codes with the same parameters [12].

In this paper, with the motivation of the above works, we focus on the following:

  1. (i)

    Obtain the quantum codes from skew constacyclic codes over a non-chain ring \(\mathfrak {R}\) using CSS and Hermitian constructions.

  2. (ii)

    Criterion for skew constacyclic codes over a non-chain ring \(\mathfrak {R}\) to be LCD and by using a gray map construct some MDS codes.

For a prime p and a positive integer e, the ring \( \mathfrak {R}:={\mathbb {F}}_{p^e}[u,v]/\langle f(u),g(v),uv-vu \rangle \) is a finite commutative non-chain ring, where f(u) and g(v) are non-constant square-free polynomials of degree r and s,  respectively. From the earlier research on codes over rings [20, 29, 32, 39, 40, 45], we observe that codes over the finite non-chain ring are a good resource to produce codes with optimal parameters. But due to the fixed structure of non-chain rings, there are many restrictions on the parameters during the construction of quantum codes. Therefore, in this paper, we consider the general non-chain ring \(\mathfrak {R}\) to avoid any constraints on the parameters of the codes during the construction of quantum codes. Mainly, in this paper, we focus on the construction of new quantum codes over qubits with good parameters from codes over rings with a large automorphism group. By this approach, we obtain codes with excellent minimum distance.

The paper is organized as follows: Section. 2 discusses the structure of ring \(\mathfrak {R}\) along with some definitions and results related to skew constacyclic codes over \(\mathfrak {R}\). Section 3 establishes a necessary and sufficient condition for skew constacyclic codes over \(\mathfrak {R}\) to contain their duals. Then, by using CSS construction on these Euclidean dual containing skew constacyclic codes over \(\mathfrak {R}\), we obtain some new quantum codes with better parameters than previously known codes. We also provide algorithms that are easy to implement in MAGMA computation software [9] to construct good quantum codes. Section 4 uses Hermitian construction to obtain quantum codes from Hermitian dual containing skew constacyclic codes over \(\mathfrak {R}\). Section 5 contains the result on LCD codes with a necessary and sufficient condition for skew constacyclic codes over \(\mathfrak {R}\) to be LCD (Euclidean/Hermitian). In Sect. 6, we obtain many new and better quantum codes mentioned in Tables 1 and 2 by using CSS and Hermitian constructions, respectively. We also get many linear MDS codes (Table 3) from gray images of Euclidean LCD skew constacyclic codes over \(\mathfrak {R}\). Section 7 concludes the article.

2 Background

In this section, we will first describe the structure of the ring \(\mathfrak {R}\) and the duality preserving gray map. Then, some known results for linear codes over the ring \(\mathfrak {R}\) will be reviewed that are used in subsequent sections.

For a prime p and positive integer e, let \({\mathbb {F}}_{p^e}\) be a finite field and \(\mathfrak {R}:={\mathbb {F}}_{p^e}[u,v]/<f(u),g(v),uv-vu>\), where f(u) and g(v) are non-constant square-free polynomials of degree r and s, respectively. Here, we assume that at least one of r and s is greater than 1, or else \(\mathfrak {R}\) is isomorphic to \({\mathbb {F}}_{p^e}\). Then, there exist \(\mu _i,\nu _j \in {\mathbb {F}}_{p^e}\) with \(\mu _i \ne \mu _i^{'}\) and \(\nu _j \ne \nu _j^{'}\) for all \(i\ne i^{'},\) \(j \ne j^{'},\) \(1 \le i,i^{'} \le r\) and \(1 \le j,j^{'} \le s\) such that

$$\begin{aligned} f(u)&=(u-\mu _1)(u-\mu _2)\cdots (u-\mu _r),\\ g(v)&=(v-\nu _1)(v-\nu _2)\cdots (v-\nu _s). \end{aligned}$$

Consider the elements \(\varepsilon _i\) and \(\varsigma _j\) of the ring \(\mathfrak {R}\) as

$$\begin{aligned} \varepsilon _i&= \varepsilon _i(u) = \frac{(u-\mu _1)(u-\mu _2)\dots (u-\mu _{i-1})(u-\mu _{i+1})\cdots (u-\mu _r)}{(\mu _i-\mu _1)(\mu _i-\mu _2)\cdots (\mu _i-\mu _{i-1})(\mu _i-\mu _{i_1})\cdots (\mu _i-\mu _r)},\\ \varsigma _j&=\varsigma _j(v) =\frac{(v-\nu _1)(v-\nu _2)\dots (v-\nu _{j-1})(v-\nu _{j+1})\cdots (v-\nu _s)}{(\nu _j-\nu _1)(\nu _j-\nu _2)\cdots (\nu _j-\nu _{j-1})(\nu _j-\nu _{j_1})\cdots (\nu _j-\nu _s)}, \end{aligned}$$

with the convention that \(\varepsilon _1=1\) when \(r=1\) and \(\varsigma _1=1\) when \(s=1\).

Clearly,

$$\begin{aligned} \varepsilon _i \varepsilon _{i^{'}}={\left\{ \begin{array}{ll} \varepsilon _i, &{} \text {if}\,i=i^{'}\\ 0, &{} \text {if}\,i \ne i^{'} \end{array}\right. } \quad \text {and}\quad \varsigma _j \varsigma _{j^{'}}={\left\{ \begin{array}{ll} \varsigma _j, &{} \text {if}\,j=j^{'}\\ 0, &{} \text {if}\,j \ne j^{'}.\end{array}\right. } \end{aligned}$$

Also, \(\sum _{i=1}^{r}\varepsilon _i=1\) modulo f(u) and \(\sum _{j=1}^{s}\varsigma _j=1\) modulo g(v).

Now, for \(1 \le i \le r\) and \(1 \le j \le s\), define \(\gamma _{ij}= \gamma _{ij}(u,v)= \varepsilon _i(u)\varsigma _j(v).\)

Hence, for \(1 \le i,i^{'} \le r\) and \(1 \le j,j^{'} \le s\),

$$\begin{aligned} \gamma _{ij} \gamma _{i^{'}j^{'}}={\left\{ \begin{array}{ll} \gamma _{ij}, &{} \text {if}\,(i,j)=(i^{'},j^{'})\\ 0, &{} \text {if}\,(i,j) \ne (i^{'},j^{'}) \end{array}\right. } \end{aligned}$$

i.e., for \(1 \le i,i^{'} \le r\) and \(1 \le j,j^{'} \le s\), \(\{\gamma _{ij}\}\) is the set of primitive orthogonal idempotents in \(\mathfrak {R}\). Therefore, by using Chinese Remainder Theorem, we decompose the ring \(\mathfrak {R}\) as

$$\begin{aligned} \mathfrak {R}= & {} ~ \bigoplus _{i,j}\gamma _{ij} \mathfrak {R} \cong ~ \bigoplus _{i,j}\gamma _{ij} {\mathbb {F}}_{p^e}. \end{aligned}$$

Also, any element \(r \in \mathfrak {R}\) can be uniquely expressed as

$$\begin{aligned} r(u,v)=\sum _{i,j} \beta _{ij} \gamma _{ij}, \end{aligned}$$

where \(\beta _{ij} \in {\mathbb {F}}_{p^e}\) for \(1 \le i \le r\) and \(1 \le j \le s\).

Let \( GL_{ rs}( {\mathbb {F}}_{p^e})\) be the set of all \(rs \times rs\) nonsingular matrices over \({\mathbb {F}}_{p^e} \) and \( A \in GL_{rs}( {\mathbb {F}}_{p^e})\) such that \(A \cdot A^{T} = \kappa I\) where \( \kappa \in {\mathbb {F}}^{*}_{p^e}\), \(A^{T}\) is the transpose of matrix A, I is the identity matrix and \({\mathbb {F}}^{*}_{p^e}\) is the set of nonzero elements of \({\mathbb {F}}_{p^e}\). Define the gray map associated with matrix A as

$$\begin{aligned} \varphi : \mathfrak {R} \rightarrow {\mathbb {F}}_{p^e}^{rs} \end{aligned}$$

by

$$\begin{aligned} \varphi (r(u,v))= & {} \varphi \left( \sum _{i,j} \beta _{ij} \gamma _{ij}\right) \\= & {} (\beta _{11}, \beta _{12}, \dots , \beta _{1s}, \dots , \beta _{21}, \beta _{22}, \dots , \beta _{2s}, \dots , \beta _{r1}, \beta _{r2}, \dots , \beta _{rs})A\\= & {} \varvec{r}A. \end{aligned}$$

Here, we enumerate the vector \((\beta _{11}, \beta _{12}, \dots , \beta _{1\,s}, \dots , \beta _{21}, \beta _{22}, \dots , \beta _{2\,s}, \dots , \beta _{r1},\)\( \beta _{r2}, \dots , \beta _{rs})\) as \(\varvec{r}\). This map \(\varphi \) can be extended from \(\mathfrak {R}^{n}\) to \({\mathbb {F}}_{p^e}^{rs n}\) componentwise. Also, it is easy to check that \(\varphi \) is \({\mathbb {F}}_{p^e}\)-linear and distance-preserving bijective map.

Recall that a linear code \(\mathfrak {C}\) of length n over \(\mathfrak {R}\) is a submodule of an \(\mathfrak {R}\)-module \(\mathfrak {R}^{n}\) and elements of \(\mathfrak {C}\) are called codewords. The Hamming weight \(w_{H}(\mathfrak {a})\) for a codeword \(\mathfrak {a}=(\mathfrak {a}_{0},\mathfrak {a}_{1},\dots ,\mathfrak {a}_{n-1})\in \mathfrak {C}\) is defined as the number of nonzero components in \(\mathfrak {a}\). Moreover, if \(\mathfrak {a},\mathfrak {d} \in \mathfrak {C}\), then the Hamming distance \(d_{H}(\mathfrak {a},\mathfrak {d})\) between \(\mathfrak {a}\) and \( \mathfrak {d}\) is defined as \(w_{H}(\mathfrak {a}-\mathfrak {d})\) and the Hamming distance of the code \(\mathfrak {C}\) is given as \(d_{H}(\mathfrak {C})=min\{d_{H}(\mathfrak {a},\mathfrak {d})\mid \mathfrak {a} \ne \mathfrak {d}, \forall ~\mathfrak {a},\mathfrak {d}\in \mathfrak {C} \}\). Also, the Lee weight of an element \(r(u,v) \in \mathfrak {R}\) is defined as the Hamming weight of \(\varphi (r(u,v)),\) i.e., \(w_{L}(r(u,v))=w_{H}(\varphi (r(u,v)))\) and for any element \(\mathfrak {a}=(\mathfrak {a}_0,\mathfrak {a}_1,\dots ,\mathfrak {a}_{n-1}) \in \mathfrak {R}^n \) the Lee weight is defined as \(w_{L}(\mathfrak {a})=\sum _{i=0}^{n-1}w_{L}(\mathfrak {a}_{i})\). Again, the Lee distance between any two codewords \(\mathfrak {a}, \mathfrak {d}\) is define by \(d_{L}(\mathfrak {a}, \mathfrak {d})=w_{L}(\mathfrak {a}- \mathfrak {d})=w_{H}(\varphi (\mathfrak {a}- \mathfrak {d}))=w_{H}(\varphi (\mathfrak {a})- \varphi (\mathfrak {d}))\) and Lee distance for the code \(\mathfrak {C}\) is \(d_{L}(\mathfrak {C})=min\{d_{L}(\mathfrak {a}, \mathfrak {d})\mid \mathfrak {a} \ne \mathfrak {d}, \mathfrak {a}, \mathfrak {d} \in \mathfrak {C} \}\).

Let \(\mathfrak {C}\) be a linear code of length n over the ring \(\mathfrak {R}\). For each pair (ij) , \(1 \le i \le r\), \(1 \le j \le s\), define the set

$$\begin{aligned} \mathcal {D}_{ij}:= \!\!\left\{ t_{ij} \in {\mathbb {F}}^n_{p^e} \mid ~\exists ~ t_{i'j'} \in {\mathbb {F}}_{p^e}, (i,j) \ne (i',j')~ \text {such that}~ t_{ij}\gamma _{ij}{+}\sum _{i',j'} t_{i'j'} \gamma _{i'j'} \in \mathfrak {C} \right\} . \end{aligned}$$

Clearly, the sets \(\mathcal {D}_{ij}\) are linear codes of length n over \({\mathbb {F}}_{p^e}\) for each pair (ij) , \(1 \le i \le r\), \(1 \le j \le s\). Moreover, if \(\mathfrak {C}\) is any linear code of length n over \(\mathfrak {R}\), then we can uniquely express it as \(\mathfrak {C}= \bigoplus _{i,j } \gamma _{ij} \mathcal {D}_{ij}\). Further, the generator matrix for linear code \(\mathfrak {C}\) over \(\mathfrak {R}\) can be given as \(M=\begin{pmatrix} \gamma _{ij} M_{ij}\ \end{pmatrix}\) where the matrices \(M_{ij}\) are generator matrices of \(\mathcal {D}_{ij}\) for each pair (ij),  \(1 \le i \le r\), \(1 \le j \le s\). Also, if \(\mathfrak {C} =\bigoplus _{i,j } \gamma _{ij} \mathcal {D}_{ij}\) is a linear code over \(\mathfrak {R}\) of length n, gray distance \(d_{G}\), and \(\mid \mathfrak {C} \mid = p^{e\sum _{i=1}^{r}\sum _{j=1}^{s}k_{ij}}\), then \(\varphi (\mathfrak {C})\) is a linear \([rsn, K, d_{H}]\) code over \({\mathbb {F}}_{p^e}\) where \(d_{G}=d_{H}\), \(K=\sum _{i=1}^{r}\sum _{j=1}^{s}k_{ij}\) and \(k_{ij}\) denotes the dimension of the code \(\mathcal {D}_{ij}\) for each pair (ij),  \(1 \le i \le r\), \(1 \le j \le s\), respectively.

The following Lemma illustrates the units of the ring \(\mathfrak {R}.\)

Lemma 1

Let \(\lambda =\lambda (u,v)=\sum _{i,j} \gamma _{ij} \beta _{ij} \in \mathfrak {R}\) where \(\beta _{ij} \in {\mathbb {F}}_{p^e}\). Then, \(\lambda \) is a unit in \(\mathfrak {R}\) if and only if for each pair (ij),  \(1 \le i \le r,\) \(1 \le j \le s,\) the corresponding element \(\beta _{ij}\) is a unit in \({\mathbb {F}}_{p^e}.\)

Proof

Let \(\lambda =\lambda (u,v)=\sum _{i,j} \gamma _{ij} \beta _{ij} \in \mathfrak {R}\) be a unit in \(\mathfrak {R}\) where \(\beta _{ij} \in {\mathbb {F}}_{p^e}\). Then, there exists an element \(\xi =\sum _{i^{'}j^{'}} \gamma _{i^{'}j^{'}} \alpha _{i^{'}j^{'}} \in \mathfrak {R}\) such that \(\lambda \xi =1\). This implies that \(\sum _{i,j} \gamma _{ij} \beta _{ij} \sum _{i^{'}j^{'}} \gamma _{i^{'}j^{'}} \alpha _{i^{'}j^{'}}=1\). Since for each pair (ij),  \(1 \le i \le r,\) \(1 \le j \le s\), the elements \(\gamma _{ij}\) are primitive orthogonal idempotents in \(\mathfrak {R}\). Thus, \(\beta _{ij} \alpha _{ij}=1\), i.e., \(\beta _{ij}\) are units in \({\mathbb {F}}_{p^e}\) for all (ij),  \(1 \le i \le r,\) \(1 \le j \le s\).

Conversely, for all (ij),  \(1 \le i \le r,\) \(1 \le j \le s\), let \(\beta _{ij}\) be units in \({\mathbb {F}}_{p^e}\). Now, from the unique representation of \(\lambda =\lambda (u,v) \in \mathfrak {R},\) we can write \(\lambda =\sum _{i,j} \gamma _{ij} \beta _{ij}\). Consider an element \(\mathfrak {t}= \sum _{i,j} \gamma _{ij} \beta _{ij}^{-1}.\) Then \(\lambda \mathfrak {t}= \sum _{i,j} \gamma _{ij} \beta _{ij} \sum _{i,j} \gamma _{ij} \beta _{ij}^{-1}=1\). Thus, \(\lambda \) is a unit in \(\mathfrak {R}\). \(\square \)

The element \(\lambda =\sum _{i,j } \gamma _{ij} \beta _{ij} \in \mathfrak {R}\) always denotes a unit in \(\mathfrak {R}\), where \(\beta _{ij}\) is corresponding unit in \({\mathbb {F}}_{p^e}\). We denote the set of all units of the ring \(\mathfrak {R}\) by \(\mathfrak {R}^{*}\).

2.1 Skew constacyclic codes over the ring \(\mathfrak {R}\) and their gray images

In this subsection, we give a sketch of the skew polynomial ring \(\mathfrak {R}\) and a short review based on some results on skew constacyclic codes over the ring \(\mathfrak {R}\) given in [8]. Moreover, we also find the gray images of these codes.

Let \({\mathbb {F}}_{p^e}\) be a finite field and \(\mathcal {G}=Aut_{{\mathbb {F}}_p}({\mathbb {F}}_{p^e})\) be the set of automorphisms \(\sigma \) of \({\mathbb {F}}_{p^e}\) given by \(\sigma (z)=z^{\imath }\), for some \( 0 \le \imath \le {e-1}\). Then \(\mathcal {G}\) is a cyclic group of order e generated by \(\theta \) with fixed field \({\mathbb {F}}_{p}\), where \(\theta \) is the Frobenius automorphism of \({\mathbb {F}}_{p^e}\) given by \(z\longmapsto z^p\), for all \(z \in {\mathbb {F}}_{p^e}\). Now, define a map

$$\Theta : \mathfrak {R} \longrightarrow \mathfrak {R}$$

as

$$\Theta (r(u,v))= \Theta \left( \sum _{i,j} \beta _{ij} \gamma _{ij}\right) = \sum _{i,j} \theta (\beta _{ij}) \gamma _{ij}.$$

Clearly, \(\Theta \mid _{{\mathbb {F}}_{p^e}}=\theta .\) Let us consider the set

$$\mathfrak {R}[x;\Theta ]= \{b_0+b_1x+ \dots +b_{n}x^{n} \mid b_{i}\in \mathfrak {R}~ \forall ~ i, n \in \mathbb {N} \}.$$

Then the set \(\mathfrak {R}[x;\Theta ]\) forms a ring under the usual addition of polynomials, and multiplication is defined by \((ax^{i})(bx^{j})=a\Theta ^{i}(b)x^{i+j}.\) This ring is known as a skew polynomial ring. Since in general, \((ax)(bx)=a\Theta (b)x^{2} \ne b \Theta (a)x^{2}= (bx)(ax)\). Therefore, \(\mathfrak {R}[x;\Theta ]\) is a noncommutative ring unless \(\Theta \) is an identity automorphism.

Note that \(\mathfrak {R}[x;\Theta ]\) is neither left nor right Euclidean, but unitary skew polynomials satisfy the right division algorithm in the same way as it does for chain rings [34]. In particular, if a(x) and b(x) are two skew polynomials, where the leading coefficient of b(x) is unit, then there exist unique skew polynomials q(x) and r(x) in \(\mathfrak {R}[x;\Theta ]\) such that \(a(x)= q(x)b(x)+r(x)\), where \(r(x)=0\) or \(deg(r(x)) < deg(b(x)) \). If \(r(x)=0\), then we say b(x) is a right divisor of a(x). Also, the least common right multiple (lcrm) and the greatest common left divisors (gcld) can be defined similarly. Now, we define skew constacyclic codes over \(\mathfrak {R}\).

Definition 1

Let \(\lambda \in \mathfrak {R}^{*}\) and \( \Theta \in Aut(\mathfrak {R})\). Let \(\tau _{(\Theta , \lambda )}: \mathfrak {R}^n \longrightarrow \mathfrak {R}^n\) be a skew constacyclic shift operator defined by \(\tau _{(\Theta , \lambda )}(\mathfrak {r})=(\lambda \Theta ( r_{n-1}),\Theta (r_{0}),\dots ,\Theta (r_{n-2}))\), for any \(\mathfrak {r}=(r_{0},r_{1},\dots ,r_{n-1})\in \mathfrak {R}^n.\) Then a linear code \(\mathfrak {C}\) of length n over \(\mathfrak {R}\) is said to be a skew \((\Theta , \lambda )\)-constacyclic code if \(\mathfrak {C}\) is closed under skew constacyclic shift operator \(\tau _{(\Theta , \lambda )}\). In particular, a skew \((\Theta , \lambda )\)-constacyclic code is called a skew negacyclic if \(\lambda = -1\) and skew cyclic if \(\lambda =1\). Moreover, if \(\Theta \) is identity automorphism, then skew \((\Theta , \lambda )\)-constacyclic code is the usual \(\lambda \)-constacyclic code over \(\mathfrak {R}\).

Suppose \(\lambda \in \mathfrak {R}^{*},~ \Theta \in Aut(\mathfrak {R})\). Define a map \(\rho : \mathfrak {R}^n \longrightarrow \frac{\mathfrak {R}[x; \Theta ]}{(x^n-\lambda )}\) as \(\rho (\mathfrak {d})=\rho (\mathfrak {d}_{0},\mathfrak {d}_{1},\dots ,\mathfrak {d}_{n-1})\mapsto \mathfrak {d}(x)=(\mathfrak {d}_{0}+\mathfrak {d}_{1}x+\dots +\mathfrak {d}_{n-1}x^{n-1})\) mod \((x^{n}-\lambda ).\) Then similar to the polynomial representation of constacyclic codes, we can also identify each codeword \(\mathfrak {c}=(c_{0},c_{1},\dots ,c_{n-1})\in \mathfrak {C}\) by a polynomial \(\mathfrak {c}(x)=c_{0}+c_{1}x+\dots +c_{n-1}x^{n-1}\in \mathfrak {R}[x;\Theta ]/\langle x^{n}-\lambda \rangle \). Note that the problem to find all \(\lambda \)-constacyclic codes of length n over the ring \(\mathfrak {R}\) is equivalent to finding all the ideals of the quotient ring \(\frac{\mathfrak {R}[x]}{\langle x^n- \lambda \rangle }.\) However, being \(\mathfrak {R}[x; \Theta ]\) a noncommutative ring, \(\frac{\mathfrak {R}[x; \Theta ]}{\langle x^n- \lambda \rangle }\) need not be a ring. But it forms a left \(\mathfrak {R}[x; \Theta ]-\)module structure under the scalar multiplication define by \(u(x)(v(x)-(x^{n}-\lambda ))=u(x)v(x)+( x^{n}-\lambda ).\) Thus, a skew \((\Theta ,\lambda )\)-constacyclic code of length n over \(\mathfrak {R}\) is define as a left \(\mathfrak {R}[x; \Theta ]\)-submodule of the module \(\frac{\mathfrak {R}[x; \Theta ]}{\langle x^n-\lambda \rangle }.\) Note that if \(\Theta (\lambda )=\lambda \) and \(o(\Theta )\mid n\), then \(x(x^n-\lambda )=x^{n+1}-\Theta (\lambda )x=(x^n-\lambda )x\), where \(o(\Theta )\) represents the order of \(\Theta \). Also, \((x^n-\lambda )\lambda ^{'}=\Theta ^n(\lambda ^{'})x^n-\lambda ^{'}\lambda =\lambda ^{'}(x^n-\lambda ),\) for all \(\lambda ^{'} \in \mathfrak {R}\). Therefore, \(\langle x^n-\lambda \rangle \) forms two sided ideal in \(\mathfrak {R}[x; \Theta ]\) and in this case the quotient \(\frac{\mathfrak {R}[x; \Theta ]}{\langle x^n- \lambda \rangle }\) forms ring structure and any skew \((\Theta ,\lambda )\)-constacyclic code of length n over \(\mathfrak {R}\) can be viewed as a left ideal in \(\frac{\mathfrak {R}[x; \Theta ]}{\langle x^n-\lambda \rangle }.\) Although, in both cases, these codes are generated by a monic right divisor of \(x^n-\lambda .\)

Theorem 1

([8], Theorem 6) Let \(\mathfrak {C} =\bigoplus _{i,j } \gamma _{ij} \mathcal {D}_{ij}\) be a linear code of length n over \(\mathfrak {R}\). Then, \(\mathfrak {C}\) is a skew \((\Theta , \lambda )\)-constacyclic code if and only if \(\mathcal {D}_{ij}\) is a skew \((\theta , \beta _{ij})\)-constacyclic code over \({\mathbb {F}}_{p^e},\) for each pair (ij),  \(1 \le i \le r,\) \(1 \le j \le s\), respectively. Here, \(\beta _{ij}\)’s are units defined in Lemma 1.

Theorem 2

([8], Theorem 8) Let \(\mathfrak {C} =\bigoplus _{i,j } \gamma _{ij} \mathcal {D}_{ij}\) be a skew \((\Theta , \lambda )\)-constacyclic code of length n over \(\mathfrak {R}\) and \(f_{ij}(x)\) be the generator polynomial of skew \((\theta , \beta _{ij})\)-constacyclic code \(\mathcal {D}_{ij}\) over \({\mathbb {F}}_{p^e}\) for each pair (ij),  \(1 \le i \le r,\) \(1 \le j \le s\), respectively. Then

  1. 1.

    there exists a polynomial \(g(x) \in \mathfrak {R}[x;\Theta ]\) such that \(\mathfrak {C} =\langle f(x) \rangle \) and \((x^n-\lambda )\) is right divisible by f(x), where \(f(x)=\sum _{i=1}^{r} \sum _{j=1}^{s}\gamma _{ij} f_{ij}(x)\).

  2. 2.

    \(\mathfrak {C}= \langle \gamma _{11} f_{11}(x), \dots , \gamma _{1\,s} f_{1\,s}(x), \dots , \gamma _{r1} f_{r1}(x), \dots , \gamma _{rs} f_{rs}(x) \rangle \) and \(\mid \mathfrak {C} \mid = p^{{ersn}- \sum _{i=1}^{r} \sum _{j=1}^{s} \text {deg}f_{ij}(x)}\).

Next, we discuss the gray images of skew \((\Theta , \lambda )\)-constacyclic codes \(\mathfrak {C}\) of length n over \(\mathfrak {R}.\) We begin with the following definition.

Definition 2

Suppose \(n=st\) (where st are positive integers) and \(\Upsilon _{\Theta ,t}: \mathfrak {R}^n \longrightarrow \mathfrak {R}^n\) be a linear operator defined by

$$\begin{aligned} \Upsilon _{\Theta ,t}(\mathfrak {c})&=(c^1 \mid c^2 \mid \dots \mid c^t)\\&= ( \tau _{\Theta ,\lambda }(c^1) \mid \tau _{\Theta ,\lambda }(c^2) \mid \dots \mid \tau _{\Theta ,\lambda }(c^t)) \end{aligned}$$

where \(c^i \in \mathfrak {R}^s\) for \(i=1,2, \dots , t\), then \(\mathfrak {C}\) is said to be a skew quasi-twisted code of length n and index t if \(\Upsilon _{\Theta ,t}(\mathfrak {C})=\mathfrak {C}\). If \(\Theta \) is the identity automorphism, then \(\mathfrak {C}\) is a quasi-twisted code of length n and index t over \(\mathfrak {R}\).

Theorem 3

([8], Theorem 13) Let \(\mathfrak {C} =\bigoplus _{i,j } \gamma _{ij} \mathcal {D}_{ij}\) be a skew \((\Theta , \lambda )\)-constacyclic code of length n over \(\mathfrak {R}\). Then, \(\varphi (\mathfrak {C})\) is a skew quasi-twisted code of length rsn over \({\mathbb {F}}_{p^e}\) and index rs.

We close this section with the following remarks.

Remark 1

Let \(g(x)=\sum _{i=0}^{\ell } g_ix^{i}\in {\mathbb {F}}_{p^e}[x;\theta ]\), \(g_0 \ne 0\). The left monic skew-reciprocal polynomial \(g^{*}(x)\) of g(x) is define as \(g^{*}(x)= \frac{1}{\theta ^{\ell }(g_0)}(\sum _{i=0}^{\ell } \theta ^{i}(g_{\ell -i})x^{i})\). Also, the left monic skew Hermitian reciprocal polynomial \(g^{\dagger }(x)\) of g(x) is defined as \(g^{\dagger }(x)=\theta (g^{*}(x)).\) Boucher et al. [13], Theorem 1] proved that if \(\beta \) is a fixed unit under the automorphism \(\theta \) such that \(\beta ^2=1\) and \(\mathfrak {C}= \langle f(x) \rangle \) is a skew \(\beta \)-constacyclic code of length n over \({\mathbb {F}}_{p^e}\), where n is multiple of \(o(\theta )\), then \(\mathfrak {C}^{\perp _E}=\langle h^{*}(x) \rangle \). If \(o(\theta )\) is 2, then \(\mathfrak {C}^{\perp _H}= \langle h^{\dagger }(x) \rangle \) where \(f(x)h(x)=h(x)f(x)=x^n-\beta .\) Here, \(\mathfrak {C}^{\perp _E}\) and \(\mathfrak {C}^{\perp _H}\) are skew \(\beta ^{-1}\)-constacyclic codes and named as Euclidean and Hermitian dual of code \(\mathfrak {C}\) defined in Sects. 3 and 4, respectively.

Remark 2

From here onwards, \(\lambda \in \mathfrak {R}^{*}\) represents a unit fixed by the automorphism \(\theta \), and the length of skew \(\lambda \)-constacyclic code is the multiple of the order of \(\Theta \).

3 Quantum codes from Euclidean dual containing skew \((\Theta , \lambda )\)-constacyclic code over \(\mathfrak {R}\)

This section contains the construction of quantum codes from Euclidean dual containing skew \((\Theta , \lambda )\)-constacyclic code over \(\mathfrak {R}.\) Here, we begin with the following definition.

Definition 3

Let \(\mathfrak {C}\) be a linear code \(\mathfrak {C}\) of length n over \(\mathfrak {R}\). Then, Euclidean dual \(\mathfrak {C}^{\perp _E}\) of \(\mathfrak {C}\) is defined as

$$\begin{aligned} \mathfrak {C}^{\perp _E}&=\{\mathfrak {a}\in \mathfrak {R}^{n} \mid <\mathfrak {a},\mathfrak {d}>_E=0 \text { for all }\mathfrak {d} \in \mathfrak {C}\}, \end{aligned}$$

where \(< \mathfrak {a}, \mathfrak {d}>_E=\sum _{i=0}^{n-1} \mathfrak {a}_i\mathfrak {d}_i\) denotes the Euclidean inner product of vectors \(\mathfrak {a}=(\mathfrak {a}_0,\mathfrak {a}_1,\cdots ,\mathfrak {a}_{n-1})\) and \(\mathfrak {d}=(\mathfrak {d}_0,\mathfrak {d}_1,\dots ,\mathfrak {d}_{n-1})\). Code \(\mathfrak {C}\) is called Euclidean self-orthogonal, Euclidean self-dual and Euclidean dual containing if \(\mathfrak {C} \subseteq \mathfrak {C}^{\perp _E},\) \(\mathfrak {C} = \mathfrak {C}^{\perp _E}\) and \( \mathfrak {C}^{\perp _E} \subseteq \mathfrak {C},\) respectively.

Recently, Jitman et al. [34] proved that the dual of a skew \((\Theta , \lambda )\)-constacyclic code of length n over a chain ring is a skew \((\Theta , {\lambda }^{-1})\)-constacyclic code provided n is a multiple of \(o(\Theta )\) and \(\Theta (\lambda )=\lambda .\) It is also easy to prove the same result over a non-chain ring appeared in [8].

Lemma 2

([8], Theorem 7) A linear code \(\mathfrak {C} =\bigoplus _{i,j } \gamma _{ij} \mathcal {D}_{ij}\) of length n over \(\mathfrak {R}\) is skew \((\Theta , \lambda )\)-constacyclic code if and only if \(\mathfrak {C}^{\perp _E} =\bigoplus _{i,j } \gamma _{ij} \mathcal {D}_{ij}^{\perp _E}\) is a skew \((\Theta , {\lambda }^{-1})\)-constacyclic code over \(\mathfrak {R}\) and \(\mathcal {D}_{ij}^{\perp _E}\) is a skew \((\theta ,\beta _{ij}^{-1})\)-constacyclic code over \({\mathbb {F}}_{p^e}.\) Moreover, \(\mathfrak {C}\) is Euclidean self-dual over \(\mathfrak {R}\) if and only if \(\mathcal {D}_{ij}\) is a Euclidean self-dual code over \({\mathbb {F}}_{p^e}\) for each pair (ij) , \(1 \le i \le r\), \(1 \le j \le s\).

Lemma 3

([8], Theorem 8) Let \(\mathfrak {C} =\bigoplus _{i,j } \gamma _{ij} \mathcal {D}_{ij}\) be a skew \((\Theta , \lambda )\)-constacyclic code of length n over \(\mathfrak {R}\). If \(\mathcal {D}_{ij}=\langle f_{ij}(x)\rangle \) such that \((x^n-\beta _{ij})= h_{ij}(x)f_{ij}(x)\) for each pair (ij),  \(1 \le i \le r,\) \(1 \le j \le s\), respectively, then

  1. 1.

    \( \mathfrak {C}^{\perp _E}=\bigoplus _{i,j}\gamma _{ij}\mathcal {D}^{\perp _E}_{ij}\) is a skew \((\Theta , \lambda ^{-1})\)-constacyclic code of length n over \(\mathfrak {R}.\)

  2. 2.

    \( \mathfrak {C}^{\perp _E}= \langle \sum _{i} \sum _{j} \gamma _{ij} {h^*_{ij}}(x) \rangle ,\) where \(h^*_{ij}(x)\) is skew-reciprocal polynomial of \(h_{ij}(x)\) for each pair (ij),  \(1 \le i \le r,\) \(1 \le j \le s\).

  3. 3.

    \( \mid \mathfrak {C}^{\perp _E} \mid =p^{e{\sum _{i=1}^r \sum _{j=1}^s} \text {deg} (f_{ij}(x))}\).

Now, we recall CSS construction (Lemma 4) and then establish a necessary and sufficient condition for skew \((\Theta , \lambda )\)-constacyclic codes to contain their Euclidean duals.

Lemma 4

([14]) Let \(\mathcal {C}_1=[n,k_{1},d_{1}]_{p^m}\) and \(\mathcal {C}_{2}=[n,k_{2},d_{2}]_{p^m}\) be two linear codes such that \(\mathcal {C}_{2}^{\perp _E}\subseteq \mathcal {C}_{1}\). Then, there exists a quantum code \([[n,k_{1}+k_{2}-n,d]]_{p^m}\) where \(d=min\{w(\mathfrak {r}): \mathfrak {r}\in (\mathcal {C}_{1}\backslash \mathcal {C}_{2}^{\perp _E})\cup (\mathcal {C}_{2}\backslash \mathcal {C}_{1}^{\perp _E})\}\ge min\{ d_{1},d_{2}\}\). Moreover, if \(\mathcal {C}_{1}^{\perp _E}\subseteq \mathcal {C}_{1},\) then there exists a quantum code \([[n,2k_{1}-n,d_{1}]]_{p^m}\).

Lemma 5

Let \(\mathcal {D}_{ij}= \langle f_{ij}(x) \rangle \) be a skew \((\theta ,\beta _{ij})\)-constacyclic code of length n over \({\mathbb {F}}_{p^e}.\) Then \(\mathcal {D}_{ij}\) is a Euclidean dual containing code if and only if for each pair (ij),  \(1 \le i \le r,\) \(1 \le j \le s,\) \(h_{ij}^{*}(x) h_{ij}(x)\) is right divisible by \(x^n-\beta _{ij},\) where \(x^n-\beta _{ij}=h_{ij}(x) f_{ij}(x)\) and \(h_{ij}^{*}(x)\) is the skew-reciprocal polynomial of \(h_{ij}(x)\) and \(\beta _{ij}^2 = 1.\)

Proof

Suppose \(\mathcal {D}_{ij}= \langle f_{ij}(x) \rangle \) is a skew \((\theta ,\beta _{ij})\)-constacyclic code of length n over \({\mathbb {F}}_{p^e}\) and for each pair (ij),  \(1 \le i \le r,\) \(1 \le j \le s,\) \(h_{ij}^{*}(x) h_{ij}(x)\) is right divisible by \(x^n-\beta _{ij}.\) Consider \(l_{ij}(x) \in \mathcal {D}_{ij}^{\perp _E}\). Then, there exists a \( v_{ij}(x)\) in \( {\mathbb {F}}_{p^m}[x;\theta ]\) such that \(l_{ij}(x)=v_{ij}(x)h_{ij}^{*}(x).\) Now, we multiply by \(h_{ij}(x)\) from right, we get \(l_{ij}(x)h_{ij}(x)=v_{ij}(x)h_{ij}^{*}(x)h_{ij}(x).\) As \(h_{ij}^{*}(x) h_{ij}(x)\) is right divisible by \(x^n-\beta _{ij},\) \(h_{ij}^{*}(x) h_{ij}(x) =u_{ij}(x) (x^n-\beta _{ij})=u_{ij}(x)h_{ij}(x) f_{ij}(x)\), for some skew polynomials \(u_{ij}(x)\). Since n is multiple of \(o(\theta )\) and \(\theta (\beta _{ij})=\beta _{ij}\), \(h_{ij}(x) \) and \(f_{ij}(x)\) commutes. Hence, \(l_{ij}(x)=v_{ij}(x)u_{ij}(x)f_{ij}(x)\), i.e., \(l_{ij} \in \mathcal {D}_{ij}\). Thus, \(\mathcal {D}_{ij}\) is Euclidean dual containing skew \((\theta ,\beta _{ij})\)-constacyclic code over \({\mathbb {F}}_{p^e}.\)

Conversely, suppose \(\mathcal {D}_{ij}^{\perp _E} \subseteq \mathcal {D}_{ij},\) for each pair (ij),  \(1 \le i \le r,\) \(1 \le j \le s\). Then, \(f_{ij}(x)\) divides \(h_{ij}^{*}(x),\) where \(x^n-\beta _{ij}=h_{ij}(x) f_{ij}(x)= f_{ij}(x)h_{ij}(x)\). Therefore, there exist some skew polynomials \(t_{ij}(x)\) such that \(h_{ij}^{*}(x)=t_{ij}(x)f_{ij}(x)\). Again, if we right multiply by \(h_{ij}(x)\) in both sides, we get \(h_{ij}^{*}(x)h_{ij}(x)=t_{ij}(x)f_{ij}(x)h_{ij}(x)=t_{ij}(x^n-\beta _{ij}).\) Thus, \(h_{ij}^{*}(x) h_{ij}(x)\) is right divisible by \(x^n-\beta _{ij},\) for each pair (ij),  \(1 \le i \le r,\) \(1 \le j \le s\). \(\square \)

Theorem 4

Let \(\mathfrak {C} =\bigoplus _{i,j } \gamma _{ij} \mathcal {D}_{ij}\) be a skew \((\Theta , \lambda )\)-constacyclic code of length n over \(\mathfrak {R}\) generated by \(f(x)=\sum _{i=1}^{r} \sum _{j=1}^{s}\gamma _{ij} f_{ij}(x)\) where for each pair (ij),  \(1 \le i \le r,\) \(1 \le j \le s,\) polynomial \(f_{ij}(x)\) is the generator polynomial of \(\mathcal {D}_{ij}\) over \({\mathbb {F}}_{p^e}\) and \(\beta _{ij}^2= 1\). Then, \(\mathfrak {C}^{\perp _E} \subseteq \mathfrak {C}\) if and only if \(h_{ij}^{*}(x) h_{ij}(x)\) is right divisible by \(x^n-\beta _{ij}\), where \(x^n-\beta _{ij}=h_{ij}(x) f_{ij}(x)\), for each pair (ij),  \(1 \le i \le r,\) \(1 \le j \le s\).

Proof

Let \(\mathfrak {C} =\bigoplus _{i,j } \gamma _{ij} \mathcal {D}_{ij}\) be a skew \((\Theta , \lambda )\)-constacyclic code of length n over \(\mathfrak {R}\) and f(x) is a generator polynomial of \(\mathfrak {C}\). Then, by Lemma 3, \(\mathfrak {C}^{\perp _E} =\bigoplus _{i,j } \gamma _{ij} \mathcal {D}_{ij}^{\perp _E}\) is skew \((\Theta , {\lambda }^{-1})\)-constacyclic code over \(\mathfrak {R}\) generated by \(h^{*}(x)= \sum _{i} \sum _{j} \gamma _{ij} {h^*_{ij}}(x) \rangle ,\) where \(h^*_{ij}(x)\) is skew-reciprocal polynomial of \(h_{ij}(x)\) for each pair (ij),  \(1 \le i \le r,\) \(1 \le j \le s\).

Now, if \(\mathfrak {C}^{\perp _E} \subseteq \mathfrak {C}\), then \(\bigoplus _{ij} \gamma _{ij} \mathcal {D}_{ij}^{\perp _E}\subseteq \bigoplus _{ij} \gamma _{ij} \mathcal {D}_{ij}\). Hence, for each pair (ij),  \(1 \le i \le r,\) \(1 \le j \le s\) by taking modulo \(\gamma _{ij}\) on both sides, we have \(\mathcal {D}_{ij}^{\perp _E}\subseteq \mathcal {D}_{ij}\). Thus, by Lemma 5, \(h_{ij}^{*}(x) h_{ij}(x)\) is right divisible by \(x^n-\beta _{ij}\) for each pair (ij),  \(1 \le i \le r,\) \(1 \le j \le s\), where \(x^n-\beta _{ij}=h_{ij}(x) f_{ij}(x)\) and \(h_{ij}^{*}(x)\) is the skew-reciprocal polynomial of \(h_{ij}(x)\).

Conversely, suppose for each pair (ij),  \(1 \le i \le r,\) \(1 \le j \le s\), the polynomial \(h_{ij}^{*}(x) h_{ij}(x)\) is right divisible by \(x^n-\beta _{ij}\). Therefore, by Lemma 5, \(\mathcal {D}_{ij}^{\perp _E}\subseteq \mathcal {D}_{ij}\). Consequently, \(\bigoplus _{ij} \gamma _{ij} \mathcal {D}_{ij}^{\perp _E}\subseteq \bigoplus _{ij} \gamma _{ij} \mathcal {D}_{ij}\) or in other words, \(\mathfrak {C}^{\perp _E} \subseteq \mathfrak {C}\). \(\square \)

Corollary 1

Let \(\mathfrak {C} =\bigoplus _{i,j } \gamma _{ij} \mathcal {D}_{ij}\) be a skew \((\Theta , \lambda )\)-constacyclic code of length n over \(\mathfrak {R}\). Then, \(\mathfrak {C}^{\perp _E} \subseteq \mathfrak {C}\) if and only \(\mathcal {D}^{\perp _E}_{ij} \subseteq \mathcal {D}_{ij}\) for each pair (ij),  \(1 \le i \le r,\) \(1 \le j \le s\).

Let \(d_{G}\) be the minimum distance of \(\varphi (\mathfrak {C})\) and \(K=\sum _{i=1}^{r}\sum _{j=1}^{s}k_{ij}\) be the dimension of \(\varphi (\mathfrak {C})\) where \(k_{ij}\) denotes the dimension of the code \(\mathcal {D}_{ij}\) for each pair (ij),  \(1 \le i \le r\), \(1 \le j \le s\). Now, with the help of Lemma 4 and Theorem 4, we present a result to construct the quantum codes.

Theorem 5

If \(\mathfrak {C} =\bigoplus _{i,j } \gamma _{ij} \mathcal {D}_{ij}\) is a skew \((\Theta , \lambda )\)-constacyclic code of length n over \(\mathfrak {R}\) such that \(\mathfrak {C}^{\perp _E}\subseteq \mathfrak {C}\), then there exists a quantum code with parameters \([[rsn,2K-rsn, d_{G}]]\) over \({\mathbb {F}}_{p^e}\).

Let \(\lambda \in \mathfrak {R}^*\) and \(\Theta \in Aut(\mathfrak {R})\) such that \(\lambda ^2=1\) and \(\Theta (\lambda )=\lambda .\) Let \(\mathfrak {C}\) be a skew \((\Theta , \lambda )\)-constacyclic code of length n over \(\mathfrak {R}\) where n is a multiple of \(o(\Theta )\). Then, we use the following algorithms for quantum code construction.

Algorithm 1. Input: \(({\mathbb {F}}_{p^e}, n)\)

  • Step 1: Define skew polynomial ring over \({\mathbb {F}}_{p^e}\);

  • Step 2: Find all k-degree skew polynomials \(f_{ij}\) which are right divisors of \(x^n \pm 1\);

  • Step 3: Find skew-reciprocal polynomial \(h_{ij}^{*}(x)\) of \(h_{ij}(x)\) where \(x^n \pm 1= h_{ij}(x)f_{ij}(x)\);

  • Step 4: If \(x^n \pm 1\) is a right divisor of \(h_{ij}^{*}(x)h_{ij}(x)\), then Print \((f_{ij}(x))\);

Output: Generator polynomial of all dual containing skew negacyclic (cyclic) codes of length n and dimension \(n-k\).

Let \(\mathfrak {C}=\langle f(x) \rangle \) be a skew \((\Theta , \lambda )\)-constacyclic code of length n over \(\mathfrak {R}\) where \(\lambda ^2=1\). Then, \(f(x)= \sum _{i=1}^r \sum _{j=1}^s \gamma _{ij} f_{ij}(x)\) where \(f_{ij}\) are generator polynomials of skew cyclic or skew negacyclic codes \(\mathcal {D}_{ij}\) of length n over \({\mathbb {F}}_{p^e}\), for each pair (ij),  \(1 \le i \le r,\) \(1 \le j \le s\) and can be obtained by Algorithm 1. Then, for construction of quantum code from \(\mathfrak {C}\) we use the following Algorithm : 

Algorithm 2. Input: \(({\mathbb {F}}_{p^e}, ~f(x))\)

  • Step 1: Compute generator matrix \(M=\begin{pmatrix} \gamma _{ij} M_{ij} \end{pmatrix}_{(i,j)} \) of \(\mathfrak {C}\), where for each pair (ij),  \(1 \le i \le r,\) \(1 \le j \le s,\) \(M_{ij}\) is a generator matrix of code \(\mathcal {D}_{ij}=\langle f_{ij}(x) \rangle \);

  • Step 2: Find generator matrix, say, L of \(\varphi (\mathfrak {C})\);

  • Step 3: Compute Minimum Weight d of \(\varphi (\mathfrak {C})\);

  • Step 3: Define \(Q:= QuantumCode(\varphi (\mathfrak {C}))\) and compute Q;

Output: Quantum code with parameters \([[rsn, 2K-rsn, d]]_{p^e}\).

We implement Algorithms 1 and 2 in MAGMA computation software [9] to obtain quantum codes from skew \((\Theta , \lambda )\)-constacyclic code of length n over \(\mathfrak {R}\).

Example 1

Let \(f(u)=u^2-1\), \(g(v)=v^2-v\) and \({\mathbb {F}}_{9}={\mathbb {F}}_{3}(\mathfrak {t})\), where \(\mathfrak {t}^2=\mathfrak {t}+1\). Then, \(\mathfrak {R}={\mathbb {F}}_{9}[u,v]/ \langle u^2-1, v^2-v, uv-vu \rangle \) and \(\gamma _{11}=\frac{1}{2}(v+uv)\), \(\gamma _{12}=\frac{1}{2}(v-uv)\), \(\gamma _{21}=\frac{1}{2}(1+u-v-uv)\) and \(\gamma _{22}=\frac{1}{2}(1-u-v+uv)\). Let \(\Theta \) be an automorphism over \(\mathfrak {R}\) given by \(\Theta (r_0+r_1u+r_2 v+r_3 uv)=r_0^3+r_1^3u+r_2^3v+r_3^3uv\) and \(\lambda =1-v-uv\). Let \(\mathfrak {C}\) be a skew \((\Theta , \lambda )\)-constacyclic code of length 6 over \(\mathfrak {R}\) generated by \(f(x)=\sum _{i=1}^{1} \sum _{j=1}^{2}\gamma _{ij} f_{ij}(x)\) where \(f_{11}=x+\mathfrak {t}\) is the generator polynomial of skew negacyclic code \(\mathcal {D}_{11}\) and \(f_{12}=x+1\), \(f_{21}=x+\mathfrak {t}^2\), \(f_{22}=x^2+\mathfrak {t}^7x+\mathfrak {t}^6\) are generator polynomials of skew cyclic code \(\mathcal {D}_{12}\), \(\mathcal {D}_{21}\), \(\mathcal {D}_{22}\), respectively. Let

$$\begin{aligned} M= \left[ {\begin{array}{llll} 1&{}\quad 1&{}\quad 1&{}\quad 1 \\ 1&{}\quad 2&{}\quad 1&{}\quad 2 \\ 1&{}\quad 1&{}\quad 2&{}\quad 2\\ 1&{}\quad 2&{}\quad 2&{}\quad 1 \end{array} } \right] \in GL_4({\mathbb {F}}_{3^2}), \end{aligned}$$

satisfying \(MM^T=I_4\). Then, the gray image \(\varphi ({\mathfrak {C}})\) has parameters [24, 19, 4]. Here,

$$\begin{aligned} h_{11}(x)= & {} x^5 + \mathfrak {t}^7x^4 + 2x^3 + \mathfrak {t}^3x^2 + x + \mathfrak {t}^7,\\ h_{12}(x)= & {} x^5 + 2x^4 + x^3 + 2x^2 + x + 2,\\ h_{21}(x)= & {} x^5 + \mathfrak {t}^2x^4 + x^3 + \mathfrak {t}^2x^2 + x + \mathfrak {t}^2,\\ h_{22}(x)= & {} x^4 + \mathfrak {t}^3x^3 + \mathfrak {t}x^2 + \mathfrak {t}^7x + \mathfrak {t}^6, \end{aligned}$$

and

$$\begin{aligned} h_{11}^{*}(x)= & {} x^5 + \mathfrak {t}^3x^4 + 2x^3 + \mathfrak {t}^7x^2 + x + \mathfrak {t}^3,\\ h_{12}^{*}(x)= & {} x^5 + 2x^4 + x^3 + 2x^2 + x + 2,\\ h_{21}^{*}(x)= & {} x^5 + \mathfrak {t}^2x^4 + x^3 + \mathfrak {t}^2x^2 + x + \mathfrak {t}^2,\\ h_{22}^{*}(x)= & {} x^4 + \mathfrak {t}^7x^3 + \mathfrak {t}^3x^2 + \mathfrak {t}^3x + \mathfrak {t}^2. \end{aligned}$$

Also,

$$\begin{aligned} h_{11}^{*}(x)h_{11}(x)= & {} (x^4 + \mathfrak {t}^2x^3 + \mathfrak {t}^7x^2 + \mathfrak {t}^2x + \mathfrak {t}^2)(x^6+1),\\ h_{12}^{*}(x)h_{12}(x)= & {} (x^4 + x^3 + 2x + 2)(x^6-1),\\ h_{21}^{*}(x)h_{21}(x)= & {} (x^4 + x^2 + 1)(x^6-1),\\ h_{22}^{*}(x)h_{22}(x)= & {} (x^2 + 2)(x^6-1). \end{aligned}$$

Then, \(h_{11}^{*}(x)h_{11}(x)\) and \(h_{12}^{*}(x)h_{12}(x)\), \(h_{21}^{*}(x)h_{21}(x)\), \(h_{22}^{*}(x)h_{22}(x)\) are right divisible by \((x^6+1)\) and \((x^6-1)\), respectively. Hence, by Theorem 4, we have \(\mathfrak {C}^{\perp _E} \subseteq \mathfrak {C}\), and by Theorem 5, there exists a quantum code with parameters \([[24,14,4]]_9.\) We observe that our obtained quantum code has a better code rate than the known code \([[24,8,4]]_9\) appeared in [45]. They constructed this code over \(\mathfrak {R}\) by using \(\lambda \)-constacyclic code, whereas we used skew \((\Theta ,\lambda )\)-constacyclic code over \(\mathfrak {R}\) and obtain better parameters.

Example 2

Suppose deg(f(u)) is 1, \(g(v)=v^2-v\) and \({\mathbb {F}}_{13^2}={\mathbb {F}}_{13}(\mathfrak {t})\), where \(\mathfrak {t}^2=\mathfrak {t}+11\), then \(\mathfrak {R}={\mathbb {F}}_{13^2}[v]/ \langle v^2-v \rangle \), \(\gamma _{11}=v\) and \(\gamma _{12}=1-v\). Let \(\Theta \in Aut(\mathfrak {R})\) defined by \(\Theta (r_0+r_1v)=r_0^{13}+r_1^{13}v\) and \(\lambda =-1\). Let \(\mathfrak {C}\) be a skew \((\Theta , \lambda )\)-constacyclic code of length 14 over \(\mathfrak {R}\) generated by \(f(x)=\gamma _{11} f_{11}(x)+\gamma _{12} f_{12}(x)\) where \(f_{11}=x^2+\mathfrak {t}^{121}x+\mathfrak {t}^{144}\) and \(f_{12}=x + 5\) are generator polynomials of skew negacyclic codes \(\mathcal {D}_{11}\) and \(\mathcal {D}_{12}\), respectively. Here,

$$\begin{aligned} h_{11}(x)= & {} x^{12 }{+} \mathfrak {t}^{37}x^{11 }{+} \mathfrak {t}^{115}x^{10 }{+} \mathfrak {t}^{163}x^{9 }+ \mathfrak {t}^{155}x^{8 }+ \mathfrak {t}^{135}x^{7 }+ \mathfrak {t}^{68}x^{6 }+ \mathfrak {t}^{135}x^{5 }\\{} & {} +\mathfrak {t}^{23}x^{4 }+ \mathfrak {t}^{163}x^{3 }+ \mathfrak {t}^{7}x^{2 }+ \mathfrak {t}^{37}x + \mathfrak {t}^{24},\\ h_{11}^{*}(x)= & {} x^{12} + \mathfrak {t}^{121}x^{11} + \mathfrak {t}^{151}x^{10} + \mathfrak {t}^{79}x^9 + \mathfrak {t}^{167}x^8 + \mathfrak {t}^{51}x^7 + \mathfrak {t}^{44}x^6 + \mathfrak {t}^{51}x^5\\{} & {} +\mathfrak {t}^{131}x^4 + \mathfrak {t}^{79}x^3 + \mathfrak {t}^{91}x^2 + \mathfrak {t}^{121}x + \mathfrak {t}^{144},\\ h_{11}^{*}(x)h_{11}(x)= & {} (x^{10} + 5x^8 + 11x^6 + 11x^4 + 5x^2 + 1)(x^{14}+1),\\ \end{aligned}$$

and

$$\begin{aligned} h_{12}(x)= & {} x^{13 }+8x^{12 }+12x^{11 }+5x^{10 }+x^{9 }+8x^{8 }+12x^{7 }+5x^{6 }+x^{5 }+8x^{4}\\{} & {} +12x^{3 }+5x^{2 }+x +8,\\ h_{12}^{*}(x)= & {} x^{13 }+5x^{12 }+12x^{11 }+8x^{10 }+x^{9 }+5x^{8 }+12x^{7 }+8x^{6 }+x^{5 }+5x^{4}\\{} & {} +12x^{3 }+8x^{2 }+x +5,\\ h_{12}^{*}(x)h_{12}(x)= & {} (x^{12} + 12x^{10} + x^8 + 12x^6 + x^4 + 12x^2 + 1)(x^{14}+1).\\ \end{aligned}$$

As both \(h_{11}^{*}(x)h_{11}(x)\) and \(h_{12}^{*}(x)h_{12}(x)\) are right divisible by \(x^{14}+1\), by Theorem 4, we have \(\mathfrak {C}^{\perp _E} \subseteq \mathfrak {C}\). Again, let

$$\begin{aligned} M= \left[ {\begin{array}{ll} 1&{}\quad 1 \\ 1&{}\quad 12 \end{array} } \right] \in GL_{2}({\mathbb {F}}_{13^2}), \end{aligned}$$

satisfying \(MM^T=2I_2\). Then, the gray image \(\varphi ({\mathfrak {C}})\) is also dual containing and has parameters [28, 25, 4]. Hence, by Theorem 5, there exists a quantum code with parameters \([[28,22,4]]_{13^2}.\) Note that constructed quantum code satisfies \(n+2=k+2d\). Hence, it is a quantum MDS code.

4 Quantum codes from Hermitian dual containing skew \((\Theta , \lambda )\)-constacyclic code over \(\mathfrak {R}\)

Let \(q=p^e\) and \( \mathfrak {R}:={\mathbb {F}}_{q^2}[u,v]/<f(u),g(v),uv-vu>\) where p is a prime and \(e>0\). In this section, we construct quantum codes over \({\mathbb {F}}_{q}\) from Hermitian dual containing skew \((\Theta ,\lambda )\)-constacyclic codes over the ring \( \mathfrak {R}\). We begin with the following definition.

Definition 4

The Hermitian dual \(\mathfrak {C}^{\perp _H}\) of a linear code \(\mathfrak {C}\) of length n over \(\mathfrak {R}\) is defined as \(\mathcal {C}^{\perp _H} =\{\mathfrak {a}\in \mathfrak {R}^n \mid <\mathfrak {a},\mathfrak {d}>_H=0 \text { for all }\mathfrak {d} \in \mathfrak {C}\},\) where \(<\mathfrak {a}, \mathfrak {d}>_H=\sum _{i=0}^{n-1} \mathfrak {a}_i\Theta (\mathfrak {d}_i)\) represents the Hermitian inner product of vectors \(\mathfrak {a}=(\mathfrak {a}_0,\mathfrak {a}_1,\cdots ,\mathfrak {a}_{n-1})\) and \(\mathfrak {d}=(\mathfrak {d}_0,\mathfrak {d}_1,\dots ,\mathfrak {d}_{n-1})\). \(\mathfrak {C}\) is Hermitian self-orthogonal, Hermitian self-dual and Hermitian dual containing if \(\mathfrak {C} \subseteq \mathfrak {C}^{\perp _H},\) \(\mathfrak {C} = \mathfrak {C}^{\perp _H}\) and \( \mathfrak {C}^{\perp _H} \subseteq \mathfrak {C},\) respectively.

Lemma 6

Let \(\mathfrak {C} =\bigoplus _{i,j } \gamma _{ij} \mathcal {D}_{ij}\) be a skew \((\Theta , \lambda )\)-constacyclic code of length n over the ring \(\mathfrak {R}.\) Then \(\mathfrak {C}^{\perp _H} =\bigoplus _{i,j } \gamma _{ij} \mathcal {D}_{ij}^{\perp _H}\) is a skew \((\Theta , {\lambda }^{-1})\)-constacyclic code over \(\mathfrak {R}\) where for each pair (ij),  \(1 \le i \le r,\) \(1 \le j \le s\), \(\mathcal {D}_{ij}^{\perp _H}\) is a skew \((\theta ,\beta _{ij}^{-1})\)-constacyclic code over \({\mathbb {F}}_{q}.\) Moreover, for \(\lambda ^2=1\), \(\mathfrak {C}\) is a skew \((\Theta , \lambda )\)-constacyclic code over \(\mathfrak {R}\) if and only if \(\mathfrak {C}^{\perp _H}\) is a skew \((\Theta , \lambda )\)-constacyclic code over \(\mathfrak {R}\).

Proof

Let \(\mathfrak {C} =\bigoplus _{i,j } \gamma _{ij} \mathcal {D}_{ij}\) be a skew \((\Theta , \lambda )\)-constacyclic code of length n over \(\mathfrak {R}.\) Consider two vectors \(\mathfrak {c}=(\mathfrak {c}_0,\mathfrak {c}_1,\dots ,\mathfrak {c}_{n-1}) \) and \(\mathfrak {c'}=(\mathfrak {c}'_0,\mathfrak {c}'_1,\dots ,\mathfrak {c}'_{n-1}) \) in \(\mathfrak {C}\) and \(\mathfrak {C}^{\perp _H}\), respectively. Then, \( \langle \mathfrak {c}, \mathfrak {c'} \rangle _H =0.\) As \(\mathfrak {c} \in \mathfrak {C},\) \( \tau ^{n-1}_{\lambda , \Theta }(\mathfrak {c}) = (\lambda \Theta ^{n-1}(\mathfrak {c}_1),\lambda \Theta ^{n-1}(\mathfrak {c}_2),\dots , \lambda \Theta ^{n-1}(\mathfrak {c}_{n-1}), \Theta ^{n-1}(\mathfrak {c}_{0})) \in \mathfrak {C}\) and \( {\langle \tau _{\lambda , \Theta }(\mathfrak {c}), \mathfrak {c'} \rangle }_H =0.\) Therefore,

$$\begin{aligned} 0&={\langle (\lambda \Theta ^{n-1}(\mathfrak {c}_1),\dots , \lambda \Theta ^{n-1}(\mathfrak {c}_{n-1}), \Theta ^{n-1}(\mathfrak {c}_{0})), (\mathfrak {c}'_0,\mathfrak {c}'_1,\dots ,\mathfrak {c}'_{n-1}) \rangle }_H\\&= (\lambda \Theta ^{n-1}(\mathfrak {c}_1)\Theta (\mathfrak {c'}_0)+ \dots +\lambda \Theta ^{n-1}(\mathfrak {c}_{n-1}) \Theta (\mathfrak {c'}_{n-2})+ \Theta ^{n-1}(\mathfrak {c}_{0})\Theta (\mathfrak {c'}_{n-1})\\&=\lambda \left( \sum _{\ell =1}^{n-1} \Theta ^{n-1}(\mathfrak {c}_{\ell })\Theta (\mathfrak {c'}_{\ell -1})+\lambda ^{-1}\Theta ^{n-1}(\mathfrak {c}_{0})\Theta (\mathfrak {c'}_{n-1})\right) . \end{aligned}$$

Since \(\lambda \) is fixed by \(\Theta \) and \(o(\Theta ) \mid n\), by applying \(\Theta \) on both sides, we get

$$\begin{aligned} 0&=\lambda \Theta \left( \sum _{\ell =1}^{n-1} \Theta ^{n-1}(\mathfrak {c}_{\ell })\Theta (\mathfrak {c'}_{\ell -1})+\lambda ^{-1}\Theta ^{n-1}(\mathfrak {c}_{0})\Theta (\mathfrak {c'}_{n-1})\right) \\ 0&=\lambda \left( \sum _{\ell =1}^{n-1} \mathfrak {c}_{\ell }\mathfrak {c'}_{\ell -1}+\lambda ^{-1}\mathfrak {c}_{0}\mathfrak {c'}_{n-1}\right) \\ 0&=\sum _{\ell =1}^{n-1} \mathfrak {c}_{\ell }\mathfrak {c'}_{\ell -1}+\lambda ^{-1}\mathfrak {c}_{0}\mathfrak {c'}_{n-1}. \end{aligned}$$

On the other hand,

$$\begin{aligned} {\langle \mathfrak {c}, \tau _{(\lambda ^{-1}, \Theta )}(\mathfrak {c'}) \rangle }_H&= {\langle \mathfrak {c}, \lambda ^{-1} \Theta (\mathfrak {c'}_{n-1}), \Theta (\mathfrak {c'}_{0}) , \dots , \Theta (\mathfrak {c'}_{n-2})\rangle }_H\\&=\mathfrak {c}_{0}\Theta (\lambda ^{-1} \Theta (\mathfrak {c'}_{n-1}))+ \mathfrak {c}_{1}\Theta (\Theta (\mathfrak {c'}_{0}))+ \dots + \mathfrak {c}_{n-1} \Theta (\Theta (\mathfrak {c'}_{n-2}))\\&=\lambda ^{-1} \mathfrak {c}_{0}\mathfrak {c}'_{n-1}+ \mathfrak {c}_{1}\mathfrak {c'}_{0}+ \dots + \mathfrak {c}_{n-1} \mathfrak {c'}_{n-2}\\&=0. \end{aligned}$$

Hence, for any element \( \mathfrak {c'} \in \mathfrak {C}^{\perp _H}\), we have \(\tau _{(\lambda ^{-1}, \Theta )}(\mathfrak {c'}) \in \mathfrak {C}^{\perp _H}\). Thus, \(\mathfrak {C}^{\perp _H}\) is a skew \((\Theta , \lambda ^{-1})\) constacyclic code over \(\mathfrak {R}\). \(\square \)

Now, we present the result on the generator polynomial for the Hermitian dual of a skew \((\theta , \beta _{ij})\)-constacyclic code over \({\mathbb {F}}_{q}\) given by Boucher et al. [13].

Lemma 7

([13], Theorem 1) Let \(\beta \in {\mathbb {F}}_{q}^*\) and \(\theta \in Aut({\mathbb {F}}_{q})\) such that \(\theta (\beta )=\beta \). Let \(\mathcal {C}= \langle f(x) \rangle \) be a skew \((\theta , \lambda )\)-constacyclic code of length n over \({\mathbb {F}}_{q}\) with \(o(\theta ) \mid n\). Then, there exists a polynomial \(h(x) \in {\mathbb {F}}_{q}[x; \theta ]\) such that \(x^n-\beta = h(x) f(x)\) and \(\mathcal {C}^{\perp _H}\) is generated by \(h^{\dagger }(x)\) where \(h^{\dagger }(x)\) is the skew Hermitian reciprocal polynomial of h(x).

In the below result, we provide the generator polynomial for the Hermitian dual of a skew \((\Theta , \lambda )\)-constacyclic code over \(\mathfrak {R}\) by using Lemma 6 and Lemma 7.

Theorem 6

Let \(\mathfrak {C} =\bigoplus _{i,j } \gamma _{ij} \mathcal {D}_{ij}\) be a skew \((\Theta , \lambda )\)-constacyclic code of length n over \(\mathfrak {R}\). If \(\mathcal {D}_{ij}=\langle f_{ij}(x)\rangle \) such that \((x^n-\beta {ij})= h_{ij}(x)f_{ij}(x)\) for each pair (ij),  \(1 \le i \le r,\) \(1 \le j \le s\), respectively, then \( \mathfrak {C}^{\perp _H}= \langle \sum _{i} \sum _{j} \gamma _{ij} {h^{\dagger }_{ij}}(x) \rangle ,\) where \(h^{\dagger }_{ij}(x)\) is the skew Hermitian reciprocal polynomial of \(h_{ij}(x)\) for each pair (ij),  \(1 \le i \le r,\) \(1 \le j \le s\).

We first recall the Hermitian construction (Lemma 8) for quantum code from Hermitian dual containing linear codes. Then, we establish a necessary and sufficient condition for skew \((\Theta , \lambda )\)-constacyclic code of length n over \(\mathfrak {R}\) to contain their Hermitian dual in Theorem 7.

Lemma 8

[2] Let \(\mathcal {C}\) be a linear code \({\mathbb {F}}_{q^2}\) with parameters \([n,k,d_{H}]\) satisfying \(\mathcal {C}^{\perp _H} \subseteq \mathcal {C}.\) Then there exists a quantum code over \({\mathbb {F}}_{q}\) with parameters \([[n,2k-n,\ge d_{H}]]_{q}.\)

Lemma 9

Let \(\beta \in {\mathbb {F}}_{q^2}^*\) such that \(\beta ^2=1\). Then, a skew \((\theta , \beta )\)-constacyclic code of length n over \({\mathbb {F}}_{q^2}\) with generator polynomial f(x) contains its Hermitian dual if and only if \(h^{\dagger }(x)h(x)\) is right divisible by \(x^n-\beta \), where \(x^n-\beta = h(x) f(x)\) and \(h^{\dagger }(x)\) is the skew Hermitian reciprocal polynomial of h(x).

Proof

We can get the desired result by following the same line of proof as in Lemma 5 and using the Hermitian inner product. \(\square \)

Theorem 7

Let \(\lambda \in \mathfrak {R}^*\) and \(\mathfrak {C} =\bigoplus _{i,j } \gamma _{ij} \mathcal {D}_{ij}\) be a skew \((\Theta , \lambda )\)-constacyclic code of length n over \(\mathfrak {R}\) such that \(o(\Theta ) \mid n\) and \(\lambda ^2=1\). Then, \( \mathfrak {C}^{\perp _H} \subseteq \mathfrak {C}\) if and only if for each pair (ij),  \(1 \le i \le r,\) \(1 \le j \le s\), the polynomial \(h_{ij}^{\dagger }(x) h_{ij}(x)\) is right divisible by \(x^n-\beta _{ij}\), where \(x^n-\beta _{ij}= h_{ij}(x) f_{ij}(x)\) and \(h_{ij}^{\dagger }(x)\) is the skew Hermitian reciprocal polynomial of \(h_{ij}(x)\).

Proof

Let \(\mathfrak {C} =\bigoplus _{i,j } \gamma _{ij} \mathcal {D}_{ij}\) be a skew \((\Theta , \lambda )\)-constacyclic code of length n over \(\mathfrak {R}\) such that \(\mathfrak {C}^{\perp _H} \subseteq \mathfrak {C}\). Then by Lemma 6, \(\bigoplus _{i,j } \gamma _{ij} \mathcal {D}_{ij}^{\perp _H}\subseteq \bigoplus _{i,j } \gamma _{ij} \mathcal {D}_{ij}\). Since \(o(\Theta ) \mid n\) and \(\lambda ^2=1,\) for each pair (ij),  \(1 \le i \le r,\) \(1 \le j \le s\) and by taking modulo \(\gamma _{ij}\) in the above equation, we have \( \mathcal {D}_{ij}^{\perp _H}\subseteq \mathcal {D}_{ij}\). Therefore, by Lemma 9, \(h_{ij}^{\dagger } h_{ij}\) is right divisible by \(x^n-\beta _{ij}\) for each pair (ij),  \(1 \le i \le r,\) \(1 \le j \le s\) where \(x^n-\beta _{ij}=h_{ij}(x) f_{ij}(x)\) and \(h_{ij}^{\dagger }(x)\) is the Hermitian skew-reciprocal polynomial of \(h_{ij}(x)\).

Conversely, let \(x^n-\beta _{ij}\) be a right divisor of \(h_{ij}^{\dagger }(x) h_{ij}(x)\) for each pair (ij),  \(1 \le i \le r,\) \(1 \le j \le s\). Then by Lemma 9, we get \(\mathcal {D}_{ij}^{\perp _H}\subseteq \mathcal {D}_{ij}\). This implies that \(\bigoplus _{i,j } \gamma _{ij} \mathcal {D}_{ij}^{\perp _H}\subseteq \bigoplus _{i,j } \gamma _{ij} \mathcal {D}_{ij}\). Thus, \(\mathfrak {C}^{\perp _H} \subseteq \mathfrak {C}\). \(\square \)

Now, using Hermitian construction (Lemma 8) and Theorem 7, we obtain quantum codes in the next result. Here, we follow the same notations as used in the Theorem 5.

Theorem 8

Let \(\lambda \in \mathfrak {R}^*\) and \(\mathfrak {C} =\bigoplus _{i,j } \gamma _{ij} \mathcal {D}_{ij}\) be a skew \((\Theta , \lambda )\)-constacyclic code of length n over \(\mathfrak {R}\) such that \(\lambda ^2=1\). If \(\mathfrak {C}^{\perp _H}\subseteq \mathfrak {C}\), then there exists a quantum code with parameters \([[rsn,2K-rsn, d_{G}]]_q\).

Remark 3

To find quantum codes from Hermitian dual containing skew \((\Theta , \lambda )\)-constacyclic codes over \(\mathfrak {R}\), we just need to change the finite field \({\mathbb {F}}_{p^e}\) by \({\mathbb {F}}_{q^2}\) where \(q=p^e\) and \(h^{*}(x)\) by \(h^{\dagger }(x)\) in Algorithm 1 and 2, respectively.

Example 3

Let \(deg(f(u))= 1\), \(g(v)=v^2-1\) and \({\mathbb {F}}_{11^2}={\mathbb {F}}_{11}(\mathfrak {t})\) where \(\mathfrak {t}^2=4\mathfrak {t}+9\). Then, \(\mathfrak {R}={\mathbb {F}}_{11^2}[v]/ \langle v^2-1 \rangle \), \(\gamma _{11}=\frac{1}{2}(1+ v)\) and \(\gamma _{12}=\frac{1}{2}(1-v)\). Define \(\Theta \in Aut(\mathfrak {R})\) by \(\Theta (r_0+r_1v)=r_0^{11}+r_1^{11}v\) and \(\lambda =-v\). Let \(\mathfrak {C}\) be a skew \((\Theta , \lambda )\)-constacyclic code of length 12 over \(\mathfrak {R}\) generated by \(f(x)=\gamma _{11} f_{11}(x)+\gamma _{12} f_{12}(x)\) where \(f_{11}=x^2+\mathfrak {t}^{2}x+10\) and \(f_{12}=x + \mathfrak {t}^5\) are generator polynomials of a skew negacyclic code \(\mathcal {D}_{11}\) and a skew cyclic code \(\mathcal {D}_{12}\), respectively. Here,

$$\begin{aligned} h_{11}(x)= & {} x^{10} + \mathfrak {t}^{62}x^9 + 5x^8 + \mathfrak {t}^{50}x^7 + 7x^6 + \mathfrak {t}^{74}x^5 + 4x^4+ \mathfrak {t}^{50}x^3\\{} & {} + 6x^2+ \mathfrak {t}^{62}x + 10,\\ h_{11}^{\dagger }(x)= & {} x^{10} + \mathfrak {t}^{2}x^9 + 5x^8 + \mathfrak {t}^{110}x^7 + 7x^6 + \mathfrak {t}^{14}x^5 + 4x^4+ \mathfrak {t}^{110}x^3\\{} & {} +6x^2 + \mathfrak {t}^{2}x + 10,\\ h_{11}^{\dagger }(x)h_{11}(x)= & {} (x^8 + 6x^6 + 2x^4 + 6x^2 + 1)(x^{12}+1),\\ \end{aligned}$$

and

$$\begin{aligned} h_{12}(x)= & {} x^{11} + \mathfrak {t}^{115}x^{10} + 10x^9 + \mathfrak {t}^{55}x^8 + x^7 + \mathfrak {t}^{115}x^6 + 10x^5 + \mathfrak {t}^{55}x^4 \\{} & {} +x^3 + \mathfrak {t}^{115}x^2 + 10x + \mathfrak {t}^{55},\\ h_{12}^{\dagger }(x)= & {} x^{11} + \mathfrak {t}^{5}x^{10} + 10x^9 + \mathfrak {t}^{65}x^8 + x^7 + \mathfrak {t}^{5}x^6 + 10x^5 + \mathfrak {t}^{65}x^4+ x^3\\{} & {} +\mathfrak {t}^{5}x^2 + 10x + \mathfrak {t}^{65},\\ h_{12}^{\dagger }(x)h_{12}(x)= & {} (x^{10} + 10x^8 + x^6 + 10x^4 + x^2 + 10)(x^{12}-1).\\ \end{aligned}$$

Since \(h_{11}^{\dagger }(x)h_{11}(x)\) and \(h_{12}^{\dagger }(x)h_{12}(x)\) are right divisible by \(x^{12}+1\) and \(x^{12}-1\), respectively. Thus, by Theorem 7, we have \(\mathfrak {C}^{\perp _H} \subseteq \mathfrak {C}\). Also, let

$$\begin{aligned} M= \left[ {\begin{array}{ll} 1&{}\quad 1 \\ 1&{}\quad 10 \end{array} } \right] \in GL_{2}({\mathbb {F}}_{11^2}), \end{aligned}$$

satisfying \(MM^T=2I_2\). Then, the gray image \(\varphi ({\mathfrak {C}})\) is also a dual containing code with parameters \([24,21,4]_{11^2}\). Therefore, by Theorem 8, there exists a quantum code with parameters \([[24,18,4]]_{11}.\) It is noted that our obtained code has a better code rate and minimum distance than the known code \([[24,16,3]]_{11}\) presented in [23].

5 LCD skew \((\Theta , \lambda )\)-constacyclic code over \(\mathfrak {R}\) and their gray images

In this section, we begin with the definition of LCD codes introduced by Massey [46] and outline some known results for skew LCD codes. Then, we establish necessary and sufficient conditions for skew \((\Theta , \lambda )\)-constacyclic codes over \(\mathfrak {R}\) to be LCD.

Definition 5

Let \(\mathfrak {C}\) be a linear code of length n over \(\mathfrak {R}\). Suppose \(\mathfrak {C}^{\perp _E}\) and \(\mathfrak {C}^{\perp _H}\) are the Euclidean and the Hermitian duals of \(\mathfrak {C}\), respectively. Then, code \(\mathfrak {C}\) is said to be Euclidean LCD code if and only if \(\mathfrak {C} \cap \mathfrak {C}^{\perp _E} =\{0\}\) and Hermitian LCD if and only if \(\mathfrak {C} \cap \mathfrak {C}^{\perp _H} =\{0\}.\)

Recently, Boulanouar et al. [6] established some conditions for skew constacyclic codes over the finite field to be LCD as follows:

Lemma 10

([6], Theorem 2) Let \(\beta \in {\mathbb {F}}_{p^e}^*\) such that \(\beta ^2=1\) and \(\theta \in Aut({\mathbb {F}}_{p^e})\). Let \(\mathcal {D}\) be a skew \((\theta , \beta )\)-constacyclic code of length n over \({\mathbb {F}}_{p^e}\) such that the order of \(\theta \) divides n. Let f(x) be a generator polynomial of \(\mathcal {D}\) satisfies \(x^n-\beta = h(x)f(x)= f(x)h(x)\). Then,

  1. 1.

    \(\mathcal {D}\) is Euclidean LCD if and only if \(gcrd(f(x), h^{*}(x)) = 1\).

  2. 2.

    When the order of \(\theta \) is 2, then \(\mathcal {D}\) is Hermitian LCD if and only if \(gcrd(f(x), h^{\dagger }(x)) \)\( = 1\).

Theorem 9

Let \(\lambda \in \mathfrak {R}^*\) and \(\mathfrak {C} =\bigoplus _{i,j } \gamma _{ij} \mathcal {D}_{ij}\) be a skew \((\Theta , \lambda )\)-constacyclic code of length n over \(\mathfrak {R}\) such that n is a multiple of \(o(\Theta )\) and \(\lambda ^2=1\), where \(\mathcal {D}_{ij}= \langle f_{ij}(x) \rangle \) is the skew \((\theta , \beta _{ij})\)-constacyclic code of length n over \({\mathbb {F}}_{p^e}\) for each pair (ij),  \(1 \le i \le r,\) \(1 \le j \le s\). Then, \(\mathfrak {C}\) is Euclidean LCD if and only if for each pair (ij),  \(1 \le i \le r,\) \(1 \le j \le s\), \(gcrd(f_{ij}(x), h_{ij}^{*}(x)) = 1\), where \(x^n-\beta _{ij}= h_{ij}(x) f_{ij}(x)\) and \(h_{ij}^{*}(x)\) is the skew-reciprocal polynomial of \(h_{ij}(x)\).

Proof

Suppose \(\mathfrak {C} =\bigoplus _{i,j } \gamma _{ij} \mathcal {D}_{ij}\) be a skew \((\Theta , \lambda )\)-constacyclic code of length n over \(\mathfrak {R}\) which is Euclidean LCD i.e., \(\mathfrak {C} \cap \mathfrak {C}^{\perp _E} =\{0\}\). Then, by Lemma 3,

$$\begin{aligned} \bigoplus _{i,j } \gamma _{ij} \mathcal {D}_{ij} \cap \bigoplus _{i,j } \gamma _{ij} \mathcal {D}_{ij}^{\perp _E} =\{0\}. \end{aligned}$$
(1)

As n is a multiple of \(o(\Theta )\) and \(\lambda ^2=1\), for each pair (ij),  \(1 \le i \le r,\) \(1 \le j \le s\), under modulo \(\gamma _{ij}\) in Eq. 1, we have \( \mathcal {D}_{ij}\cap \mathcal {D}_{ij}^{\perp _E} =\{0\}\). Therefore, by Lemma 10, for each pair (ij),  \(1 \le i \le r,\) \(1 \le j \le s\), we have \(gcrd(f_{ij}(x), h_{ij}^{*}(x)) = 1\), where \(x^n-\beta _{ij}= h_{ij}(x) f_{ij}(x)\) and \(h_{ij}^{*}(x)\) is the skew-reciprocal polynomial of \(h_{ij}(x)\).

Conversely, let \(gcrd(f_{ij}(x), h_{ij}^{*}(x)) = 1\) for each pair (ij),  \(1 \le i \le r,\) \(1 \le j \le s\). Then again by Lemma 10, \(\mathcal {D}_{ij} \cap \mathcal {D}_{ij}^{\perp _E}=\{0\}\), which implies \(\bigoplus _{i,j } \gamma _{ij} \mathcal {D}_{ij}\cap \bigoplus _{i,j } \gamma _{ij} \mathcal {D}_{ij}^{\perp _E}=\{0\}\). Therefore, \(\mathfrak {C} \cap \mathfrak {C}^{\perp _E}=\{0\}\). \(\square \)

The following result gives the necessary and sufficient condition for skew \((\Theta , \lambda )\)-constacyclic code over \(\mathfrak {R}\) to be Hermitian LCD. The proof follows the same line as in Theorem 9 with the Hermitian inner product.

Theorem 10

Let \(o(\Theta )=2\) and \(\lambda \in \mathfrak {R}^*\) such that \(\lambda ^2=1\). Let \(\mathfrak {C} =\bigoplus _{i,j } \gamma _{ij} \mathcal {D}_{ij}\) be a skew \((\Theta , \lambda )\)-constacyclic code of length n over \(\mathfrak {R}\) such that n is a multiple of \(o(\Theta )\), where \(\mathcal {D}_{ij}= \langle f_{ij}(x) \rangle \) is the skew \((\theta , \beta _{ij})\)-constacyclic code of length n over \({\mathbb {F}}_{p^e}\) for each pair (ij),  \(1 \le i \le r,\) \(1 \le j \le s\). Then, \(\mathfrak {C}\) is Hermitian LCD if and only if for each pair (ij),  \(1 \le i \le r,\) \(1 \le j \le s\), \(gcrd(f_{ij}(x), h_{ij}^{\dagger }(x)) = 1\) where \(x^n-\beta _{ij}= h_{ij}(x) f_{ij}(x)\) and \(h_{ij}^{\dagger }(x)\) is the skew Hermitian reciprocal polynomial of \(h_{ij}(x)\).

Corollary 2

Let \(\lambda \in \mathfrak {R}^*\) such that \(\lambda ^2=1\). Let \(\mathfrak {C} =\bigoplus _{i,j } \gamma _{ij} \mathcal {D}_{ij}\) be a skew \((\Theta , \lambda )\)-constacyclic code of length n over \(\mathfrak {R}\) such that n is a multiple of \(o(\Theta )\), where \(\mathcal {D}_{ij}= \langle f_{ij}(x) \rangle \) is the skew \((\theta , \beta _{ij})\)-constacyclic code of length n over \({\mathbb {F}}_{p^e}\) for each pair (ij),  \(1 \le i \le r,\) \(1 \le j \le s\). Then,

  1. 1.

    \(\mathfrak {C}\) is Euclidean LCD if and only if for each pair (ij),  \(1 \le i \le r,\) \(1 \le j \le s\), code \(\mathcal {D}_{ij}\) is Euclidean LCD.

  2. 2.

    If \(o(\Theta )=2\), then \(\mathfrak {C}\) is Hermitian LCD if and only if for each pair (ij),  \(1 \le i \le r,\) \(1 \le j \le s\), code \(\mathcal {D}_{ij}\) is Hermitian LCD.

Proof

It follows from Lemma 10, Theorems 9 and 10. \(\square \)

The following Algorithm provides us the generators of Euclidean LCD skew \((\Theta , \lambda )\)-constacyclic codes over \(\mathfrak {R}:\)

Algorithm 3. Input: \(({\mathbb {F}}_{p^e}, n)\)

  • Step 1: Define skew polynomial ring over \({\mathbb {F}}_{p^e}\);

  • Step 2: Find all k-degree skew polynomials \(f_{ij}(x)\) which are right divisors of \(x^n \pm 1\);

  • Step 3: Find skew-reciprocal polynomial \(h_{ij}^{*}(x)\) of \(h_{ij}(x)\) where \(x^n \pm 1= h_{ij}(x)f_{ij}(x)\);

  • Step 4: If \(gcrd(f_{ij}(x), h_{ij}^{*}(x))=1\), then Print\((f_{ij}(x))\);

Output: Generator polynomial of all Euclidean LCD skew negacyclic (cyclic) code of length n and dimension \(n-k\) over \({\mathbb {F}}_{p^e}\).

Let \(\mathfrak {C}=\langle f(x) \rangle \) be a skew \((\Theta , \lambda )\)-constacyclic code of length n over \(\mathfrak {R}\) where \(\lambda ^2=1\). Then, \(f(x)= \sum _{i=1}^r \sum _{j=1}^s \gamma _{ij} f_{ij}(x)\) where \(f_{ij}\) are generator polynomials of skew cyclic (or skew negacyclic) codes \(\mathcal {D}_{ij}\) of length n over \({\mathbb {F}}_{p^e}\), for each pair (ij),  \(1 \le i \le r,\) \(1 \le j \le s\) obtained by Algorithm 3. Then, \(\mathfrak {C}\) is Euclidean LCD skew \((\Theta , \lambda )\)-constacyclic code over \(\mathfrak {R}\). Now, by using Algorithm 2,  we can obtain the minimum weight \(d_H\) of \(\varphi (\mathfrak {C})\) and hence an LCD code with parameters \([rsn, K, d_H]\) over \({\mathbb {F}}_{p^e}.\)

Remark 4

Note that for Hermitian LCD codes, we have to fix the order of automorphism 2 and \(h_{ij}^{*}(x)\) by \(h_{ij}^{\dagger }(x)\) in Algorithm 3.

Example 4

Let \({\mathbb {F}}_{3^2}={\mathbb {F}}_{3}(\mathfrak {t})\), where \(\mathfrak {t}^2=\mathfrak {t}+1\), deg(f(u)) is 1 and \(g(v)=v^2-1\). Then, \(\mathfrak {R}={\mathbb {F}}_{3^2}[v]/ \langle v^2-1 \rangle \), \(\gamma _{11}=\frac{1}{2}(1+ v)\) and \(\gamma _{12}=\frac{1}{2}(1-v)\). Consider \(\Theta \in Aut(\mathfrak {R})\) is defined by \(\Theta (r_0+r_1v)=r_0^{3}+r_1^{3}v\) and \(\lambda =1\). Let \(\mathfrak {C}\) be a skew \((\Theta , \lambda )\)-constacyclic code of length 4 over \(\mathfrak {R}\) generated by \(f(x)=\gamma _{11} f_{11}(x)+\gamma _{12} f_{12}(x)\), where \(f_{11}=x^2+\mathfrak {t}^{6}x+\mathfrak {t}^{3}\) and \(f_{12}=x + \mathfrak {t}\) are generator polynomials of skew cyclic codes \(\mathcal {D}_{11}\) and \(\mathcal {D}_{12}\), respectively. Here, \(h_{11}(x)\), \(h_{11}^{*}(x)\) and \(h_{11}^{\dagger }(x)\) are \(x^2 + \mathfrak {t}^2x + \mathfrak {t}\), \(x^2 + \mathfrak {t}^5x + \mathfrak {t}^7\) and \(x^2 + \mathfrak {t}^7x + \mathfrak {t}^5\), respectively. Also, \(h_{12}(x)\), \(h_{12}^{*}(x)\) and \(h_{12}^{\dagger }(x)\) are \(x^3 + \mathfrak {t}^7x^2 + 2x + \mathfrak {t}^3\), \(x^2 + \mathfrak {t}^5x + \mathfrak {t}^7\) and \(x^3 + \mathfrak {t}x^2 + 2x + \mathfrak {t}^5\), respectively.

Then, \(gcrd(f_{11}(x), h_{11}^{*}(x))=1\) and \(gcrd(f_{12}(x), h_{12}^{*}(x))=1\). However,

\(gcrd(f_{11}(x), h_{11}^{\dagger }(x))=x+\mathfrak {t}^7\) and \(gcrd(f_{12}(x), h_{12}^{\dagger }(x))=x+\mathfrak {t}\). Hence, by Theorem 10, \(\mathfrak {C}\) is Euclidean LCD but not Hermitian LCD. Again, let

$$\begin{aligned} M= \left[ {\begin{array}{ll} 1&{}\quad 1 \\ 1&{}\quad 2 \end{array} } \right] \in GL_{2}({\mathbb {F}}_{3^2}), \end{aligned}$$

satisfying \(MM^T=2I_2\). Then, the gray image \(\varphi ({\mathfrak {C}})\) with parameters \([8,5,4]_{3^2}\) is an MDS Euclidean LCD skew 2-quasi-cyclic code.

Example 5

Let \({\mathbb {F}}_{17^2}={\mathbb {F}}_{17}(\mathfrak {t})\), where \(\mathfrak {t}^2=\mathfrak {t}+14\), deg(f(u)) is 1 and \(g(v)=v^2-v\). Then, \(\mathfrak {R}={\mathbb {F}}_{17^2}[v]/ \langle v^2-v \rangle \), \(\gamma _{11}=v\) and \(\gamma _{12}=1-v\). We define \(\Theta \in Aut(\mathfrak {R})\) as \(\Theta (r_0+r_1v)=r_0^{17}+r_1^{17}v\) and let \(\lambda =1\). Let \(\mathfrak {C}\) be a skew \((\Theta , \lambda )\)-constacyclic code of length 18 over \(\mathfrak {R}\) generated by \(f(x)=\gamma _{11} f_{11}(x)+\gamma _{12} f_{12}(x)\), where \(f_{11}=x^2 + \mathfrak {t}^{28}x + \mathfrak {t}^{32}\) and \(f_{12}=x + \mathfrak {t}^{48}\) are generator polynomials of skew cyclic codes \(\mathcal {D}_{11}\) and \(\mathcal {D}_{12}\), respectively. Here,

$$\begin{aligned} h_{11}(x)= & {} x^{16 }+ \mathfrak {t}^{172}x^{15 }+ \mathfrak {t}^{93}x^{14 }+ \mathfrak {t}^{82}x^{13 }+ \mathfrak {t}^{286}x^{12 }+ \mathfrak {t}^{46}x^{11 }+ \mathfrak {t}^{233}x^{10 }+ \mathfrak {t}^{154}x^{9 }\\{} & {} + \mathfrak {t}^{83}x^{8 }+ \mathfrak {t}^{10}x^{7 }+ \mathfrak {t}^{41}x^{6 }+ \mathfrak {t}^{190}x^{5 }+ \mathfrak {t}^{78}x^{4 }+ \mathfrak {t}^{226}x^{3}+ \mathfrak {t}^{253}x^{2 }+ \mathfrak {t}^{28}x + \mathfrak {t}^{112},\\ h_{11}^{*}(x)= & {} x^{16 }+ \mathfrak {t}^{140}x^{15 }+ \mathfrak {t}^{93}x^{14 }+ \mathfrak {t}^{50}x^{13 }+ \mathfrak {t}^{286}x^{12 }+ \mathfrak {t}^{174}x^{11 }+ \mathfrak {t}^{153}x^{10 }+ \mathfrak {t}^{282}x^{9 }\\{} & {} + \mathfrak {t}^{83}x^{8 }+ \mathfrak {t}^{266}x^{7 }+ \mathfrak {t}^{41}x^{6 }+ \mathfrak {t}^{30}x^{5 }+ \mathfrak {t}^{110}x^{4 }+ \mathfrak {t}^{66}x^{3}+ \mathfrak {t}^{205}x^{2 }+ \mathfrak {t}^{156}x + \mathfrak {t}^{112},\\ h_{11}^{\dagger }(x)= & {} x^{16 }+ \mathfrak {t}^{76}x^{15 }+ \mathfrak {t}^{141}x^{14 }+ \mathfrak {t}^{274}x^{13 }+ \mathfrak {t}^{254}x^{12 }+ \mathfrak {t}^{78}x^{11 }+ \mathfrak {t}^{9}x^{10 }+ \mathfrak {t}^{186}x^{9 }\\{} & {} + \mathfrak {t}^{259}x^{8 }+ \mathfrak {t}^{202}x^{7 }+ \mathfrak {t}^{121}x^{6 }+ \mathfrak {t}^{222}x^{5 }+ \mathfrak {t}^{142}x^{4 }+\mathfrak {t}^{258}x^{3 }{+} \mathfrak {t}^{29}x^{2 }{+} \mathfrak {t}^{60}x {+} \mathfrak {t}^{176}; \end{aligned}$$

and

$$\begin{aligned} h_{12}(x)= & {} x^{17} + \mathfrak {t}^{96}x^{16} + x^{15} + \mathfrak {t}^{96}x^{14} + x^{13} + \mathfrak {t}^{96}x^{12} + x^{11} + \mathfrak {t}^{96}x^{10} + x^9\\{} & {} + \mathfrak {t}^{96}x^8 + x^7 + \mathfrak {t}^{96}x^6 + x^5 + \mathfrak {t}^{96}x^4 + x^3 + \mathfrak {t}^{96}x^2 + x + \mathfrak {t}^{96},\\ h_{12}^{*}(x)= & {} x^{17 }+ \mathfrak {t}^{192}x^{16 }+ x^{15 }+ \mathfrak {t}^{192}x^{14 }+ x^{13 }+ \mathfrak {t}^{192}x^{12 }+ \mathfrak {t}^{96}x^{11 }+\mathfrak {t}^{192}x^{10 }+ x^{9 }\\{} & {} + \mathfrak {t}^{192}x^{8 }+ x^{7 }+ \mathfrak {t}^{192}x^{6 }+ \mathfrak {t}^{96}x^{5 }+ \mathfrak {t}^{192}x^{4 }+ \mathfrak {t}^{96}x^{3 }+ \mathfrak {t}^{192}x^{2 }+ \mathfrak {t}^{96}x + \mathfrak {t}^{192},\\ h_{11}^{\dagger }(x)= & {} x^{17 }+ \mathfrak {t}^{96}x^{16 }+ x^{15 }+ \mathfrak {t}^{96}x^{14 }+ x^{13 }+ \mathfrak {t}^{96}x^{12 }+ \mathfrak {t}^{192}x^{11 }+ \mathfrak {t}^{96}x^{10}+ x^{9 }\\{} & {} + \mathfrak {t}^{96}x^{8 }+ x^{7 }+ \mathfrak {t}^{96}x^{6 }+ \mathfrak {t}^{192}x^{5 }+ \mathfrak {t}^{96}x^{4 }+ \mathfrak {t}^{192}x^{3 }+ \mathfrak {t}^{96}x^{2 }+ \mathfrak {t}^{192}x + \mathfrak {t}^{96}. \end{aligned}$$
Table 1 Quantum codes from Euclidean dual containing skew \((\Theta ,\lambda )\)-constacyclic codes over \(\mathfrak {R}\)
Table 2 Quantum codes from Hermitian dual containing skew \((\Theta ,\lambda )\)-constacyclic codes over \(\mathfrak {R}\)
Table 3 Gray images of LCD skew \((\Theta ,\lambda )\)-constacyclic codes over \(\mathfrak {R}\)

Since \(gcrd(f_{11}(x), h_{11}^{*}(x))=1\) and \(gcrd(f_{12}(x), h_{12}^{*}(x))=1\) as well as \(gcrd(f_{11}(x), h_{11}^{\dagger }(x))=1\) and \(gcrd(f_{12}(x), h_{12}^{\dagger }(x))=1\). Therefore, by Theorem 10, \(\mathfrak {C}\) is both Euclidean and Hermitian LCD codes. Again, let

$$\begin{aligned} M= \left[ {\begin{array}{ll} 1&{}\quad 1 \\ 1&{}\quad 16 \end{array} } \right] \in GL_{2}({\mathbb {F}}_{17^2}), \end{aligned}$$

satisfying \(MM^T=2I_2\). Then, the gray image \(\varphi ({\mathfrak {C}})\) with parameters \([36,33,4]_{17^2}\) is an MDS skew 2-quasi-cyclic code.

6 Computation table

Consider the finite field \({\mathbb {F}}_{p^2}\) and \(deg(f(u))=1\) and \(g(v)=v^2-1\). Then, \(\mathfrak {R}:={\mathbb {F}}_{p^2}[v]/\langle v^2-1\rangle \), \(\gamma _{11}=\frac{1}{2}(1+v)\) and \(\gamma _{12}=\frac{1}{2}(1-v).\) Let \(\Theta \in Aut(\mathfrak {R})\) defined by \(\Theta (a+bv)=a^p+b^p v\) and \(\lambda =a+bv \in \mathfrak {R}^{*}\). Then, \(\beta _{11}=a+b\) and \(\beta _{12}=a-b\) are corresponding units in \({\mathbb {F}}_{p^2}\). Let \(\mathfrak {C}\) be a skew \((\Theta , \lambda )\)-constacyclic code of length n over \(\mathfrak {R}\) generated by \(f(x)=\gamma _{11} f_{11}(x)+\gamma _{12} f_{12}(x)\), where \(f_{11}\) and \(f_{12}\) are generator polynomials of skew \((\theta , \beta _{11})\)-constacyclic code \(\mathcal {D}_{11}\) and skew \((\theta , \beta _{12})\)-constacyclic code \(\mathcal {D}_{12}\), respectively. In order to find out gray image of \(\mathfrak {C}\), we use the matrix

$$\begin{aligned} M= \left[ {\begin{array}{ll} 1&{}\quad 1 \\ 1&{}\quad -1 \end{array} } \right] \in GL_{2}({\mathbb {F}}_{p^2}), \end{aligned}$$

which is satisfying \(MM^T=2I_2\). In this way, we obtain many new and better quantum codes presented in Tables 1 and 2 from skew \((\Theta , \lambda )\)-constacyclic code over \(\mathfrak {R}\) by applying CSS and Hermitian constructions, respectively. Table 3 contains some MDS linear codes, which are the gray images of the Euclidean LCD skew \((\Theta , \lambda )\)-constacyclic codes over \(\mathfrak {R}\). Note that, instead of writing the whole polynomial, we represent it by the coefficients in ascending order of the powers of the variable. For example, the polynomial \( \mathfrak {t}^{21}+\mathfrak {t}^5x+x^2\) is represented by \(\mathfrak {t}^{21}\mathfrak {t}^5 1.\)

7 Conclusion

In this paper, we have explored the structure of Euclidean and Hermitian duals of skew \((\Theta , \lambda )\)-constacyclic codes over the non-chain ring \(\mathfrak {R}={\mathbb {F}}_{p^e}[u,v]/\langle f(u),g(v),uv-vu \rangle \). We have also established a necessary and sufficient condition for these codes to contain their duals. As an application, several new quantum codes have been constructed by using the CSS construction (Table 1) and Hermitian construction (Table 2). Further, we have derived a necessary and sufficient condition for skew \((\Theta , \lambda )\)-constacyclic codes over \(\mathfrak {R}\) to intersect their Euclidean (Hermitian) dual codes trivially. By applying a gray map on Euclidean LCD skew \((\Theta , \lambda )\)-constacyclic codes over \(\mathfrak {R},\) many linear MDS codes have been obtained (Table 3). Our computational work shows that skew constacyclic codes over the non-chain ring are more promising to produce better quantum and linear codes than constacyclic codes. Recently, Aydin et al. [5] constructed many good classical and quantum codes from multi-twisted codes. Therefore, it would be interesting to work to obtain more good quantum and classical codes over \({\mathbb {F}}_{p^e}\) by considering other classes of linear codes such as skew quasi-twisted codes or skew multi-twisted codes.