Permutation-invariant quantum coding for quantum deletion channels

Yingkai Ouyang Department of Electrical and Computer Engineering, National University of Singapore Email: [email protected]

Abstract—Quantum deletions, which are harder to correct than of designing quantum coding schemes that pertain directly to erasure errors, occur in many realistic settings. It is therefore multiple deletions remains to be fully addressed. pertinent to develop quantum coding schemes for quantum deletion In this paper, we propose to leverage on the existing theory channels. To date, not much is known about which explicit codes can combat quantum deletions. We note of permutation-invariant quantum codes [10], [11], [12], [13], that any permutation-invariant quantum code that has a distance [14], [15] to address the problem of quantum coding for quan- of t + 1 can correct t quantum deletions for any positive integer tum deletions. Permutation-invariant quantum codes are invariant t in both the and the qudit setting. Leveraging on coding under any permutation of the underlying particles, and have been properties of permutation-invariant quantum codes under erasure studied in the context of quantum storage within the ground space errors, we derive corresponding coding bounds for permutation- invariant quantum codes under quantum deletions. We focus our of Heisenberg ferromagnets [16], for robust quantum metrology attention on a specific family of N-qubit permutation-invariant [17], and also for decoherence-free quantum communication quantum codes, which we call shifted gnu codes. The main result on bosonic quantum buses [15]. Remarkably, for permutation- of this work is that their encoding and decoding algorithms can be 2 invariant quantum codes, deletions are equivalent to erasures. performed in O(N) and O(N ). Hence it readily follows that any permutation-invariant quantum code that corrects t erasures can also correct t deletions. I.INTRODUCTION The main contribution of this work addresses the complete Quantum states are fragile and are extremely susceptible to coding problem for permutation-invariant quantum codes with noise. The type of noise encountered by quantum states depends respect to deletion channels, and goes beyond code constructions. very much on the underlying mechanism for decoherence. In Indeed with just code constructions for permutation-invariant the problem of quantum communication, quantum states are quantum codes, the coding problem remains incomplete without transmitted over a lossy , and it is natural to a full treatment of the encoding and decoding procedure. Aside expect that during this imperfect communication process, some for quantum coding schemes for single-deletions [8], [9], not of underlying will be inadvertently lost. This can arise much is known for the general multiple deletion scenario. To from temporarily blockage, misalignment, or destruction of the date, quantum encoding and decoding for permutation-invariant transmitted signal. When we know which of the transmitted qubits codes remains to be fully addressed. have been lost, we would have a quantum erasure channel [1], This paper aims to give a complete solution to the quantum [2], from which error correction can be implemented based on coding problem for quantum deletion channels using permutation- the distance of the quantum code. However in realistic scenarios, invariant quantum codes. We achieve this by first showing how we often do not know which qubits are lost, and this results in existing results related to the efficient preparation of permutation- so-called quantum deletions, which is the focus of this paper. invariant states can be combined with gate-teleportation to pro- Decades since Levenshtein first developed classical codes to vide efficient encoding schemes for permutation-invariant codes. combat deletions [3], there continues to be much interest in Second, we derive efficient decoding algorithms for permutation- developing classical deletion codes [4], [5]. In contrast, quantum invariant codes capable of correcting multiple deletions. The arXiv:2102.02494v2 [quant-ph] 31 May 2021 coding schemes for deletions only been considered recently [6], complete quantum coding scheme we propose will not only be [7], [8], [9]. In [8], the authors propose using a permutation- advantageous to realize practical schemes to combat quantum invariant four-qubit code for correcting for a single deletion error, deletions, but also help accelerate the development of quantum and give explicit encoding and decoding circuits for it, and prove technologies based upon permutation-invariant quantum codes, its optimality with respect to the number of qubits used. While such as quantum memories [16] and quantum sensors [17]. the authors later generalized their theory for quantum coding Before we elaborate the details of the encoding and decoding for more general quantum codes to correct single deletions [9], permutation-invariant quantum codes, we briefly review the rel- extending their scheme to correct multiple deletions remains an evant theory of permutation-invariant quantum codes in Section open problem. In [6], instead of directly considering quantum II, and review a particular family of such codes, known as gnu coding for deletions, the authors propose to use the methods of codes [12]. We consider a variation of these gnu codes derived channel simulation to map deletions to erasures, and use conven- in [14], which we call shifted gnu codes. We also leverage on tional quantum codes thereafter. While this channel simulation coding properties of permutation-invariant quantum codes under method allows the correction of multiple deletions, it incurs erasures to derive bounds relating the number of correctible additional communication overheads, and may not be robust deletions t and the length of quantum codes that directly correct against additional types of noise, such as amplitude damping quantum deletions. In Section III we show that the encoding errors which model energy loss in physical systems. The problem of certain permutation-invariant quantum codes can be done in linear time. In Section IV, we explain how the decoding of The Dicke states form an orthonormal basis of the qubit shifted gnu codes can be done after t deletions occur. This symmetric subspace, and satisfy the orthonormality conditions N N decoding procedure comprises of (1) quantum phase estimation, Du Dv = δu,v, where δu,v denotes the Kronecker delta (2) probability amplitude rebalancing, and (3) gate teleportation, hfunction.| i It is often convenient when working with symmetric and can be achieved in quadratic time. states to work with the unnnormalized Dicke states given by

II.PERMUTATION-INVARIANTQUANTUMCODESAND N X H = x1 xN . (3) DELETIONS | w i | i ⊗ · · · ⊗ | i x1,...,xN 0,1 x1+ +x∈{N =w} Permutation-invariant quantum codes, by virtue of their sym- ··· metry, must reside within the symmetric subspace of any multi- q N N N particle system. When each particle is a qudit of dimension Clearly, we have Hw = w Dw . By applying the Van- n+q 1 | i | i q, the dimension of this symmetric subspace is q −1 . As dermonde identity, for any non-negative integer t such that mentioned in the introduction, for permutation-invariant− quantum t w N t, we clearly have codes, deletions are equivalent to erasures. It therefore suffices ≤ ≤ − to consider the usual notion of distance when considering the t N X t N t correction of deletion errors on permutation-invariant codes. We Hw = Hs Hw −s . (4) | i | i ⊗ | − i emphasize this fact in the following statement. s=0 Fact 1. Having t deletion errors is equivalent to having t erasure This decomposition helps us unravel the structure of permutation- errors on any permutation-invariant quantum code. invariant quantum codes after they experience deletions. Proof. Deletion errors occur when particles are lost and we do not know which particles are lost. Erasures occur when we B. Gnu codes lose particles, but do not know which particles are lost. Since permutation-invariant quantum codes are invariant under any In Ref [12], a family of permutation-invariant quantum codes permutation of the underlying particles, deletion of t unknown with three integer parameters g, n and u was introduced. Intu- particles is equivalent to the erasure of the first t particles for itively, g and n correspond to the bit-flip and phase-flip distances permutation-invariant quantum codes, which proves Fact 1. respectively, and u 1 is a scaling parameter that is independent of the code’s distance.≥ More precisely, the distance of gnu codes From this, we can derive coding bounds for deletion channels is given by min g, n . These codes are called gnu codes because by leveraging on known coding bounds on permutation-invariant they comprise of{ N =} gnu qubits. quantum codes. The corresponding logical codewords are Theorem 2. For any q 2, there are q-ary N qudit quantum ≥ s codes with M logical codewords and correcting t deletions p X n 0 = 2 (n 1) Dgnu , whenever | Li − − j | gj i 0 j n ≤ ≤ N (t + 1)2(M 1). (1) j even ≥ − s p X n Proof. This follows directly from the constructed permutation- 1 = 2 (n 1) Dgnu . (5) | Li − − j | gj i invariant quantum codes’ ability to correct erasure errors in Ref. 0 j n ≤ ≤ [14, Theorem 6.7] In particular, Ref. [14, Theorem 5.2] gives an j odd explicit way to construct these codes for every N that satisfies Note that the optimal four-qubit permutation-invariant code the inequality. proposed in Ref. [8] that corrects a single deletion is a gnu code When t = 1 and M = 2, the inequality (1) in Theorem 2 is with g = n = 2 and u = 1, because its logical codewords are equivalent to N 4. Since it was shown that the single-deletion ≥ permutation-invariant quantum code on four-qubits is optimal [8], 0000 + 1111 4 0L = | i | i, 1L = D2 . (6) it follows that the inequality (1) is tight for t = 1 and M = 2. | i √2 | i | i To correct two deletions, we can use the Pollatsek-Ruskai 7-qubit permutation-invariant quantum code [11] which has a To correct two deletion errors, we can use the nine-qubit Ruskai distance of three. Hence for t = 2, the inequality (1) is not tight. code [10] which has g = n = 3 and u = 1, and logical codewords

9 9 9 9 A. Basis states D0 + √3 D6 √3 D3 + D9 0L = | i | i, 1L = | i | i, (7) To describe permutation-invariant quantum states on qubit | i 2 | i 2 systems, we use the Dicke basis comprising of quantum states In general, to encode one logical qubit into qubits while called Dicke states. Each Dicke state on N qubits and of weight N correcting deletions, it suffices to use gnu codes of length w is a uniform superposition over classical codewords with a t 2, with and . Such gnu constant Hamming weight equal to w, and has the form N = (t + 1) g = n = t + 1 u 1 codes with u = 1 saturate the bound in (1). ≥ 1 X N N When u = 1 and n is odd, the transversal operator X⊗ is a Dw = q x1 xN . (2) | i N | i ⊗ · · · ⊗ | i logical bit-flip operation on the corresponding gnu code, where x1,...,xN 0,1 w ∈{ } x1+ +xN =w X = 0 1 + 1 0 denotes the qubit bit-flip operator. ··· | ih | | ih | C. Shifted gnu codes Once the logical codeword 0 is prepared, we can use a | Li In Ref. [14], gnu codes were generalized to admit logical logical version of gate teleportation [21, Eq. (5)] as shown codewords of the form in Fig 1. In this gate teleportation protocol, the CNOT from s  p (n 1) X n gnu+∆ N N 0L = 2− − Dgj+∆ , 0L R N a 0L + b 1L | i j | i | i ⊗ | i | i 0 j n j≤even≤ a 0 + b 1 H | i | i s  p (n 1) X n gnu+∆ 1L = 2 D , (8) | i − − j | gj+∆ i Fig. 1. A that teleports an unencoded qubit a|0i + b|1i to a 0 j n logical qubit a|0 i + b|1 i in a gnu code or a shifted gnu code. For this scheme j≤odd≤ L L to work, it suffices to have X⊗N to implement a logical bit-flip on the code. where the non-negative integer ∆ denotes a shift. We call these ∆-shifted gnu codes. In Ref. [14], it was shown that these ∆- the control encoding qubit to the permutation-invariant quantum shifted gnu codes have a minimum distance of min g, n for state applies N two-qubit CNOT gates, where each two-qubit any non-negative shift ∆ and u 1. { } ≥ CNOT gate has its control on the encoding qubit and its target In this paper, we will restrict our attention to the quantum on each qubit in the permutation-invariant quantum state. Here coding problem for shifted gnu codes for which g = ∆, n = H = (X + Z)/√2 denotes the Hadamard gate on a single 2 g/2 + 1, and u = 1 + 1/n so that N = gn + 2g. These shifted b c qubit, where Z = 0 0 1 1 denotes a qubit phase-flip gnu codes have logical codewords given by operation, and the measurement| ih | − | ofih the| control basis is done in the s basis 0 , 1 . If the measurement obtains 0 as its outcome, p n {| i | i} | i (n 1) X gn+2g nothing is done on the permutation-invariant state. Otherwise, 0L = 2− − Dgj+g , | i j | i N 0 j n the transversal gate R⊗ is applied on the permutation-invariant j≤even≤ quantum state. The output of the quantum circuit in Fig 1 yields s  p X n the desired logical state a 0L + b 1L . 1 = 2 (n 1) Dgn+2g . (9) | i | i | Li − − j | gj+g i The computation cost of implementing Fig 1 is linear in 0 j n j≤odd≤ N. Namely, it requires N two-qubit CNOT gates, one single- qubit Hadamard gate, one measurement of a single-qubit and N The shifted gnu codes in (9) also have a logical bit-flip operator N applications of R to give a total gate count of 2N + 2. Since the that can be implemented transversally by the operator X⊗ . This n n  state preparation of 0L can be done in O(N) steps, we arrive is because j = n j combined with the fact that | i − at the following result. N gn+2g gn+2g X⊗ Dgj+g = Dg(n j)+g (10) | i | − i Theorem 3. The encoding circuits of gnu codes and shifted gnu N and that n j has a different parity from j for odd n. The logical codes with X⊗ as their logical bit-flip operator can be encoded − N Z = 0 0 1 1 operator can be implemented by R⊗ where in O(N) steps. | ih | − | ih | R = 0 0 + eπi/g 1 1 , (11) | ih | | ih | IV. DECODING because N N N If a quantum code satisfies the celebrated Knill and Laflamme R⊗ D = D , j even (12) | gj+gi | gj+gi N N N quantum error correction criterion [22] exactly, we can use R⊗ D = D , j odd . (13) | gj+gi −| gj+gi the procedure outlined in [22] and [23] to construct explicit An explicit example of a shifted gnu code of the form of (9) recovery maps for the quantum code. Furthermore, these recovery that corrects two deletions is a variant of the Ruskai code, which maps can be decomposed into two steps. In the first step, a is a 15-qubit code with logical codewords projective measurement is done, projecting the erroneous quantum state into disjoint correctible subspaces. In the second step, a 15 √ 15 √ 15 15 D3 + 3 D9 3 D6 + D12 conditional unitary operation brings the correctible subspace back 0L = | i | i, 1L = | i | i. (14) | i 2 | i 2 to the original subspace. While this Knill-Laflamme recovery In this paper, we focus on the quantum coding problem for procedure gives formal treatment of quantum error correction in shifted-gnu codes of the form of (9). the language of matrix algebra, it does not tell us how we may realize these operations in practice. III.ENCODINGSCHEMES In this section, we show that decoding shifted gnu codes can Here, we treat the problem of encoding an arbitrary qubit a 0 + | i be achieved in polynomial time. Before we describe how the b 1 into a logical qubit a 0L + b 1L of gnu codes and shifted | i N| i | i decoding scheme proceeds, let us examine what happens after an gnu codes that have X⊗ as their logical bit-flip operator. initial quantum state ψ = a 0 + b 1 encounters a quantum The first step of the encoding scheme is to prepare the state | i | Li | Li deletion / erasure channel t. As an initial step, we let Trt denote 0 . Since 0 is a permutation-invariant quantum state, we can D | Li | Li the partial trace of the first t particles of an N qudit state, and use any scheme for preparing permutation-invariant states, which N N 2 evaluate Trt( Hgj Hgk ) in the following lemma, reminiscent of can be done for instance in the quantum circuit model in O(N ) [17, Eq (III.4)].| ih | steps [18], using superconducting charge qubits in a ultrastrong coupling regime in O(N) steps [19], and also using geometric Lemma 4. Let t be non-negative integer and N be a positive phase gates in O(N) steps [20]. integer. Let u and v be integers such that t u, v N t. Then ≤ ≤ − N N q N t  for any N-qudit operator Hu Hv , we have Substituting bj,s = aj gj+∆− s , we can see that | ih | − t   N N  X t N t N t t   n Trt Hu Hv = Hu −s Hv −s . (15) X t X j | ih | s | − ih − | Trt( ψ ψ ) = bj,sbk,s(α + ( 1) β) s=0 | ih | s − s=0 j,k=0 Proof. Under the assumption of the lemma, we can use (4) to get k N t N t (α∗ + ( 1) β∗) Dgj−+∆ s Dgk−+∆ s , (21) t × − | − ih − | N X t N t Hu = Hs Hu −s . and hence | i | i ⊗ | − i s=0 t X t Now we take the partial trace on the first t qubits of the operator Tr ( ψ ψ ) = ψ ψ , (22) t | ih | s | sih s| HN HN . Using the cyclic property of the trace on the first t s=0 | u ih v | qubits, the operator becomes from which the result follows. t t   X t t N t N t X t N t N t In the above lemma, we see that after ψ experiences t Hs0 Hs Hu −s Hv −s0 = Hu −s Hv −s . | i h | i| − ih − | s | − ih − | deletions, it becomes a convex combination of t + 1 disjoint s,s0=0 s=0 orthonormal states φs . We will show how to decode each φs to a 0 + b 1 . | i | i | i | i Now note that for any permutation-invariant quantum state ψ , we have ( ψ ψ ) = Tr ( ψ ψ ). Furthermore, we find| thati Quantum phase estimation:- The first step of the decoding Dt | ih | t | ih | when ψ resides in the codespace of an appropriate shifted gnu scheme projects the mixed state t( ψ ψ ) onto φs φs and | i D | ih | | ih | code, t( ψ ψ ) admits the following spectral decomposition, as determines the corresponding syndrome s. For this, we extract shownD in| theih following| lemma. the syndrome s using quantum phase estimation on a unitary 2 N t matrix U = (R )⊗ − . Denoting w = exp(2πi/g) as a gth root Lemma 5. Consider any N-qubit ∆-shifted gnu code with of unity, we find that parameters g, n and ∆ with logical codewords 0L and 1L . Let t denote the number of deletions, and suppose| i that t | ∆i U φ = ws φ . (23) | si | si and gn N t. Define the unnormalized quantum states ≤ ≤ − To extract the syndrome s, we create an ancilla qudit n X j N t g 1 s = ( 1) bj,s Dgj−+∆ s , (16) X− |± i − | − i ancilla = j /√g, (24) j=0 | i | i q q j=0 n N t  n N  where bj,s = j gj+∆− s / 2 gj+∆ . − and apply the controlled operator Then for any ψ = α +L + β L in the codespace, where | i | i |− i g 1 L = ( 0L 1L )/√2, after t deletions, the state ψ ψ X− |± i | i ± | i | ih | V = j j U j (25) becomes | ih | ⊗ j=0 t X D ( ψ ψ ) = p φ φ , (17) on the state t | ih | s| sih s| s=0 ancilla ancilla ( ψ ψ ). (26) t p t where ps = / +s +s , φs = ψs / +s +s and ψs = | ih | ⊗ D | ih | s h | i | i | i h | i | i j α +s + β s . Since V is a controlled U gate, and U is implemented in N steps, | i |− i we count the complexity of implementing V as O(N log N). Next Proof. By definition of shifted gnu states, we can write observe that q n n g 1 − js X j j N X w ψ = (α + ( 1) β) D V ancilla φs = j φs . (27) | i √ n − | gj+∆i | i ⊗ | i √g | i ⊗ | i j=0 2 j=0 n X Pg 1 js j N Since the states =0− w j /√g are quantum Fourier transforms = aj(α + ( 1) β) Hgj+∆ , (18) j − | i of the states s , we can| obtaini the computational basis states j=0 | i q q s by performing the inverse quantum Fourier transform and n n N  | i where aj = j / 2 gj+∆ . Then we can write measuring in the computational basis 0 ,..., g 1 for the ancillary qubit. Doing so, we obtain the{| statei φ | when− i} the state n | si X j k s is obtained on the ancilla. The quantum Fourier transform ψ ψ = ajak(α + ( 1) β)(α∗ + ( 1) β∗) | ih | − − and| i its inverse are standard quantum algorithms, and can be j,k=0 implemented efficiently [24] in O((log g)2) = o(N) steps. In HN HN . (19) × | gj+∆ih gk+∆| summary, this quantum phase estimation procedure implements Since gj + ∆ satisfy the requirements of Lemma 4, we get a projective measurement on the symmetric subspace of N t − n particles, which filters Dicke states on their weights modulo g, X j k Tr ( ψ ψ ) = a a (α + ( 1) β)(α∗ + ( 1) β∗) and has a complexity of O(N log N). t | ih | j k − − j,k=0 t   Probability amplitude rebalancing:- We now proceed to X t N t N t Hgj+∆− s Hgk−+∆ s . (20) the second step in the decoding procedure. The states φs × s | − ih − | | i s=0 lie in the span of + and and are supported on the | si |−si N Dicke states Dgj+∆ s : j = 0, . . . , n . By denoting quantum codes. It will also be interesting to see how we may {| − i } 0s = ( +s + s )/√2 and 1s = ( +s s )/√2, we correct other types of errors that occur in concert with quantum | i | i |− i | i | i − |−Ni deletions using the shifted gnu codes proposed here. can see that +s and s are supported on Dgj+∆ s for which j is even| i and odd|− respectively.i We consider| a− unitaryi N VI.ACKNOWLEDGEMENTS operation W that interchanges the Dicke states Dgj+∆ s N | − i Y.O. is supported in part by NUS startup grants (R-263-000- and Dg(n j)+∆ s . Note that 0s and 1s are not always invariant| under− the− actioni of W . To| rectifyi this,| i we rebalance the E32-133 and R-263-000-E32-731), and the National Research Foundation, Prime Minister ’s Office, Singapore and the Ministry probability amplitudes on the supports of 0s and 1s . We can achieve this by implementing an appropriate| i unitary| i operation of Education, Singapore under the Research Centres of Excellence programme. Gs that acts non-trivially on only the symmetric subspace, using the method of geometric phase gates which can implement any REFERENCES unitary operation on the symmetric subspace [20] in O(N 2) [1] C. H. Bennett, D. P. DiVincenzo, and J. A. Smolin, “Capacities of quantum steps. This target space that we desire has the basis states erasure channels,” Physical Review Letters, vol. 78, no. 16, p. 3217, 1997. N 0s0 and 1s0 supported on Dg(n j)+∆ s for even and odd j [2] M. Grassl, T. Beth, and T. Pellizzari, “Codes for the quantum erasure | i | i | − − i channel,” Physical Review A, vol. 56, no. 1, p. 33, 1997. respectively, and satisfies the identity W 00 = W 10 . Hence if | si | si [3] V. I. Levenshtein, “Binary codes capable of correcting deletions, insertions, φs = a 0s + b 1s , we have Gs φs = φs0 = a 0s0 + b 1s0 . and reversals,” in Soviet physics doklady, vol. 10, pp. 707–710, Soviet Union, | i | i | i | i | i | i | i 1966. Gate teleportation:- The third step of the decoding procedure [4] A. Wachter-Zeh, “List decoding of insertions and deletions,” IEEE Trans- actions on Information Theory, vol. 64, no. 9, pp. 6297–6304, 2018. brings the state φ0 = a 00 + b 10 to the qubit state a 0 + | si | si | si | i [5] J. Sima and J. Bruck, “On optimal k-deletion correcting codes,” IEEE 1 via the gate-teleportation procedure illustrated in Fig. 2. To Transactions on Information Theory, pp. 1–1, 2020. | i [6] J. Leahy, D. Touchette, and P. Yao, “Quantum insertion-deletion channels,” arXiv preprint arXiv:1901.00984, 2019. 0 H X a 0 + b 1 [7] A. Nakayama and M. Hagiwara, “The first quantum error-correcting code | i | i | i for single deletion errors,” IEICE Communications Express, vol. 9, no. 4, N t pp. 100–104, 2020. a 00 + b 10 − | si | si [8] M. Hagiwara and A. Nakayama, “A four-qubits code that is a quantum dele- tion error-correcting code with the optimal length,” in IEEE International 0 0 Symposium on Information Theory, ISIT 2020, Los Angeles, CA, USA, June Fig. 2. From a rebalanced state a|0si + b|1si with syndrome s, we apply logical 21-26, 2020, pp. 1870–1874, IEEE, 2020. gate teleportation to recover the qubit state a|0i + b|1i. [9] A. Nakayama and M. Hagiwara, “Single quantum deletion error-correcting codes,” in 2020 International Symposium on Information Theory and Its implement the gate teleportation procedure, we prepare an ancilla Applications (ISITA), pp. 329–333, 2020. state in the ( 0 + 1 )/√2 state. Next we perform a logical bit- [10] M. B. Ruskai, “Pauli Exchange Errors in Quantum Computation,” Phys. Rev. | i | i Lett., vol. 85, pp. 194–197, July 2000. flip operation on the state φ0 conditioned on the value of the | si [11] H. Pollatsek and M. B. Ruskai, “Permutationally invariant codes for quantum ancilla qubit. To achieve this, we apply N t two-qubit CNOT error correction,” Linear Algebra and its Applications, vol. 392, no. 0, with control qubit on the ancilla and target on− each of the qubits in pp. 255–288, 2004. [12] Y. Ouyang, “Permutation-invariant quantum codes,” Phys. Rev. A, vol. 90, φs0 . When N = gn+2g, and ∆ = g, the action of this collective no. 6, p. 062317, 2014. | i N t N t [13] Y. Ouyang and J. Fitzsimons, “Permutation-invariant codes encoding more CNOT takes the Dicke states Dgj−+g s to Dg(n− j)+g (t s) . | − i | i Phys. Rev. A Since s = t s, this collective CNOT is not yet the logical− − CNOT− than one qubit,” , vol. 93, p. 042340, Apr 2016. 6 − [14] Y. Ouyang, “Permutation-invariant qudit codes from polynomials,” Linear on φs0 . To obtain the logical CNOT, we need to subsequently Algebra and its Applications, vol. 532, pp. 43 – 59, 2017. apply| thei collective shift operator S that collectively changes the [15] Y. Ouyang and R. Chao, “Permutation-invariant constant-excitation quantum weight of the entire Dicke basis by t 2s, that can be done in codes for amplitude damping,” IEEE Transactions on Information Theory, 2 − vol. 66, no. 5, pp. 2921–2933, 2019. O(N ) time using geometric phase gates [20]. The complexity [16] Y. Ouyang, “Quantum storage in quantum ferromagnets,” Phys. Rev. B, of this logical CNOT is thus O(N 2). vol. 103, p. 144417, Apr 2021. Next we implement the measurement of the logical operation [17] Y. Ouyang, N. Shettell, and D. Markham, “Robust quantum metrology with Z explicit symmetric states,” arXiv preprint arXiv:1908.02378, 2019. (N t) on φ0 . This logical Z operation is R⊗ − , and hence we can [18]A.B artschi¨ and S. Eidenbenz, “Deterministic preparation of Dicke states,” in measure| i the observable of R on each qubit. This procedure takes International Symposium on Fundamentals of Computation Theory, pp. 126– steps. Finally, conditioned on the outcome of the logical 139, Springer, 2019. O(N) Z [19] C. Wu, Y. Wang, C. Guo, Y. Ouyang, G. Wang, and X.-L. Feng, “Initial- measurement, we apply the qubit bit-flip operation on the ancilla izing a permutation-invariant quantum error-correction code,” Phys. Rev. A, to complete the decoding procedure. vol. 99, p. 012335, Jan 2019. [20] M. T. Johnsson, N. R. Mukty, D. Burgarth, T. Volz, and G. K. Brennen, V. DISCUSSION “Geometric pathway to scalable quantum sensing,” Physical Review Letters, vol. 125, no. 19, p. 190403, 2020. In summary, we discussed using permutation-invariant quantum [21] X. Zhou, D. W. Leung, and I. L. Chuang, “Methodology for quantum logic codes to combat quantum deletions. Remarkably, the coding gate construction,” Phys. Rev. A, vol. 62, p. 052316, Oct 2000. [22] E. Knill and R. Laflamme, “Theory of quantum error-correcting codes,” problem for quantum deletions on permutation-invariant quantum Phys. Rev. A, vol. 55, pp. 900–911, Feb. 1997. codes is equivalent to the coding problem for erasure errors. [23] D. W. Leung, M. A. Nielsen, I. L. Chuang, and Y. Yamamoto, “Approximate We focused our attention on a special family of permutation- quantum error correction can lead to better codes,” Phys. Rev. A, vol. 56, p. 2567, 1997. invariant quantum codes, which we call shifted permutation- [24] M. Nielsen and I. L. Chuang, Quantum Computation and Quantum Infor- invariant quantum codes. We furthermore show that encoding and mation. New York: Cambridge University Press, 10 anv. ed., 2011. decoding of such codes can be done in a linear and quadratic number of steps respectively. It remains an open problem to optimize the coding schemes presented here, and also to extend these coding schemes beyond the shifted permutation-invariant