1 Introduction

Quantum convolutional codes were first introduced by Chau in [3, 4], and then Ollivier and Tillich [21] gave the stabilizer framework for such codes, encoding and decoding methods of quantum convolutional codes were also described. Similar to quantum codes, the construction of quantum convolutional codes with good properties is also an interesting task. Many quantum convolutional codes had been constructed by various methods. Almeida and Palazzo [9] constructed a concatenated quantum convolutional code with parameters [(4, 1, 3)]. Quantum convolutional codes of rate \((n-2)/n\) had been constructed from self-orthogonal classical convolutional codes by Forney et al. in [10], which also have low decoding complexity. Grassl and R\(\ddot{o}\)tteler [11] constructed some quantum convolutional codes via product codes, and they also presented an algorithm for non-catastrophic encoders in [12].Tan and Li [22] constructed quantum convolutional codes through LDPC codes. Wilde and Brun [24] used two arbitrary binary convolutional codes to construct entanglement-assisted quantum convolutional codes. As quantum codes, the parameters of quantum convolutional codes are mutually restricted. Aly et al. [2] established the Singleton bound for pure convolutional stabilizer codes, and a class of quantum convolutional codes achieves such bound is derived from generalized Reed-Solomon codes. Later, La Guardia [17] constructed several classes of optimal quantum convolutional codes via BCH codes using an algebraic method. Due to the rich algebraic structure and efficient encoding and decoding circuits, constacyclic codes including cyclic codes and negacyclic codes are preferred objects on the construction of quantum convolutional codes. Lots of quantum convolutional codes with good parameters had been constructed from them (please see [1, 8, 14, 25] and the references therein). Particularly, many quantum MDS convolutional codes had been constructed. Among the obtained results, the lengths of these quantum MDS convolutional codes divide \(q^{2}-1\) (please see [7, 8, 25, 28]) or \(q^{2}+1\) (please see [5,6,7, 18,19,20, 25, 26, 28]).

Going on the line of the above studies, we construct eight classes of quantum MDS convolutional codes via classical constacyclic codes (including negacyclic codes). Precisely speaking, for any odd prime power q, the quantum MDS convolutional codes have the following parameters.

  • \([(\frac{q^{2}+1}{\rho },\frac{q^{2}+1}{\rho }-4\delta +2,1;2,2\delta +2)]_{q}\), where \(q=2\rho m+2a+1\), \(\rho =a^{2}+(a+1)^{2}\), a and m are positive integers, and \(2\le \delta \le \frac{(2a+1)q+1}{2\rho }-1\).

  • \([(\frac{q^{2}+1}{\rho },\frac{q^{2}+1}{\rho }-4\delta +2,1;2,2\delta +2)]_{q}\), where \(q=2\rho m-2a-1\), \(\rho =a^{2}+(a+1)^{2}\), a and m are positive integers, and \(2\le \delta \le \frac{(2a+1)q-1}{2\rho }-1\).

  • \([(\frac{q^{2}-1}{\mu },\frac{q^{2}-1}{\mu }-2\delta ,1;1,\delta +2)]_{q}\), where \(q=\mu m+\ell \), \(\mu =\ell ^{2}-1\), m is a positive integer, \(\ell \) is a positive odd integer, and \(2\le \delta \le \ell m-1\).

  • \([(\frac{q^{2}-1}{\mu },\frac{q^{2}-1}{\mu }-2\delta ,1;1,\delta +2)]_{q}\), where \(q=\mu m-\ell \), \(\mu =\ell ^{2}-1\), m is a positive integer, \(\ell \) is a positive odd integer, and \(2\le \delta \le (\ell -1)m-3\).

  • \([(\frac{q^{2}-1}{\mu },\frac{q^{2}-1}{\mu }-2\delta ,1;1,\delta +2)]_{q}\), where \(q=\mu m+\ell \), \(\mu =\frac{\ell ^{2}-1}{2}\), \(\ell \equiv 1 (\bmod 4)\), m is a positive integer, \(\ell \) is a positive odd integer, and \(2\le \delta \le \ell m\).

  • \([(\frac{q^{2}-1}{\mu },\frac{q^{2}-1}{\mu }-2\delta ,1;1,\delta +2)]_{q}\), where \(q=\mu m+\ell \), \(\mu =\frac{\ell ^{2}-1}{2}\), \(\ell \equiv 3 (\bmod 4)\), m is a positive integer, \(\ell \) is a positive odd integer, and \(2\le \delta \le \frac{\ell +1}{2}m-1\).

  • \([(\frac{q^{2}-1}{\mu },\frac{q^{2}-1}{\mu }-2\delta ,1;1,\delta +2)]_{q}\), where \(q=\mu m-\ell \), \(\mu =\frac{\ell ^{2}-1}{2}\), \(\ell \equiv 1 (\bmod 4)\), m is a positive integer, \(\ell \) is a positive odd integer, and \(2\le \delta \le \frac{\ell -1}{2}m-3\).

  • \([(\frac{q^{2}-1}{\mu },\frac{q^{2}-1}{\mu }-2\delta ,1;1,\delta +2)]_{q}\), where \(q=\mu m-\ell \), \(\mu =\frac{\ell ^{2}-1}{2}\), \(\ell \equiv 3 (\bmod 4)\), m is a positive integer, \(\ell \) is a positive odd integer, and \(2\le \delta \le \ell m-4\).

The paper is organized as follows. In Section 2, we recall some basic results of constacyclic codes. In Section 3, we state some notations and results about quantum convolutional codes. In Sections 4 and 5, we give the constructions of quantum MDS convolutional codes based on classical constacyclic codes of length \(\frac{q^{2}+1}{\rho }\) and classical negacyclic codes of length \(\frac{q^{2}-1}{\mu }\), respectively. A conclusion is given in Section 6.

2 Constacyclic Codes

In this paper, we will consider the codes under the Hermitian inner product. Let \(\mathbb {F}_{q^{2}}\) be the finite field with \(q^{2}\) elements, where p is an odd prime number and q is a power of p. A linear code \(\mathscr {C}\) over \(\mathbb {F}_{q^{2}}\) of length n with dimension k and minimum distance d, denoted as \([n,k,d]_{q^{2}}\), is a linear subspace of \(\mathbb {F}_{q^{2}}^{n}\). The parameters of such codes satisfy the well-known Singleton bound: \(d\le n-k+1\). If d achieves such bound, then \(\mathscr {C}\) is called an MDS code. For any two vectors \({\textbf {x}}=(x_{0}, x_{1},\ldots ,x_{n-1})\), and \({\textbf {y}}=(y_{0}, y_{1},\ldots ,y_{n-1})\in \mathbb {F}_{q^{2}}^{n}\), the Hermitian inner product is defined as

$$\begin{aligned} \langle {\textbf {x}}, {\textbf {y}}\rangle _{H}:=x_{0}{y_{0}^{q}}+x_{1}{y_{1}^{q}}+\cdots +x_{n-1}y_{n-1}^{q}. \end{aligned}$$

If \(\langle {\textbf {x}}, {\textbf {y}}\rangle _{H}=0\), then the vectors \({\textbf {x}}\) and \({\textbf {y}}\) are called orthogonal with respect to the Hermitian inner product. The Hermitian dual code \(\mathscr {C}^{\bot _{H}}\) of \(\mathscr {C}\) is defined as

$$\begin{aligned} \mathscr {C}^{\bot _{H}}:=\{{\textbf {x}}\in \mathbb {F}_{q^{2}}^{n}|\langle {\textbf {x}}, {\textbf {y}}\rangle _{H}=0 ~\text {for all} ~ {\textbf {y}}\in \mathscr {C}\}. \end{aligned}$$

It is easy to see that \(\mathscr {C}^{\bot _{H}}\) is also a linear code, which has dimension \(n-\dim (\mathscr {C})\).

For any nonzero element \(\lambda \in \mathbb {F}_{q^{2}}\), defining a map

$$\begin{aligned} \varphi : \mathbb {F}_{q^{2}}^{n}\longrightarrow \mathbb {F}_{q^{2}}^{n}, \end{aligned}$$
$$\begin{aligned} (c_{0},c_{1},\ldots ,c_{n-1})\longmapsto (\lambda c_{n-1},c_{0},\ldots ,c_{n-2}). \end{aligned}$$

If \(\varphi (\mathscr {C})=\mathscr {C}\), then \(\mathscr {C}\) is called a \(\lambda \)-constacyclic code. In the case \(\lambda =1\), \(\mathscr {C}\) is a cyclic code, while in the case \(\lambda =-1\), \(\mathscr {C}\) is the so-called negacyclic code. Defining the following map

$$\begin{aligned} \psi :\mathbb {F}_{q^{2}}^{n}\longrightarrow \mathscr {R}=\frac{\mathbb {F}_{q^{2}}[x]}{\langle x^{n}-\lambda \rangle }, \end{aligned}$$
$$\begin{aligned} (c_{0},c_{1},\ldots ,c_{n-1})\longmapsto c_{0}+c_{1}x+c_{2}x^{2}+\cdots +c_{n-1}x^{n-1}. \end{aligned}$$

Then \(\mathscr {C}\) is a \(\lambda \)-constacyclic code if and only if \(\psi (\mathscr {C})=\{\psi ({\textbf {c}})|{\textbf {c}}\in \mathscr {C})\}\) is an ideal of the quotient ring \(\mathscr {R}\). As we know, \(\mathscr {R}\) is a principal ideal ring. Assume that \(\mathscr {C}=\langle f(x)\rangle \) is a \(\lambda \)-constacyclic code of length n over \(\mathbb {F}_{q^{2}}\), where f(x) is a monic polynomial of minimal degree in \(\mathscr {C}\). Then \(f(x)|(x^{n}-\lambda )\) and f(x) is called the generator polynomial of \(\mathscr {C}\). The dimension of \(\mathscr {C}\) is \(n-deg(f(x))\).

Assume that \(\text {gcd}(n,q)=1\), the order of \(\lambda \) is r, i.e., \(\text {ord}(\lambda )=r\), and the multiplicative order of \(q^{2}\) modulo rn is u, i.e., \(\text {ord}_{rn}(q^{2})=u\). Then there is a primitive rn-th root of unity \(\xi \in \mathbb {F}_{q^{2u}}\) such that \(\xi ^{n}=\lambda \), which implies that \(x^{n}-\lambda =\prod _{i=0}^{n-1}(x-\xi ^{1+ri})\). Let \(\mathbb {Z}_{n}=\{0,1,2,\ldots ,n-1\}\) be the ring of integers modulo n and \(\mathbb {Z}_{rn}\) be the ring of integers modulo rn. Suppose that \(m_{i}(x)\) is the minimal polynomial of \(\xi ^{1+ri}\) over \(\mathbb {F}_{q^{2}}\). If \(\mathscr {C}=\langle f(x)\rangle \) is a \(\lambda \)-constacyclic code of length n over \(\mathbb {F}_{q^{2}}\), then there is a subset \(\varOmega \subseteq \mathbb {Z}_{n}\) such that \(f(x)=\prod _{i\in \varOmega }m_{i}(x)\). For every \(i\in \mathbb {Z}_{rn}\), the \(q^{2}\)-cyclotomic coset of i modulo rn is defined by

$$\begin{aligned} C_{i}:=\{ i q^{2l} (\bmod rn)| 0\le l\le l_{i}-1 \}, \end{aligned}$$

where \(l_{i}\) is the smallest positive integer such that \(i\equiv iq^{2l_{i}} ~(\bmod ~ rn)\). Let \(\mathscr {Z}=\{i\in \mathbb {Z}_{rn}| f(\xi ^{i})=0\}\). The set \(\mathscr {Z}\) is called the defining set of \(\mathscr {C}\). It is clear that \(\mathscr {Z}\) is a union of some \(q^{2}\)-cyclotomic cosets and \(\text {dim}(\mathscr {C})=n-|\mathscr {Z}|\), where \(|\mathscr {Z}|\) means the cardinality of the set \(\mathscr {Z}\). As we know, it is hard to know the exact value of the distance of code \(\mathscr {C}\), but it can be estimated by the following well-known bound.

Theorem 1

(BCH bound) [16] Let \(\delta \) be an integer in the range \(2\le \delta \le n\). Assume that \(\mathscr {C}\) is a \(\lambda \)-constacyclic code of length n over \(\mathbb {F}_{q^{2}}\) with defining set \(\mathscr {Z}\). If \(\mathscr {Z}\) consists of \(\delta -1\) consecutive elements, then \(d(\mathscr {C})\ge \delta \).

The following lemma gives a parity-check matrix of \(\mathscr {C}\), which will play an important role in our construction.

Lemma 1

[16, 19] Assume that \(\lambda \in \mathbb {F}^{*}_{q^{2}}\), \(\text {ord}(\lambda )=r\), and \(\text {ord}_{rn}(q^{2})=u\). Taking a primitive rn-th root of unity \(\beta \in \mathbb {F}_{q^{2u}}\) such that \(\beta ^{n}=\lambda \). Suppose that \(\mathscr {C}\) is a \(\lambda \)-constacyclic code of length n over \(\mathbb {F}_{q^{2}}\) with defining set \(\mathscr {Z}=\bigcup _{i=b}^{\delta -2}C_{1+ri}\), where b is a nonnegative integer. Then a parity-check matrix of \(\mathscr {C}\) can be obtained from the matrix

$$H=\begin{pmatrix} 1 &{} \beta ^{1+rb} &{} \beta ^{2(1+rb)} &{} \cdots &{} \beta ^{(n-1)(1+rb)} \\ 1 &{} \beta ^{1+r(b+1)} &{} \beta ^{2[1+r(b+1)]} &{} \cdots &{} \beta ^{(n-1)[1+r(b+1)]}\\ \vdots &{} \vdots &{} \vdots &{} \vdots &{} \vdots \\ 1 &{} \beta ^{1+r(\delta -3)} &{} \beta ^{2[1+r(\delta -3)]} &{} \cdots &{} \beta ^{(n-1)[1+r(\delta -3)]}\\ 1 &{} \beta ^{1+r(\delta -2)} &{} \beta ^{2[1+r(\delta -2)]} &{} \cdots &{} \beta ^{(n-1)[1+r(\delta -2)]}\end{pmatrix}$$

by expanding each entry as a column vector which contains u rows with respect to certain \(\mathbb {F}_{q^{2}}\)-basis of \(\mathbb {F}_{q^{2u}}\) and then removing any linearly dependent rows.

3 Quantum Convolutional Codes

In this section, we recall some basic notations and results about classical convolutional codes and quantum convolutional codes over finite fields. Let \(\mathbb {F}_{q^{2}}[D]\) be the polynomial ring in the indeterminate D with coefficients in \(\mathbb {F}_{q^{2}}\) and G(D) be a \(k\times n\) matrix over \(\mathbb {F}_{q^{2}}[D]\). G(D) is called basic if G(D) has a polynomial right inverse. A basic polynomial generator matrix G(D) is called reduced if the overal constraint length \(\gamma =\sum _{i=1}^{k}\gamma _{i}\) attains the minimal value among all basic generator matrices of the convolutional code \(\mathscr {V}\).

Definition 1

[2] A rate k/n convolutional code \(\mathscr {V}\) with parameters \((n,k,\gamma ;\upsilon ,d_{f})_{q^{2}}\) is a submodule of \(\mathbb {F}_{q^{2}}[D]^{n}\) generated by a reduced basic matrix \(G(D)=(g_{ij}(D))\in \mathbb {F}_{q^{2}}[D]^{k\times n}\), that is, \(\mathscr {V}=\{{\textbf {u}}(D)G(D)|{\textbf {u}}(D)\in \mathbb {F}_{q^{2}}[D]^{k}\},\) where n is the length, k is the dimension, \(\gamma _{i}=\max \limits _{1\le j\le n}\{\deg g_{ij}(D)\}\) is the i-th row degree, \(\gamma =\sum _{i=1}^{k}\gamma _{i}\) is the degree, \(\upsilon =\max \limits _{1\le i\le k}\{\gamma _{i}\}\) is the memory and \(d_{f}=\min \{\text {wt}({\textbf {v}}(D))|{\textbf {v}}(D)\in \mathscr {V}, {\textbf {v}}(D)\ne 0\}\) is the free distance of \(\mathscr {V}\). Here, \(\text {wt}({\textbf {v}}(D))=\sum _{i=1}^{n}\text {wt}(v_{i}(D))\), where \(\text {wt}(v_{i}(D))\) is the number of nonzero coefficients of \(v_{i}(D)\).

Given any two n-tuples \({\textbf {u}}(D)=\sum _{i}{} {\textbf {u}}_{i}D^{i}\) and \({\textbf {v}}(D)=\sum _{i}{} {\textbf {v}}_{i}D^{i}\) in \(\mathbb {F}_{q^{2}}[D]^{n}\), their Hermitian inner product is defined as \(\langle {\textbf {u}}(D)|{\textbf {v}}(D)\rangle _{H}=\sum _{i}{} {\textbf {u}}_{i}\cdot {\textbf {v}}_{i}^{q}\), where \({\textbf {u}}_{i},{\textbf {v}}_{i}\in \mathbb {F}_{q^{2}}^{n}\) and \({\textbf {v}}_{i}^{q}=(v_{i_{1}}^{q},v_{i_{2}}^{q},\ldots ,v_{i_{n}}^{q})\). The Hermitian dual code \(\mathscr {V}^{\perp _{H}}\) of a convolutional code \(\mathscr {V}\) is defined as

$$\mathscr {V}^{\perp _{H}}=\{{\textbf {u}}(D)\in \mathbb {F}_{q^{2}}[D]^{n}|\langle {\textbf {u}}(D)| {\textbf {v}}(D)\rangle _{H}=0\ \text {for}\ \text {all}\ {\textbf {v}}(D)\in \mathscr {V}\}.$$

The following lemma presents a relationship between \(\mathscr {V}\) and \(\mathscr {V}^{\perp _{H}}\).

Lemma 2

[28] If \(\mathscr {V}\) is an \((n,k,\gamma )_{q^{2}}\) convolutional code, then \(\mathscr {V}^{\perp _{H}}\) is an \((n,n-k,\gamma )_{q^{2}}\) convolutional code.

As we know, convolutional codes can be constructed from block codes. Let \(\mathscr {C}\) be an \([n,k,d]_{q^{2}}\) linear code with parity-check matrix H. Splitting H into \(\upsilon +1\) disjoint submatrices \(H_{i}\) such that

$$\begin{aligned} H=\left( \begin{array}{c} H_{0}\\ H_{1}\\ \vdots \\ H_{\upsilon }\\ \end{array}\right) , \end{aligned}$$
(1)

where each \(H_{i}\) has n columns. Let \(\kappa \) be the largest number of rows among all the matrices \(H_{i}\), where \(0\le i\le \upsilon \). Each matrix \(H_{i}\) is enlarged to a matrix \(\widetilde{H}_{i}\) by adding zero-rows at the bottom such that \(\widetilde{H}_{i}\) has \(\kappa \) rows in total. Let

$$\begin{aligned} G(D)=\widetilde{H}_{0}+\widetilde{H}_{1}D+\cdots +\widetilde{H}_{\upsilon }D^{\upsilon }. \end{aligned}$$
(2)

Then G(D) generates a convolutional code \(\mathscr {V}\). The parameters of \(\mathscr {V}\) can be derived from the following theorem.

Theorem 2

[1] Let \(\mathscr {C}\) be an \([n,k,d]_{q^{2}}\) linear code with parity-check matrix \(H\in \mathbb {F}_{q^{2}}^{(n-k)\times n}\). Suppose that H is partitioned into submatrices \(H_{0},H_{1},\ldots ,H_{\upsilon }\) as in (1) such that \(\kappa =\text {rank}(H_{0})\) and \(\text {rank}(H_{i})\le \kappa \) for \(1\le i\le \upsilon \). Let G(D) be defined as in (2), and the convolutional code \(\mathscr {V}=\{{\textbf {u}}(D)G(D)|{\textbf {u}}(D)\in \mathbb {F}_{q^{2}}[D]^{n-k}\}\). Then we can get

  1. (i)

    The matrix G(D) is a reduced basic generator matrix.

  2. (ii)

    If \(\mathscr {C}^{\perp _{H}}\subseteq \mathscr {C}\), then \(\mathscr {V}\subseteq \mathscr {V}^{\perp _{H}}.\)

  3. (iii)

    Let \(d_{f}\) and \(d_{f}^{\perp _{H}}\) be the free distance of \(\mathscr {V}\) and \(\mathscr {V}^{\perp _{H}}\), respectively. Let \(d_{i}\) be the minimum Hamming distance of the code \(\mathscr {C}_{i}=\{{\textbf {c}}\in \mathbb {F}_{q^{2}}^{n}|{\textbf {c}}\widetilde{H}_{i}^{T}=0\}\), and let \(d^{\perp _{H}}\) be the minimum Hamming distance of \(\mathscr {C}^{\perp _{H}}\). Then \(\min \{d_{0}+d_{\upsilon },d\}\le d_{f}^{\perp _{H}}\le d\) and \(d_{f}\ge d^{\perp _{H}}\).

Quantum convolutional codes are defined as infinite versions of quantum stabilizer codes. The stabilizer can be defined by a matrix with polynomial entries

$$\begin{aligned} S(D)=(X(D)|Z(D))\in \mathbb {F}_{q}[D]^{(n-k)\times 2n}, \end{aligned}$$

which satisfies \(X(D)Z(1/D)^{T}-Z(D)X(1/D)^{T}=0.\) If a quantum convolutional code \(\mathscr {Q}\) is generated by the full-rank stabilizer matrix S(D), then \(\mathscr {Q}\) has parameters \([(n,k,\upsilon ;\gamma ,d_{f})]_{q}\), where n is the frame size, k is the number of logical qudits per frame, \(\gamma \) is the degree, \(\upsilon =\max _{1\le i\le n-k,1\le j\le n}\{\max \{\deg X_{ij}(D),\deg Z_{ij}(D)\}\}\) is the memory, and \(d_{f}\) is the free distance of \(\mathscr {Q}\). It had already been shown in [2] that the free distance of a quantum convolutional code \(\mathscr {Q}\) must satisfy the following version of the Singleton bound.

Theorem 3

The free distance of an \([(n,k,\upsilon ;\gamma ,d_{f})]_{q}\) \(\mathbb {F}_{q^{2}}\)-linear pure convolutional stabilizer code is bounded by

$$\begin{aligned} d_{f}\le \frac{n-k}{2}\left( \left\lfloor \frac{2\gamma }{n+k}\right\rfloor +1\right) +\gamma +1. \end{aligned}$$

If the free distance \(d_{f}\) of the quantum convolutional code \(\mathscr {Q}\) attains such bound, then \(\mathscr {Q}\) is called a quantum MDS convolutional code. Actually, it is not an easy task to construct quantum MDS convolutional codes. The following theorem gives a connection between classical convolutional codes and quantum convolutional codes.

Theorem 4

[1] Let \(\mathscr {V}\) be an \((n,(n-k)/2,\gamma ;\upsilon )_{q^{2}}\) convolutional code such that \(\mathscr {V}\subseteq \mathscr {V}^{\perp _{H}}\). Then there exists an \([(n,k,\upsilon ;\gamma ,d_{f})]_{q}\) convolutional stabilizer code, where \(d_{f}=wt(\mathscr {V}^{\perp _{H}}\setminus \mathscr {V})\).

From the aforementioned theorem, we can apply Hermitian self-orthogonal convolutional codes over \(\mathbb {F}_{q^{2}}\) to construct quantum convolutional codes. In this paper, we first use constacyclic codes and negacyclic codes to construct some Hermitian self-orthogonal convolutional codes and then some quantum MDS convolutional codes are derived from such convolutional codes.

4 Quantum MDS Convolutional Codes of Length \(\frac{q^{2}+1}{\rho }\)

Let \(\eta \in \mathbb {F}_{q^{2}}^{*}\) and \(\text {ord}(\eta )=q+1\). In this section, we will construct some quantum MDS convolutional codes of length \(n=\frac{q^{2}+1}{\rho }\) via \(\eta \)-constacyclic codes, where \(\rho =a^{2}+(a+1)^{2}\), and a is a positive integer. As n should be an integer, it can be easily obtained that q is a prime power with the form \(q=\rho m+2a+1\) or \(q=\rho m-2a-1\), where m is a positive integer. Here we only consider q being odd with the form \(q=2\rho m\pm (2a+1)\). In order to proceed further, we first recall some relevant results shown in the literature.

Lemma 3

[15] Let \(n=\frac{q^{2}+1}{\rho }\), \(s=\frac{q^{2}+1}{2}\), and \(\rho \) be odd. Then all cyclotomic cosets modulo \((q+1)n\) containing \(1+(q+1)i\) are as follows:

  1. (1)

    \(C_{s}=\{s\}\) and \(C_{s\pm \frac{q+1}{2}n}=\{s\pm \frac{q+1}{2}n\}\).

  2. (2)

    \(C_{s-(q+1)i}=\{s-(q+1)i,s+(q+1)i\}\) for \(1\le i\le n/2-1\).

Lemma 4

Let q be an odd prime power with the form \(q=2\rho m+2a+1\), where \(\rho =a^{2}+(a+1)^{2}\), and am are positive integers. Let \(n=\frac{q^{2}+1}{\rho }\), \(s=\frac{q^{2}+1}{2}\). If \(\mathscr {C}\) is an \(\eta \)-constacyclic code of length n over \(\mathbb {F}_{q^{2}}\) with defining set \(\mathscr {Z}=\bigcup _{j=0}^{\delta } C_{s-(q+1)j}\), where \(0\le \delta \le \frac{(2a+1)q+1}{2\rho }-1\), then \(\mathscr {C}^{\perp _{H}}\subseteq \mathscr {C}\).

Proof

The case \(a\ge 2\) had been proved in [13], while the case \(a=1\) had been proved in [27]. Hence, the result is true.\(\square \)

Lemma 5

Let \(n=\frac{q^{2}+1}{\rho }\) and q be an odd prime power with the form \(q=2\rho m+2a+1\), where \(\rho =a^{2}+(a+1)^{2}\), and am are positive integers. Then there exists an \((n,n-2\delta +1,2;1,2\delta +2)_{q^{2}}\) convolutional code which contains its Hermitian dual, where \(2\le \delta \le \frac{(2a+1)q+1}{2\rho }-1\).

Proof

According to Lemma 3, the order of \(q^{2}\) modulo \((q+1)n\) is equal to 2. Suppose that \(\beta \in \mathbb {F}_{q^{4}}\) is a primitive \((q+1)n\)-th root of unity such that \(\beta ^{n}=\eta \). Let \(\mathscr {C}\) be an \(\eta \)-constacyclic code of length n over \(\mathbb {F}_{q^{2}}\) with defining set \(\mathscr {Z}=\bigcup _{j=0}^{\delta } C_{s-(q+1)j}\), where \(2\le \delta \le \frac{(2a+1)q+1}{2\rho }-1\). By Lemma 1, the parity-check matrix of \(\mathscr {C}\), denoted by H, can be obtained from the following matrix

$$H_{\mathscr {C}}=\begin{pmatrix} 1 &{} \beta ^{s} &{} \beta ^{2s} &{} \cdots &{} \beta ^{(n-1)s} \\ 1 &{} \beta ^{s+(q+1)} &{} \beta ^{2[s+(q+1)]} &{} \cdots &{} \beta ^{(n-1)[s+(q+1)]}\\ \vdots &{} \vdots &{} \vdots &{} \vdots &{} \vdots \\ 1 &{} \beta ^{s+(\delta -1)(q+1)} &{} \beta ^{2[s+(\delta -1)(q+1)]} &{} \cdots &{} \beta ^{(n-1)[s+(\delta -1)(q+1)]}\\ 1 &{} \beta ^{s+\delta (q+1)} &{} \beta ^{2[s+\delta (q+1)]} &{} \cdots &{} \beta ^{(n-1)[s+\delta (q+1)]}\end{pmatrix},$$

by expanding each entry as a column vector which contains 2 rows with respect to certain \(\mathbb {F}_{q^{2}}\)-basis of \(\mathbb {F}_{q^{4}}\) and then removing any linearly dependent rows. Hence, H has rank \(2\delta +1\). Note that \(\mathscr {C}\) is an MDS code with parameters \([n,n-2\delta -1,2\delta +2]\). Moreover, \(\mathscr {C}^{\bot _{H}}\) is also an MDS code with parameters \([n, 2\delta +1, n-2\delta ]\).

Suppose that \(\mathscr {C}_{0}\) is an \(\eta \)-constacyclic code of length n over \(\mathbb {F}_{q^{2}}\) with defining set \(\mathscr {Z}_{0}=\bigcup _{j=0}^{\delta -1} C_{s-(q+1)j}\), where \(2\le \delta \le \frac{(2a+1)q+1}{2\rho }-1\). Then \(\mathscr {C}_{0}\) is an MDS code with parameters \([n,n-2\delta +1,2\delta ]\), and its Hermitian dual code \(\mathscr {C}_{0}^{\bot _{H}}\) is also an MDS code with parameters \([n,2\delta -1,n-2\delta +2]\). Furthermore, the parity-check matrix of \(\mathscr {C}_{0}\), denoted by \(H_{0}\), can be obtained from the following matrix

$$H_{\mathscr {C}_{0}}=\begin{pmatrix} 1 &{} \beta ^{s} &{} \beta ^{2s} &{} \cdots &{} \beta ^{(n-1)s} \\ 1 &{} \beta ^{s+(q+1)} &{} \beta ^{2[s+(q+1)]} &{} \cdots &{} \beta ^{(n-1)[s+(q+1)]}\\ \vdots &{} \vdots &{} \vdots &{} \vdots &{} \vdots \\ 1 &{} \beta ^{s+(\delta -1)(q+1)} &{} \beta ^{2[s+(\delta -1)(q+1)]} &{} \cdots &{} \beta ^{(n-1)[s+(\delta -1)(q+1)]}\\ \end{pmatrix},$$

by expanding each entry as a column vector which contains 2 rows with respect to certain \(\mathbb {F}_{q^{2}}\)-basis of \(\mathbb {F}_{q^{4}}\) and then removing any linearly dependent rows. In fact, \(H_{\mathscr {C}_{0}}\) is a submatrix of \(H_{\mathscr {C}}\), so \(H_{0}\) can be directly derived from the parity-check matrix H. Particularly, the rank of \(H_{0}\) is \(2\delta -1\).

Suppose that \(\mathscr {C}_{1}\) is an \(\eta \)-constacyclic code of length n over \(\mathbb {F}_{q^{2}}\) with defining set \(\mathscr {Z}_{1}= C_{s-(q+1)\delta }\), where \(2\le \delta \le \frac{(2a+1)q+1}{2\rho }-1\). Then \(\mathscr {C}_{1}\) is an \([n,n-2]\) code with minimum Hamming distance \(\ge 2\). The parity-check matrix of \(\mathscr {C}_{1}\), denoted by \(H_{1}\), can be obtained by expanding the following matrix

$$H_{\mathscr {C}_{1}}=\begin{pmatrix} 1,&\beta ^{s+\delta (q+1)},&\beta ^{2[s+\delta (q+1)]},&\cdots ,&\beta ^{(n-1)[s+\delta (q+1)]} \end{pmatrix},$$

which also can be directly derived from the parity-check matrix H.

Due to the above construction, one can see that H has been partitioned into two submatrices \(H_{0}\) and \(H_{1}\) such that

$$H=\begin{pmatrix} H_{0}\\ H_{1} \end{pmatrix}.$$

Assume that \(G(D)=\widetilde{H}_{0}+\widetilde{H}_{1}D\), where \(\widetilde{H}_{0}=H_{0}\) and \(\widetilde{H}_{1}\) is obtained from \(H_{1}\) by adding zero-rows at its bottom such that \(\widetilde{H}_{1}\) has the same number of rows as \(H_{0}\). Due to Theorem 2(i), G(D) is a reduced basic generator matrix, and the convolutional code \(\mathscr {V}\) generated by such matrix has dimension \(2\delta -1\) and degree 2. It follows from Lemma 2 that the Hermitian dual code \(\mathscr {V}^{\perp _{H}}\) has dimension \(n-2\delta +1\) and degree 2. According to Theorem 2(iii), the free distance \(d_{f}^{\perp _{H}}\) of \(\mathscr {V}^{\perp _{H}}\) satisfies that \(\min \{d_{0}+d_{1},d\}\le d_{f}^{\perp _{H}}\le d\), where \(d_{0},d_{1}\) and d are the minimum Hamming distances of the constacyclic codes \(\mathscr {C}_{0},\mathscr {C}_{1}\) and \(\mathscr {C}\), respectively. Then we can get \(d_{f}^{\perp _{H}}=2\delta +2\). Hence, the convolutional code \(\mathscr {V}^{\perp _{H}}\) has parameters \((n,n-2\delta +1,2;1,2\delta +2)_{q^{2}}\). Finally, it follows from Theorem 2(ii) that \(\mathscr {V}\) is Hermitian self-orthogonal due to the fact that \(\mathscr {C}^{\perp _{H}}\subseteq \mathscr {C}\).

The construction of quantum MDS convolutional codes can be given by using the above lemma.

Theorem 5

Let \(n=\frac{q^{2}+1}{\rho }\) and q be an odd prime power with the form \(q=2\rho m+2a+1\), where \(\rho =a^{2}+(a+1)^{2}\), and am are positive integers. Then there exists a quantum MDS convolutional code with parameters \([(n,n-4\delta +2,1;2,2\delta +2)]_{q}\), where \(2\le \delta \le \frac{(2a+1)q+1}{2\rho }-1\).

Proof

Due to Lemma 5, a convolutional code \(\mathscr {V}\) with parameters \((n,2\delta -1,2;1,d_{f})_{q^{2}}\) can be obtained, which also satisfies \(\mathscr {V}\subseteq \mathscr {V}^{\bot _{H}}\) for any \(2\le \delta \le \frac{(2a+1)q+1}{2\rho }-1\). According to Theorem 2(iii), \(d_{f}\ge n-2\delta \). It is easy to see that \(d_{f}^{\bot _{H}}=2\delta +2<n-2\delta \). Therefore, a quantum convolutional code with parameters \([(n,n-4\delta +2,1;2,2\delta +2)]_{q}\) can be derived from \(\mathscr {V}\) due to Theorem 4. Such quantum convolutional code is a quantum MDS convolutional code due to the following fact:

$$\begin{aligned} \frac{n-k}{2}\left( \left\lfloor \frac{2\gamma }{n+k}\right\rfloor +1\right) +\gamma +1=(2\delta -1)(0+1)+2+1=2\delta +2=d_{f}. \end{aligned}$$

Now we consider the case \(q=2\rho m-2a-1\), where \(\rho =a^{2}+(a+1)^{2}\), and am are positive integers. Similar to Lemma 4, we also have the following result from [13] and [27].

Lemma 6

Let q be an odd prime power with the form \(q=2\rho m-2a-1\), where \(\rho =a^{2}+(a+1)^{2}\), and am are positive integers. Let \(n=\frac{q^{2}+1}{\rho }\), \(s=\frac{q^{2}+1}{2}\). If \(\mathscr {C}\) is an \(\eta \)-constacyclic code of length n over \(\mathbb {F}_{q^{2}}\) with defining set \(\mathscr {Z}=\bigcup _{j=0}^{\delta } C_{s-(q+1)j}\), where \(0\le \delta \le \frac{(2a+1)q-1}{2\rho }-1\), then \(\mathscr {C}^{\perp _{H}}\subseteq \mathscr {C}\).

Similar to the discussion of Lemma 5 and Theorem 5, we have the following results.

Lemma 7

Let \(n=\frac{q^{2}+1}{\rho }\) and q be an odd prime power with the form \(q=2\rho m-2a-1\), where \(\rho =a^{2}+(a+1)^{2}\), and am are positive integers. Then there exists an \((n,n-2\delta +1,2;1,2\delta +2)_{q^{2}}\) convolutional code which contains its Hermitian dual, where \(2\le \delta \le \frac{(2a+1)q-1}{2\rho }-1\).

Theorem 6

Let \(n=\frac{q^{2}+1}{\rho }\) and q be an odd prime power with the form \(q=2\rho m-2a-1\), where \(\rho =a^{2}+(a+1)^{2}\), and am are positive integers. Then there exists a quantum MDS convolutional code with parameters \([(n,n-4\delta +2,1;2,2\delta +2)]_{q}\), where \(2\le \delta \le \frac{(2a+1)q-1}{2\rho }-1\).

Remark 1

Let \(a=1\), then \(n=\frac{q^{2}+1}{5}\). Quantum MDS convolutional codes of length \(\frac{q^{2}+1}{5}\) with q being an odd prime power had already been constructed in [28]. Comparing their results with ours, one can easily see from Table 1 that our codes have larger free distances. What’s more, our construction is more general.

Table 1 Quantum MDS convolutional codes of length \(\frac{q^{2}+1}{5}\)

Remark 2

Let \(a=2\), then \(n=\frac{q^{2}+1}{13}\). Actually, quantum MDS convolutional codes of length \(\frac{q^{2}+1}{13}\) with q being an odd prime power had already been studied in [20]. Comparing their results with ours, one can easily see from Table 2 that our results coincide with theirs within such length. Hence, our results can be seen as a generalization of theirs.

Table 2 Quantum MDS convolutional codes of length \(\frac{q^{2}+1}{13}\)

Example 1

Let \(a=3\), then \(n=\frac{q^{2}+1}{25}\). Quantum MDS convolutional codes of length \(n=\frac{q^{2}+1}{25}\) are constructed. Some new quantum MDS convolutional codes obtained from Theorems 5 and 6 are listed in Table 3.

Table 3 New quantum MDS convolutional codes

5 Quantum MDS Convolutional Codes of Length \(\frac{q^{2}-1}{\mu }\)

In this section, we will construct some classes of quantum MDS convolutional codes via classical negacyclic codes of length \(n=\frac{q^{2}-1}{\mu }\) with \(\mu =\ell ^{2}-1\) and \(\mu =\frac{\ell ^{2}-1}{2}\), respectively. Since \({q^{2}} \equiv 1 (\bmod 2n)\), the \(q^{2}\)-cyclotomic coset \({C_{x}}\) modulo 2n is \({C_{x}} = \{ x\} \) for each odd x in the range \(1\le x\le 2n-1\).

5.1 Quantum MDS Convolutional Codes of Length \(\frac{q^{2}-1}{\mu }\) with \(\mu =\ell ^{2}-1\)

In this subsection, we will construct some new classes of quantum MDS convolutional codes of length \(n = \frac{q^{2}-1}{\mu }\) from negacyclic codes, where \(q = \mu m \pm \ell \), \(\mu = \ell ^{2}-1\) and \(\ell >1\) is a positive odd integer. We first consider the case \(q=\mu m+\ell \) and recall a useful lemma in the following, which will play an important role in our construction.

Lemma 8

[23] Let \(n = \frac{q^{2}-1}{\mu }\), where q is an odd prime power of the form \(q = \mu m + \ell \), \(\mu = \ell ^{2}-1\), m is a positive integer, and \(\ell \) is a positive odd integer. If \(\mathscr {C}\) is a \(q^{2}\)-ary negacyclic code of length n with defining set

$$\begin{aligned} \mathscr {Z} = \bigcup _{j = \frac{3\ell +3}{2}m+2}^{s_{1}}{C_{1 + 2j}}, \end{aligned}$$

where \(\frac{3\ell +3}{2}m+2 \le s_{1} \le \frac{5\ell +3}{2}m+1\). Then \(\mathscr {C}^{\bot _{H}}\subseteq \mathscr {C}\).

Lemma 9

Let \(n = \frac{q^{2}-1}{\mu }\), where q is an odd prime power of the form \(q = \mu m + \ell \), \(\mu = \ell ^{2}-1\), m is a positive integer, and \(\ell \) is a positive odd integer. Then there exists an \((n,n-\delta ,1;1,\delta +2)_{q^{2}}\) convolutional code which contains its Hermitian dual, where \(2\le \delta \le \ell m-1\).

Proof

As we know, the order of \(q^{2}\) modulo 2n is equal to 1. Hence, the \(q^{2}\)-cyclotomic coset \(C_{i}\) modulo 2n contains only one element i. Assume that \(b=\frac{3\ell +3}{2}m+2\). Let \(\mathscr {C}\) be a negacyclic code of length n over \(\mathbb {F}_{q^{2}}\) with defining set \(\mathscr {Z}=\bigcup _{j=b}^{b+\delta } C_{1+2j}\), where \(2\le \delta \le \ell m-1\). By Lemma 1, the parity-check matrix H of \(\mathscr {C}\) can be denoted as

$$H=\begin{pmatrix} 1 &{} \alpha ^{2b+1} &{} \alpha ^{2(2b+1)} &{} \cdots &{} \alpha ^{(n-1)(2b+1)} \\ 1 &{} \alpha ^{2b+3} &{} \alpha ^{2(2b+3)} &{} \cdots &{} \alpha ^{(n-1)(2b+3)} \\ \vdots &{} \vdots &{} \vdots &{} \vdots &{} \vdots \\ 1 &{} \alpha ^{2b+2\delta -1} &{} \alpha ^{2(2b+2\delta -1)} &{} \cdots &{} \alpha ^{(n-1)(2b+2\delta -1)} \\ 1 &{} \alpha ^{2b+2\delta +1} &{} \alpha ^{2(2b+2\delta +1)} &{} \cdots &{} \alpha ^{(n-1)(2b+2\delta +1)}\\ \end{pmatrix},$$

where \(\alpha \) is a primitive 2n-th root of unity. Hence, H has rank \(\delta +1\), and \(\mathscr {C}\) is an MDS code with parameters \([n,n-\delta -1,\delta +2]\). Moreover, \(\mathscr {C}^{\bot _{H}}\) is also an MDS code with parameters \([n, \delta +1, n-\delta ]\).

Suppose that \(\mathscr {C}_{0}\) is a negacyclic code of length n over \(\mathbb {F}_{q^{2}}\) with defining set \(\mathscr {Z}=\bigcup _{j=b}^{b+\delta -1} C_{1+2j}\), where \(2\le \delta \le \ell m-1\). Then \(\mathscr {C}_{0}\) is an MDS code with parameters \([n,n-\delta ,\delta +1]\), and its Hermitian dual code \(\mathscr {C}_{0}^{\bot _{H}}\) is also an MDS code with parameters \([n,\delta ,n-\delta +1]\). Furthermore, the parity-check matrix \(H_{0}\) of \(\mathscr {C}_{0}\) is the following matrix

$$H_{0}=\begin{pmatrix} 1 &{} \alpha ^{2b+1} &{} \alpha ^{2(2b+1)} &{} \cdots &{} \alpha ^{(n-1)(2b+1)} \\ 1 &{} \alpha ^{2b+3} &{} \alpha ^{2(2b+3)} &{} \cdots &{} \alpha ^{(n-1)(2b+3)} \\ \vdots &{} \vdots &{} \vdots &{} \vdots &{} \vdots \\ 1 &{} \alpha ^{2b+2\delta -1} &{} \alpha ^{2(2b+2\delta -1)} &{} \cdots &{} \alpha ^{(n-1)(2b+2\delta -1)} \\ \end{pmatrix}.$$

Particularly, the rank of \(H_{0}\) is \(\delta \).

Suppose that \(\mathscr {C}_{1}\) is a negacyclic code of length n over \(\mathbb {F}_{q^{2}}\) with defining set \(\mathscr {Z}_{1}= C_{2b+2\delta +1}\), where \(2\le \delta \le \ell m-1\). Then \(\mathscr {C}_{1}\) is an MDS code with parameters \([n,n-1,2]\). The parity-check matrix \(H_{1}\) of \(\mathscr {C}_{1}\) is the following matrix

$$H_{1}=\begin{pmatrix} 1, &{} \alpha ^{2b+2\delta +1}, &{} \alpha ^{2(2b+2\delta +1)}, &{} \cdots , &{} \alpha ^{(n-1)(2b+2\delta +1)}\\ \end{pmatrix}.$$

According to the above construction, one can see that H has been partitioned into two submatrices \(H_{0}\) and \(H_{1}\) such that

$$H=\begin{pmatrix} H_{0}\\ H_{1} \end{pmatrix}.$$

Suppose that \(G(D)=\widetilde{H}_{0}+\widetilde{H}_{1}D\), where \(\widetilde{H}_{0}=H_{0}\) and \(\widetilde{H}_{1}\) is obtained from \(H_{1}\) by adding zero-rows at its bottom such that \(\widetilde{H}_{1}\) has the same number of rows as \(H_{0}\). Due to Theorem 2(i), G(D) is a reduced basic generator matrix, and the convolutional code \(\mathscr {V}\) generated by such matrix has dimension \(\delta \) and degree 1. It follows from Lemma 2 that the Hermitian dual code \(\mathscr {V}^{\perp _{H}}\) has dimension \(n-\delta \) and degree 1. According to Theorem 2(iii), the free distance \(d_{f}^{\perp _{H}}\) of \(\mathscr {V}^{\perp _{H}}\) satisfies that \(\min \{d_{0}+d_{1},d\}\le d_{f}^{\perp _{H}}\le d\), where \(d_{0},d_{1}\) and d are the minimum Hamming distances of the negacyclic codes \(\mathscr {C}_{0},\mathscr {C}_{1}\) and \(\mathscr {C}\), respectively. Then we can get \(d_{f}^{\perp _{H}}=\delta +2\). Hence, the convolutional code \(\mathscr {V}^{\perp _{H}}\) has parameters \((n,n-\delta ,1;1,\delta +2)_{q^{2}}\). Finally, it follows from Theorem 2(ii) that \(\mathscr {V}\) is Hermitian self-orthogonal due to the fact that \(\mathscr {C}^{\perp _{H}}\subseteq \mathscr {C}\).\(\square \)

The construction of quantum MDS convolutional codes can be given by using the above lemma.

Theorem 7

Let \(n = \frac{q^{2}-1}{\mu }\), where q is an odd prime power of the form \(q = \mu m + \ell \), \(\mu = \ell ^{2}-1\), m is a positive integer, and \(\ell \) is a positive odd integer. Then there exists a quantum MDS convolutional code with parameters \([(n,n-2\delta ,1;1,\delta +2)]_{q}\), where \(2\le \delta \le \ell m-1\).

Proof

Due to Lemma 9, a convolutional code \(\mathscr {V}\) with parameters \((n,\delta ,1;1,d_{f})_{q^{2}}\) can be obtained, which also satisfies \(\mathscr {V}\subseteq \mathscr {V}^{\bot _{H}}\) for any \(2\le \delta \le \ell m-1\). According to Theorem 2(iii), \(d_{f}\ge n-\delta \). It is easy to see that \(d_{f}^{\bot _{H}}=\delta +2<n-\delta \). Therefore, a quantum convolutional code with parameters \([(n,n-2\delta ,1;1,\delta +2)]_{q}\) can be derived from \(\mathscr {V}\) due to Theorem 4. Replacing the parameters of the quantum convolutional code in the quantum generalized Singleton bound (Theorem 3), one has the equality

$$\begin{aligned} \frac{n-k}{2}\left( \left\lfloor \frac{2\gamma }{n+k}\right\rfloor +1\right) +\gamma +1=\delta (0+1)+1+1=\delta +2=d_{f}, \end{aligned}$$

which implies that such quantum convolutional code is a quantum MDS convolutional code.\(\square \)

Now we consider the case \(q=\mu m-\ell \) and we first recall a useful lemma in the following.

Lemma 10

[23] Let \(n = \frac{q^{2}-1}{\mu }\), where q is an odd prime power of the form \(q = \mu m -\ell \), \(\mu = \ell ^{2}-1\), m is a positive integer, and \(\ell \) is a positive odd integer. If \(\mathscr {C}\) is a \(q^{2}\)-ary negacyclic code of length n with defining set

$$\begin{aligned} \mathscr {Z} = \bigcup _{j = \frac{\ell -1}{2}m}^{s_{2}}{C_{1 + 2j}}, \end{aligned}$$

where \(\frac{\ell -1}{2}m \le s_{2} \le \frac{3\ell -3}{2}m-3.\) Then \(\mathscr {C}^{\bot _{H}}\subseteq \mathscr {C}\).

Similar to the discussion of Lemma 9 and Theorem 7, we have the following results.

Lemma 11

Let \(n = \frac{q^{2}-1}{\mu }\), where q is an odd prime power of the form \(q = \mu m - \ell \), \(\mu = \ell ^{2}-1\), m is a positive integer, and \(\ell \) is a positive odd integer. Then there exists an \((n,n-\delta ,1;1,\delta +2)_{q^{2}}\) convolutional code which contains its Hermitian dual, where \(2\le \delta \le (\ell -1)m-3\).

Theorem 8

Let \(n = \frac{q^{2}-1}{\mu }\), where q is an odd prime power of the form \(q = \mu m - \ell \), \(\mu = \ell ^{2}-1\), m is a positive integer, and \(\ell \) is a positive odd integer. Then there exists a quantum MDS convolutional code with parameters \([(n,n-2\delta ,1;1,\delta +2)]_{q}\), where \(2\le \delta \le (\ell -1)m-3\).

Remark 3

Quantum MDS convolutional codes of length n being an odd divisor of \(q^{2}-1\) had been constructed by Aly et al. in [2], while quantum MDS convolutional codes of length n being an even divisor of \(q^{2}-1\) had been constructed by Zhu et al. in [28]. Both of them use the Piret’s construction, which is different from the method here. It is easy to see that our results are not contained in theirs either.

Example 2

Some new quantum MDS convolutional codes obtained from Theorems 7 and 8 are listed in Table 4.

Table 4 New quantum MDS convolutional codes of length \(n=\frac{q^{2}-1}{\mu }\) with \( \mu =\ell ^{2}-1\)

5.2 Quantum MDS Convolutional Codes of Length \(\frac{q^{2}-1}{\mu }\) with \(\mu =\frac{\ell ^{2}-1}{2}\)

In this subsection, we will construct some new classes of quantum MDS convolutional codes of length \(n = \frac{q^{2}-1}{\mu }\), where \(q = \mu m \pm \ell \), \(\mu =\frac{\ell ^{2}-1}{2}\), m is a positive integer, and \(\ell \) is an odd positive integer. As \(\mu =\frac{\ell ^{2}-1}{2}\) should be an integer, one can easily get \(\ell \equiv 1 (\bmod 4)\) or \(l \equiv 3 (\bmod 4)\).

In order to proceed further, we first recall some useful results shown in the literature.

Lemma 12

[23] Let \(n = \frac{q^{2}-1}{\mu }\), where q is an odd prime power of the form \(q = \mu m + \ell \), \(\mu = \frac{\ell ^{2}-1}{2}\), \(\ell \equiv 1 (\bmod 4)\), m is a positive integer, and \(\ell \) is a positive odd integer. If \(\mathscr {C}\) is a \(q^{2}\)-ary negacyclic code of length n with defining set

$$\begin{aligned} \mathscr {Z} = \bigcup _{j = \frac{\ell +3}{4}m+1}^{s_{3}}{C_{1 + 2j}}, \end{aligned}$$

where \(\frac{\ell +3}{4}m+1 \le s_{3} \le \frac{5\ell +3}{4}m+1\). Then \(\mathscr {C}^{\bot _{H}}\subseteq \mathscr {C}\).

Lemma 13

[23] Let \(n = \frac{q^{2}-1}{\mu }\), where q is an odd prime power of the form \(q = \mu m + \ell \), \(\mu = \frac{\ell ^{2}-1}{2}\), \(\ell \equiv 3 (\bmod 4)\), m is a positive integer, and \(\ell \) is a positive odd integer. If \(\mathscr {C}\) is a \(q^{2}\)-ary negacyclic code of length n with defining set

$$\begin{aligned} \mathscr {Z} = \bigcup _{j = \frac{3\ell +3}{4}m+2}^{s_{4}}{C_{1 + 2j}}, \end{aligned}$$

where \(\frac{3\ell +3}{4}m+2 \le s_{4} \le \frac{5\ell +5}{4}m+1\). Then \(\mathscr {C}^{\bot _{H}}\subseteq \mathscr {C}\).

Lemma 14

[23] Let \(n = \frac{q^{2}-1}{\mu }\), where q is an odd prime power of the form \(q = \mu m - \ell \), \(\mu = \frac{\ell ^{2}-1}{2}\), \(\ell \equiv 1 (\bmod 4)\), m is a positive integer, and \(\ell \) is a positive odd integer. If \(\mathscr {C}\) is a \(q^{2}\)-ary negacyclic code of length n with defining set

$$\begin{aligned} \mathscr {Z} = \bigcup _{j = \frac{\ell -1}{4}m}^{s_{5}}{C_{1 + 2j}}, \end{aligned}$$

where \(\frac{\ell -1}{4}m \le s_{5} \le \frac{3\ell -3}{4}m-3\). Then \(\mathscr {C}^{\bot _{H}}\subseteq \mathscr {C}\).

Lemma 15

[23] Let \(n = \frac{q^{2}-1}{\mu }\), where q is an odd prime power of the form \(q = \mu m -\ell \), \(\mu = \frac{\ell ^{2}-1}{2}\), \(\ell \equiv 3 (\bmod 4)\), m is a positive integer, and \(\ell \) is a positive odd integer. If \(\mathscr {C}\) is a \(q^{2}\)-ary negacyclic code of length n with defining set

$$\begin{aligned} \mathscr {Z} = \bigcup _{j = \frac{\ell -3}{4}m}^{s_{6}}{C_{1 + 2j}}, \end{aligned}$$

where \(\frac{\ell -3}{4}m \le s_{6} \le \frac{5\ell -3}{4}m-4\). Then \(\mathscr {C}^{\bot _{H}}\subseteq \mathscr {C}\).

Lemma 16

Let \(n = \frac{q^{2}-1}{\mu }\), where q is an odd prime power of the form \(q = \mu m + \ell \), \(\mu = \frac{\ell ^{2}-1}{2}\), \(\ell \equiv 1 (\bmod 4)\), m is a positive integer, and \(\ell \) is a positive odd integer. Then there exists an \((n,n-\delta ,1;1,\delta +2)_{q^{2}}\) convolutional code which contains its Hermitian dual, where \(2\le \delta \le \ell m\).

Proof

Since the order of \(q^{2}\) modulo 2n is equal to 1. Hence, the \(q^{2}\)-cyclotomic coset \(C_{i}\) modulo 2n contains only one element i. Assume that \(t=\frac{\ell +3}{4}m+1\). Let \(\mathscr {C}\) be a negacyclic code of length n over \(\mathbb {F}_{q^{2}}\) with defining set \(\mathscr {Z}=\bigcup _{j=t}^{t+\delta } C_{1+2j}\), where \(2\le \delta \le \ell m\). By Lemma 1, the parity-check matrix H of \(\mathscr {C}\) can be denoted as

$$H=\begin{pmatrix} 1 &{} \alpha ^{2t+1} &{} \alpha ^{2(2t+1)} &{} \cdots &{} \alpha ^{(n-1)(2t+1)} \\ 1 &{} \alpha ^{2t+3} &{} \alpha ^{2(2t+3)} &{} \cdots &{} \alpha ^{(n-1)(2t+3)} \\ \vdots &{} \vdots &{} \vdots &{} \vdots &{} \vdots \\ 1 &{} \alpha ^{2t+2\delta -1} &{} \alpha ^{2(2t+2\delta -1)} &{} \cdots &{} \alpha ^{(n-1)(2t+2\delta -1)} \\ 1 &{} \alpha ^{2t+2\delta +1} &{} \alpha ^{2(2t+2\delta +1)} &{} \cdots &{} \alpha ^{(n-1)(2t+2\delta +1)}\\ \end{pmatrix},$$

where \(\alpha \) is a primitive 2n-th root of unity. Hence, H has rank \(\delta +1\), and \(\mathscr {C}\) is an MDS code with parameters \([n,n-\delta -1,\delta +2]\). Moreover, \(\mathscr {C}^{\bot _{H}}\) is also an MDS code with parameters \([n, \delta +1, n-\delta ]\).

Let \(\mathscr {C}_{0}\) be a negacyclic code of length n over \(\mathbb {F}_{q^{2}}\) with defining set \(\mathscr {Z}=\bigcup _{j=t}^{t+\delta -1} C_{1+2j}\), where \(2\le \delta \le \ell m\). Then \(\mathscr {C}_{0}\) is an MDS code with parameters \([n,n-\delta ,\delta +1]\), and its Hermitian dual code \(\mathscr {C}_{0}^{\bot _{H}}\) is also an MDS code with parameters \([n,\delta ,n-\delta +1]\). Furthermore, the parity-check matrix \(H_{0}\) of \(\mathscr {C}_{0}\) is the following matrix

$$H_{0}=\begin{pmatrix} 1 &{} \alpha ^{2t+1} &{} \alpha ^{2(2t+1)} &{} \cdots &{} \alpha ^{(n-1)(2t+1)} \\ 1 &{} \alpha ^{2t+3} &{} \alpha ^{2(2t+3)} &{} \cdots &{} \alpha ^{(n-1)(2t+3)} \\ \vdots &{} \vdots &{} \vdots &{} \vdots &{} \vdots \\ 1 &{} \alpha ^{2t+2\delta -1} &{} \alpha ^{2(2t+2\delta -1)} &{} \cdots &{} \alpha ^{(n-1)(2t+2\delta -1)} \\ \end{pmatrix}.$$

Let \(\mathscr {C}_{1}\) be a negacyclic code of length n over \(\mathbb {F}_{q^{2}}\) with defining set \(\mathscr {Z}_{1}= C_{2t+2\delta +1}\), where \(2\le \delta \le \ell m\). Then \(\mathscr {C}_{1}\) is an MDS code with parameters \([n,n-1,2]\). The parity-check matrix \(H_{1}\) of \(\mathscr {C}_{1}\) is the following matrix

$$H_{1}=\begin{pmatrix} 1, &{} \alpha ^{2t+2\delta +1}, &{} \alpha ^{2(2t+2\delta +1)}, &{} \cdots , &{} \alpha ^{(n-1)(2t+2\delta +1)}\\ \end{pmatrix}.$$

According to the above discussion, one can see that H has been partitioned into two submatrices \(H_{0}\) and \(H_{1}\) such that

$$H=\begin{pmatrix} H_{0}\\ H_{1} \end{pmatrix}.$$

Let \(G(D)=\widetilde{H}_{0}+\widetilde{H}_{1}D\), where \(\widetilde{H}_{0}=H_{0}\) and \(\widetilde{H}_{1}\) is derived from \(H_{1}\) by adding zero-rows at its bottom such that \(\widetilde{H}_{1}\) has the same number of rows as \(H_{0}\). Due to Theorem 2(i), G(D) is a reduced basic generator matrix, and the convolutional code \(\mathscr {V}\) generated by such matrix has dimension \(\delta \) and degree 1. It follows from Lemma 2 that the Hermitian dual code \(\mathscr {V}^{\perp _{H}}\) has dimension \(n-\delta \) and degree 1. According to Theorem 2(iii), the free distance \(d_{f}^{\perp _{H}}\) of \(\mathscr {V}^{\perp _{H}}\) satisfies that \(\min \{d_{0}+d_{1},d\}\le d_{f}^{\perp _{H}}\le d\), where \(d_{0},d_{1}\) and d are the minimum Hamming distances of the negacyclic codes \(\mathscr {C}_{0},\mathscr {C}_{1}\) and \(\mathscr {C}\), respectively. Then we can get \(d_{f}^{\perp _{H}}=\delta +2\). Hence, the convolutional code \(\mathscr {V}^{\perp _{H}}\) has parameters \((n,n-\delta ,1;1,\delta +2)_{q^{2}}\). It follows from Theorem 2(ii) that \(\mathscr {V}\) is also an Hermitian self-orthogonal code due to the fact that \(\mathscr {C}^{\perp _{H}}\subseteq \mathscr {C}\).\(\square \)

The construction of quantum MDS convolutional codes can be given by using the above lemma.

Theorem 9

Let \(n = \frac{q^{2}-1}{\mu }\), where q is an odd prime power of the form \(q =\mu m + \ell \), \(\mu = \frac{\ell ^{2}-1}{2}\), \(\ell \equiv 1 (\bmod 4)\), m is a positive integer, and \(\ell \) is a positive odd integer. Then there exists a quantum MDS convolutional code with parameters \([(n,n-2\delta ,1;1,\delta +2)]_{q}\), where \(2\le \delta \le \ell m\).

Proof

Due to Lemma 16, a convolutional code \(\mathscr {V}\) with parameters \((n,\delta ,1;1,d_{f})_{q^{2}}\) can be obtained, which also satisfies \(\mathscr {V}\subseteq \mathscr {V}^{\bot _{H}}\) for any \(2\le \delta \le \ell m\). According to Theorem 2(iii), \(d_{f}\ge n-\delta \). In addition, \(d_{f}^{\bot _{H}}=\delta +2<n-\delta \). Hence, a quantum convolutional code with parameters \([(n,n-2\delta ,1;1,\delta +2)]_{q}\) can be obtained from \(\mathscr {V}\) according to Theorem 4. It follows from Theorem 3 that

$$\begin{aligned} \frac{n-k}{2}\left( \left\lfloor \frac{2\gamma }{n+k}\right\rfloor +1\right) +\gamma +1=\delta (0+1)+1+1=\delta +2=d_{f}, \end{aligned}$$

which means that it is a quantum MDS convolutional code.\(\square \)

Similar to the discussion of the case \(q=\mu m+\ell \), \(\mu = \frac{\ell ^{2}-1}{2}\), \(\ell \equiv 1 (\bmod 4)\), and \(\ell \) is a positive odd integer. We have the following results for the remaining cases.

Theorem 10

Let \(n = \frac{q^{2}-1}{\mu }\), where q is an odd prime power of the form \(q = \mu m + \ell \), \(\mu = \frac{\ell ^{2}-1}{2}\), \(\ell \equiv 3 (\bmod 4)\), m is a positive integer, and \(\ell \) is a positive odd integer. Then there exists a quantum MDS convolutional code with parameters \([(n,n-2\delta ,1;1,\delta +2)]_{q}\), where \(2\le \delta \le \frac{\ell +1}{2}m-1\).

Theorem 11

Let \(n = \frac{q^{2}-1}{\mu }\), where q is an odd prime power of the form \(q = \mu m - \ell \), \(\mu = \frac{\ell ^{2}-1}{2}\), \(\ell \equiv 1 (\bmod 4)\), m is a positive integer, and \(\ell \) is a positive odd integer. Then there exists a quantum MDS convolutional code with parameters \([(n,n-2\delta ,1;1,\delta +2)]_{q}\), where \(2\le \delta \le \frac{\ell -1}{2}m-3\).

Theorem 12

Let \(n = \frac{q^{2}-1}{\mu }\), where q is an odd prime power of the form \(q = \mu m - \ell \), \(\mu = \frac{\ell ^{2}-1}{2}\), \(\ell \equiv 3 (\bmod 4)\), m is a positive integer, and \(\ell \) is a positive odd integer. Then there exists a quantum MDS convolutional code with parameters \([(n,n-2\delta ,1;1,\delta +2)]_{q}\), where \(2\le \delta \le \ell m-4\).

Example 3

Some new quantum MDS convolutional codes obtained from Theorems 9, 10, 11 and 12 are listed in Table 5.

Table 5 New quantum MDS convolutional codes of length \(n=\frac{q^{2}-1}{\mu }\) with \( \mu =\frac{\ell ^{2}-1}{2}\)

6 Conclusion

In this paper, we have constructed eight classes of quantum MDS convolutional codes from classical constacyclic codes by using algebraic methods. Compared with the codes available in the literature, most of the obtained quantum MDS convolutional codes are new in the sense that their parameters are not covered by the codes available in the literature. It is interesting to construct more new quantum MDS convolutional codes via constacyclic codes.