This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

Universal quantum computation with optical four-component cat qubits

Daiqin Su1    Ish Dhand1,2    Timothy C. Ralph3 1Xanadu, Toronto, Ontario, M5G 2C8, Canada 2Institut für Theoretische Physik, Albert-Einstein-Allee 11, Universität Ulm, 89069 Ulm, Germany 3Centre for Quantum Computation and Communication Technology, School of Mathematics and Physics, The University of Queensland, St. Lucia, QLD 4072, Australia
Abstract

We propose a teleportation-based scheme to implement a universal set of quantum gates with a four-component cat code, assisted by appropriate entangled resource states and photon number resolving detection. The four-component cat code features the ability to recover from single photon loss. Here, we propose a concrete procedure to correct the single photon loss, including detecting the single photon loss event and recovering the initial states. By concatenating with standard qubit error correcting codes, we estimate the loss threshold for fault-tolerant quantum computation and obtain a significant improvement over the two-component cat code.

Introduction.–Quantum computers promise to solve some problems faster than classical computers by utilizing quantum entanglement and coherence Shor (1994); Grover (1996); Nielsen and Chuang (2002); Ladd et al. (2010). However, noise can easily destroy the entanglement and coherence of a quantum system, dramatically degrading the performance of a quantum computer Unruh (1995). The standard procedure to deal with noise is to introduce quantum error correcting codes, in particular, to encode quantum information in the subspace of a multi-qubit system and correct the errors by using the redundant subspace  Shor (1995); Steane (1996); Bennett et al. (1996); Laflamme et al. (1996); Ekert and Macchiavello (1996); Knill and Laflamme (1997); Kitaev (2003); Fowler et al. (2012). An alternative is to encode the quantum information in an infinite-dimensional bosonic system, e.g., a single harmonic oscillator. These sorts of codes are called bosonic codes. Examples include the Gottesman-Kitaev-Preskill (GKP) codes Gottesman et al. (2001), cat codes Cochrane et al. (1999); Ralph et al. (2003); Leghtas et al. (2013); Mirrahimi et al. (2014), binomial codes Michael et al. (2016) and rotation-symmetric codes Grimsmo et al. (2020).

A bosonic code is usually introduced to correct a specific kind of error, e.g., the GKP code corrects random phase and amplitude displacements Gottesman et al. (2001). However, a bosonic code itself is not sufficient for fault-tolerant quantum computation. The strategy is to concatenate the bosonic codes with qubit codes, which potentially reduces the resource overhead. It has been shown that a finite-squeezing GKP code can allow for fault tolerance Menicucci (2014), and the squeezing threshold can be reduced to around 10 dB Fukui et al. (2018); Noh and Chamberland (2020); Vuillot et al. (2019). Another important bosonic code is the two-component cat code, which can protect itself from phase rotation error but not photon loss, leading to a biased error model. The photon loss can be corrected by concatenating the cat code with some simple qubit codes, e.g., repetition code, giving more feasible protocols for fault-tolerant quantum computing Guillaud and Mirrahimi (2019); Puri et al. (2020). In optical platforms where gates are probabilistic, additional located erasure errors need to be addressed Lund et al. (2008), which can also be handled by concatenating with qubit codes. Along this line, the photon loss threshold for the two-component optical cat codes has been estimated Lund et al. (2008); Lee and Jeong (2013).

Another way to mitigate the photon loss is to introduce a cat code with more components Bergmann and van Loock (2016), e.g., the four-component cat code Mirrahimi et al. (2014). The four-component cat code is introduced to correct the single photon loss and its performance has been studied in Ref. Albert et al. (2018). The preparation and manipulation of the four-component cat code have been proposed for platforms with strong nonlinearity Mirrahimi et al. (2014). However for optical platforms, techneques to implement the universal set of gates and to correct the single photon loss have not been explored.

In this work we propose a scheme to implement the universal set of gates for the four-component cat code via teleportation, with appropriate entangled resource states and photon-number-resolving (PNR) detection. This is particularly appealing due to the rapid development of PNR detectors in the optical platform Rosenberg et al. (2005); Jönsson and Björk (2019); Morais et al. (2020). The advantage is twofold: the PNR detectors not only can be used for teleportation, but also can be used to generate the required entangled resource states Sabapathy et al. (2019); Su et al. (2019); Magana-Loaiza et al. (2019). We remark that this scheme is also promising for other platforms provided PNR detection and entangled resource states are available. Also based on teleportation, we then develop a concrete procedure to correct the single photon loss, which accomplishes the syndrome measurement and recovery operation simultaneously. By further concatenating with qubit codes, we estimate the photon loss threshold for fault-tolerant quantum computation.

Encoding.–In the four-component cat code, the state of a qubit is encoded in the superposition of four coherent states |±α|\pm\alpha\rangle and |±iα|\pm i\alpha\rangle, where α\alpha is assumed to be real. Specifically, the encoded Pauli ZZ eigenstates are defined as |0L=|𝒞α+=𝒩+(|α+|α)|0_{L}\rangle=|\mathcal{C}^{+}_{\alpha}\rangle=\mathcal{N}_{+}(|\alpha\rangle+|-\alpha\rangle) and |1L=|𝒞iα+=𝒩+(|iα+|iα)|1_{L}\rangle=|\mathcal{C}^{+}_{i\alpha}\rangle=\mathcal{N}_{+}(|i\alpha\rangle+|-i\alpha\rangle), where 𝒩+=1/2(1+e2α2)\mathcal{N}_{+}=1/\sqrt{2(1+e^{-2\alpha^{2}})} is the normalization factor. Note that |0L|0_{L}\rangle and |1L|1_{L}\rangle are not orthogonal, 0L|1L=𝒞α+|𝒞iα+=cosα2/coshα2\langle 0_{L}|1_{L}\rangle=\langle\mathcal{C}^{+}_{\alpha}|\mathcal{C}^{+}_{i\alpha}\rangle=\cos\alpha^{2}/\cosh\alpha^{2}, however the overlap is small for large α\alpha. Since |𝒞α+|\mathcal{C}^{+}_{\alpha}\rangle and |𝒞iα+|\mathcal{C}^{+}_{i\alpha}\rangle are related by a π/2\pi/2 phase rotation, the encoded Pauli XX operation can thus be implemented deterministically. This is similar to the situation for the two-component cat code where the logical states |α|\alpha\rangle and |α|-\alpha\rangle are non-orthogonal and are related by a π\pi phase rotation.

Teleportation and universal set of gates.–We choose the universal set of quantum gates as Pauli XX, arbitrary rotation about ZZ, Hadamard gate and controlled-ZZ gate. The Pauli XX gate can be implemented deterministically while other gates are implemented probabilistically via gate teleportation. Before studying the gate teleportation, we first consider the state teleportation which simply propagates the input state to the output, and can be considered as an identity gate or a memory.

Refer to caption
Figure 1: A schematic of the four-port teleporter, which consists of four 50:50 beam splitters, one π/2\pi/2 phase shifter, four photon-number-resolving detectors and an entangled resource state |Φ|\Phi\rangle. The entangled resource state has to be appropriately chosen depending on the gate to implement.

The state teleportation requires an entangled resource state and the Bell measurement. Here we choose the entangled resource state as the encoded Bell state,

|Φ0=𝒩(|0L|0L+|1L|1L),\displaystyle|\Phi_{0}\rangle=\mathcal{N}\big{(}|0_{L}\rangle|0_{L}\rangle+|1_{L}\rangle|1_{L}\rangle\big{)}, (1)

where 𝒩=coshα2/2(cosh2α2+cos2α2)\mathcal{N}=\cosh\alpha^{2}/\sqrt{2(\cosh^{2}\alpha^{2}+\cos^{2}\alpha^{2})} is the normalization factor. The Bell measurement is performed by appropriately arranging four 50:5050:50 beam splitters, one phase shifter and four PNR detectors, as shown in Fig. 1. A similar circuit has been used to amplify coherent states and teleport four-component cat states Neergaard-Nielsen et al. (2013). The novelty of our circuit is that we use PNR detectors and a different entangled resource state, which are essential for implementing quantum gates and correcting single photon loss.

Table 1: Measurement outcomes of four PNR detectors and the corresponding Pauli corrections required in order to recover the input state in state teleportation. It is explicitly indicated if a detector detects no photons, otherwise the detector detects at least one photon. Here N=nA+nC+nA+nCN=n_{A}+n_{C}+n_{A^{\prime}}+n_{C^{\prime}} is the total number of detected photon and kk is a positive integer.
No correction ZZ correction XX correction ZXZX correction Failure
[0,nC,nA,nC][0,n_{C},n_{A^{\prime}},n_{C^{\prime}}] [nA,0,nA,nC][n_{A},0,n_{A^{\prime}},n_{C^{\prime}}] [0,0,nA,nC][0,0,n_{A^{\prime}},n_{C^{\prime}}] [nA,nC,0,0][n_{A},n_{C},0,0] (N=4k)(N=4k) [0,nC,nA,nC][0,n_{C},n_{A^{\prime}},n_{C^{\prime}}] [nA,0,nA,nC][n_{A},0,n_{A^{\prime}},n_{C^{\prime}}] [0,0,nA,nC][0,0,n_{A^{\prime}},n_{C^{\prime}}] [nA,nC,0,0][n_{A},n_{C},0,0] [nA,0,0,0][n_{A},0,0,0] [0,nC,0,0][0,n_{C},0,0] (N=4k2)(N=4k-2) [nA,nC,0,nC][n_{A},n_{C},0,n_{C^{\prime}}] [nA,nC,nA,0][n_{A},n_{C},n_{A^{\prime}},0] (N=4k)(N=4k) [nA,nC,0,nC][n_{A},n_{C},0,n_{C^{\prime}}] [nA,nC,nA,0][n_{A},n_{C},n_{A^{\prime}},0] [0,0,nA,0][0,0,n_{A^{\prime}},0] [0,0,0,nC][0,0,0,n_{C^{\prime}}] (N=4k2)(N=4k-2) [nA,0,nA,0][n_{A},0,n_{A^{\prime}},0] [nA,0,0,nC][n_{A},0,0,n_{C^{\prime}}] [0,nC,nA,0][0,n_{C},n_{A^{\prime}},0] [0,nC,0,nC][0,n_{C},0,n_{C^{\prime}}] (N=2k)(N=2k)   [4k,0,0,0][4k,0,0,0] [0,4k,0,0][0,4k,0,0] [0,0,4k,0][0,0,4k,0] [0,0,0,4k][0,0,0,4k] [0,0,0,0][0,0,0,0]

The four PNR detectors count the photon number at each output, giving click patterns [nA,nC,nA,nC][n_{A},n_{C},n_{A^{\prime}},n_{C^{\prime}}]. If all components in the circuit are ideal, i.e., no photon loss, then the total number of detected photons N=nA+nC+nA+nCN=n_{A}+n_{C}+n_{A^{\prime}}+n_{C^{\prime}} is even. This is because both the encoded states and the entangled resource state consist of even numbers of photons. The click patterns are divided into two categories, one for success of teleportation and the other for failure of teleportation. When the teleportation was successful, one needs to perform appropriate encoded Pauli corrections, depending on the click patterns, to recover the input state. These are summarized in Table 1.

To implement the gates via teleportation, the entangled resource states need to be modified accordingly. For rotation about the ZZ direction, one needs an entangled state |ΦReiθ/2|0L|0L+eiθ/2|1L|1L|\Phi_{R}\rangle\sim e^{i\theta/2}|0_{L}\rangle|0_{L}\rangle+e^{-i\theta/2}|1_{L}\rangle|1_{L}\rangle with θ\theta the rotation angle; for the Hadamard gate, one needs an entangled state |ΦH|0L|0L+|0L|1L+|1L|0L|1L|1L|\Phi_{H}\rangle\sim|0_{L}\rangle|0_{L}\rangle+|0_{L}\rangle|1_{L}\rangle+|1_{L}\rangle|0_{L}\rangle-|1_{L}\rangle|1_{L}\rangle; and for the controlled-ZZ gate, one needs a four-qubit entangled state |ΦCZ|0L|0L|0L|0L+|0L|0L|1L|1L+|1L|1L|0L|0L|1L|1L|1L|1L|\Phi_{CZ}\rangle\sim|0_{L}\rangle|0_{L}\rangle|0_{L}\rangle|0_{L}\rangle+|0_{L}\rangle|0_{L}\rangle|1_{L}\rangle|1_{L}\rangle+|1_{L}\rangle|1_{L}\rangle|0_{L}\rangle|0_{L}\rangle-|1_{L}\rangle|1_{L}\rangle|1_{L}\rangle|1_{L}\rangle, which is used as the shared entanglement of two teleportation circuits. Depending on the gate to implement, the Pauli correction needs to be adjusted accordingly, for example, for the Hadamard gate the ZZ correction is converted to XX correction and the XX correction is converted to ZZ correction Lund et al. (2008).

Generating entangled resource states.–We now consider a strategy for creating the entangled resource state required for the teleportation. We take the single mode encoded superposition state, |+L|0L+|1L|+_{L}\rangle\sim|0_{L}\rangle+|1_{L}\rangle, with amplitude 2α\sqrt{2}\alpha as our “free” resource state and seek a non-deterministic, heralded, linear optics method for producing the teleportation resource state given in Eq. (1).

Refer to caption
Figure 2: An optical circuit to generate the entangled resource state |Φ0|\Phi_{0}\rangle. The states |+LA|+_{L}\rangle_{A} and |+LC|+_{L}\rangle_{C} are encoded superposition states with amplitude 2α\sqrt{2}\alpha.

Consider an optical circuit depicted in Fig. 2 which mixes two superposition states and two vacuum inputs together on a series of 50:50 beam splitters. When we obtain equal counts on the two detectors, nA=nCn_{{\mathrm{A}}^{\prime}}=n_{{\mathrm{C}}^{\prime}}, and nAn_{{\mathrm{A}}^{\prime}} is even then the projected state is the teleportation resource state given in Eq. (1). If nA=nCn_{{\mathrm{A}}^{\prime}}=n_{{\mathrm{C}}^{\prime}}, but nAn_{{\mathrm{A}}^{\prime}} is odd we obtain the phase flipped Bell state 𝒩(|0L|0L|1L|1L)\mathcal{N}\big{(}|0_{L}\rangle|0_{L}\rangle-|1_{L}\rangle|1_{L}\rangle\big{)}, which is still useful for teleportation, just requiring a different Pauli operator correction.

The entangled resource states used to implement the universal set of gates for the four-component cat code are non-Gaussian states. For optical platforms, these non-Gaussian states can be probabilistically generated by measuring multimode Gaussian states using PNR detectors and post selecting certain measurement outcomes Sabapathy et al. (2019); Su et al. (2019); Magana-Loaiza et al. (2019). For platforms where strong nonlinearity is available, these non-Gaussian states can be generated deterministically.

Correcting single photon loss.–The standard error correction procedure consists of two steps: the first is to detect whether an error has occurred without disturbing the state, known as the syndrome measurement; the second is to recover the original state according to the results of the syndrome measurement, known as the recovery operation. The performance of the four-component cat code in correcting single photon loss has been explored in Ref. Albert et al. (2018), however a concrete error correcting procedure is still absence. Here we propose a concrete procedure to correct single photon loss via teleportation, which realizes the syndrome measurement and recovery operation simultaneously.

The four-component cat code is designed to correct single photon loss using the redundancy in the Fock basis states. The states of a qubit are encoded in the subspace with even numbers of photons. If there is single photon loss, the states are shifted to the subspace with odd numbers of photons. Therefore, a syndrome measurement is basically a parity measurement. When detecting an even number of photon, one concludes that no photons have been lost and no further operation is needed; when detecting an odd number of photon, one concludes that a photon has been lost and a photon needs to be added to the output state to recover the original state. If more than one photons have been lost, the above procedure results in uncorrectable errors.

Define two new cat states |𝒞α=𝒩(|α|α)|\mathcal{C}^{-}_{\alpha}\rangle=\mathcal{N}_{-}(|\alpha\rangle-|-\alpha\rangle) and |𝒞iα=𝒩(|iα|iα)|\mathcal{C}^{-}_{i\alpha}\rangle=\mathcal{N}_{-}(|i\alpha\rangle-|-i\alpha\rangle), with 𝒩=1/2(1e2α2)\mathcal{N}_{-}=1/\sqrt{2(1-e^{-2\alpha^{2}})} the normalization factor. The states |𝒞α|\mathcal{C}^{-}_{\alpha}\rangle and |𝒞iα|\mathcal{C}^{-}_{i\alpha}\rangle consist of odd numbers of photons, therefore are not in the code subspace. We refer to them as being in the loss subspace. Together with |𝒞α+|\mathcal{C}^{+}_{\alpha}\rangle and |𝒞iα+|\mathcal{C}^{+}_{i\alpha}\rangle, one can form four states that are superposition of four coherent states: |ψα(0)=c0|𝒞α++c1|𝒞iα+|\psi_{\alpha}^{(0)}\rangle=c_{0}|\mathcal{C}^{+}_{\alpha}\rangle+c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle, |ψα(1)=c0|𝒞α+ic1|𝒞iα|\psi_{\alpha}^{(1)}\rangle=c_{0}|\mathcal{C}^{-}_{\alpha}\rangle+ic_{1}|\mathcal{C}^{-}_{i\alpha}\rangle, |ψα(2)=c0|𝒞α+c1|𝒞iα+|\psi_{\alpha}^{(2)}\rangle=c_{0}|\mathcal{C}^{+}_{\alpha}\rangle-c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle, and |ψα(3)=c0|𝒞αic1|𝒞iα|\psi_{\alpha}^{(3)}\rangle=c_{0}|\mathcal{C}^{-}_{\alpha}\rangle-ic_{1}|\mathcal{C}^{-}_{i\alpha}\rangle, where c0c_{0} and c1c_{1} are complex coefficients. Note that |ψα(0)|\psi_{\alpha}^{(0)}\rangle and |ψα(2)|\psi_{\alpha}^{(2)}\rangle are in the code subspace and are related by a Pauli ZZ transformation, while |ψα(1)|\psi_{\alpha}^{(1)}\rangle and |ψα(3)|\psi_{\alpha}^{(3)}\rangle are not in the code subspace. When a photon is lost, these states are transformed as |ψα(k)|ψα[(k+1)mod 4]|\psi_{\alpha}^{(k)}\rangle\rightarrow|\psi_{\alpha}^{[(k+1)\,{\rm mod}\,4]}\rangle, up to a normalization constant.

Consider an encoded cat qubit with initial state |ψα(0)|\psi_{\alpha}^{(0)}\rangle going through a lossy channel which is modelled by a beam splitter with transmission η=1ϵ\eta=1-\epsilon. If there is no photon loss, the state becomes |ψα(0)|\psi_{\alpha^{\prime}}^{(0)}\rangle with α=ηα\alpha^{\prime}=\sqrt{\eta}\alpha; if there is single photon loss, the state becomes |ψα(1)|\psi_{\alpha^{\prime}}^{(1)}\rangle (see Appendix for details). The state after the lossy channel is then fed into the teleportation circuit shown in Fig. 1, namely, it acts as the input state. Note that the amplitude of the cat code decreases from α\alpha to ηα\sqrt{\eta}\alpha regardless of whether a photon is lost or not, therefore the amplitude of the entangled resource state has to be adjusted such that the amplitude of arm CC is α\alpha^{\prime}, whilst that of arm BB remains α\alpha. In the case where there is no photon loss, the state is simply teleported to the output and the total number of detected photon is even. The teleportation corrects the amplitude: αα\alpha^{\prime}\rightarrow\alpha. In the case where a photon is lost, the total number of detected photon is odd. This is because the input couples with one of the modes of the encoded Bell state Eq. (1), which consists of even numbers of photon. Therefore, the parity of the total number of detected photon tells us whether there is single photon loss or not when the encoded cat qubit goes through the lossy channel. This accomplishes the syndrome measurement.

Interestingly, the recovery operation can also be implemented via teleportation. From Eq. (1) and Fig. 1 it is evident that the output state of the teleportation (in the other mode of the encoded Bell state) consists of even numbers of photon and is in the code subspace. In order to recover the initial state of the encoded cat qubit, one only needs to apply appropriate encoded unitary transformations. In the case of state teleportation and no photon loss, these required unitary transformations are encoded Pauli operators, as shown in Table 1. We find that one can still recover the encoded initial state by applying appropriate encoded Pauli operators when there is single photon loss in the encoded cat qubit. The encoded Pauli operator that needs to be applied depends on the click pattern and the total number of detected photon (see Supplementary Material for details), as summarized in Table 2. The Pauli correction in the teleportation thus plays the role as recovery operation.

Table 2: Pauli corrections (recovery operations) with single photon loss. The measurement patterns that allow for initial state recovery are listed. Here II is identity operator and X,Y,ZX,Y,Z are three encoded Pauli operators, NN is the total number of detected photon and kk is an integer.
  [0,nC,nA,nC][0,n_{C},n_{A^{\prime}},n_{C^{\prime}}]   [nA,0,nA,nC][n_{A},0,n_{A^{\prime}},n_{C^{\prime}}]   [nA,nC,0,nC][n_{A},n_{C},0,n_{C^{\prime}}]   [nA,nC,nA,0][n_{A},n_{C},n_{A^{\prime}},0]   [0,0,nA,nC][0,0,n_{A^{\prime}},n_{C^{\prime}}]   [nA,nC,0,0][n_{A},n_{C},0,0]
N=4k1N=4k-1 II II XX XX II XX
N=4k+1N=4k+1 ZZ ZZ ZXZX ZXZX ZZ ZXZX

Other than photon loss in the encoded cat qubit, there are various sources of photon loss in the teleportation circuit, including the encoded Bell state, beam splitters, phase shifter and PNR detectors. An important question is whether the proposed error correction procedure can also correct single photon loss within the teleportation circuit. The answer is affirmative. In the situation where a single photon is lost in one of the modes of the entangled Bell state, we show that the initial state can be recovered (see Supplementary Material for details). The output states after photon number detection are the same as those where a single photon is lost in the encoded cat qubit, except for a possible global phase that is irrelevant. This implies the Pauli corrections that need to be applied are also given by Table 2.

Single photon loss in the beam splitters, phase shifter and photon number detectors can also be mitigated. Assume that the optical elements and the PNR detectors are not perfect, but the rate of photon loss along each path (the modes A,C,AA,C,A^{\prime} and CC^{\prime}) is the same. Under this balanced loss assumption, one can combine all lossy channels along each path into one effective lossy channel. Since the loss rate in each path is the same, the effective lossy channels commute with the optical elements. One can therefore move them to the front of the teleportation circuit, giving a lossy channel in the input mode AA, which may cause single photon loss in the encoded input state, and another lossy channel in one of the arms of the Bell state, which may cause singe photon loss in the Bell state. As a result, the photon loss from the optical elements and PNR detectors can be mitigated via the proposed error correction procedure.

Estimating loss threshold.–Since the four-component cat code can protect the encoded qubit from single photon loss, it is expected that the loss threshold will be higher if it is used for fault-tolerant quantum computation, as compared to codes which cannot correct single photon loss like the two-component cat code. Here we estimate the loss threshold based on the results of Ref. Lund et al. (2008), where concatenation of the two-component cat code with the Steane code or Golay code is used to estimate the loss threshold. The purpose of this preliminary estimation is to show that the four-component cat code is a promising candidate for fault-tolerant computation. To obtain an accurate loss threshold value one needs to perform a numerical simulation. By concatenating the cat codes with some more advanced qubit codes, e.g., surface code, which promises a much higher threshold, one expects the loss threshold would be higher. We leave this for future work.

There are two kinds of error one needs to deal with: the located error due to the failure of the teleportation and the phase flip error coming from the photon loss. If the teleportation failed, the gate implementation was not successful and one simply removes the relevant qubits. For the two-component cat code, the teleportation fails when two PNR detectors detect no photons. For the four-component cat code, there are more click patterns that result in failure of teleportation, as shown in Table 1. The failure probability is obtained by summing the probabilities of detecting all those failure click patterns. We find that for a fixed cat amplitude, the failure probability for the two-component cat code is lower than that for the four-component cat code. If the failure probability is fixed, the amplitude of the four-component cat code is approximately twice as big as that of the two-component cat code (see supplementary materials).

The phase flip error rate for the two-component cat code is the probability of losing an odd number of photons and is dominated by the probability of losing one photon. Since the four-component cat code can correct a single photon loss, so the phase flip error rate is dominated by the probability of losing two and three photons. The phase flip error rate depends on the cat amplitude and the photon loss rate. In order to obtain a fair comparison of loss threshold between the two cat codes, we adjust the amplitudes of the two codes so as to set the located error rate of the two codes equal. By fixing the phase flip error rate, we can compare the loss value between the two cat codes.

It is shown in Ref. Lund et al. (2008) that if the amplitude of the two-component cat code α2>1.2\alpha_{2}>1.2, the loss threshold is around ϵ=5×104\epsilon=5\times 10^{-4}. As an example, we choose the amplitude of the two-component cat code as α2=1.5\alpha_{2}=1.5, so a four-component cat code with amplitude α4=3.0\alpha_{4}=3.0 would produce approximately the same located error rate. Once the cat amplitudes are given, the relation between the phase flip error rate and the loss is known, as plotted in Fig. 3. It is evident that a significant improvement in the loss threshold can be achieved by employing the four-component cat code. For a phase flip error rate that corresponds to a loss value around 5×1045\times 10^{-4} for the two-component cat code, the corresponding loss value for the four-component cat code is about 5×1035\times 10^{-3} with perfect teleportation circuit and 3×1033\times 10^{-3} with lossy teleportation circuit.

Refer to caption
Figure 3: Relation between phase flip error rate and photon loss for the two-component and four-component cat codes under the condition that the teleportation failure probabilities (located error rates) are the same. The blue (dashed) line is for the two-component cat code, the green (dashed-dotted) and red (solid) lines are for the four-component cat code with lossy and perfect teleportation circuit, respectively. The effective loss rate in the teleportation circuit is chosen to be the same as that in the encoded input state. The amplitudes of the two-component and four component cat codes are chosen as α2=1.5\alpha_{2}=1.5 and α4=3.0\alpha_{4}=3.0, respectively.

Conclusion.–We developed a scheme to implement the universal set of quantum gates for the four-component cat code via gate teleportation. This is the first proposal for optical implementation and is particularly promising due to the fast development of PNR detectors. It is also suitable for other platforms provided the PNR detection is available. Also based on the teleportation, a concrete procedure to correct the single photon loss was proposed. Furthermore, we estimated the loss threshold for the four-component cat code when it is concatenated with qubit codes, and found a significant improvement as compared to the two-component cat code. This shows that the four-component cat code is a promising candidate for fault-tolerant quantum computation.

Note: In the preparation of this work, Ref. Hastrup and Andersen (2021) was posted, which like this current work addresses the task of all-optical error correction with a cat code albeit using a different and complementary approach.

We thank Austin Lund for providing some valuable references.

References

Appendix A State teleportation

In this section we discuss the detailed implementation of the state teleportation.

For convenience we explicitly write down four two-component cat states, |𝒞α±|\mathcal{C}^{\pm}_{\alpha}\rangle and |𝒞iα±|\mathcal{C}^{\pm}_{i\alpha}\rangle, which are the superpositions of coherent states |±α|\pm\alpha\rangle or |±iα|\pm i\alpha\rangle, namely,

|𝒞α+\displaystyle|\mathcal{C}^{+}_{\alpha}\rangle =\displaystyle= 𝒩+(|α+|α),|𝒞iα+=𝒩+(|iα+|iα),\displaystyle\mathcal{N}_{+}(|\alpha\rangle+|-\alpha\rangle),~{}~{}~{}~{}~{}~{}|\mathcal{C}^{+}_{i\alpha}\rangle=\mathcal{N}_{+}(|i\alpha\rangle+|-i\alpha\rangle),
|𝒞α\displaystyle|\mathcal{C}^{-}_{\alpha}\rangle =\displaystyle= 𝒩(|α|α),|𝒞iα=𝒩(|iα|iα),\displaystyle\mathcal{N}_{-}(|\alpha\rangle-|-\alpha\rangle),~{}~{}~{}~{}~{}~{}|\mathcal{C}^{-}_{i\alpha}\rangle=\mathcal{N}_{-}(|i\alpha\rangle-|-i\alpha\rangle), (2)

where 𝒩±=1/2(1±e2α2)\mathcal{N}_{\pm}=1/\sqrt{2(1\pm e^{-2\alpha^{2}})} are the normalization constants. Note that |𝒞α+|\mathcal{C}^{+}_{\alpha}\rangle and |𝒞α|\mathcal{C}^{-}_{\alpha}\rangle are the even and odd two-component cat states, respectively. The logical eigenstates of the Pauli ZZ operator are encoded as

|0L=|𝒞α+,|1L=|𝒞iα+.\displaystyle|0_{L}\rangle=|\mathcal{C}^{+}_{\alpha}\rangle,~{}~{}~{}~{}~{}~{}~{}~{}|1_{L}\rangle=|\mathcal{C}^{+}_{i\alpha}\rangle. (3)

Note that |0L|0_{L}\rangle and |1L|1_{L}\rangle are not orthogonal, 0L|1L=𝒞α+|𝒞iα+=cosα2/coshα2\langle 0_{L}|1_{L}\rangle=\langle\mathcal{C}^{+}_{\alpha}|\mathcal{C}^{+}_{i\alpha}\rangle=\cos\alpha^{2}/\cosh\alpha^{2}, however, the overlap is small for sufficiently large α\alpha. A single-qubit logical state is a superposition of |0L|0_{L}\rangle and |1L|1_{L}\rangle, namely, |ψ=c0|0L+c1|1L|\psi\rangle=c_{0}|0_{L}\rangle+c_{1}|1_{L}\rangle, which is in general a superposition of four coherent states. This is the reason why we call it four-component cat code. An essential feature of the four-component cat code is that the logical states are encoded in the subspace with even number of photons, which is crucial for correcting single photon loss.

The teleportation circuit is shown in Fig. 1. An input mode (mode AA) couples with one of the modes of the entangled resource state (mode CC) and another two modes (modes AA^{\prime} and CC^{\prime}) with vacuum inputs via a series of 50:50 beam splitters. The optical fields in these four modes are finally detected by four PNR detectors, leaving the other mode (mode BB) of the entangled resource state as the output. For state teleportation, the entangled resource state is chosen as the logical Bell state |Φ0|\Phi_{0}\rangle, which can be written as

|Φ0BC\displaystyle|\Phi_{0}\rangle_{BC} =\displaystyle= 𝒩(|0LB|0LC+|1LB|1LC)=𝒩(|𝒞α+B|𝒞α+C+|𝒞iα+B|𝒞iα+C)\displaystyle\mathcal{N}\left(|0_{L}\rangle_{B}|0_{L}\rangle_{C}+|1_{L}\rangle_{B}|1_{L}\rangle_{C}\right)=\mathcal{N}\left(|\mathcal{C}^{+}_{\alpha}\rangle_{B}|\mathcal{C}^{+}_{\alpha}\rangle_{C}+|\mathcal{C}^{+}_{i\alpha}\rangle_{B}|\mathcal{C}^{+}_{i\alpha}\rangle_{C}\right) (4)

by using Eqs. (A) and (3), where we have explicitly written down the subscripts “BB” and “CC” to indicate the corresponding modes. In the case of no photon loss, the input state is in the code subspace, which we assume as

|ψinA=c0|0LA+c1|1LA=c0|𝒞α+A+c1|𝒞iα+A,\displaystyle|\psi_{\rm in}\rangle_{A}=c_{0}|0_{L}\rangle_{A}+c_{1}|1_{L}\rangle_{A}=c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{A}+c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{A}, (5)

where the subscript “AA” indicates that the input is in mode AA, and c0c_{0} and c1c_{1} are coefficients that normalize the input state. Then the overall input state before teleportation is

|Ψin\displaystyle|\Psi_{\rm in}\rangle =\displaystyle= |ψinA|Φ0BC|0,0AC\displaystyle|\psi_{\rm in}\rangle_{A}\otimes|\Phi_{0}\rangle_{BC}\otimes|0,0\rangle_{A^{\prime}C^{\prime}} (6)
=\displaystyle= 𝒩[(c0|𝒞α+A|𝒞α+C+c1|𝒞iα+A|𝒞α+C)|𝒞α+B+(c0|𝒞α+A|𝒞iα+C+c1|𝒞iα+A|𝒞iα+C)|𝒞iα+B]|0,0AC.\displaystyle\mathcal{N}\left[\left(c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{A}|\mathcal{C}^{+}_{\alpha}\rangle_{C}+c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{A}|\mathcal{C}^{+}_{\alpha}\rangle_{C}\right)|\mathcal{C}^{+}_{\alpha}\rangle_{B}+\left(c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{A}|\mathcal{C}^{+}_{i\alpha}\rangle_{C}+c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{A}|\mathcal{C}^{+}_{i\alpha}\rangle_{C}\right)|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\right]\otimes|0,0\rangle_{A^{\prime}C^{\prime}}.

The teleportation circuit consists of four 50:5050:50 beam splitters and a π2\frac{\pi}{2} phase shifter. We denote their action as unitary operators U^AC{\hat{U}}_{AC}, U^AA{\hat{U}}_{AA^{\prime}}, U^CC{\hat{U}}_{CC^{\prime}}, U^AC{\hat{U}}_{A^{\prime}C^{\prime}} and U^A(π/2){\hat{U}}_{A^{\prime}}(\pi/2), respectively. Here U^AC{\hat{U}}_{AC} represents the unitary transformation of the beam splitter located at the intersection between modes AA and CC, and notations are similar for other unitary operators. By considering the action of a 50:50 beam splitter upon two input coherent states and the action of a phase shifter, it can be shown that

|𝒞α+A|𝒞α+C|0A|0C\displaystyle|\mathcal{C}^{+}_{\alpha}\rangle_{A}|\mathcal{C}^{+}_{\alpha}\rangle_{C}|0\rangle_{A^{\prime}}|0\rangle_{C^{\prime}} \displaystyle\longrightarrow |0,α,α2,α2+|α,0,iα2,iα2+|α,0,iα2,iα2+|0,α,α2,α2,\displaystyle\bigg{|}0,\alpha,-\frac{\alpha}{\sqrt{2}},\frac{\alpha}{\sqrt{2}}\bigg{\rangle}+\bigg{|}\alpha,0,\frac{i\alpha}{\sqrt{2}},\frac{i\alpha}{\sqrt{2}}\bigg{\rangle}+\bigg{|}-\alpha,0,-\frac{i\alpha}{\sqrt{2}},-\frac{i\alpha}{\sqrt{2}}\bigg{\rangle}+\bigg{|}0,-\alpha,\frac{\alpha}{\sqrt{2}},-\frac{\alpha}{\sqrt{2}}\bigg{\rangle},
|𝒞iα+A|𝒞iα+C|0A|0C\displaystyle|\mathcal{C}^{+}_{i\alpha}\rangle_{A}|\mathcal{C}^{+}_{i\alpha}\rangle_{C}|0\rangle_{A^{\prime}}|0\rangle_{C^{\prime}} \displaystyle\longrightarrow |0,iα,iα2,iα2+|iα,0,α2,α2+|iα,0,α2,α2+|0,iα,iα2,iα2,\displaystyle\bigg{|}0,i\alpha,-\frac{i\alpha}{\sqrt{2}},\frac{i\alpha}{\sqrt{2}}\bigg{\rangle}+\bigg{|}i\alpha,0,-\frac{\alpha}{\sqrt{2}},-\frac{\alpha}{\sqrt{2}}\bigg{\rangle}+\bigg{|}-i\alpha,0,\frac{\alpha}{\sqrt{2}},\frac{\alpha}{\sqrt{2}}\bigg{\rangle}+\bigg{|}0,-i\alpha,\frac{i\alpha}{\sqrt{2}},-\frac{i\alpha}{\sqrt{2}}\bigg{\rangle},
|𝒞α+A|𝒞iα+C|0A|0C\displaystyle|\mathcal{C}^{+}_{\alpha}\rangle_{A}|\mathcal{C}^{+}_{i\alpha}\rangle_{C}|0\rangle_{A^{\prime}}|0\rangle_{C^{\prime}} \displaystyle\longrightarrow |β2,β2,0,β+|β2,β2,β,0+|β2,β2,β,0+|β2,β2,0,β,\displaystyle\bigg{|}\frac{\beta^{*}}{\sqrt{2}},\frac{\beta}{\sqrt{2}},0,\beta\bigg{\rangle}+\bigg{|}\frac{\beta}{\sqrt{2}},\frac{\beta^{*}}{\sqrt{2}},-\beta^{*},0\bigg{\rangle}+\bigg{|}-\frac{\beta}{\sqrt{2}},-\frac{\beta^{*}}{\sqrt{2}},\beta^{*},0\bigg{\rangle}+\bigg{|}-\frac{\beta^{*}}{\sqrt{2}},-\frac{\beta}{\sqrt{2}},0,-\beta\bigg{\rangle},
|𝒞iα+A|𝒞α+C|0A|0C\displaystyle|\mathcal{C}^{+}_{i\alpha}\rangle_{A}|\mathcal{C}^{+}_{\alpha}\rangle_{C}|0\rangle_{A^{\prime}}|0\rangle_{C^{\prime}} \displaystyle\longrightarrow |β2,β2,β,0+|β2,β2,0,β+|β2,β2,0,β+|β2,β2,β,0,\displaystyle\bigg{|}-\frac{\beta^{*}}{\sqrt{2}},\frac{\beta}{\sqrt{2}},-\beta,0\bigg{\rangle}+\bigg{|}\frac{\beta}{\sqrt{2}},-\frac{\beta^{*}}{\sqrt{2}},0,-\beta^{*}\bigg{\rangle}+\bigg{|}-\frac{\beta}{\sqrt{2}},\frac{\beta^{*}}{\sqrt{2}},0,\beta^{*}\bigg{\rangle}+\bigg{|}\frac{\beta^{*}}{\sqrt{2}},-\frac{\beta}{\sqrt{2}},\beta,0\bigg{\rangle},

where have defined β=αeiπ/4\beta=\alpha e^{i\pi/4}, and omitted the subscripts to simplify the notation and chosen the order of the modes as ``ACAC"``ACA^{\prime}C^{\prime}". By combining these results, we find that the output state after the teleportation circuit (before photon number measurement) is

|ΨBAACC=U^ACU^A(π/2)U^AAU^CCU^AC|Ψin\displaystyle|\Psi\rangle_{BAA^{\prime}CC^{\prime}}={\hat{U}}_{A^{\prime}C^{\prime}}{\hat{U}}_{A^{\prime}}(\pi/2){\hat{U}}_{AA^{\prime}}{\hat{U}}_{CC^{\prime}}{\hat{U}}_{AC}|\Psi_{\rm in}\rangle
\displaystyle\propto [(|0,α,α2,α2+|0,α,α2,α2)c0|𝒞α+B+(|0,iα,iα2,iα2+|0,iα,iα2,iα2)c1|𝒞iα+B]\displaystyle\bigg{[}\bigg{(}\bigg{|}0,\alpha,-\frac{\alpha}{\sqrt{2}},\frac{\alpha}{\sqrt{2}}\bigg{\rangle}+\bigg{|}0,-\alpha,\frac{\alpha}{\sqrt{2}},-\frac{\alpha}{\sqrt{2}}\bigg{\rangle}\bigg{)}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+\bigg{(}\bigg{|}0,i\alpha,-\frac{i\alpha}{\sqrt{2}},\frac{i\alpha}{\sqrt{2}}\bigg{\rangle}+\bigg{|}0,-i\alpha,\frac{i\alpha}{\sqrt{2}},-\frac{i\alpha}{\sqrt{2}}\bigg{\rangle}\bigg{)}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{]}
+[(|α,0,iα2,iα2+|α,0,iα2,iα2)c0|𝒞α+B+(|iα,0,α2,α2+|iα,0,α2,α2)c1|𝒞iα+B]\displaystyle+\bigg{[}\bigg{(}\bigg{|}\alpha,0,\frac{i\alpha}{\sqrt{2}},\frac{i\alpha}{\sqrt{2}}\bigg{\rangle}+\bigg{|}-\alpha,0,-\frac{i\alpha}{\sqrt{2}},-\frac{i\alpha}{\sqrt{2}}\bigg{\rangle}\bigg{)}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+\bigg{(}\bigg{|}i\alpha,0,-\frac{\alpha}{\sqrt{2}},-\frac{\alpha}{\sqrt{2}}\bigg{\rangle}+\bigg{|}-i\alpha,0,\frac{\alpha}{\sqrt{2}},\frac{\alpha}{\sqrt{2}}\bigg{\rangle}\bigg{)}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{]}
+[(|β2,β2,0,β+|β2,β2,0,β)c1|𝒞α+B+(|β2,β2,0,β+|β2,β2,0,β)c0|𝒞iα+B]\displaystyle+\bigg{[}\bigg{(}\bigg{|}\frac{\beta}{\sqrt{2}},-\frac{\beta^{*}}{\sqrt{2}},0,-\beta^{*}\bigg{\rangle}+\bigg{|}-\frac{\beta}{\sqrt{2}},\frac{\beta^{*}}{\sqrt{2}},0,\beta^{*}\bigg{\rangle}\bigg{)}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+\bigg{(}\bigg{|}\frac{\beta^{*}}{\sqrt{2}},\frac{\beta}{\sqrt{2}},0,\beta\bigg{\rangle}+\bigg{|}-\frac{\beta^{*}}{\sqrt{2}},-\frac{\beta}{\sqrt{2}},0,-\beta\bigg{\rangle}\bigg{)}c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{]}
+[(|β2,β2,β,0+|β2,β2,β,0)c1|𝒞α+B+(|β2,β2,β,0+|β2,β2,β,0)c0|𝒞iα+B],\displaystyle+\bigg{[}\bigg{(}\bigg{|}-\frac{\beta^{*}}{\sqrt{2}},\frac{\beta}{\sqrt{2}},-\beta,0\bigg{\rangle}+\bigg{|}\frac{\beta^{*}}{\sqrt{2}},-\frac{\beta}{\sqrt{2}},\beta,0\bigg{\rangle}\bigg{)}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+\bigg{(}\bigg{|}\frac{\beta}{\sqrt{2}},\frac{\beta^{*}}{\sqrt{2}},-\beta^{*},0\bigg{\rangle}+\bigg{|}-\frac{\beta}{\sqrt{2}},-\frac{\beta^{*}}{\sqrt{2}},\beta^{*},0\bigg{\rangle}\bigg{)}c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{]},

where the proportionality factor is 𝒩𝒩+ 2\mathcal{N}\mathcal{N}_{+}^{\,2}.

Four PNR detectors are used to count the number of photons at modes A,C,AA,C,A^{\prime} and CC^{\prime}, giving click patterns [nA,nC,nA,nC][n_{A},n_{C},n_{A^{\prime}},n_{C^{\prime}}]. From the output state, Eq. (A), we see that at least one of the detectors registers no photons. We will derive the conditional output state and its occurring probability for a particular click pattern, from which one can explicitly see whether the teleportation is successful and what Pauli correction needs to be applied. The results are summarized in Tables 3, 4 and 5.

Table 3: Pauli corrections for state teleportation: click patterns with one vacuum output, no photon loss.
   [0,nC,nA,nC][0,n_{C},n_{A^{\prime}},n_{C^{\prime}}]    [nA,0,nA,nC][n_{A},0,n_{A^{\prime}},n_{C^{\prime}}]    [nA,nC,0,nC][n_{A},n_{C},0,n_{C^{\prime}}]    [nA,nC,nA,0][n_{A},n_{C},n_{A^{\prime}},0]
N=4kN=4k II II XX XX
N=4k+2N=4k+2 ZZ ZZ ZXZX ZXZX
Table 4: Pauli corrections for state teleportation: click patterns with two vacuum outputs, no photon loss.
  [0,0,nA,nC][0,0,n_{A^{\prime}},n_{C^{\prime}}]   [nA,nC,0,0][n_{A},n_{C},0,0]   [nA,0,nA,0][n_{A},0,n_{A^{\prime}},0]   [nA,0,0,nC][n_{A},0,0,n_{C^{\prime}}]   [0,nC,nA,0][0,n_{C},n_{A^{\prime}},0]   [0,nC,0,nC][0,n_{C},0,n_{C^{\prime}}]
N=4kN=4k II XX failed failed failed failed
N=4k2N=4k-2 ZZ ZXZX failed failed failed failed
Table 5: Pauli corrections for state teleportation: click patterns with three vacuum outputs, no photon loss.
   [nA,0,0,0][n_{A},0,0,0]    [0,nC,0,0,0][0,n_{C},0,0,0]    [0,0,nA,0][0,0,n_{A^{\prime}},0]    [0,0,0,nC][0,0,0,n_{C^{\prime}}]
N=4kN=4k failed failed failed failed
N=4k2N=4k-2 ZZ ZZ ZXZX ZXZX

A.1 Absence of photon at one detector

Consider situations where only one detector detects no photons and each of the other three detectors registers at least one photon. This includes four sorts of click pattern:

[0,nC,nA,nC],[nA,0,nA,nC],[nA,nC,0,nC],[nA,nC,nA,0].\displaystyle[0,n_{C},n_{A^{\prime}},n_{C^{\prime}}],~{}~{}~{}~{}~{}~{}[n_{A},0,n_{A^{\prime}},n_{C^{\prime}}],~{}~{}~{}~{}~{}~{}[n_{A},n_{C},0,n_{C^{\prime}}],~{}~{}~{}~{}~{}~{}[n_{A},n_{C},n_{A^{\prime}},0].

We find that the encoded input state can be successfully teleported to the output for all these click patterns. The detailed analysis is given as follows.

(i) nA=0n_{A}=0, no click at mode AA.

When the detector at mode AA detects no photons, namely, the measurement outcome is 𝒏=[0,nC,nA,nC]{\boldsymbol{n}}=[0,n_{C},n_{A^{\prime}},n_{C^{\prime}}], the conditional output state is

0,nC,nA,nC|ΨBAACC=𝒩𝒩+ 2eα2nC!nA!nC!(1)nAαN(2)nA+nC[1+(1)N](c0|𝒞α+B+iNc1|𝒞iα+B),\displaystyle\langle 0,n_{C},n_{A^{\prime}},n_{C^{\prime}}|\Psi\rangle_{BAA^{\prime}CC^{\prime}}=\mathcal{N}\mathcal{N}_{+}^{\,2}\frac{e^{-\alpha^{2}}}{\sqrt{n_{C}!\,n_{A^{\prime}}!\,n_{C^{\prime}}!}}\frac{(-1)^{n_{A^{\prime}}}\alpha^{N}}{(\sqrt{2})^{n_{A^{\prime}}+n_{C^{\prime}}}}\big{[}1+(-1)^{N}\big{]}\bigg{(}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{)}, (8)

where N=nA+nC+nA+nCN=n_{A}+n_{C}+n_{A^{\prime}}+n_{C^{\prime}} is the total number of detected photons. This implies the (unnormalized) output state at mode BB is

|ψ1=c0|𝒞α+B+iNc1|𝒞iα+B,\displaystyle|\psi_{1}\rangle=c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}, (9)

and the measurement probability is

P([0,nC,nA,nC])=𝒩 2𝒩+ 4e2α2nC!nA!nC!α2N2nA+nC[1+(1)N]2|ψ1|ψ1|2.\displaystyle P([0,n_{C},n_{A^{\prime}},n_{C^{\prime}}])=\mathcal{N}^{\,2}\mathcal{N}_{+}^{\,4}\frac{e^{-2\alpha^{2}}}{n_{C}!\,n_{A^{\prime}}!\,n_{C^{\prime}}!}\frac{\alpha^{2N}}{2^{n_{A^{\prime}}+n_{C^{\prime}}}}\big{[}1+(-1)^{N}\big{]}^{2}|\langle\psi_{1}|\psi_{1}\rangle|^{2}. (10)

(ii) nC=0n_{C}=0, no click at mode CC.

The detector at mode CC detects no photons, namely, the measurement outcome is 𝒏=[nA,0,nA,nC]{\boldsymbol{n}}=[n_{A},0,n_{A^{\prime}},n_{C^{\prime}}], the conditional output state is

nA,0,nA,nC|ΨBAACC=𝒩𝒩+ 2eα2nA!nA!nC!inA+nCαN(2)nA+nC[1+(1)N](c0|𝒞α+B+iNc1|𝒞iα+B).\displaystyle\langle n_{A},0,n_{A^{\prime}},n_{C^{\prime}}|\Psi\rangle_{BAA^{\prime}CC^{\prime}}=\mathcal{N}\mathcal{N}_{+}^{\,2}\frac{e^{-\alpha^{2}}}{\sqrt{n_{A}!\,n_{A^{\prime}}!\,n_{C^{\prime}}!}}\frac{i^{n_{A^{\prime}}+n_{C^{\prime}}}\alpha^{N}}{(\sqrt{2})^{n_{A^{\prime}}+n_{C^{\prime}}}}\big{[}1+(-1)^{N}\big{]}\bigg{(}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{)}. (11)

This implies the (unnormalized) output state at mode BB is

|ψ2=c0|𝒞α+B+iNc1|𝒞iα+B,\displaystyle|\psi_{2}\rangle=c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}, (12)

and the measurement probability is

P([nA,0,nA,nC])=𝒩 2𝒩+ 4e2α2nA!nA!nC!α2N2nA+nC[1+(1)N]2|ψ2|ψ2|2.\displaystyle P([n_{A},0,n_{A^{\prime}},n_{C^{\prime}}])=\mathcal{N}^{\,2}\mathcal{N}_{+}^{\,4}\frac{e^{-2\alpha^{2}}}{n_{A}!\,n_{A^{\prime}}!\,n_{C^{\prime}}!}\frac{\alpha^{2N}}{2^{n_{A^{\prime}}+n_{C^{\prime}}}}\big{[}1+(-1)^{N}\big{]}^{2}|\langle\psi_{2}|\psi_{2}\rangle|^{2}. (13)

It is evident that the output states are the same for cases (i) and (ii).

(iii) nA=0n_{A^{\prime}}=0, no click at mode AA^{\prime}.

The detector at mode AA^{\prime} detects no photons, namely, the measurement outcome is 𝒏=[nA,nC,0,nC]{\boldsymbol{n}}=[n_{A},n_{C},0,n_{C^{\prime}}], the conditional output state is

nA,nC,0,nC|ΨBAACC=𝒩𝒩+ 2eα2nA!nC!nC!eiπ(nAnCnC)/4αN(2)nA+nC[1+(1)N](c0|𝒞iα+B+iNc1|𝒞α+B).\displaystyle\langle n_{A},n_{C},0,n_{C^{\prime}}|\Psi\rangle_{BAA^{\prime}CC^{\prime}}=\mathcal{N}\mathcal{N}_{+}^{\,2}\frac{e^{-\alpha^{2}}}{\sqrt{n_{A}!\,n_{C}!\,n_{C^{\prime}}!}}\frac{e^{-i\pi(n_{A}-n_{C}-n_{C^{\prime}})/4}\alpha^{N}}{(\sqrt{2})^{n_{A}+n_{C}}}\big{[}1+(-1)^{N}\big{]}\bigg{(}c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}\bigg{)}. (14)

This implies the (unnormalized) output state at mode BB is

|ψ3=c0|𝒞iα+B+iNc1|𝒞α+B,\displaystyle|\psi_{3}\rangle=c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}, (15)

and the measurement probability is

P([nA,nC,0,nC])=𝒩 2𝒩+ 4e2α2nA!nC!nC!α2N2nA+nC[1+(1)N]2|ψ3|ψ3|2.\displaystyle P([n_{A},n_{C},0,n_{C^{\prime}}])=\mathcal{N}^{\,2}\mathcal{N}_{+}^{\,4}\frac{e^{-2\alpha^{2}}}{n_{A}!\,n_{C}!\,n_{C^{\prime}}!}\frac{\alpha^{2N}}{2^{n_{A}+n_{C}}}\big{[}1+(-1)^{N}\big{]}^{2}|\langle\psi_{3}|\psi_{3}\rangle|^{2}. (16)

(iv) nC=0n_{C^{\prime}}=0, no click at mode CC^{\prime}.

The detector at mode CC^{\prime} detects no photons, namely, the measurement outcome is 𝒏=[nA,nC,nA,0]{\boldsymbol{n}}=[n_{A},n_{C},n_{A^{\prime}},0], the conditional state is

nA,nC,nA,0|ΨBAACC\displaystyle\langle n_{A},n_{C},n_{A^{\prime}},0|\Psi\rangle_{BAA^{\prime}CC^{\prime}} =\displaystyle= 𝒩𝒩+ 2eα2nA!nC!nA!(1)nAeiπ(nAnCnA)/4αN(2)nA+nC[1+(1)N](c0|𝒞iα+B+iNc1|𝒞α+B).\displaystyle\mathcal{N}\mathcal{N}_{+}^{\,2}\frac{e^{-\alpha^{2}}}{\sqrt{n_{A}!\,n_{C}!\,n_{A^{\prime}}!}}\frac{(-1)^{n_{A^{\prime}}}e^{i\pi(n_{A}-n_{C}-n_{A^{\prime}})/4}\alpha^{N}}{(\sqrt{2})^{n_{A}+n_{C}}}\big{[}1+(-1)^{N}\big{]}\bigg{(}c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}\bigg{)}.

This implies the (unnormalized) output state at mode BB is

|ψ4=c0|𝒞iα+B+iNc1|𝒞α+B,\displaystyle|\psi_{4}\rangle=c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}, (18)

and the measurement probability is

P([nA,nC,nA,0])=𝒩 2𝒩+ 4e2α2nA!nC!nA!α2N2nA+nC[1+(1)N]2|ψ4|ψ4|2.\displaystyle P([n_{A},n_{C},n_{A^{\prime}},0])=\mathcal{N}^{\,2}\mathcal{N}_{+}^{\,4}\frac{e^{-2\alpha^{2}}}{n_{A}!\,n_{C}!\,n_{A^{\prime}}!}\frac{\alpha^{2N}}{2^{n_{A}+n_{C}}}\big{[}1+(-1)^{N}\big{]}^{2}|\langle\psi_{4}|\psi_{4}\rangle|^{2}. (19)

It is evident that the output states are the same for cases (iii) and (iv).

For all these cases, the probability of detecting an odd number of photon is zero. This is consistent with the fact that the entangled resource state, input state and output state all consist of even numbers of photon. For cases (i) and (ii), the output state is exactly the same as the input state when N=4kN=4k with kk a positive integer, indicating a successful teleportation without further corrections. When N=4k+2N=4k+2, the output state is

|ψout=c0|𝒞α+Bc1|𝒞iα+B,\displaystyle|\psi_{\rm out}\rangle=c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}-c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}, (20)

and can be converted to the input state by applying a Pauli ZZ correction. For cases (iii) and (iv), the output state is

|ψout=c0|𝒞iα+B+c1|𝒞α+B\displaystyle|\psi_{\rm out}\rangle=c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B} (21)

when N=4kN=4k, and it can be converted to the input state by applying a Pauli XX correction, which is simply a π2\frac{\pi}{2} phase shift and is easy to implement. When N=4k+2N=4k+2, the output state is

|ψout=c0|𝒞iα+Bc1|𝒞α+B,\displaystyle|\psi_{\rm out}\rangle=c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}-c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}, (22)

and it can be converted to the input state by first applying a Pauli XX correction and then a Pauli ZZ correction. This is summarized in Table 3.

A.2 Absence of photons at two detectors

When two detectors detect no photons and each of the other two detectors registers at least one photon, the teleportation succeeds for click patterns:

[0,0,nA,nC],[nA,nC,0,0];\displaystyle[0,0,n_{A^{\prime}},n_{C^{\prime}}],~{}~{}~{}~{}~{}~{}[n_{A},n_{C},0,0];

and fails for click patterns:

[nA,0,nA,0],[nA,0,0,nC],[0,nC,nA,0],[0,nC,0,nC].\displaystyle[n_{A},0,n_{A^{\prime}},0],~{}~{}~{}~{}~{}~{}[n_{A},0,0,n_{C^{\prime}}],~{}~{}~{}~{}~{}~{}[0,n_{C},n_{A^{\prime}},0],~{}~{}~{}~{}~{}~{}[0,n_{C},0,n_{C^{\prime}}].

The results are summarized in Table 4 and the detailed analysis is given as follows.

(i) nA=nC=0n_{A}=n_{C}=0, no click at modes AA and CC.

The detectors at modes AA and CC detect no photons, namely, the measurement outcome is 𝒏=[0,0,nA,nC]{\boldsymbol{n}}=[0,0,n_{A^{\prime}},n_{C^{\prime}}]. The conditional output state is

0,0,nA,nC|ΨBAACC=𝒩𝒩+ 2eα2nA!nC!iNαN(2)N[1+(1)N](1+inAnC)(c0|𝒞α+B+iNc1|𝒞iα+B).\displaystyle\langle 0,0,n_{A^{\prime}},n_{C^{\prime}}|\Psi\rangle_{BAA^{\prime}CC^{\prime}}=\mathcal{N}\mathcal{N}_{+}^{\,2}\frac{e^{-\alpha^{2}}}{\sqrt{n_{A^{\prime}}!\,n_{C^{\prime}}!}}\frac{i^{N}\alpha^{N}}{(\sqrt{2})^{N}}\big{[}1+(-1)^{N}\big{]}\big{(}1+i^{n_{A^{\prime}}-n_{C^{\prime}}}\big{)}\bigg{(}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{)}. (23)

This implies the (unnormalized) output state at mode BB is

|ψ5=c0|𝒞α+B+iNc1|𝒞iα+B,\displaystyle|\psi_{5}\rangle=c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}, (24)

and the measurement probability is

P([0,0,nA,nC])=𝒩 2𝒩+ 4e2α2nA!nC!α2N2N[1+(1)N]2|1+inAnC|2|ψ5|ψ5|2.\displaystyle P([0,0,n_{A^{\prime}},n_{C^{\prime}}])=\mathcal{N}^{\,2}\mathcal{N}_{+}^{\,4}\frac{e^{-2\alpha^{2}}}{n_{A^{\prime}}!\,n_{C^{\prime}}!}\frac{\alpha^{2N}}{2^{N}}\big{[}1+(-1)^{N}\big{]}^{2}\big{|}1+i^{n_{A^{\prime}}-n_{C^{\prime}}}\big{|}^{2}|\langle\psi_{5}|\psi_{5}\rangle|^{2}. (25)

The measurement probability is nonzero only when NN is even and nAnC=4n_{A^{\prime}}-n_{C^{\prime}}=4\ell with \ell an integer.

(ii) nA=nC=0n_{A^{\prime}}=n_{C^{\prime}}=0, no click at modes AA^{\prime} and CC^{\prime}.

The detectors at mode AA^{\prime} and CC^{\prime} detect no photons, namely, the measurement outcome is 𝒏=[nA,nC,0,0]{\boldsymbol{n}}=[n_{A},n_{C},0,0]. The conditional output state is

nA,nC,0,0|ΨBAACC=𝒩𝒩+ 2eα2nA!nC!eiπ(nAnC)/4αN(2)N[1+(1)N](1+inAnC)(c0|𝒞iα+B+iNc1|𝒞α+B).\displaystyle\langle n_{A},n_{C},0,0|\Psi\rangle_{BAA^{\prime}CC^{\prime}}=\mathcal{N}\mathcal{N}_{+}^{\,2}\frac{e^{-\alpha^{2}}}{\sqrt{n_{A}!\,n_{C}!}}\frac{e^{-i\pi(n_{A}-n_{C})/4}\alpha^{N}}{(\sqrt{2})^{N}}\big{[}1+(-1)^{N}\big{]}\big{(}1+i^{n_{A}-n_{C}}\big{)}\bigg{(}c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}\bigg{)}.

This implies the (unnormalized) output state at mode BB is

|ψ6=c0|𝒞iα+B+iNc1|𝒞α+B,\displaystyle|\psi_{6}\rangle=c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}, (26)

and the measurement probability is

P([nA,nC,0,0])=𝒩 2𝒩+ 4e2α2nA!nC!α2N2N[1+(1)N]2|1+inAnC|2|ψ6|ψ6|2.\displaystyle P([n_{A},n_{C},0,0])=\mathcal{N}^{\,2}\mathcal{N}_{+}^{\,4}\frac{e^{-2\alpha^{2}}}{n_{A}!\,n_{C}!}\frac{\alpha^{2N}}{2^{N}}\big{[}1+(-1)^{N}\big{]}^{2}\big{|}1+i^{n_{A}-n_{C}}\big{|}^{2}|\langle\psi_{6}|\psi_{6}\rangle|^{2}. (27)

The measurement probability is nonzero only when NN is even and nAnC=4n_{A}-n_{C}=4\ell with \ell an integer.

The teleportation fails for the following click patterns. Here we explicitly write down the conditional output states, from which one can see clearly why the teleportation fails.

(iii) nC=nC=0n_{C}=n_{C^{\prime}}=0, no click at modes CC and CC^{\prime}.

The detectors at mode CC and CC^{\prime} detect no photons, namely, the measurement outcome is 𝒏=[nA,0,nA,0]{\boldsymbol{n}}=[n_{A},0,n_{A^{\prime}},0] with nA0n_{A}\neq 0 and nA0n_{A^{\prime}}\neq 0. The conditional output state is

nA,0,nA,0|ΨBAACC\displaystyle\langle n_{A},0,n_{A^{\prime}},0|\Psi\rangle_{BAA^{\prime}CC^{\prime}} (28)
=\displaystyle= 𝒩𝒩+ 2eα2nA!nA!αN[1+(1)N]inA[1(2)nA(c0|𝒞α+B+iNc1|𝒞iα+B,)\displaystyle\mathcal{N}\mathcal{N}_{+}^{\,2}\frac{e^{-\alpha^{2}}}{\sqrt{n_{A}!\,n_{A^{\prime}}!}}\alpha^{N}\big{[}1+(-1)^{N}\big{]}i^{n_{A^{\prime}}}\bigg{[}\frac{1}{(\sqrt{2})^{n_{A^{\prime}}}}\bigg{(}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B},\bigg{)}
+eiNπ/4(2)nA(c0|𝒞iα+B+iNc1|𝒞α+B,)]\displaystyle+\frac{e^{iN\pi/4}}{(\sqrt{2})^{n_{A}}}\bigg{(}c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B},\bigg{)}\bigg{]}
=\displaystyle= 𝒩𝒩+ 2eα2nA!nA!αN[1+(1)N]inA{[1(2)nAc0+eiNπ/4(2)nAiNc1]|𝒞α+B\displaystyle\mathcal{N}\mathcal{N}_{+}^{\,2}\frac{e^{-\alpha^{2}}}{\sqrt{n_{A}!n_{A^{\prime}}!}}\alpha^{N}\big{[}1+(-1)^{N}\big{]}i^{n_{A^{\prime}}}\bigg{\{}\bigg{[}\frac{1}{(\sqrt{2})^{n_{A^{\prime}}}}c_{0}+\frac{e^{iN\pi/4}}{(\sqrt{2})^{n_{A}}}i^{N}c_{1}\bigg{]}|\mathcal{C}^{+}_{\alpha}\rangle_{B}
+[1(2)nAiNc1+eiNπ/4(2)nAc0]|𝒞iα+B}.\displaystyle+\bigg{[}\frac{1}{(\sqrt{2})^{n_{A^{\prime}}}}i^{N}c_{1}+\frac{e^{iN\pi/4}}{(\sqrt{2})^{n_{A}}}c_{0}\bigg{]}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{\}}.

(iv) nC=nA=0n_{C}=n_{A^{\prime}}=0, no click at modes CC and AA^{\prime}.

The detectors at mode CC and AA^{\prime} detect no photons, namely, the measurement outcome is 𝒏=[nA,0,0,nC]{\boldsymbol{n}}=[n_{A},0,0,n_{C^{\prime}}] with nA0n_{A}\neq 0 and nC0n_{C^{\prime}}\neq 0. The conditional output state is

nA,0,0,nC|ΨBAACC\displaystyle\langle n_{A},0,0,n_{C^{\prime}}|\Psi\rangle_{BAA^{\prime}CC^{\prime}} (29)
=\displaystyle= 𝒩𝒩+ 2eα2nA!nC!αN[1+(1)N]inC[1(2)nC(c0|𝒞α+B+iNc1|𝒞iα+B,)\displaystyle\mathcal{N}\mathcal{N}_{+}^{\,2}\frac{e^{-\alpha^{2}}}{\sqrt{n_{A}!\,n_{C^{\prime}}!}}\alpha^{N}\big{[}1+(-1)^{N}\big{]}i^{n_{C^{\prime}}}\bigg{[}\frac{1}{(\sqrt{2})^{n_{C^{\prime}}}}\bigg{(}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B},\bigg{)}
+eiNπ/4(2)nA(c0|𝒞iα+B+iNc1|𝒞α+B,)]\displaystyle+\frac{e^{-iN\pi/4}}{(\sqrt{2})^{n_{A}}}\bigg{(}c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B},\bigg{)}\bigg{]}
=\displaystyle= 𝒩𝒩+ 2eα2nA!nC!αN[1+(1)N]inC{[1(2)nCc0+eiNπ/4(2)nAiNc1]|𝒞α+B\displaystyle\mathcal{N}\mathcal{N}_{+}^{\,2}\frac{e^{-\alpha^{2}}}{\sqrt{n_{A}!\,n_{C^{\prime}}!}}\alpha^{N}\big{[}1+(-1)^{N}\big{]}i^{n_{C^{\prime}}}\bigg{\{}\bigg{[}\frac{1}{(\sqrt{2})^{n_{C^{\prime}}}}c_{0}+\frac{e^{-iN\pi/4}}{(\sqrt{2})^{n_{A}}}i^{N}c_{1}\bigg{]}|\mathcal{C}^{+}_{\alpha}\rangle_{B}
+[1(2)nCiNc1+eiNπ/4(2)nAc0]|𝒞iα+B}.\displaystyle+\bigg{[}\frac{1}{(\sqrt{2})^{n_{C^{\prime}}}}i^{N}c_{1}+\frac{e^{-iN\pi/4}}{(\sqrt{2})^{n_{A}}}c_{0}\bigg{]}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{\}}.

(v) nA=nC=0n_{A}=n_{C^{\prime}}=0, no click at modes AA and CC^{\prime}.

The detectors at mode AA and CC^{\prime} detect no photons, namely, the measurement outcome is 𝒏=[0,nC,nA,0]{\boldsymbol{n}}=[0,n_{C},n_{A^{\prime}},0] with nC0n_{C}\neq 0 and nA0n_{A^{\prime}}\neq 0. The conditional output state is

0,nC,nA,0|ΨBAACC\displaystyle\langle 0,n_{C},n_{A^{\prime}},0|\Psi\rangle_{BAA^{\prime}CC^{\prime}} (30)
=\displaystyle= 𝒩𝒩+ 2eα2nC!nA!αN[1+(1)N](1)nA[1(2)nA(c0|𝒞α+B+iNc1|𝒞iα+B,)\displaystyle\mathcal{N}\mathcal{N}_{+}^{\,2}\frac{e^{-\alpha^{2}}}{\sqrt{n_{C}!\,n_{A^{\prime}}!}}\alpha^{N}\big{[}1+(-1)^{N}\big{]}(-1)^{n_{A^{\prime}}}\bigg{[}\frac{1}{(\sqrt{2})^{n_{A^{\prime}}}}\bigg{(}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B},\bigg{)}
+eiNπ/4(2)nC(c0|𝒞iα+B+iNc1|𝒞α+B,)]\displaystyle+\frac{e^{-iN\pi/4}}{(\sqrt{2})^{n_{C}}}\bigg{(}c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B},\bigg{)}\bigg{]}
=\displaystyle= 𝒩𝒩+ 2eα2nC!nA!αN[1+(1)N](1)nA{[1(2)nAc0+eiNπ/4(2)nCiNc1]|𝒞α+B\displaystyle\mathcal{N}\mathcal{N}_{+}^{\,2}\frac{e^{-\alpha^{2}}}{\sqrt{n_{C}!\,n_{A^{\prime}}!}}\alpha^{N}\big{[}1+(-1)^{N}\big{]}(-1)^{n_{A^{\prime}}}\bigg{\{}\bigg{[}\frac{1}{(\sqrt{2})^{n_{A^{\prime}}}}c_{0}+\frac{e^{-iN\pi/4}}{(\sqrt{2})^{n_{C}}}i^{N}c_{1}\bigg{]}|\mathcal{C}^{+}_{\alpha}\rangle_{B}
+[1(2)nAiNc1+eiNπ/4(2)nCc0]|𝒞iα+B}.\displaystyle+\bigg{[}\frac{1}{(\sqrt{2})^{n_{A^{\prime}}}}i^{N}c_{1}+\frac{e^{-iN\pi/4}}{(\sqrt{2})^{n_{C}}}c_{0}\bigg{]}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{\}}.

(vi) nA=nA=0n_{A}=n_{A^{\prime}}=0, no click at modes AA and AA^{\prime}.

The detectors at mode AA and AA^{\prime} detect no photons, namely, the measurement outcome is 𝒏=[0,nC,0,nC]{\boldsymbol{n}}=[0,n_{C},0,n_{C^{\prime}}] with nC0n_{C}\neq 0 and nC0n_{C^{\prime}}\neq 0. The conditional output state is

0,nC,0,nC|ΨBAACC\displaystyle\langle 0,n_{C},0,n_{C^{\prime}}|\Psi\rangle_{BAA^{\prime}CC^{\prime}} (31)
=\displaystyle= 𝒩𝒩+ 2eα2nC!nC!αN[1+(1)N][1(2)nC(c0|𝒞α+B+iNc1|𝒞iα+B,)\displaystyle\mathcal{N}\mathcal{N}_{+}^{\,2}\frac{e^{-\alpha^{2}}}{\sqrt{n_{C}!\,n_{C^{\prime}}!}}\alpha^{N}\big{[}1+(-1)^{N}\big{]}\bigg{[}\frac{1}{(\sqrt{2})^{n_{C^{\prime}}}}\bigg{(}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B},\bigg{)}
+eiNπ/4(2)nC(c0|𝒞iα+B+iNc1|𝒞α+B,)]\displaystyle+\frac{e^{iN\pi/4}}{(\sqrt{2})^{n_{C}}}\bigg{(}c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B},\bigg{)}\bigg{]}
=\displaystyle= 𝒩𝒩+ 2eα2nC!nC!αN[1+(1)N]{[1(2)nCc0+eiNπ/4(2)nCiNc1]|𝒞α+B\displaystyle\mathcal{N}\mathcal{N}_{+}^{\,2}\frac{e^{-\alpha^{2}}}{\sqrt{n_{C}!\,n_{C^{\prime}}!}}\alpha^{N}\big{[}1+(-1)^{N}\big{]}\bigg{\{}\bigg{[}\frac{1}{(\sqrt{2})^{n_{C^{\prime}}}}c_{0}+\frac{e^{iN\pi/4}}{(\sqrt{2})^{n_{C}}}i^{N}c_{1}\bigg{]}|\mathcal{C}^{+}_{\alpha}\rangle_{B}
+[1(2)nCiNc1+eiNπ/4(2)nCc0]|𝒞iα+B}.\displaystyle+\bigg{[}\frac{1}{(\sqrt{2})^{n_{C^{\prime}}}}i^{N}c_{1}+\frac{e^{iN\pi/4}}{(\sqrt{2})^{n_{C}}}c_{0}\bigg{]}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{\}}.

A.3 Absence of photons at three detectors

There are four sorts of click pattern when only one of the detectors detects photons, namely,

[nA,0,0,0],[0,nC,0,0],[0,0,nA,0],[0,0,0,nC].\displaystyle[n_{A},0,0,0],~{}~{}~{}~{}~{}~{}[0,n_{C},0,0],~{}~{}~{}~{}~{}~{}[0,0,n_{A^{\prime}},0],~{}~{}~{}~{}~{}~{}[0,0,0,n_{C^{\prime}}]. (32)

The teleportation succeeds when the total number of detected photon N=4k+2N=4k+2 with kk a nonnegative integer. The results are summarized in Table 5 and the detailed analysis is given as follows.

(i) nA=N0n_{A}=N\neq 0, clicks at mode AA.

When the measurement outcome is 𝒏=[N,0,0,0]{\boldsymbol{n}}=[N,0,0,0], the conditional output state is

N,0,0,0|ΨBAACC\displaystyle\langle N,0,0,0|\Psi\rangle_{BAA^{\prime}CC^{\prime}} (33)
=\displaystyle= 𝒩𝒩+ 2[1+(1)N]eα2[αNN!(c0|𝒞α+B+iNc1|𝒞iα+B)+1N!(βN(2)N+βN(2)N)(c0|𝒞iα+B+iNc1|𝒞α+B)]\displaystyle\mathcal{N}\mathcal{N}_{+}^{\,2}\big{[}1+(-1)^{N}\big{]}e^{-\alpha^{2}}\bigg{[}\frac{\alpha^{N}}{\sqrt{N!}}\bigg{(}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{)}+\frac{1}{\sqrt{N!}}\bigg{(}\frac{\beta^{*N}}{(\sqrt{2})^{N}}+\frac{\beta^{N}}{(\sqrt{2})^{N}}\bigg{)}\bigg{(}c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}\bigg{)}\bigg{]}
=\displaystyle= 𝒩𝒩+ 2[1+(1)N]eα2αNN![(c0|𝒞α+B+iNc1|𝒞iα+B)+eiNπ/4+eiNπ/4(2)N(c0|𝒞iα+B+iNc1|𝒞α+B)]\displaystyle\mathcal{N}\mathcal{N}_{+}^{\,2}\big{[}1+(-1)^{N}\big{]}e^{-\alpha^{2}}\frac{\alpha^{N}}{\sqrt{N!}}\bigg{[}\bigg{(}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{)}+\frac{e^{iN\pi/4}+e^{-iN\pi/4}}{(\sqrt{2})^{N}}\bigg{(}c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}\bigg{)}\bigg{]}
=\displaystyle= 𝒩𝒩+ 2[1+(1)N]eα2αNN!{[c0+2cos(Nπ/4)(2)NiNc1]|𝒞α+B+[iNc1+2cos(Nπ/4)(2)Nc0]|𝒞iα+B}.\displaystyle\mathcal{N}\mathcal{N}_{+}^{\,2}\big{[}1+(-1)^{N}\big{]}e^{-\alpha^{2}}\frac{\alpha^{N}}{\sqrt{N!}}\bigg{\{}\bigg{[}c_{0}+\frac{2\cos(N\pi/4)}{(\sqrt{2})^{N}}i^{N}c_{1}\bigg{]}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+\bigg{[}i^{N}c_{1}+\frac{2\cos(N\pi/4)}{(\sqrt{2})^{N}}c_{0}\bigg{]}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{\}}.

Note that the measurement probability is nonzero only when NN is even. Assume that N=2mN=2m with m1m\geq 1, then the conditional output state can be written as

2m,0,0,0|ΨBAACC\displaystyle\langle 2m,0,0,0|\Psi\rangle_{BAA^{\prime}CC^{\prime}} (36)
=\displaystyle= 2𝒩𝒩+ 2eα2α2m(2m)!{[c0+cos(mπ/2)2m1(1)mc1]|𝒞α+B+[(1)mc1+cos(mπ/2)2m1c0]|𝒞iα+B}\displaystyle 2\mathcal{N}\mathcal{N}_{+}^{\,2}e^{-\alpha^{2}}\frac{\alpha^{2m}}{\sqrt{(2m)!}}\bigg{\{}\bigg{[}c_{0}+\frac{\cos(m\pi/2)}{2^{m-1}}(-1)^{m}c_{1}\bigg{]}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+\bigg{[}(-1)^{m}c_{1}+\frac{\cos(m\pi/2)}{2^{m-1}}c_{0}\bigg{]}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{\}}
=\displaystyle= {2𝒩𝒩+ 2eα2α2m(2m)!(c0|𝒞α+Bc1|𝒞iα+B),mis odd;2𝒩𝒩+ 2eα2α2m(2m)!{[c0+(1)m/22m1c1]|𝒞α+B+[c1+(1)m/22m1c0]|𝒞iα+B},mis even.\displaystyle\left\{\begin{array}[]{lc}2\mathcal{N}\mathcal{N}_{+}^{\,2}e^{-\alpha^{2}}\frac{\alpha^{2m}}{\sqrt{(2m)!}}\big{(}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}-c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\big{)},&m~{}\text{is odd};\\ 2\mathcal{N}\mathcal{N}_{+}^{\,2}e^{-\alpha^{2}}\frac{\alpha^{2m}}{\sqrt{(2m)!}}\bigg{\{}\bigg{[}c_{0}+\frac{(-1)^{m/2}}{2^{m-1}}c_{1}\bigg{]}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+\bigg{[}c_{1}+\frac{(-1)^{m/2}}{2^{m-1}}c_{0}\bigg{]}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{\}},&m~{}\text{is even}.\end{array}\right.

It is thus evident that the input state can be recovered by applying an encoded Pauli ZZ correction when mm is odd, and the teleportation fails when mm is even.

(ii) nC=N0n_{C}=N\neq 0, clicks at mode CC.

When the measurement outcome is 𝒏=[0,N,0,0]{\boldsymbol{n}}=[0,N,0,0], the conditional state is

0,N,0,0|ΨBAACC\displaystyle\langle 0,N,0,0|\Psi\rangle_{BAA^{\prime}CC^{\prime}} (37)
=\displaystyle= 𝒩𝒩+ 2[1+(1)N]eα2αNN![(c0|𝒞α+B+iNc1|𝒞iα+B)+eiNπ/4+eiNπ/4(2)N(c0|𝒞iα+B+iNc1|𝒞α+B)]\displaystyle\mathcal{N}\mathcal{N}_{+}^{\,2}\big{[}1+(-1)^{N}\big{]}e^{-\alpha^{2}}\frac{\alpha^{N}}{\sqrt{N!}}\bigg{[}\bigg{(}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{)}+\frac{e^{iN\pi/4}+e^{-iN\pi/4}}{(\sqrt{2})^{N}}\bigg{(}c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}\bigg{)}\bigg{]}
=\displaystyle= N,0,0,0|ΨBAACC.\displaystyle\langle N,0,0,0|\Psi\rangle_{BAA^{\prime}CC^{\prime}}.

The conditional output state is the same as case (i).

(iii) nA=N0n_{A^{\prime}}=N\neq 0, clicks at mode AA^{\prime}.

When the measurement outcome is 𝒏=[0,0,N,0]{\boldsymbol{n}}=[0,0,N,0], the conditional output state is

0,0,N,0|ΨBAACC\displaystyle\langle 0,0,N,0|\Psi\rangle_{BAA^{\prime}CC^{\prime}} (38)
=\displaystyle= 𝒩𝒩+ 2[1+(1)N]eα2αNN![(1)N+iN(2)N(c0|𝒞α+B+iNc1|𝒞iα+B)+(1)NeiNπ/4(c0|𝒞iα+B+iNc1|𝒞α+B)]\displaystyle\mathcal{N}\mathcal{N}_{+}^{\,2}\big{[}1+(-1)^{N}\big{]}e^{-\alpha^{2}}\frac{\alpha^{N}}{\sqrt{N!}}\bigg{[}\frac{(-1)^{N}+i^{N}}{(\sqrt{2})^{N}}\bigg{(}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{)}+(-1)^{N}e^{-iN\pi/4}\bigg{(}c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}\bigg{)}\bigg{]}
=\displaystyle= 𝒩𝒩+ 2[1+(1)N]eα2αNN!iN[1+iN(2)N(c0|𝒞α+B+iNc1|𝒞iα+B)+eiNπ/4(c0|𝒞iα+B+iNc1|𝒞α+B)]\displaystyle\mathcal{N}\mathcal{N}_{+}^{\,2}\big{[}1+(-1)^{N}\big{]}e^{-\alpha^{2}}\frac{\alpha^{N}}{\sqrt{N!}}i^{N}\bigg{[}\frac{1+i^{N}}{(\sqrt{2})^{N}}\bigg{(}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{)}+e^{iN\pi/4}\bigg{(}c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}\bigg{)}\bigg{]}
=\displaystyle= 𝒩𝒩+ 2[1+(1)N]eα2αNN!iN{[eiNπ/4iNc1+1+iN(2)Nc0]|𝒞α+B+[eiNπ/4c0+1+iN(2)NiNc1]|𝒞iα+B}.\displaystyle\mathcal{N}\mathcal{N}_{+}^{\,2}\big{[}1+(-1)^{N}\big{]}e^{-\alpha^{2}}\frac{\alpha^{N}}{\sqrt{N!}}i^{N}\bigg{\{}\bigg{[}e^{iN\pi/4}i^{N}c_{1}+\frac{1+i^{N}}{(\sqrt{2})^{N}}c_{0}\bigg{]}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+\bigg{[}e^{iN\pi/4}c_{0}+\frac{1+i^{N}}{(\sqrt{2})^{N}}i^{N}c_{1}\bigg{]}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{\}}.

Note that the probability is nonzero only when NN is even. Assume that N=2mN=2m with m1m\geq 1, then the conditional output state can be written as

0,0,2m,0|ΨBAACC\displaystyle\langle 0,0,2m,0|\Psi\rangle_{BAA^{\prime}CC^{\prime}} (41)
=\displaystyle= 2𝒩𝒩+ 2eα2(1)mα2m(2m)!{[im(1)mc1+1+(1)m2mc0]|𝒞α+B+[imc0+1+(1)m2m(1)mc1]|𝒞iα+B}\displaystyle 2\mathcal{N}\mathcal{N}_{+}^{\,2}e^{-\alpha^{2}}\frac{(-1)^{m}\alpha^{2m}}{\sqrt{(2m)!}}\bigg{\{}\bigg{[}i^{m}(-1)^{m}c_{1}+\frac{1+(-1)^{m}}{2^{m}}c_{0}\bigg{]}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+\bigg{[}i^{m}c_{0}+\frac{1+(-1)^{m}}{2^{m}}(-1)^{m}c_{1}\bigg{]}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{\}}
=\displaystyle= {2𝒩𝒩+ 2eα2α2m(2m)!(i)m(c0|𝒞iα+Bc1|𝒞α+B),mis odd;2𝒩𝒩+ 2eα2α2m(2m)!{[imc1+12m1c0]|𝒞α+B+[imc0+12m1c1]|𝒞iα+B},mis even.\displaystyle\left\{\begin{array}[]{lc}2\mathcal{N}\mathcal{N}_{+}^{\,2}e^{-\alpha^{2}}\frac{\alpha^{2m}}{\sqrt{(2m)!}}(-i)^{m}\big{(}c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}-c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}\big{)},&m~{}\text{is odd};\\ 2\mathcal{N}\mathcal{N}_{+}^{\,2}e^{-\alpha^{2}}\frac{\alpha^{2m}}{\sqrt{(2m)!}}\bigg{\{}\bigg{[}i^{m}c_{1}+\frac{1}{2^{m-1}}c_{0}\bigg{]}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+\bigg{[}i^{m}c_{0}+\frac{1}{2^{m-1}}c_{1}\bigg{]}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{\}},&m~{}\text{is even}.\end{array}\right.

It is thus evident that the input state can be recovered by first applying an encoded Pauli XX correction and then a Pauli ZZ correction when mm is odd, and the teleportation fails when mm is even.

(iv) nC=N0n_{C^{\prime}}=N\neq 0, clicks at mode CC^{\prime}.

When the measurement outcome is 𝒏=[0,0,0,N]{\boldsymbol{n}}=[0,0,0,N], the conditional output state is

0,0,0,N|ΨBAACC\displaystyle\langle 0,0,0,N|\Psi\rangle_{BAA^{\prime}CC^{\prime}} (42)
=\displaystyle= 𝒩𝒩+ 2[1+(1)N]eα2αNN![1+iN(2)N(c0|𝒞α+B+iNc1|𝒞iα+B)+eiNπ/4(c0|𝒞iα+B+iNc1|𝒞α+B)]\displaystyle\mathcal{N}\mathcal{N}_{+}^{\,2}\big{[}1+(-1)^{N}\big{]}e^{-\alpha^{2}}\frac{\alpha^{N}}{\sqrt{N!}}\bigg{[}\frac{1+i^{N}}{(\sqrt{2})^{N}}\bigg{(}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{)}+e^{iN\pi/4}\bigg{(}c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}\bigg{)}\bigg{]}
=\displaystyle= 𝒩𝒩+ 2[1+(1)N]eα2αNN!{[eiNπ/4iNc1+1+iN(2)Nc0]|𝒞α+B+[eiNπ/4c0+1+iN(2)NiNc1]|𝒞iα+B}.\displaystyle\mathcal{N}\mathcal{N}_{+}^{\,2}\big{[}1+(-1)^{N}\big{]}e^{-\alpha^{2}}\frac{\alpha^{N}}{\sqrt{N!}}\bigg{\{}\bigg{[}e^{iN\pi/4}i^{N}c_{1}+\frac{1+i^{N}}{(\sqrt{2})^{N}}c_{0}\bigg{]}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+\bigg{[}e^{iN\pi/4}c_{0}+\frac{1+i^{N}}{(\sqrt{2})^{N}}i^{N}c_{1}\bigg{]}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{\}}.

Note that the probability is nonzero only when NN is even. Assume that N=2mN=2m with m1m\geq 1, then the conditional output state can be written as

0,0,0,2m|ΨBAACC\displaystyle\langle 0,0,0,2m|\Psi\rangle_{BAA^{\prime}CC^{\prime}} (45)
=\displaystyle= 2𝒩𝒩+ 2eα2α2m(2m)!{[im(1)mc1+1+(1)m2mc0]|𝒞α+B+[imc0+1+(1)m2m(1)mc1]|𝒞iα+B}\displaystyle 2\mathcal{N}\mathcal{N}_{+}^{\,2}e^{-\alpha^{2}}\frac{\alpha^{2m}}{\sqrt{(2m)!}}\bigg{\{}\bigg{[}i^{m}(-1)^{m}c_{1}+\frac{1+(-1)^{m}}{2^{m}}c_{0}\bigg{]}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+\bigg{[}i^{m}c_{0}+\frac{1+(-1)^{m}}{2^{m}}(-1)^{m}c_{1}\bigg{]}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{\}}
=\displaystyle= {2𝒩𝒩+ 2eα2α2m(2m)!im(c0|𝒞iα+Bc1|𝒞α+B),mis odd;2𝒩𝒩+ 2eα2α2m(2m)!{[imc1+12m1c0]|𝒞α+B+[imc0+12m1c1]|𝒞iα+B},mis even.\displaystyle\left\{\begin{array}[]{lc}2\mathcal{N}\mathcal{N}_{+}^{\,2}e^{-\alpha^{2}}\frac{\alpha^{2m}}{\sqrt{(2m)!}}i^{m}\big{(}c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}-c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}\big{)},&m~{}\text{is odd};\\ 2\mathcal{N}\mathcal{N}_{+}^{\,2}e^{-\alpha^{2}}\frac{\alpha^{2m}}{\sqrt{(2m)!}}\bigg{\{}\bigg{[}i^{m}c_{1}+\frac{1}{2^{m-1}}c_{0}\bigg{]}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+\bigg{[}i^{m}c_{0}+\frac{1}{2^{m-1}}c_{1}\bigg{]}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{\}},&m~{}\text{is even}.\end{array}\right.

It is thus evident that the input state can be recovered by first applying an encoded Pauli XX correction and then a Pauli ZZ correction when mm is odd, and the teleportation fails when mm is even.

In summary, when one of the PNR detectors detects 4k+24k+2 photons with kk an nonnegative integer, the teleportation succeeds; while when it detects 4k4k photons, the teleportation fails.

Finally, when all PNR detectors detect vacuum outputs, the teleportation fails. The conditional output state is

0,0,0,0|ΨBAACC=4𝒩𝒩+ 2eα2(c0+c1)(|𝒞α+B+|𝒞iα+B),\displaystyle\langle 0,0,0,0|\Psi\rangle_{BAA^{\prime}CC^{\prime}}=4\mathcal{N}\mathcal{N}_{+}^{\,2}e^{-\alpha^{2}}(c_{0}+c_{1})\big{(}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\big{)}, (46)

showing that the normalized output state is independent of the input state. The measurement probability is

P([0,0,0,0])=|0,0,0,0|ΨBAACC|2=32𝒩 2𝒩+ 4e2α2|c0+c1|2(1+𝒞α+|𝒞iα+).\displaystyle P([0,0,0,0])=|\langle 0,0,0,0|\Psi\rangle_{BAA^{\prime}CC^{\prime}}|^{2}=32\mathcal{N}^{\,2}\mathcal{N}_{+}^{\,4}e^{-2\alpha^{2}}|c_{0}+c_{1}|^{2}\big{(}1+\langle\mathcal{C}^{+}_{\alpha}|\mathcal{C}^{+}_{i\alpha}\rangle\big{)}. (47)

A.4 Teleportation failure probability and phase flip error rate

Table 6: Click patterns resulting in failure of teleportation.
Detect four vacuum outputs Detect three vacuum outputs (k1k\geq 1) Detect two vacuum outputs (n1,n21n_{1},n_{2}\geq 1, n1+n2n_{1}+n_{2} is even)
Click pattern [0,0,0,0][0,0,0,0] [4k,0,0,0][4k,0,0,0] [0,4k,0,0][0,4k,0,0] [0,0,4k,0][0,0,4k,0] [0,0,0,4k][0,0,0,4k] [n1,0,n2,0][n_{1},0,n_{2},0] [n1,0,0,n2][n_{1},0,0,n_{2}] [0,n1,n2,0][0,n_{1},n_{2},0] [0,n1,0,n2][0,n_{1},0,n_{2}]

The click patterns that result in failure of teleportation are listed in Table 6. The failure probability is the sum of the measurement probabilities of all these click patterns. Note that the failure probability depends on the input state. We plot the failure probability as a function of the cat-state amplitude α\alpha in Fig. 4 for several typical input states. We can see that for most input states the failure probability approaches to one when α0\alpha\rightarrow 0, however it decreases exponentially when α\alpha\rightarrow\infty. For comparison, we also plot the teleportation failure probability for the two-component cat code in Fig. 4. The relation between the failure probability and the cat-tate amplitude α\alpha for the two-component cat code is given by (without photon loss) Lund et al. (2008)

Pfail=21+e2α2\displaystyle P_{\rm fail}=\frac{2}{1+e^{2\alpha^{2}}} (48)

for input state |+L|+_{L}\rangle. It is evident that for a given amplitude α\alpha, the failure probability for the four-component cat code is higher than that for the two-component cat code. To keep the failure probability at the same level, the amplitude of the four-component cat code has to be approximately twice as big as that of the two-component cat code.

Refer to caption
Figure 4: Teleportation failure probability (located error rate). The upper four curves represent the failure probabilities of four-component cat code for input states |0L|0_{L}\rangle (blue square), |1L|1_{L}\rangle (red diamond), |+L|+_{L}\rangle (cyan circle), and |L|-_{L}\rangle (magenta triangle), respectively. As a comparison, the failure probability for the two-component cat code is also plotted (green pentagon).

The photon loss induces a phase flip error for the two-component cat code, and the phase flip error rate is given by Lund et al. (2008)

Ppf=12[1+sinh(2ϵ1)α2sinhα2].\displaystyle P_{\rm pf}=\frac{1}{2}\bigg{[}1+\frac{\sinh(2\epsilon-1)\alpha^{2}}{\sinh\alpha^{2}}\bigg{]}. (49)

Similarly, the photon loss also induces a phase flip error for the four-component cat code, although the single photon loss can be corrected. We plot the relation between the phase flip error rate and the photon loss for the two-component and four-component cat codes by requiring that the failure probabilities are at the same level in Fig. 3. In particular, Fig. 3 establishes a link between the photon loss for the two-component cat code and that for the four-component cat code for fixed failure probability PfailP_{\rm fail} and phase flip error rate PpfP_{\rm pf}. Given the photon loss threshold for two-component cat code, one can thus estimate the fault-tolerant threshold for the four-component cat code by using this relation.

Appendix B Correcting single photon loss in encoded state

In this section, we first briefly review the mechanism of correcting single photon loss using four-component cat code and then describe in detail a concrete procedure to correct single photon loss via teleportation.

The four-component cat code is specifically designed to correct single photon loss. This can be understood as follows. Define four states |ψα(k)|\psi_{\alpha}^{(k)}\rangle with k=0,1,2,3k=0,1,2,3 as

|ψα(0)\displaystyle|\psi_{\alpha}^{(0)}\rangle =\displaystyle= c0|𝒞α++c1|𝒞iα+,|ψα(1)=c0|𝒞α+ic1|𝒞iα,\displaystyle c_{0}|\mathcal{C}^{+}_{\alpha}\rangle+c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle,~{}~{}~{}~{}~{}~{}~{}~{}|\psi_{\alpha}^{(1)}\rangle=c_{0}|\mathcal{C}^{-}_{\alpha}\rangle+ic_{1}|\mathcal{C}^{-}_{i\alpha}\rangle,
|ψα(2)\displaystyle|\psi_{\alpha}^{(2)}\rangle =\displaystyle= c0|𝒞α+c1|𝒞iα+,|ψα(3)=c0|𝒞αic1|𝒞iα.\displaystyle c_{0}|\mathcal{C}^{+}_{\alpha}\rangle-c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle,~{}~{}~{}~{}~{}~{}~{}~{}|\psi_{\alpha}^{(3)}\rangle=c_{0}|\mathcal{C}^{-}_{\alpha}\rangle-ic_{1}|\mathcal{C}^{-}_{i\alpha}\rangle. (50)

Note that |ψα(0)|\psi_{\alpha}^{(0)}\rangle and |ψα(2)|\psi_{\alpha}^{(2)}\rangle contain even numbers of photon, and therefore they are in the code subspace; while |ψα(1)|\psi_{\alpha}^{(1)}\rangle and |ψα(3)|\psi_{\alpha}^{(3)}\rangle contain only odd numbers of photon, and therefore they are outside the code subspace. If a single photon is lost, these states are transformed as Leghtas et al. (2013)

|ψα(0)|ψα(1),|ψα(1)|ψα(2),|ψα(2)|ψα(3),|ψα(3)|ψα(0),\displaystyle|\psi_{\alpha}^{(0)}\rangle\rightarrow|\psi_{\alpha}^{(1)}\rangle,~{}~{}~{}~{}~{}~{}|\psi_{\alpha}^{(1)}\rangle\rightarrow|\psi_{\alpha}^{(2)}\rangle,~{}~{}~{}~{}~{}~{}|\psi_{\alpha}^{(2)}\rangle\rightarrow|\psi_{\alpha}^{(3)}\rangle,~{}~{}~{}~{}~{}~{}|\psi_{\alpha}^{(3)}\rangle\rightarrow|\psi_{\alpha}^{(0)}\rangle, (51)

or in a compact form:

|ψα(k)a^|ψα(k)a^|ψα(k)=|ψα[(k+1)mod 4].\displaystyle|\psi_{\alpha}^{(k)}\rangle\rightarrow\frac{{\hat{a}}|\psi_{\alpha}^{(k)}\rangle}{||{\hat{a}}|\psi_{\alpha}^{(k)}\rangle||}=|\psi_{\alpha}^{[(k+1)\,{\rm mod}\,4]}\rangle. (52)

Without loss of generality, we assume that the initial state is |ψα(0)|\psi_{\alpha}^{(0)}\rangle. To check whether there is single photon loss after a lossy channel, we can measure the parity operator Π^=eiπa^a^{\hat{\Pi}}=e^{i\pi{\hat{a}}^{\dagger}{\hat{a}}} because ψα(k)|Π^|ψα(k)=(1)k\langle\psi_{\alpha}^{(k)}|{\hat{\Pi}}|\psi_{\alpha}^{(k)}\rangle=(-1)^{k}. Suppose we perform a quantum nondemolition parity measurement: if the parity is 1, we conclude that there is no single photon loss and no further operations need to be applied; if the parity is 1-1, we conclude that there is single photon loss, namely, |ψα(0)|ψα(1)|\psi_{\alpha}^{(0)}\rangle\rightarrow|\psi_{\alpha}^{(1)}\rangle, we then apply a recovery map to bring the state |ψα(1)|\psi_{\alpha}^{(1)}\rangle to the initial state |ψα(0)|\psi_{\alpha}^{(0)}\rangle. The above error correction procedure works only when one photon is lost. If two or more photons are lost, the error correction procedure results in a wrong state. This is the intrinsic limitation of the four-component cat code. However, if the photon loss rate is sufficiently low, the error correction can significantly suppress the logical error rate.

To complete the error correction, one needs to overcome two challenges: (1) to check the photon number without destroying the state, and (2) to efficiently implement the recovery operation. Here we show that these two challenges can be overcome simultaneously by using teleportation. Assume that an encoded qubit with state |ψα(0)|\psi_{\alpha}^{(0)}\rangle goes through a lossy channel, and then is fed into the teleportation circuit shown in Fig. 1. After the lossy channel, the state could either be |ψα(0)|\psi_{\alpha}^{(0)}\rangle, corresponding to no single photon loss; or |ψα(1)|\psi_{\alpha}^{(1)}\rangle, corresponding to single photon loss. If there is no photon loss, the state is simply teleported to the output, as discussed in Appendix A; if there is single photon loss, the input of the teleportation circuit becomes

|ψinA=|ψα(1)A=c0|𝒞αA+ic1|𝒞iαA,\displaystyle|\psi_{\rm in}^{\,\prime}\rangle_{A}=|\psi_{\alpha}^{(1)}\rangle_{A}=c_{0}|\mathcal{C}^{-}_{\alpha}\rangle_{A}+ic_{1}|\mathcal{C}^{-}_{i\alpha}\rangle_{A}, (53)

where we have explicitly added the subscript “AA” to indicate the state at mode AA. The overall input state before teleportation is

|Ψin\displaystyle|\Psi_{\rm in}^{\,\prime}\rangle =\displaystyle= |ψinA|Φ0BC|0,0AC\displaystyle|\psi_{\rm in}^{\,\prime}\rangle_{A}\otimes|\Phi_{0}\rangle_{BC}\otimes|0,0\rangle_{A^{\prime}C^{\prime}} (54)
=\displaystyle= 𝒩[(c0|𝒞αA|𝒞α+C+ic1|𝒞iαA|𝒞α+C)|𝒞α+B+(c0|𝒞αA|𝒞iα+C+ic1|𝒞iαA|𝒞iα+C)|𝒞iα+B]|0,0AC.\displaystyle\mathcal{N}\left[\left(c_{0}|\mathcal{C}^{-}_{\alpha}\rangle_{A}|\mathcal{C}^{+}_{\alpha}\rangle_{C}+ic_{1}|\mathcal{C}^{-}_{i\alpha}\rangle_{A}|\mathcal{C}^{+}_{\alpha}\rangle_{C}\right)|\mathcal{C}^{+}_{\alpha}\rangle_{B}+\left(c_{0}|\mathcal{C}^{-}_{\alpha}\rangle_{A}|\mathcal{C}^{+}_{i\alpha}\rangle_{C}+ic_{1}|\mathcal{C}^{-}_{i\alpha}\rangle_{A}|\mathcal{C}^{+}_{i\alpha}\rangle_{C}\right)|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\right]\otimes|0,0\rangle_{A^{\prime}C^{\prime}}.

The teleportation circuit transforms the four components of the overall input state as follows:

|𝒞αA|𝒞α+C|0A|0C\displaystyle|\mathcal{C}^{-}_{\alpha}\rangle_{A}|\mathcal{C}^{+}_{\alpha}\rangle_{C}|0\rangle_{A^{\prime}}|0\rangle_{C^{\prime}} \displaystyle\longrightarrow |0,α,α2,α2+|α,0,iα2,iα2|α,0,iα2,iα2|0,α,α2,α2,\displaystyle\bigg{|}0,\alpha,-\frac{\alpha}{\sqrt{2}},\frac{\alpha}{\sqrt{2}}\bigg{\rangle}+\bigg{|}\alpha,0,\frac{i\alpha}{\sqrt{2}},\frac{i\alpha}{\sqrt{2}}\bigg{\rangle}-\bigg{|}-\alpha,0,-\frac{i\alpha}{\sqrt{2}},-\frac{i\alpha}{\sqrt{2}}\bigg{\rangle}-\bigg{|}0,-\alpha,\frac{\alpha}{\sqrt{2}},-\frac{\alpha}{\sqrt{2}}\bigg{\rangle},
|𝒞iαA|𝒞iα+C|0A|0C\displaystyle|\mathcal{C}^{-}_{i\alpha}\rangle_{A}|\mathcal{C}^{+}_{i\alpha}\rangle_{C}|0\rangle_{A^{\prime}}|0\rangle_{C^{\prime}} \displaystyle\longrightarrow |0,iα,iα2,iα2+|iα,0,α2,α2|iα,0,α2,α2|0,iα,iα2,iα2,\displaystyle\bigg{|}0,i\alpha,-\frac{i\alpha}{\sqrt{2}},\frac{i\alpha}{\sqrt{2}}\bigg{\rangle}+\bigg{|}i\alpha,0,-\frac{\alpha}{\sqrt{2}},-\frac{\alpha}{\sqrt{2}}\bigg{\rangle}-\bigg{|}-i\alpha,0,\frac{\alpha}{\sqrt{2}},\frac{\alpha}{\sqrt{2}}\bigg{\rangle}-\bigg{|}0,-i\alpha,\frac{i\alpha}{\sqrt{2}},-\frac{i\alpha}{\sqrt{2}}\bigg{\rangle},
|𝒞αA|𝒞iα+C|0A|0C\displaystyle|\mathcal{C}^{-}_{\alpha}\rangle_{A}|\mathcal{C}^{+}_{i\alpha}\rangle_{C}|0\rangle_{A^{\prime}}|0\rangle_{C^{\prime}} \displaystyle\longrightarrow |β2,β2,0,β+|β2,β2,β,0|β2,β2,β,0|β2,β2,0,β,\displaystyle\bigg{|}\frac{\beta^{*}}{\sqrt{2}},\frac{\beta}{\sqrt{2}},0,\beta\bigg{\rangle}+\bigg{|}\frac{\beta}{\sqrt{2}},\frac{\beta^{*}}{\sqrt{2}},-\beta^{*},0\bigg{\rangle}-\bigg{|}-\frac{\beta}{\sqrt{2}},-\frac{\beta^{*}}{\sqrt{2}},\beta^{*},0\bigg{\rangle}-\bigg{|}-\frac{\beta^{*}}{\sqrt{2}},-\frac{\beta}{\sqrt{2}},0,-\beta\bigg{\rangle},
|𝒞iαA|𝒞α+C|0A|0C\displaystyle|\mathcal{C}^{-}_{i\alpha}\rangle_{A}|\mathcal{C}^{+}_{\alpha}\rangle_{C}|0\rangle_{A^{\prime}}|0\rangle_{C^{\prime}} \displaystyle\longrightarrow |β2,β2,β,0+|β2,β2,0,β|β2,β2,0,β|β2,β2,β,0,\displaystyle\bigg{|}-\frac{\beta^{*}}{\sqrt{2}},\frac{\beta}{\sqrt{2}},-\beta,0\bigg{\rangle}+\bigg{|}\frac{\beta}{\sqrt{2}},-\frac{\beta^{*}}{\sqrt{2}},0,-\beta^{*}\bigg{\rangle}-\bigg{|}-\frac{\beta}{\sqrt{2}},\frac{\beta^{*}}{\sqrt{2}},0,\beta^{*}\bigg{\rangle}-\bigg{|}\frac{\beta^{*}}{\sqrt{2}},-\frac{\beta}{\sqrt{2}},\beta,0\bigg{\rangle},

where have defined β=αeiπ/4\beta=\alpha e^{i\pi/4}, and omitted the subscripts to simplify the notation and chosen the order of the modes as ``ACAC"``ACA^{\prime}C^{\prime}". By combining these results, we find that the output state after the teleportation circuit (before photon number measurement) is

|ΨBAACC=U^ACU^A(π/2)U^AAU^CCU^AC|Ψin\displaystyle|\Psi\rangle_{BAA^{\prime}CC^{\prime}}={\hat{U}}_{A^{\prime}C^{\prime}}{\hat{U}}_{A^{\prime}}(\pi/2){\hat{U}}_{AA^{\prime}}{\hat{U}}_{CC^{\prime}}{\hat{U}}_{AC}|\Psi_{\rm in}\rangle
\displaystyle\propto [(|0,α,α2,α2|0,α,α2,α2)c0|𝒞α+B+(|0,iα,iα2,iα2|0,iα,iα2,iα2)ic1|𝒞iα+B]\displaystyle\bigg{[}\bigg{(}\bigg{|}0,\alpha,-\frac{\alpha}{\sqrt{2}},\frac{\alpha}{\sqrt{2}}\bigg{\rangle}-\bigg{|}0,-\alpha,\frac{\alpha}{\sqrt{2}},-\frac{\alpha}{\sqrt{2}}\bigg{\rangle}\bigg{)}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+\bigg{(}\bigg{|}0,i\alpha,-\frac{i\alpha}{\sqrt{2}},\frac{i\alpha}{\sqrt{2}}\bigg{\rangle}-\bigg{|}0,-i\alpha,\frac{i\alpha}{\sqrt{2}},-\frac{i\alpha}{\sqrt{2}}\bigg{\rangle}\bigg{)}ic_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{]}
+[(|α,0,iα2,iα2|α,0,iα2,iα2)c0|𝒞α+B+(|iα,0,α2,α2|iα,0,α2,α2)ic1|𝒞iα+B]\displaystyle+\bigg{[}\bigg{(}\bigg{|}\alpha,0,\frac{i\alpha}{\sqrt{2}},\frac{i\alpha}{\sqrt{2}}\bigg{\rangle}-\bigg{|}-\alpha,0,-\frac{i\alpha}{\sqrt{2}},-\frac{i\alpha}{\sqrt{2}}\bigg{\rangle}\bigg{)}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+\bigg{(}\bigg{|}i\alpha,0,-\frac{\alpha}{\sqrt{2}},-\frac{\alpha}{\sqrt{2}}\bigg{\rangle}-\bigg{|}-i\alpha,0,\frac{\alpha}{\sqrt{2}},\frac{\alpha}{\sqrt{2}}\bigg{\rangle}\bigg{)}ic_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{]}
+[(|β2,β2,0,β|β2,β2,0,β)ic1|𝒞α+B+(|β2,β2,0,β|β2,β2,0,β)c0|𝒞iα+B]\displaystyle+\bigg{[}\bigg{(}\bigg{|}\frac{\beta}{\sqrt{2}},-\frac{\beta^{*}}{\sqrt{2}},0,-\beta^{*}\bigg{\rangle}-\bigg{|}-\frac{\beta}{\sqrt{2}},\frac{\beta^{*}}{\sqrt{2}},0,\beta^{*}\bigg{\rangle}\bigg{)}ic_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+\bigg{(}\bigg{|}\frac{\beta^{*}}{\sqrt{2}},\frac{\beta}{\sqrt{2}},0,\beta\bigg{\rangle}-\bigg{|}-\frac{\beta^{*}}{\sqrt{2}},-\frac{\beta}{\sqrt{2}},0,-\beta\bigg{\rangle}\bigg{)}c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{]}
+[(|β2,β2,β,0|β2,β2,β,0)ic1|𝒞α+B+(|β2,β2,β,0|β2,β2,β,0)c0|𝒞iα+B],\displaystyle+\bigg{[}\bigg{(}\bigg{|}-\frac{\beta^{*}}{\sqrt{2}},\frac{\beta}{\sqrt{2}},-\beta,0\bigg{\rangle}-\bigg{|}\frac{\beta^{*}}{\sqrt{2}},-\frac{\beta}{\sqrt{2}},\beta,0\bigg{\rangle}\bigg{)}ic_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+\bigg{(}\bigg{|}\frac{\beta}{\sqrt{2}},\frac{\beta^{*}}{\sqrt{2}},-\beta^{*},0\bigg{\rangle}-\bigg{|}-\frac{\beta}{\sqrt{2}},-\frac{\beta^{*}}{\sqrt{2}},\beta^{*},0\bigg{\rangle}\bigg{)}c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{]},

where the proportionality factor is 𝒩𝒩+𝒩\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}.

Four PNR detectors are used to count the number of photons at modes A,C,AA,C,A^{\prime} and CC^{\prime}, giving click patterns 𝒏=[nA,nC,nA,nC]{\boldsymbol{n}}=[n_{A},n_{C},n_{A^{\prime}},n_{C^{\prime}}]. We will derive the conditional output state and its occurring probability for a particular click pattern, from which one can explicitly see whether the input state can be recovered after the single photon loss. The results are summarized in Tables 7 and 8.

Table 7: Pauli corrections for error correction: click patterns with one vacuum output, single photon loss.
   [0,nC,nA,nC][0,n_{C},n_{A^{\prime}},n_{C^{\prime}}]    [nA,0,nA,nC][n_{A},0,n_{A^{\prime}},n_{C^{\prime}}]    [nA,nC,0,nC][n_{A},n_{C},0,n_{C^{\prime}}]    [nA,nC,nA,0][n_{A},n_{C},n_{A^{\prime}},0]
N=4k1N=4k-1 II II XX XX
N=4k+1N=4k+1 ZZ ZZ ZXZX ZXZX
Table 8: Pauli corrections for error correction: click patterns with two vacuum outputs, single photon loss.
  [0,0,nA,nC][0,0,n_{A^{\prime}},n_{C^{\prime}}]   [nA,nC,0,0][n_{A},n_{C},0,0]   [nA,0,nA,0][n_{A},0,n_{A^{\prime}},0]   [nA,0,0,nC][n_{A},0,0,n_{C^{\prime}}]   [0,nC,nA,0][0,n_{C},n_{A^{\prime}},0]   [0,nC,0,nC][0,n_{C},0,n_{C^{\prime}}]
N=4k1N=4k-1 II XX failed failed failed failed
N=4k+1N=4k+1 ZZ ZXZX failed failed failed failed

B.1 Absence of photon at one detector

We first consider situations where only one detector detects no photons and each of the other three detectors registers at least one photon. This includes four sorts of click pattern:

[0,nC,nA,nC],[nA,0,nA,nC],[nA,nC,0,nC],[nA,nC,nA,0].\displaystyle[0,n_{C},n_{A^{\prime}},n_{C^{\prime}}],~{}~{}~{}~{}~{}~{}[n_{A},0,n_{A^{\prime}},n_{C^{\prime}}],~{}~{}~{}~{}~{}~{}[n_{A},n_{C},0,n_{C^{\prime}}],~{}~{}~{}~{}~{}~{}[n_{A},n_{C},n_{A^{\prime}},0].

It is found that the initial state can be recovered for all these click patterns by applying appropriate Pauli corrections. This is summarized in Table 7. The detailed analysis is given as follows.

(i) nA=0n_{A}=0, no click at mode AA.

The detector at mode AA detects no photons, namely, the measurement outcome is 𝒏=[0,nC,nA,nC]{\boldsymbol{n}}=[0,n_{C},n_{A^{\prime}},n_{C^{\prime}}]. The conditional output state is

0,nC,nA,nC|ΨBAACC=𝒩𝒩+𝒩eα2nC!nA!nC!(1)nAαN(2)nA+nC[1(1)N](c0|𝒞α+B+iN+1c1|𝒞iα+B).\displaystyle\langle 0,n_{C},n_{A^{\prime}},n_{C^{\prime}}|\Psi\rangle_{BAA^{\prime}CC^{\prime}}=\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}\frac{e^{-\alpha^{2}}}{\sqrt{n_{C}!\,n_{A^{\prime}}!\,n_{C^{\prime}}!}}\frac{(-1)^{n_{A^{\prime}}}\alpha^{N}}{(\sqrt{2})^{n_{A^{\prime}}+n_{C^{\prime}}}}\big{[}1-(-1)^{N}\big{]}\bigg{(}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{)}. (56)

This implies the (unnormalized) output state at mode BB is

|ψ1=c0|𝒞α+B+iN+1c1|𝒞iα+B,\displaystyle|\psi_{1}\rangle=c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}, (57)

and the measurement probability is

P([0,nC,nA,nC])=𝒩 2𝒩+ 2𝒩 2e2α2nC!nA!nC!α2N2nA+nC[1(1)N]2|ψ1|ψ1|2.\displaystyle P([0,n_{C},n_{A^{\prime}},n_{C^{\prime}}])=\mathcal{N}^{\,2}\mathcal{N}_{+}^{\,2}\mathcal{N}_{-}^{\,2}\frac{e^{-2\alpha^{2}}}{n_{C}!\,n_{A^{\prime}}!\,n_{C^{\prime}}!}\frac{\alpha^{2N}}{2^{n_{A^{\prime}}+n_{C^{\prime}}}}\big{[}1-(-1)^{N}\big{]}^{2}|\langle\psi_{1}|\psi_{1}\rangle|^{2}. (58)

(ii) nC=0n_{C}=0, no click at mode CC.

The detector at mode CC detects no photons, namely, the measurement outcome is 𝒏=[nA,0,nA,nC]{\boldsymbol{n}}=[n_{A},0,n_{A^{\prime}},n_{C^{\prime}}]. The conditional output state is

nA,0,nA,nC|ΨBAACC=𝒩𝒩+𝒩eα2nA!nA!nC!inA+nCαN(2)nA+nC[1(1)N](c0|𝒞α+B+iN+1c1|𝒞iα+B).\displaystyle\langle n_{A},0,n_{A^{\prime}},n_{C^{\prime}}|\Psi\rangle_{BAA^{\prime}CC^{\prime}}=\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}\frac{e^{-\alpha^{2}}}{\sqrt{n_{A}!\,n_{A^{\prime}}!\,n_{C^{\prime}}!}}\frac{i^{n_{A^{\prime}}+n_{C^{\prime}}}\alpha^{N}}{(\sqrt{2})^{n_{A^{\prime}}+n_{C^{\prime}}}}\big{[}1-(-1)^{N}\big{]}\bigg{(}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{)}. (59)

This implies the (unnormalized) output state at mode BB is

|ψ2=c0|𝒞α+B+iN+1c1|𝒞iα+B,\displaystyle|\psi_{2}\rangle=c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}, (60)

and the measurement probability is

P([nA,0,nA,nC])=𝒩 2𝒩+ 2𝒩 2e2α2nA!nA!nC!α2N2nA+nC[1(1)N]2|ψ2|ψ2|2.\displaystyle P([n_{A},0,n_{A^{\prime}},n_{C^{\prime}}])=\mathcal{N}^{\,2}\mathcal{N}_{+}^{\,2}\mathcal{N}_{-}^{\,2}\frac{e^{-2\alpha^{2}}}{n_{A}!\,n_{A^{\prime}}!\,n_{C^{\prime}}!}\frac{\alpha^{2N}}{2^{n_{A^{\prime}}+n_{C^{\prime}}}}\big{[}1-(-1)^{N}\big{]}^{2}|\langle\psi_{2}|\psi_{2}\rangle|^{2}. (61)

(iii) nA=0n_{A^{\prime}}=0, no click at mode AA^{\prime}.

The detector at mode AA^{\prime} detects no photons, namely, the measurement outcome is 𝒏=[nA,nC,0,nC]{\boldsymbol{n}}=[n_{A},n_{C},0,n_{C^{\prime}}]. The conditional output state is

nA,nC,0,nC|ΨBAACC=𝒩𝒩+𝒩eα2nA!nC!nC!eiπ(nAnCnC)/4αN(2)nA+nC[1(1)N](c0|𝒞iα+B+iN+1c1|𝒞α+B)\displaystyle\langle n_{A},n_{C},0,n_{C^{\prime}}|\Psi\rangle_{BAA^{\prime}CC^{\prime}}=\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}\frac{e^{-\alpha^{2}}}{\sqrt{n_{A}!\,n_{C}!\,n_{C^{\prime}}!}}\frac{e^{-i\pi(n_{A}-n_{C}-n_{C^{\prime}})/4}\alpha^{N}}{(\sqrt{2})^{n_{A}+n_{C}}}\big{[}1-(-1)^{N}\big{]}\bigg{(}c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}\bigg{)}

This implies the (unnormalized) output state at mode BB is

|ψ3=c0|𝒞iα+B+iN+1c1|𝒞α+B,\displaystyle|\psi_{3}\rangle=c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}, (63)

and the measurement probability is

P([nA,nC,0,nC])=𝒩 2𝒩+ 2𝒩 2e2α2nA!nC!nC!α2N2nA+nC[1(1)N]2|ψ3|ψ3|2.\displaystyle P([n_{A},n_{C},0,n_{C^{\prime}}])=\mathcal{N}^{\,2}\mathcal{N}_{+}^{\,2}\mathcal{N}_{-}^{\,2}\frac{e^{-2\alpha^{2}}}{n_{A}!\,n_{C}!\,n_{C^{\prime}}!}\frac{\alpha^{2N}}{2^{n_{A}+n_{C}}}\big{[}1-(-1)^{N}\big{]}^{2}|\langle\psi_{3}|\psi_{3}\rangle|^{2}. (64)

(iv) nC=0n_{C^{\prime}}=0, no click at mode CC^{\prime}.

The detector at mode CC^{\prime} detects no photons, namely, the measurement outcome is 𝒏=[nA,nC,nA,0]{\boldsymbol{n}}=[n_{A},n_{C},n_{A^{\prime}},0]. The conditional output state is

nA,nC,nA,0|ΨBAACC\displaystyle\langle n_{A},n_{C},n_{A^{\prime}},0|\Psi\rangle_{BAA^{\prime}CC^{\prime}} =\displaystyle= 𝒩𝒩+𝒩eα2nA!nC!nA!(1)nAeiπ(nAnCnA)/4αN(2)nA+nC\displaystyle\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}\frac{e^{-\alpha^{2}}}{\sqrt{n_{A}!\,n_{C}!\,n_{A^{\prime}}!}}\frac{(-1)^{n_{A^{\prime}}}e^{i\pi(n_{A}-n_{C}-n_{A^{\prime}})/4}\alpha^{N}}{(\sqrt{2})^{n_{A}+n_{C}}} (65)
×[1(1)N](c0|𝒞iα+B+iN+1c1|𝒞α+B).\displaystyle\times\big{[}1-(-1)^{N}\big{]}\bigg{(}c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}\bigg{)}.

This implies the (unnormalized) output state at mode BB is

|ψ4=c0|𝒞iα+B+iN+1c1|𝒞α+B,\displaystyle|\psi_{4}\rangle=c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}, (66)

and the measurement probability is

P([nA,nC,nA,0])=𝒩 2𝒩+ 2𝒩 2e2α2nA!nC!nA!α2N2nA+nC[1(1)N]2|ψ4|ψ4|2.\displaystyle P([n_{A},n_{C},n_{A^{\prime}},0])=\mathcal{N}^{\,2}\mathcal{N}_{+}^{\,2}\mathcal{N}_{-}^{\,2}\frac{e^{-2\alpha^{2}}}{n_{A}!\,n_{C}!\,n_{A^{\prime}}!}\frac{\alpha^{2N}}{2^{n_{A}+n_{C}}}\big{[}1-(-1)^{N}\big{]}^{2}|\langle\psi_{4}|\psi_{4}\rangle|^{2}. (67)

It is evident that for cases (i)-(iv) the total number of detected photon is odd when there is single photon loss. However, the total number of detected photon is even when there is no single photon loss, as discussed in Appendix A. Therefore, the total number of detected photon is an indicator of the parity, namely, the total photon number can tell whether there is single photon loss or not. The photon number counting thus completes the first step of error correction: the syndrome measurement.

In cases (i) and (ii), the output state is

|ψout=c0|𝒞α+B+iN+1c1|𝒞iα+B.\displaystyle|\psi_{\rm out}\rangle=c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}. (68)

When N=4k1N=4k-1, the output state |ψout=|ψα(0)|\psi_{\rm out}\rangle=|\psi_{\alpha}^{(0)}\rangle, namely, the initial state |ψα(0)|\psi_{\alpha}^{(0)}\rangle can be recovered without further operations; when N=4k+1N=4k+1, |ψout=c0|𝒞α+Bc1|𝒞iα+B=Z|ψα(0)|\psi_{\rm out}\rangle=c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}-c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}=Z|\psi_{\alpha}^{(0)}\rangle, namely, the initial state |ψα(0)|\psi_{\alpha}^{(0)}\rangle can be recovered by applying an encoded Pauli ZZ operation. This completes the second step of error correction: converting the faulty state |ψα(1)|\psi_{\alpha}^{(1)}\rangle back to the initial state |ψα(0)|\psi_{\alpha}^{(0)}\rangle.

In cases (iii) and (iv), the output state is

|ψout=c0|𝒞iα+B+iN+1c1|𝒞α+B.\displaystyle|\psi_{\rm out}\rangle=c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}. (69)

When N=4k1N=4k-1, the output state |ψout=X|ψα(0)|\psi_{\rm out}\rangle=X|\psi_{\alpha}^{(0)}\rangle, namely, the initial state |ψα(0)|\psi_{\alpha}^{(0)}\rangle can be recovered by applying an encoded Pauli XX operation, which is simply a π2\frac{\pi}{2} phase shift; when N=4k+1N=4k+1, |ψout=c0|𝒞iα+Bc1|𝒞α+B=XZ|ψα(0)|\psi_{\rm out}\rangle=c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}-c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}=XZ|\psi_{\alpha}^{(0)}\rangle, namely, the initial state |ψα(0)|\psi_{\alpha}^{(0)}\rangle can be recovered by first applying an encoded Pauli XX operation and then a Pauli ZZ operation. This completes the second step of error correction: converting the faulty state |ψα(1)|\psi_{\alpha}^{(1)}\rangle back to the intial state |ψα(0)|\psi_{\alpha}^{(0)}\rangle.

In summary, the teleportation provides a concrete scheme for correcting single photon loss. The PNR detection outcomes tell whether there is single photon loss. If the total number of detected photon is even, one concludes that there is no photon loss and the circuit simply teleports the initial state to the output; if the total number of detected photon is odd, one concludes that there is single photon loss and the circuit recovers the faulty state to the initial state. However, the error correction fails if two or more photons are lost, which is the intrinsic limitation of the four-component cat code.

B.2 Absence of photons at two detectors

When two detectors detect no photons and each of the other two detectors registers at least one photon, the initial state can be recovered for click patterns:

[0,0,nA,nC],[nA,nC,0,0],\displaystyle[0,0,n_{A^{\prime}},n_{C^{\prime}}],~{}~{}~{}~{}~{}~{}[n_{A},n_{C},0,0],

and cannot be recovered for click patterns:

[nA,0,nA,0],[nA,0,0,nC],[0,nC,nA,0],[0,nC,0,nC].\displaystyle[n_{A},0,n_{A^{\prime}},0],~{}~{}~{}~{}~{}~{}[n_{A},0,0,n_{C^{\prime}}],~{}~{}~{}~{}~{}~{}[0,n_{C},n_{A^{\prime}},0],~{}~{}~{}~{}~{}~{}[0,n_{C},0,n_{C^{\prime}}].

The results are summarized in Table 8 and the detailed analysis is given as follows.

(i) nA=nC=0n_{A}=n_{C}=0.

The detectors at modes AA and CC detect no photons, namely, the measurement outcome is 𝒏=[0,0,nA,nC]{\boldsymbol{n}}=[0,0,n_{A^{\prime}},n_{C^{\prime}}] with nA0n_{A^{\prime}}\neq 0 and nC0n_{C^{\prime}}\neq 0. The conditional output state is

0,0,nA,nC|ΨBAACC=𝒩𝒩+𝒩eα2nA!nC!iNαN(2)N[1(1)N](1+inAnC)(c0|𝒞α+B+iN+1c1|𝒞iα+B).\displaystyle\langle 0,0,n_{A^{\prime}},n_{C^{\prime}}|\Psi\rangle_{BAA^{\prime}CC^{\prime}}=\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}\frac{e^{-\alpha^{2}}}{\sqrt{n_{A^{\prime}}!\,n_{C^{\prime}}!}}\frac{i^{N}\alpha^{N}}{(\sqrt{2})^{N}}\big{[}1-(-1)^{N}\big{]}\big{(}1+i^{n_{A^{\prime}}-n_{C^{\prime}}}\big{)}\bigg{(}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{)}. (70)

This implies the (unnormalized) output state at mode BB is

|ψ5=c0|𝒞α+B+iN+1c1|𝒞iα+B,\displaystyle|\psi_{5}\rangle=c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}, (71)

and the measurement probability is

P([0,0,nA,nC])=𝒩 2𝒩+ 2𝒩 2e2α2nA!nC!α2N2N[1(1)N]2|1+inAnC|2|ψ5|ψ5|2.\displaystyle P([0,0,n_{A^{\prime}},n_{C^{\prime}}])=\mathcal{N}^{\,2}\mathcal{N}_{+}^{\,2}\mathcal{N}_{-}^{\,2}\frac{e^{-2\alpha^{2}}}{n_{A^{\prime}}!\,n_{C^{\prime}}!}\frac{\alpha^{2N}}{2^{N}}\big{[}1-(-1)^{N}\big{]}^{2}\big{|}1+i^{n_{A^{\prime}}-n_{C^{\prime}}}\big{|}^{2}|\langle\psi_{5}|\psi_{5}\rangle|^{2}. (72)

The measurement probability is nonzero when NN is odd.

(ii) nA=nC=0n_{A^{\prime}}=n_{C^{\prime}}=0.

The detectors at modes AA^{\prime} and CC^{\prime} detect no photons, namely, the measurement outcome is 𝒏=[nA,nC,0,0]{\boldsymbol{n}}=[n_{A},n_{C},0,0] with nA0n_{A}\neq 0 and nC0n_{C}\neq 0. The conditional output state is

nA,nC,0,0|ΨBAACC\displaystyle\langle n_{A},n_{C},0,0|\Psi\rangle_{BAA^{\prime}CC^{\prime}} =\displaystyle= 𝒩𝒩+𝒩eα2nA!nC!eiπ(nAnC)/4αN(2)N\displaystyle\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}\frac{e^{-\alpha^{2}}}{\sqrt{n_{A}!\,n_{C}!}}\frac{e^{-i\pi(n_{A}-n_{C})/4}\alpha^{N}}{(\sqrt{2})^{N}} (73)
×[1(1)N](1+inAnC)(c0|𝒞iα+B+iN+1c1|𝒞α+B).\displaystyle\times\big{[}1-(-1)^{N}\big{]}\big{(}1+i^{n_{A}-n_{C}}\big{)}\bigg{(}c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}\bigg{)}.

This implies the (unnormalized) output state at mode BB is

|ψ6=c0|𝒞iα+B+iN+1c1|𝒞α+B.\displaystyle|\psi_{6}\rangle=c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}. (74)

and the measurement probability is

P([nA,nC,0,0])=𝒩 2𝒩+ 2𝒩 2e2α2nA!nC!α2N2N[1(1)N]2|1+inAnC|2|ψ6|ψ6|2.\displaystyle P([n_{A},n_{C},0,0])=\mathcal{N}^{\,2}\mathcal{N}_{+}^{\,2}\mathcal{N}_{-}^{\,2}\frac{e^{-2\alpha^{2}}}{n_{A}!\,n_{C}!}\frac{\alpha^{2N}}{2^{N}}\big{[}1-(-1)^{N}\big{]}^{2}\big{|}1+i^{n_{A}-n_{C}}\big{|}^{2}|\langle\psi_{6}|\psi_{6}\rangle|^{2}. (75)

The measurement probability is nonzero when NN is odd.

(iii) nC=nC=0n_{C}=n_{C^{\prime}}=0.

The detectors at modes CC and CC^{\prime} detect no photons, namely, the measurement outcome is 𝒏=[nA,0,nA,0]{\boldsymbol{n}}=[n_{A},0,n_{A^{\prime}},0] with nA0n_{A}\neq 0 and nA0n_{A^{\prime}}\neq 0. The conditional output state is

nA,0,nA,0|ΨBAACC\displaystyle\langle n_{A},0,n_{A^{\prime}},0|\Psi\rangle_{BAA^{\prime}CC^{\prime}} (76)
=\displaystyle= 𝒩𝒩+𝒩eα2nA!nA!αN[1(1)N]inA[1(2)nA(c0|𝒞α+B+iN+1c1|𝒞iα+B,)\displaystyle\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}\frac{e^{-\alpha^{2}}}{\sqrt{n_{A}!\,n_{A^{\prime}}!}}\alpha^{N}\big{[}1-(-1)^{N}\big{]}i^{n_{A^{\prime}}}\bigg{[}\frac{1}{(\sqrt{2})^{n_{A^{\prime}}}}\bigg{(}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B},\bigg{)}
+eiπN/4(2)nA(c0|𝒞iα+B+iN+1c1|𝒞α+B,)]\displaystyle+\frac{e^{i\pi N/4}}{(\sqrt{2})^{n_{A}}}\bigg{(}c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B},\bigg{)}\bigg{]}
=\displaystyle= 𝒩𝒩+𝒩[1(1)N]eα2αNnA!nA!inA{[1(2)nAc0+eiNπ/4(2)nAiN+1c1]|𝒞α+B\displaystyle\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}\big{[}1-(-1)^{N}\big{]}e^{-\alpha^{2}}\frac{\alpha^{N}}{\sqrt{n_{A}!n_{A^{\prime}}!}}i^{n_{A^{\prime}}}\bigg{\{}\bigg{[}\frac{1}{(\sqrt{2})^{n_{A^{\prime}}}}c_{0}+\frac{e^{iN\pi/4}}{(\sqrt{2})^{n_{A}}}i^{N+1}c_{1}\bigg{]}|\mathcal{C}^{+}_{\alpha}\rangle_{B}
+[1(2)nAiN+1c1+eiNπ/4(2)nAc0]|𝒞iα+B}.\displaystyle+\bigg{[}\frac{1}{(\sqrt{2})^{n_{A^{\prime}}}}i^{N+1}c_{1}+\frac{e^{iN\pi/4}}{(\sqrt{2})^{n_{A}}}c_{0}\bigg{]}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{\}}.

The initial state cannot be recovered.

(iv) nC=nA=0n_{C}=n_{A^{\prime}}=0.

The detectors at modes CC and AA^{\prime} detect no photons, namely, the measurement outcome is 𝒏=[nA,0,0,nC]{\boldsymbol{n}}=[n_{A},0,0,n_{C^{\prime}}] with nA0n_{A}\neq 0 and nC0n_{C^{\prime}}\neq 0. The conditional output state is

nA,0,0,nC|ΨBAACC\displaystyle\langle n_{A},0,0,n_{C^{\prime}}|\Psi\rangle_{BAA^{\prime}CC^{\prime}} (77)
=\displaystyle= 𝒩𝒩+𝒩eα2nA!nC!αN[1(1)N]inC[1(2)nC(c0|𝒞α+B+iN+1c1|𝒞iα+B,)\displaystyle\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}\frac{e^{-\alpha^{2}}}{\sqrt{n_{A}!\,n_{C^{\prime}}!}}\alpha^{N}\big{[}1-(-1)^{N}\big{]}i^{n_{C^{\prime}}}\bigg{[}\frac{1}{(\sqrt{2})^{n_{C^{\prime}}}}\bigg{(}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B},\bigg{)}
+eiNπ/4(2)nA(c0|𝒞iα+B+iN+1c1|𝒞α+B,)]\displaystyle+\frac{e^{-iN\pi/4}}{(\sqrt{2})^{n_{A}}}\bigg{(}c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B},\bigg{)}\bigg{]}
=\displaystyle= 𝒩𝒩+𝒩eα2nA!nC!αN[1(1)N]inC{[1(2)nCc0+eiNπ/4(2)nAiN+1c1]|𝒞α+B\displaystyle\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}\frac{e^{-\alpha^{2}}}{\sqrt{n_{A}!\,n_{C^{\prime}}!}}\alpha^{N}\big{[}1-(-1)^{N}\big{]}i^{n_{C^{\prime}}}\bigg{\{}\bigg{[}\frac{1}{(\sqrt{2})^{n_{C^{\prime}}}}c_{0}+\frac{e^{-iN\pi/4}}{(\sqrt{2})^{n_{A}}}i^{N+1}c_{1}\bigg{]}|\mathcal{C}^{+}_{\alpha}\rangle_{B}
+[1(2)nCiN+1c1+eiNπ/4(2)nAc0]|𝒞iα+B}.\displaystyle+\bigg{[}\frac{1}{(\sqrt{2})^{n_{C^{\prime}}}}i^{N+1}c_{1}+\frac{e^{-iN\pi/4}}{(\sqrt{2})^{n_{A}}}c_{0}\bigg{]}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{\}}.

The initial state cannot be recovered.

(v) nA=nC=0n_{A}=n_{C^{\prime}}=0.

The detectors at modes AA and CC^{\prime} detect no photons, namely, the measurement outcome is 𝒏=[0,nC,nA,0]{\boldsymbol{n}}=[0,n_{C},n_{A^{\prime}},0] with nC0n_{C}\neq 0 and nA0n_{A^{\prime}}\neq 0. The conditional output state is

0,nC,nA,0|ΨBAACC\displaystyle\langle 0,n_{C},n_{A^{\prime}},0|\Psi\rangle_{BAA^{\prime}CC^{\prime}} (78)
=\displaystyle= 𝒩𝒩+𝒩eα2nC!nA!αN[1(1)N](1)nA[1(2)nA(c0|𝒞α+B+iN+1c1|𝒞iα+B,)\displaystyle\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}\frac{e^{-\alpha^{2}}}{\sqrt{n_{C}!\,n_{A^{\prime}}!}}\alpha^{N}\big{[}1-(-1)^{N}\big{]}(-1)^{n_{A^{\prime}}}\bigg{[}\frac{1}{(\sqrt{2})^{n_{A^{\prime}}}}\bigg{(}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B},\bigg{)}
+eiNπ/4(2)nC(c0|𝒞iα+B+iN+1c1|𝒞α+B,)]\displaystyle+\frac{e^{-iN\pi/4}}{(\sqrt{2})^{n_{C}}}\bigg{(}c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B},\bigg{)}\bigg{]}
=\displaystyle= 𝒩𝒩+𝒩eα2nC!nA!αN[1(1)N](1)nA{[1(2)nAc0+eiNπ/4(2)nCiN+1c1]|𝒞α+B\displaystyle\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}\frac{e^{-\alpha^{2}}}{\sqrt{n_{C}!\,n_{A^{\prime}}!}}\alpha^{N}\big{[}1-(-1)^{N}\big{]}(-1)^{n_{A^{\prime}}}\bigg{\{}\bigg{[}\frac{1}{(\sqrt{2})^{n_{A^{\prime}}}}c_{0}+\frac{e^{-iN\pi/4}}{(\sqrt{2})^{n_{C}}}i^{N+1}c_{1}\bigg{]}|\mathcal{C}^{+}_{\alpha}\rangle_{B}
+[1(2)nAiN+1c1+eiNπ/4(2)nCc0]|𝒞iα+B}.\displaystyle+\bigg{[}\frac{1}{(\sqrt{2})^{n_{A^{\prime}}}}i^{N+1}c_{1}+\frac{e^{-iN\pi/4}}{(\sqrt{2})^{n_{C}}}c_{0}\bigg{]}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{\}}.

The initial state cannot be recovered.

(vi) nA=nA=0n_{A}=n_{A^{\prime}}=0.

The detectors at modes AA and AA^{\prime} detect no photons, namely, the measurement outcome is 𝒏=[0,nC,0,nC]{\boldsymbol{n}}=[0,n_{C},0,n_{C^{\prime}}] with nC0n_{C}\neq 0 and nC0n_{C^{\prime}}\neq 0. The conditional output state is

0,nC,0,nC|ΨBAACC\displaystyle\langle 0,n_{C},0,n_{C^{\prime}}|\Psi\rangle_{BAA^{\prime}CC^{\prime}} (79)
=\displaystyle= 𝒩𝒩+𝒩eα2nC!nC!αN[1(1)N][1(2)nC(c0|𝒞α+B+iN+1c1|𝒞iα+B,)\displaystyle\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}\frac{e^{-\alpha^{2}}}{\sqrt{n_{C}!\,n_{C^{\prime}}!}}\alpha^{N}\big{[}1-(-1)^{N}\big{]}\bigg{[}\frac{1}{(\sqrt{2})^{n_{C^{\prime}}}}\bigg{(}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B},\bigg{)}
+eiNπ/4(2)nC(c0|𝒞iα+B+iN+1c1|𝒞α+B,)]\displaystyle+\frac{e^{iN\pi/4}}{(\sqrt{2})^{n_{C}}}\bigg{(}c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B},\bigg{)}\bigg{]}
=\displaystyle= 𝒩𝒩+𝒩eα2nC!nC!αN[1(1)N]{[1(2)nCc0+eiNπ/4(2)nCiN+1c1]|𝒞α+B\displaystyle\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}\frac{e^{-\alpha^{2}}}{\sqrt{n_{C}!\,n_{C^{\prime}}!}}\alpha^{N}\big{[}1-(-1)^{N}\big{]}\bigg{\{}\bigg{[}\frac{1}{(\sqrt{2})^{n_{C^{\prime}}}}c_{0}+\frac{e^{iN\pi/4}}{(\sqrt{2})^{n_{C}}}i^{N+1}c_{1}\bigg{]}|\mathcal{C}^{+}_{\alpha}\rangle_{B}
+[1(2)nCiN+1c1+eiNπ/4(2)nCc0]|𝒞iα+B}.\displaystyle+\bigg{[}\frac{1}{(\sqrt{2})^{n_{C^{\prime}}}}i^{N+1}c_{1}+\frac{e^{iN\pi/4}}{(\sqrt{2})^{n_{C}}}c_{0}\bigg{]}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{\}}.

The initial state cannot be recovered.

B.3 Absence of photons at three detectors

When only one detector registers photons, the teleportation fails and the initial state cannot be recovered. These click patterns include:

[nA,0,0,0],[0,nC,0,0],[0,0,nA,0],[0,0,0,nC].\displaystyle[n_{A},0,0,0],~{}~{}~{}~{}~{}~{}[0,n_{C},0,0],~{}~{}~{}~{}~{}~{}[0,0,n_{A^{\prime}},0],~{}~{}~{}~{}~{}~{}[0,0,0,n_{C^{\prime}}].

We explicitly write down the conditional output states for these click patterns, from which one can see clearly why the error correction fails.

(i) nA=N0n_{A}=N\neq 0.

The detector at mode AA detects photons, namely, the measurement outcome is 𝒏=[N,0,0,0]{\boldsymbol{n}}=[N,0,0,0]. The conditional output state is

N,0,0,0|ΨBAACC\displaystyle\langle N,0,0,0|\Psi\rangle_{BAA^{\prime}CC^{\prime}} (80)
=\displaystyle= 𝒩𝒩+𝒩[1(1)N]eα2αNN![(c0|𝒞α+B+iN+1c1|𝒞iα+B)+eiNπ/4+eiNπ/4(2)N(c0|𝒞iα+B+iN+1c1|𝒞α+B)]\displaystyle\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}\big{[}1-(-1)^{N}\big{]}e^{-\alpha^{2}}\frac{\alpha^{N}}{\sqrt{N!}}\bigg{[}\bigg{(}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{)}+\frac{e^{iN\pi/4}+e^{-iN\pi/4}}{(\sqrt{2})^{N}}\bigg{(}c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}\bigg{)}\bigg{]}
=\displaystyle= 𝒩𝒩+𝒩[1(1)N]eα2αNN!{[c0+2cos(Nπ/4)(2)NiN+1c1]|𝒞α+B+[iN+1c1+2cos(Nπ/4)(2)Nc0]|𝒞iα+B}.\displaystyle\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}\big{[}1-(-1)^{N}\big{]}e^{-\alpha^{2}}\frac{\alpha^{N}}{\sqrt{N!}}\bigg{\{}\bigg{[}c_{0}+\frac{2\cos(N\pi/4)}{(\sqrt{2})^{N}}i^{N+1}c_{1}\bigg{]}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+\bigg{[}i^{N+1}c_{1}+\frac{2\cos(N\pi/4)}{(\sqrt{2})^{N}}c_{0}\bigg{]}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{\}}.

The initial state cannot be recovered.

(ii) nC=N0n_{C}=N\neq 0.

The detector at mode CC detects photons, namely, the measurement outcome is 𝒏=[0,N,0,0]{\boldsymbol{n}}=[0,N,0,0]. The conditional output state is the same as case (i) and the initial state cannot be recovered.

(iii) nA=N0n_{A^{\prime}}=N\neq 0.

The detector at mode AA^{\prime} detects photons, namely, the measurement outcome is 𝒏=[0,0,N,0]{\boldsymbol{n}}=[0,0,N,0]. The conditional output state is

0,0,N,0|ΨBAACC\displaystyle\langle 0,0,N,0|\Psi\rangle_{BAA^{\prime}CC^{\prime}}
=\displaystyle= 𝒩𝒩+𝒩[1(1)N]eα2αNN!iN[1+iN(2)N(c0|𝒞α+B+iN+1c1|𝒞iα+B)+eiNπ/4(c0|𝒞iα+B+iN+1c1|𝒞α+B)]\displaystyle\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}\big{[}1-(-1)^{N}\big{]}e^{-\alpha^{2}}\frac{\alpha^{N}}{\sqrt{N!}}i^{N}\bigg{[}\frac{1+i^{N}}{(\sqrt{2})^{N}}\bigg{(}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{)}+e^{iN\pi/4}\bigg{(}c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}\bigg{)}\bigg{]}
=\displaystyle= 𝒩𝒩+𝒩[1(1)N]eα2αNN!iN{[eiNπ/4iN+1c1+1+iN(2)Nc0]|𝒞α+B+[eiNπ/4c0+1+iN(2)NiN+1c1]|𝒞iα+B}.\displaystyle\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}\big{[}1-(-1)^{N}\big{]}e^{-\alpha^{2}}\frac{\alpha^{N}}{\sqrt{N!}}i^{N}\bigg{\{}\bigg{[}e^{iN\pi/4}i^{N+1}c_{1}+\frac{1+i^{N}}{(\sqrt{2})^{N}}c_{0}\bigg{]}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+\bigg{[}e^{iN\pi/4}c_{0}+\frac{1+i^{N}}{(\sqrt{2})^{N}}i^{N+1}c_{1}\bigg{]}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{\}}.

The initial state cannot be recovered.

(iv) nC=N0n_{C^{\prime}}=N\neq 0.

The detector at mode CC^{\prime} detects photons, namely, the measurement outcome is 𝒏=[0,0,0,N]{\boldsymbol{n}}=[0,0,0,N]. The conditional output state is the same as case (iii) except a global phase iNi^{N}, and the initial state cannot be recovered.

Appendix C Correcting single photon loss in Bell state

In this section, we discuss the correction of single photon loss in the entangled Bell state.

Ideally, the entangled resource state used for teleportation is given by Eq. (1). If a single photon is lost in mode CC before coupling with the encoded input state, then the entangled resource becomes

|Φ0BC=𝒩(|𝒞α+B|𝒞αC+i|𝒞iα+B|𝒞iαC).\displaystyle|\Phi_{0}^{\,\prime}\rangle_{BC}=\mathcal{N}\left(|\mathcal{C}^{+}_{\alpha}\rangle_{B}|\mathcal{C}^{-}_{\alpha}\rangle_{C}+i\,|\mathcal{C}^{+}_{i\alpha}\rangle_{B}|\mathcal{C}^{-}_{i\alpha}\rangle_{C}\right). (82)

Assume that there is no photon loss in mode AA, then the overall input state is

|Ψin\displaystyle|\Psi_{\rm in}^{\,\prime}\rangle =\displaystyle= |ψinA|Φ0BC|0,0AC\displaystyle|\psi_{\rm in}\rangle_{A}\otimes|\Phi_{0}^{\,\prime}\rangle_{BC}\otimes|0,0\rangle_{A^{\prime}C^{\prime}} (83)
=\displaystyle= 𝒩[(c0|𝒞α+A|𝒞αC+c1|𝒞iα+A|𝒞αC)|𝒞α+B+i(c0|𝒞α+A|𝒞iαC+c1|𝒞iα+A|𝒞iαC)|𝒞iα+B]|0,0AC.\displaystyle\mathcal{N}\left[\left(c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{A}|\mathcal{C}^{-}_{\alpha}\rangle_{C}+c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{A}|\mathcal{C}^{-}_{\alpha}\rangle_{C}\right)|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i\left(c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{A}|\mathcal{C}^{-}_{i\alpha}\rangle_{C}+c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{A}|\mathcal{C}^{-}_{i\alpha}\rangle_{C}\right)|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\right]\otimes|0,0\rangle_{A^{\prime}C^{\prime}}.

The teleportation circuit transforms the four components of the overall input state as follows:

|𝒞α+A|𝒞αC|0A|0C\displaystyle|\mathcal{C}^{+}_{\alpha}\rangle_{A}|\mathcal{C}^{-}_{\alpha}\rangle_{C}|0\rangle_{A^{\prime}}|0\rangle_{C^{\prime}} \displaystyle\longrightarrow |0,α,α2,α2|α,0,iα2,iα2+|α,0,iα2,iα2|0,α,α2,α2,\displaystyle\bigg{|}0,\alpha,-\frac{\alpha}{\sqrt{2}},\frac{\alpha}{\sqrt{2}}\bigg{\rangle}-\bigg{|}\alpha,0,\frac{i\alpha}{\sqrt{2}},\frac{i\alpha}{\sqrt{2}}\bigg{\rangle}+\bigg{|}-\alpha,0,-\frac{i\alpha}{\sqrt{2}},-\frac{i\alpha}{\sqrt{2}}\bigg{\rangle}-\bigg{|}0,-\alpha,\frac{\alpha}{\sqrt{2}},-\frac{\alpha}{\sqrt{2}}\bigg{\rangle},
|𝒞iα+A|𝒞iαC|0A|0C\displaystyle|\mathcal{C}^{+}_{i\alpha}\rangle_{A}|\mathcal{C}^{-}_{i\alpha}\rangle_{C}|0\rangle_{A^{\prime}}|0\rangle_{C^{\prime}} \displaystyle\longrightarrow |0,iα,iα2,iα2|iα,0,α2,α2+|iα,0,α2,α2|0,iα,iα2,iα2,\displaystyle\bigg{|}0,i\alpha,-\frac{i\alpha}{\sqrt{2}},\frac{i\alpha}{\sqrt{2}}\bigg{\rangle}-\bigg{|}i\alpha,0,-\frac{\alpha}{\sqrt{2}},-\frac{\alpha}{\sqrt{2}}\bigg{\rangle}+\bigg{|}-i\alpha,0,\frac{\alpha}{\sqrt{2}},\frac{\alpha}{\sqrt{2}}\bigg{\rangle}-\bigg{|}0,-i\alpha,\frac{i\alpha}{\sqrt{2}},-\frac{i\alpha}{\sqrt{2}}\bigg{\rangle},
|𝒞α+A|𝒞iαC|0A|0C\displaystyle|\mathcal{C}^{+}_{\alpha}\rangle_{A}|\mathcal{C}^{-}_{i\alpha}\rangle_{C}|0\rangle_{A^{\prime}}|0\rangle_{C^{\prime}} \displaystyle\longrightarrow |β2,β2,0,β|β2,β2,β,0+|β2,β2,β,0|β2,β2,0,β,\displaystyle\bigg{|}\frac{\beta^{*}}{\sqrt{2}},\frac{\beta}{\sqrt{2}},0,\beta\bigg{\rangle}-\bigg{|}\frac{\beta}{\sqrt{2}},\frac{\beta^{*}}{\sqrt{2}},-\beta^{*},0\bigg{\rangle}+\bigg{|}-\frac{\beta}{\sqrt{2}},-\frac{\beta^{*}}{\sqrt{2}},\beta^{*},0\bigg{\rangle}-\bigg{|}-\frac{\beta^{*}}{\sqrt{2}},-\frac{\beta}{\sqrt{2}},0,-\beta\bigg{\rangle},
|𝒞iα+A|𝒞αC|0A|0C\displaystyle|\mathcal{C}^{+}_{i\alpha}\rangle_{A}|\mathcal{C}^{-}_{\alpha}\rangle_{C}|0\rangle_{A^{\prime}}|0\rangle_{C^{\prime}} \displaystyle\longrightarrow |β2,β2,β,0|β2,β2,0,β+|β2,β2,0,β|β2,β2,β,0,\displaystyle\bigg{|}-\frac{\beta^{*}}{\sqrt{2}},\frac{\beta}{\sqrt{2}},-\beta,0\bigg{\rangle}-\bigg{|}\frac{\beta}{\sqrt{2}},-\frac{\beta^{*}}{\sqrt{2}},0,-\beta^{*}\bigg{\rangle}+\bigg{|}-\frac{\beta}{\sqrt{2}},\frac{\beta^{*}}{\sqrt{2}},0,\beta^{*}\bigg{\rangle}-\bigg{|}\frac{\beta^{*}}{\sqrt{2}},-\frac{\beta}{\sqrt{2}},\beta,0\bigg{\rangle},

where have defined β=αeiπ/4\beta=\alpha e^{i\pi/4}, and omitted the subscripts to simplify the notation and chosen the order of the modes as ``ACAC"``ACA^{\prime}C^{\prime}". By combining these results, we find that the output state after the teleportation circuit (before photon number measurement) is

|ΨBAACC=U^ACU^A(π/2)U^AAU^CCU^AC|Ψin\displaystyle|\Psi\rangle_{BAA^{\prime}CC^{\prime}}={\hat{U}}_{A^{\prime}C^{\prime}}{\hat{U}}_{A^{\prime}}(\pi/2){\hat{U}}_{AA^{\prime}}{\hat{U}}_{CC^{\prime}}{\hat{U}}_{AC}|\Psi_{\rm in}\rangle
\displaystyle\propto [(|0,α,α2,α2|0,α,α2,α2)c0|𝒞α+B+(|0,iα,iα2,iα2|0,iα,iα2,iα2)ic1|𝒞iα+B]\displaystyle\bigg{[}\bigg{(}\bigg{|}0,\alpha,-\frac{\alpha}{\sqrt{2}},\frac{\alpha}{\sqrt{2}}\bigg{\rangle}-\bigg{|}0,-\alpha,\frac{\alpha}{\sqrt{2}},-\frac{\alpha}{\sqrt{2}}\bigg{\rangle}\bigg{)}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+\bigg{(}\bigg{|}0,i\alpha,-\frac{i\alpha}{\sqrt{2}},\frac{i\alpha}{\sqrt{2}}\bigg{\rangle}-\bigg{|}0,-i\alpha,\frac{i\alpha}{\sqrt{2}},-\frac{i\alpha}{\sqrt{2}}\bigg{\rangle}\bigg{)}ic_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{]}
[(|α,0,iα2,iα2|α,0,iα2,iα2)c0|𝒞α+B+(|iα,0,α2,α2|iα,0,α2,α2)ic1|𝒞iα+B]\displaystyle-\bigg{[}\bigg{(}\bigg{|}\alpha,0,\frac{i\alpha}{\sqrt{2}},\frac{i\alpha}{\sqrt{2}}\bigg{\rangle}-\bigg{|}-\alpha,0,-\frac{i\alpha}{\sqrt{2}},-\frac{i\alpha}{\sqrt{2}}\bigg{\rangle}\bigg{)}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+\bigg{(}\bigg{|}i\alpha,0,-\frac{\alpha}{\sqrt{2}},-\frac{\alpha}{\sqrt{2}}\bigg{\rangle}-\bigg{|}-i\alpha,0,\frac{\alpha}{\sqrt{2}},\frac{\alpha}{\sqrt{2}}\bigg{\rangle}\bigg{)}ic_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{]}
+[(|β2,β2,0,β|β2,β2,0,β)c1|𝒞α+B+(|β2,β2,0,β|β2,β2,0,β)ic0|𝒞iα+B]\displaystyle+\bigg{[}-\bigg{(}\bigg{|}\frac{\beta}{\sqrt{2}},-\frac{\beta^{*}}{\sqrt{2}},0,-\beta^{*}\bigg{\rangle}-\bigg{|}-\frac{\beta}{\sqrt{2}},\frac{\beta^{*}}{\sqrt{2}},0,\beta^{*}\bigg{\rangle}\bigg{)}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+\bigg{(}\bigg{|}\frac{\beta^{*}}{\sqrt{2}},\frac{\beta}{\sqrt{2}},0,\beta\bigg{\rangle}-\bigg{|}-\frac{\beta^{*}}{\sqrt{2}},-\frac{\beta}{\sqrt{2}},0,-\beta\bigg{\rangle}\bigg{)}ic_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{]}
+[(|β2,β2,β,0|β2,β2,β,0)c1|𝒞α+B(|β2,β2,β,0|β2,β2,β,0)ic0|𝒞iα+B],\displaystyle+\bigg{[}\bigg{(}\bigg{|}-\frac{\beta^{*}}{\sqrt{2}},\frac{\beta}{\sqrt{2}},-\beta,0\bigg{\rangle}-\bigg{|}\frac{\beta^{*}}{\sqrt{2}},-\frac{\beta}{\sqrt{2}},\beta,0\bigg{\rangle}\bigg{)}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}-\bigg{(}\bigg{|}\frac{\beta}{\sqrt{2}},\frac{\beta^{*}}{\sqrt{2}},-\beta^{*},0\bigg{\rangle}-\bigg{|}-\frac{\beta}{\sqrt{2}},-\frac{\beta^{*}}{\sqrt{2}},\beta^{*},0\bigg{\rangle}\bigg{)}ic_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{]},

where the proportionality factor is 𝒩𝒩+𝒩\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}.

C.1 Absence of photon at one detector

We first consider situations where only one detector detects no photons and each of the other three detectors registers at least one photon. This includes four sorts of click pattern:

[0,nC,nA,nC],[nA,0,nA,nC],[nA,nC,0,nC],[nA,nC,nA,0].\displaystyle[0,n_{C},n_{A^{\prime}},n_{C^{\prime}}],~{}~{}~{}~{}~{}~{}[n_{A},0,n_{A^{\prime}},n_{C^{\prime}}],~{}~{}~{}~{}~{}~{}[n_{A},n_{C},0,n_{C^{\prime}}],~{}~{}~{}~{}~{}~{}[n_{A},n_{C},n_{A^{\prime}},0].

We find that the output states are the same as those when a single photon is lost in the input mode, except a possible global phase. Therefore, the initial state can be recovered by applying appropriate Pauli corrections, which is summarized in Table 7. The detailed analysis is given as follows.

(i) nA=0n_{A}=0, no click at mode AA.

The detector at mode AA detects no photons, namely, the measurement outcome is 𝒏=[0,nC,nA,nC]{\boldsymbol{n}}=[0,n_{C},n_{A^{\prime}},n_{C^{\prime}}]. The conditional output state is

0,nC,nA,nC|ΨBAACC=𝒩𝒩+𝒩eα2nC!nA!nC!(1)nAαN(2)nA+nC[1(1)N](c0|𝒞α+B+iN+1c1|𝒞iα+B).\displaystyle\langle 0,n_{C},n_{A^{\prime}},n_{C^{\prime}}|\Psi\rangle_{BAA^{\prime}CC^{\prime}}=\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}\frac{e^{-\alpha^{2}}}{\sqrt{n_{C}!\,n_{A^{\prime}}!\,n_{C^{\prime}}!}}\frac{(-1)^{n_{A^{\prime}}}\alpha^{N}}{(\sqrt{2})^{n_{A^{\prime}}+n_{C^{\prime}}}}\big{[}1-(-1)^{N}\big{]}\bigg{(}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{)}. (85)

This implies the (unnormalized) output state is

|ψ1=c0|𝒞α+B+iN+1c1|𝒞iα+B,\displaystyle|\psi_{1}\rangle=c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}, (86)

and the measurement probability is

P([0,nC,nA,nC])=𝒩 2𝒩+ 2𝒩 2e2α2nC!nA!nC!α2N2nA+nC[1(1)N]2|ψ1|ψ1|2.\displaystyle P([0,n_{C},n_{A^{\prime}},n_{C^{\prime}}])=\mathcal{N}^{\,2}\mathcal{N}_{+}^{\,2}\mathcal{N}_{-}^{\,2}\frac{e^{-2\alpha^{2}}}{n_{C}!\,n_{A^{\prime}}!\,n_{C^{\prime}}!}\frac{\alpha^{2N}}{2^{n_{A^{\prime}}+n_{C^{\prime}}}}\big{[}1-(-1)^{N}\big{]}^{2}|\langle\psi_{1}|\psi_{1}\rangle|^{2}. (87)

(ii) nC=0n_{C}=0, no click at mode CC.

The detector at mode CC detects no photons, namely, the measurement outcome is 𝒏=[nA,0,nA,nC]{\boldsymbol{n}}=[n_{A},0,n_{A^{\prime}},n_{C^{\prime}}]. The conditional output state is

nA,0,nA,nC|ΨBAACC=𝒩𝒩+𝒩eα2nA!nA!nC!inA+nC+2αN(2)nA+nC[1(1)N](c0|𝒞α+B+iN+1c1|𝒞iα+B).\displaystyle\langle n_{A},0,n_{A^{\prime}},n_{C^{\prime}}|\Psi\rangle_{BAA^{\prime}CC^{\prime}}=\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}\frac{e^{-\alpha^{2}}}{\sqrt{n_{A}!\,n_{A^{\prime}}!\,n_{C^{\prime}}!}}\frac{i^{n_{A^{\prime}}+n_{C^{\prime}}+2}\alpha^{N}}{(\sqrt{2})^{n_{A^{\prime}}+n_{C^{\prime}}}}\big{[}1-(-1)^{N}\big{]}\bigg{(}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{)}. (88)

This implies the (unnormalized) output state is

|ψ2=c0|𝒞α+B+iN+1c1|𝒞iα+B.\displaystyle|\psi_{2}\rangle=c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}. (89)

and the measurement probability is

P([nA,0,nA,nC])=𝒩 2𝒩+ 2𝒩 2e2α2nA!nA!nC!α2N2nA+nC[1(1)N]2|ψ2|ψ2|2.\displaystyle P([n_{A},0,n_{A^{\prime}},n_{C^{\prime}}])=\mathcal{N}^{\,2}\mathcal{N}_{+}^{\,2}\mathcal{N}_{-}^{\,2}\frac{e^{-2\alpha^{2}}}{n_{A}!\,n_{A^{\prime}}!\,n_{C^{\prime}}!}\frac{\alpha^{2N}}{2^{n_{A^{\prime}}+n_{C^{\prime}}}}\big{[}1-(-1)^{N}\big{]}^{2}|\langle\psi_{2}|\psi_{2}\rangle|^{2}. (90)

(iii) nA=0n_{A^{\prime}}=0, no click at mode AA^{\prime}.

The detector at mode AA^{\prime} detects no photons, namely, the measurement outcome is 𝒏=[nA,nC,0,nC]{\boldsymbol{n}}=[n_{A},n_{C},0,n_{C^{\prime}}]. The conditional output state is

nA,nC,0,nC|ΨBAACC=𝒩𝒩+𝒩eα2nA!nC!nC!ieiπ(nAnCnC)/4αN(2)nA+nC[1(1)N](c0|𝒞iα+B+iN+1c1|𝒞α+B).\displaystyle\langle n_{A},n_{C},0,n_{C^{\prime}}|\Psi\rangle_{BAA^{\prime}CC^{\prime}}=\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}\frac{e^{-\alpha^{2}}}{\sqrt{n_{A}!\,n_{C}!\,n_{C^{\prime}}!}}\frac{i\,e^{-i\pi(n_{A}-n_{C}-n_{C^{\prime}})/4}\alpha^{N}}{(\sqrt{2})^{n_{A}+n_{C}}}\big{[}1-(-1)^{N}\big{]}\bigg{(}c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}\bigg{)}.

This implies the (unnormalized) output state is

|ψ3=c0|𝒞iα+B+iN+1c1|𝒞α+B.\displaystyle|\psi_{3}\rangle=c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}. (92)

and the measurement probability is

P([nA,nC,0,nC])=𝒩 2𝒩+ 2𝒩 2e2α2nA!nC!nC!α2N2nA+nC[1(1)N]2|ψ3|ψ3|2.\displaystyle P([n_{A},n_{C},0,n_{C^{\prime}}])=\mathcal{N}^{\,2}\mathcal{N}_{+}^{\,2}\mathcal{N}_{-}^{\,2}\frac{e^{-2\alpha^{2}}}{n_{A}!\,n_{C}!\,n_{C^{\prime}}!}\frac{\alpha^{2N}}{2^{n_{A}+n_{C}}}\big{[}1-(-1)^{N}\big{]}^{2}|\langle\psi_{3}|\psi_{3}\rangle|^{2}. (93)

(iv) nC=0n_{C^{\prime}}=0, no click at mode CC^{\prime}.

The detector at mode CC^{\prime} detects no photons, namely, the measurement outcome is 𝒏=[nA,nC,nA,0]{\boldsymbol{n}}=[n_{A},n_{C},n_{A^{\prime}},0]. The conditional output state is

nA,nC,nA,0|ΨBAACC\displaystyle\langle n_{A},n_{C},n_{A^{\prime}},0|\Psi\rangle_{BAA^{\prime}CC^{\prime}} =\displaystyle= 𝒩𝒩+𝒩eα2nA!nC!nA!(1)nA+1ieiπ(nAnCnA)/4αN(2)nA+nC\displaystyle\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}\frac{e^{-\alpha^{2}}}{\sqrt{n_{A}!\,n_{C}!\,n_{A^{\prime}}!}}\frac{(-1)^{n_{A^{\prime}}+1}i\,e^{i\pi(n_{A}-n_{C}-n_{A^{\prime}})/4}\alpha^{N}}{(\sqrt{2})^{n_{A}+n_{C}}} (94)
×[1(1)N](c0|𝒞iα+B+iN+1c1|𝒞α+B).\displaystyle\times\big{[}1-(-1)^{N}\big{]}\bigg{(}c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}\bigg{)}.

This implies the (unnormalized) output state is

|ψ4=c0|𝒞iα+B+iN+1c1|𝒞α+B.\displaystyle|\psi_{4}\rangle=c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}. (95)

and the measurement probability is

P([nA,nC,nA,0])=𝒩 2𝒩+ 2𝒩 2e2α2nA!nC!nA!α2N2nA+nC[1(1)N]2|ψ4|ψ4|2.\displaystyle P([n_{A},n_{C},n_{A^{\prime}},0])=\mathcal{N}^{\,2}\mathcal{N}_{+}^{\,2}\mathcal{N}_{-}^{\,2}\frac{e^{-2\alpha^{2}}}{n_{A}!\,n_{C}!\,n_{A^{\prime}}!}\frac{\alpha^{2N}}{2^{n_{A}+n_{C}}}\big{[}1-(-1)^{N}\big{]}^{2}|\langle\psi_{4}|\psi_{4}\rangle|^{2}. (96)

C.2 Absence of photons at two detectors

When two detectors detect no photons and each of the other two detectors registers at least one photon, the initial state can be recovered for click patterns:

[0,0,nA,nC],[nA,nC,0,0],\displaystyle[0,0,n_{A^{\prime}},n_{C^{\prime}}],~{}~{}~{}~{}~{}~{}[n_{A},n_{C},0,0],

and cannot be recovered for click patterns:

[nA,0,nA,0],[nA,0,0,nC],[0,nC,nA,0],[0,nC,0,nC].\displaystyle[n_{A},0,n_{A^{\prime}},0],~{}~{}~{}~{}~{}~{}[n_{A},0,0,n_{C^{\prime}}],~{}~{}~{}~{}~{}~{}[0,n_{C},n_{A^{\prime}},0],~{}~{}~{}~{}~{}~{}[0,n_{C},0,n_{C^{\prime}}].

This is the same as the case where a single photon is lost in the input mode. The results are summarized in Table 8 and the detailed analysis is given as follows.

(i) nA=nC=0n_{A}=n_{C}=0.

The detectors at modes AA and CC detect no photons, namely, the measurement outcome is 𝒏=[0,0,nA,nC]{\boldsymbol{n}}=[0,0,n_{A^{\prime}},n_{C^{\prime}}] with nA0n_{A^{\prime}}\neq 0 and nC0n_{C^{\prime}}\neq 0. The conditional output state is

0,0,nA,nC|ΨBAACC=𝒩𝒩+𝒩eα2nA!nC!iNαN(2)N[1(1)N](inAnC1)(c0|𝒞α+B+iN+1c1|𝒞iα+B).\displaystyle\langle 0,0,n_{A^{\prime}},n_{C^{\prime}}|\Psi\rangle_{BAA^{\prime}CC^{\prime}}=\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}\frac{e^{-\alpha^{2}}}{\sqrt{n_{A^{\prime}}!\,n_{C^{\prime}}!}}\frac{i^{N}\alpha^{N}}{(\sqrt{2})^{N}}\big{[}1-(-1)^{N}\big{]}\big{(}i^{n_{A^{\prime}}-n_{C^{\prime}}}-1\big{)}\bigg{(}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{)}. (97)

This implies the (unnormalized) output state is

|ψ5=c0|𝒞α+B+iN+1c1|𝒞iα+B,\displaystyle|\psi_{5}\rangle=c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}, (98)

and the measurement probability is

P([0,0,nA,nC])=𝒩 2𝒩+ 2𝒩 2e2α2nA!nC!α2N2N[1(1)N]2|1inAnC|2|ψ5|ψ5|2.\displaystyle P([0,0,n_{A^{\prime}},n_{C^{\prime}}])=\mathcal{N}^{\,2}\mathcal{N}_{+}^{\,2}\mathcal{N}_{-}^{\,2}\frac{e^{-2\alpha^{2}}}{n_{A^{\prime}}!\,n_{C^{\prime}}!}\frac{\alpha^{2N}}{2^{N}}\big{[}1-(-1)^{N}\big{]}^{2}\big{|}1-i^{n_{A^{\prime}}-n_{C^{\prime}}}\big{|}^{2}|\langle\psi_{5}|\psi_{5}\rangle|^{2}. (99)

The measurement probability is nonzero when NN is odd.

(ii) nA=nC=0n_{A^{\prime}}=n_{C^{\prime}}=0.

The detectors at mode AA^{\prime} and CC^{\prime} detect no photons, namely, the measurement outcome is 𝒏=[nA,nC,0,0]{\boldsymbol{n}}=[n_{A},n_{C},0,0] with nA0n_{A}\neq 0 and nC0n_{C}\neq 0. The conditional output state is

nA,nC,0,0|ΨBAACC\displaystyle\langle n_{A},n_{C},0,0|\Psi\rangle_{BAA^{\prime}CC^{\prime}} =\displaystyle= 𝒩𝒩+𝒩eα2nA!nC!ieiπ(nAnC)/4αN(2)N\displaystyle\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}\frac{e^{-\alpha^{2}}}{\sqrt{n_{A}!\,n_{C}!}}\frac{i\,e^{-i\pi(n_{A}-n_{C})/4}\alpha^{N}}{(\sqrt{2})^{N}} (100)
×[1(1)N](1inAnC)(c0|𝒞iα+B+iN+1c1|𝒞α+B).\displaystyle\times\big{[}1-(-1)^{N}\big{]}\big{(}1-i^{n_{A}-n_{C}}\big{)}\bigg{(}c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}\bigg{)}.

This implies the (unnormalized) output state is

|ψ6=c0|𝒞iα+B+iN+1c1|𝒞α+B,\displaystyle|\psi_{6}\rangle=c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}, (101)

and the measurement probability is

P([nA,nC,0,0])=𝒩 2𝒩+ 2𝒩 2e2α2nA!nC!α2N2N[1(1)N]2|1inAnC|2|ψ6|ψ6|2.\displaystyle P([n_{A},n_{C},0,0])=\mathcal{N}^{\,2}\mathcal{N}_{+}^{\,2}\mathcal{N}_{-}^{\,2}\frac{e^{-2\alpha^{2}}}{n_{A}!\,n_{C}!}\frac{\alpha^{2N}}{2^{N}}\big{[}1-(-1)^{N}\big{]}^{2}\big{|}1-i^{n_{A}-n_{C}}\big{|}^{2}|\langle\psi_{6}|\psi_{6}\rangle|^{2}. (102)

The measurement probability is nonzero only when NN is odd.

(iii) nC=nC=0n_{C}=n_{C^{\prime}}=0.

The detectors at modes CC and CC^{\prime} detect no photons, namely, the measurement outcome is 𝒏=[nA,0,nA,0]{\boldsymbol{n}}=[n_{A},0,n_{A^{\prime}},0] with nA0n_{A}\neq 0 and nA0n_{A^{\prime}}\neq 0. The conditional output state is

nA,0,nA,0|ΨBAACC\displaystyle\langle n_{A},0,n_{A^{\prime}},0|\Psi\rangle_{BAA^{\prime}CC^{\prime}} (103)
=\displaystyle= 𝒩𝒩+𝒩eα2nA!nA!αN[1(1)N]inA+2[1(2)nA(c0|𝒞α+B+iN+1c1|𝒞iα+B,)\displaystyle\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}\frac{e^{-\alpha^{2}}}{\sqrt{n_{A}!\,n_{A^{\prime}}!}}\alpha^{N}\big{[}1-(-1)^{N}\big{]}i^{n_{A^{\prime}}+2}\bigg{[}\frac{1}{(\sqrt{2})^{n_{A^{\prime}}}}\bigg{(}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B},\bigg{)}
+ieiπN/4(2)nA(c0|𝒞iα+B+iN+1c1|𝒞α+B,)]\displaystyle+\frac{i\,e^{i\pi N/4}}{(\sqrt{2})^{n_{A}}}\bigg{(}c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B},\bigg{)}\bigg{]}
=\displaystyle= 𝒩𝒩+𝒩[1(1)N]eα2αNnA!nA!inA+2{[1(2)nAc0+eiNπ/4(2)nAiN+2c1]|𝒞α+B\displaystyle\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}\big{[}1-(-1)^{N}\big{]}e^{-\alpha^{2}}\frac{\alpha^{N}}{\sqrt{n_{A}!n_{A^{\prime}}!}}i^{n_{A^{\prime}}+2}\bigg{\{}\bigg{[}\frac{1}{(\sqrt{2})^{n_{A^{\prime}}}}c_{0}+\frac{e^{iN\pi/4}}{(\sqrt{2})^{n_{A}}}i^{N+2}c_{1}\bigg{]}|\mathcal{C}^{+}_{\alpha}\rangle_{B}
+[1(2)nAiN+1c1+ieiNπ/4(2)nAc0]|𝒞iα+B}.\displaystyle+\bigg{[}\frac{1}{(\sqrt{2})^{n_{A^{\prime}}}}i^{N+1}c_{1}+\frac{i\,e^{iN\pi/4}}{(\sqrt{2})^{n_{A}}}c_{0}\bigg{]}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{\}}.

The initial state cannot be recovered.

(iv) nC=nA=0n_{C}=n_{A^{\prime}}=0.

The detectors at modes CC and AA^{\prime} detect no photons, namely, the measurement outcome is 𝒏=[nA,0,0,nC]{\boldsymbol{n}}=[n_{A},0,0,n_{C^{\prime}}] with nA0n_{A}\neq 0 and nC0n_{C^{\prime}}\neq 0. The conditional output state is

nA,0,0,nC|ΨBAACC\displaystyle\langle n_{A},0,0,n_{C^{\prime}}|\Psi\rangle_{BAA^{\prime}CC^{\prime}} (104)
=\displaystyle= 𝒩𝒩+𝒩eα2nA!nC!αN[1(1)N]inC+2[1(2)nC(c0|𝒞α+B+iN+1c1|𝒞iα+B,)\displaystyle\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}\frac{e^{-\alpha^{2}}}{\sqrt{n_{A}!\,n_{C^{\prime}}!}}\alpha^{N}\big{[}1-(-1)^{N}\big{]}i^{n_{C^{\prime}}+2}\bigg{[}\frac{1}{(\sqrt{2})^{n_{C^{\prime}}}}\bigg{(}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B},\bigg{)}
ieiNπ/4(2)nA(c0|𝒞iα+B+iN+1c1|𝒞α+B,)]\displaystyle-\frac{i\,e^{-iN\pi/4}}{(\sqrt{2})^{n_{A}}}\bigg{(}c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B},\bigg{)}\bigg{]}
=\displaystyle= 𝒩𝒩+𝒩eα2nA!nC!αN[1(1)N]inC+2{[1(2)nCc0eiNπ/4(2)nAiN+2c1]|𝒞α+B\displaystyle\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}\frac{e^{-\alpha^{2}}}{\sqrt{n_{A}!\,n_{C^{\prime}}!}}\alpha^{N}\big{[}1-(-1)^{N}\big{]}i^{n_{C^{\prime}}+2}\bigg{\{}\bigg{[}\frac{1}{(\sqrt{2})^{n_{C^{\prime}}}}c_{0}-\frac{e^{-iN\pi/4}}{(\sqrt{2})^{n_{A}}}i^{N+2}c_{1}\bigg{]}|\mathcal{C}^{+}_{\alpha}\rangle_{B}
+[1(2)nCiN+1c1ieiNπ/4(2)nAc0]|𝒞iα+B}.\displaystyle+\bigg{[}\frac{1}{(\sqrt{2})^{n_{C^{\prime}}}}i^{N+1}c_{1}-\frac{i\,e^{-iN\pi/4}}{(\sqrt{2})^{n_{A}}}c_{0}\bigg{]}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{\}}.

The initial state cannot be recovered.

(v) nA=nC=0n_{A}=n_{C^{\prime}}=0.

The detectors at modes AA and CC^{\prime} detect no photons, namely, the measurement outcome is 𝒏=[0,nC,nA,0]{\boldsymbol{n}}=[0,n_{C},n_{A^{\prime}},0] with nC0n_{C}\neq 0 and nA0n_{A^{\prime}}\neq 0. The conditional output state is

0,nC,nA,0|ΨBAACC\displaystyle\langle 0,n_{C},n_{A^{\prime}},0|\Psi\rangle_{BAA^{\prime}CC^{\prime}} (105)
=\displaystyle= 𝒩𝒩+𝒩eα2nC!nA!αN[1(1)N](1)nA[1(2)nA(c0|𝒞+αB+iN+1c1|𝒞+iαB,)\displaystyle\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}\frac{e^{-\alpha^{2}}}{\sqrt{n_{C}!\,n_{A^{\prime}}!}}\alpha^{N}\big{[}1-(-1)^{N}\big{]}(-1)^{n_{A^{\prime}}}\bigg{[}\frac{1}{(\sqrt{2})^{n_{A^{\prime}}}}\bigg{(}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B},\bigg{)}
ieiNπ/4(2)nC(c0|𝒞+iαB+iN+1c1|𝒞+αB,)]\displaystyle-\frac{i\,e^{-iN\pi/4}}{(\sqrt{2})^{n_{C}}}\bigg{(}c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B},\bigg{)}\bigg{]}
=\displaystyle= 𝒩𝒩+𝒩eα2nC!nA!αN[1(1)N](1)nA{[1(2)nAc0eiNπ/4(2)nCiN+2c1]|𝒞+αB\displaystyle\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}\frac{e^{-\alpha^{2}}}{\sqrt{n_{C}!\,n_{A^{\prime}}!}}\alpha^{N}\big{[}1-(-1)^{N}\big{]}(-1)^{n_{A^{\prime}}}\bigg{\{}\bigg{[}\frac{1}{(\sqrt{2})^{n_{A^{\prime}}}}c_{0}-\frac{e^{-iN\pi/4}}{(\sqrt{2})^{n_{C}}}i^{N+2}c_{1}\bigg{]}|\mathcal{C}^{+}_{\alpha}\rangle_{B}
+[1(2)nAiN+1c1ieiNπ/4(2)nCc0]|𝒞+iαB}.\displaystyle+\bigg{[}\frac{1}{(\sqrt{2})^{n_{A^{\prime}}}}i^{N+1}c_{1}-\frac{i\,e^{-iN\pi/4}}{(\sqrt{2})^{n_{C}}}c_{0}\bigg{]}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{\}}.

The initial state cannot be recovered.

(vi) nA=nA=0n_{A}=n_{A^{\prime}}=0.

The detectors at modes AA and AA^{\prime} detect no photons, namely, the measurement outcome is 𝒏=[0,nC,0,nC]{\boldsymbol{n}}=[0,n_{C},0,n_{C^{\prime}}] with nC0n_{C}\neq 0 and nC0n_{C^{\prime}}\neq 0. The conditional state is

0,nC,0,nC|ΨBAACC\displaystyle\langle 0,n_{C},0,n_{C^{\prime}}|\Psi\rangle_{BAA^{\prime}CC^{\prime}} (106)
=\displaystyle= 𝒩𝒩+𝒩eα2nC!nC!αN[1(1)N][1(2)nC(c0|𝒞+αB+iN+1c1|𝒞+iαB,)\displaystyle\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}\frac{e^{-\alpha^{2}}}{\sqrt{n_{C}!\,n_{C^{\prime}}!}}\alpha^{N}\big{[}1-(-1)^{N}\big{]}\bigg{[}\frac{1}{(\sqrt{2})^{n_{C^{\prime}}}}\bigg{(}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B},\bigg{)}
+ieiNπ/4(2)nC(c0|𝒞+iαB+iN+1c1|𝒞+αB,)]\displaystyle+\frac{i\,e^{iN\pi/4}}{(\sqrt{2})^{n_{C}}}\bigg{(}c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B},\bigg{)}\bigg{]}
=\displaystyle= 𝒩𝒩+𝒩eα2nC!nC!αN[1(1)N]{[1(2)nCc0+eiNπ/4(2)nCiN+2c1]|𝒞+αB\displaystyle\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}\frac{e^{-\alpha^{2}}}{\sqrt{n_{C}!\,n_{C^{\prime}}!}}\alpha^{N}\big{[}1-(-1)^{N}\big{]}\bigg{\{}\bigg{[}\frac{1}{(\sqrt{2})^{n_{C^{\prime}}}}c_{0}+\frac{e^{iN\pi/4}}{(\sqrt{2})^{n_{C}}}i^{N+2}c_{1}\bigg{]}|\mathcal{C}^{+}_{\alpha}\rangle_{B}
+[1(2)nCiN+1c1+ieiNπ/4(2)nCc0]|𝒞+iαB}.\displaystyle+\bigg{[}\frac{1}{(\sqrt{2})^{n_{C^{\prime}}}}i^{N+1}c_{1}+\frac{i\,e^{iN\pi/4}}{(\sqrt{2})^{n_{C}}}c_{0}\bigg{]}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{\}}.

The initial state cannot be recovered.

C.3 Absence of photons at three detectors

When only one detector registers photons, the teleportation fails and the initial state cannot be recovered. These click patterns include:

[nA,0,0,0],[0,nC,0,0],[0,0,nA,0],[0,0,0,nC].\displaystyle[n_{A},0,0,0],~{}~{}~{}~{}~{}~{}[0,n_{C},0,0],~{}~{}~{}~{}~{}~{}[0,0,n_{A^{\prime}},0],~{}~{}~{}~{}~{}~{}[0,0,0,n_{C^{\prime}}].

We explicitly write down the conditional output states for these click patterns, from which one can see clearly why the error correction fails.

(i) nA=N0n_{A}=N\neq 0.

The detector at mode AA detects photons, namely, the measurement outcome is 𝒏=[N,0,0,0]{\boldsymbol{n}}=[N,0,0,0]. The conditional output state is

N,0,0,0|ΨBAACC\displaystyle\langle N,0,0,0|\Psi\rangle_{BAA^{\prime}CC^{\prime}} (107)
=\displaystyle= 𝒩𝒩+𝒩[1(1)N]eα2αNN![(c0|𝒞+αB+iN+1c1|𝒞+iαB)+ieiNπ/4ieiNπ/4(2)N(c0|𝒞+iαB+iN+1c1|𝒞+αB)]\displaystyle\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}\big{[}1-(-1)^{N}\big{]}e^{-\alpha^{2}}\frac{\alpha^{N}}{\sqrt{N!}}\bigg{[}-\bigg{(}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{)}+\frac{i\,e^{-iN\pi/4}-i\,e^{iN\pi/4}}{(\sqrt{2})^{N}}\bigg{(}c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}\bigg{)}\bigg{]}
=\displaystyle= 𝒩𝒩+𝒩[1(1)N]eα2αNN!{[c0+2sin(Nπ/4)(2)NiN+1c1]|𝒞+αB+[iN+1c1+2sin(Nπ/4)(2)Nc0]|𝒞+iαB}.\displaystyle\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}\big{[}1-(-1)^{N}\big{]}e^{-\alpha^{2}}\frac{\alpha^{N}}{\sqrt{N!}}\bigg{\{}\bigg{[}-c_{0}+\frac{2\sin(N\pi/4)}{(\sqrt{2})^{N}}i^{N+1}c_{1}\bigg{]}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+\bigg{[}-i^{N+1}c_{1}+\frac{2\sin(N\pi/4)}{(\sqrt{2})^{N}}c_{0}\bigg{]}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{\}}.

The initial state cannot be recovered since NN should be odd.

(ii) nC=N0n_{C}=N\neq 0.

The detector at mode CC detects photons, namely, the measurement outcome is 𝒏=[0,N,0,0]{\boldsymbol{n}}=[0,N,0,0]. The conditional output state is the same as case (i) except a global phase eiπe^{i\pi} and the initial state cannot be recovered.

(iii) nA=N0n_{A^{\prime}}=N\neq 0.

The detector at mode AA^{\prime} detects photons, namely, the measurement outcome is 𝒏=[0,0,N,0]{\boldsymbol{n}}=[0,0,N,0]. The conditional output state is

0,0,N,0|ΨBAACC\displaystyle\langle 0,0,N,0|\Psi\rangle_{BAA^{\prime}CC^{\prime}}
=\displaystyle= 𝒩𝒩+𝒩[1(1)N]eα2αNN!(iN)[1iN(2)N(c0|𝒞+αB+iN+1c1|𝒞+iαB)+ieiNπ/4(c0|𝒞+iαB+iN+1c1|𝒞+αB)]\displaystyle\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}\big{[}1-(-1)^{N}\big{]}e^{-\alpha^{2}}\frac{\alpha^{N}}{\sqrt{N!}}(-i^{N})\bigg{[}\frac{1-i^{N}}{(\sqrt{2})^{N}}\bigg{(}c_{0}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{)}+i\,e^{iN\pi/4}\bigg{(}c_{0}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}+i^{N+1}c_{1}|\mathcal{C}^{+}_{\alpha}\rangle_{B}\bigg{)}\bigg{]}
=\displaystyle= 𝒩𝒩+𝒩[1(1)N]eα2αNN!(iN){[eiNπ/4iN+2c1+1iN(2)Nc0]|𝒞+αB+[ieiNπ/4c0+1iN(2)NiN+1c1]|𝒞+iαB}.\displaystyle\mathcal{N}\mathcal{N}_{+}\mathcal{N}_{-}\big{[}1-(-1)^{N}\big{]}e^{-\alpha^{2}}\frac{\alpha^{N}}{\sqrt{N!}}(-i^{N})\bigg{\{}\bigg{[}e^{iN\pi/4}i^{N+2}c_{1}+\frac{1-i^{N}}{(\sqrt{2})^{N}}c_{0}\bigg{]}|\mathcal{C}^{+}_{\alpha}\rangle_{B}+\bigg{[}i\,e^{iN\pi/4}c_{0}+\frac{1-i^{N}}{(\sqrt{2})^{N}}i^{N+1}c_{1}\bigg{]}|\mathcal{C}^{+}_{i\alpha}\rangle_{B}\bigg{\}}.

The initial state cannot be recovered since NN should be odd.

(iv) nC=N0n_{C^{\prime}}=N\neq 0.

The detector at mode CC^{\prime} detects photons, namely, the measurement outcome is 𝒏=[0,0,0,N]{\boldsymbol{n}}=[0,0,0,N]. The conditional output state is the same as case (iii) except a global phase iN-i^{N} and the initial state cannot be recovered.

In summary, when there is single photon loss only in one of the arms of the encoded Bell state, the output states are the same as those when there is single photon loss only in the encoded input state, except a possible global phase that is irrelevant. This implies that the proposed error correction procedure not only can mitigate single photon loss in the encoded state, but also can correct single photon loss in the entangled Bell state. In the experiment, one does not have to know whether a single photon is lost is the encoded state or in the Bell state. Actually, one cannot discriminate these two cases. What one needs to do is to follow the error correction procedure, which then corrects single photon loss in both cases.

Appendix D Correcting single photon loss in imperfect teleportation circuit

When discussing state teleportation, in Appendix A, and error correction of single photon loss in the encoded state, in Appendix B, we assume that the teleportation circuit (including the entangled resource state |Φ0B|\Phi_{0}\rangle_{B}, four beam splitters, one phase shifter and the PNR detectors) is perfect. In an actual experiment, they are all imperfect and suffer from photon loss. An important question is whether the proposed error correction procedure can also correct single photon loss in the teleportation circuit. There are several possible sources of photon loss in the teleportation circuit. Interestingly, we show in Appendix C that the single photon loss in one of the arms of the Bell state can be corrected. This implies that the single photon loss in the teleportation circuit can be in principle corrected. A complete analysis is needed to take into account all other sources of photon loss in the teleportation circuit, which we leave for future work.

Refer to caption
Refer to caption
Figure 5: Uniform loss model. (a) The imperfection (photon loss) of the teleportation circuit is modeled by various lossy channels (blue beam splitters) after or before the optical components, including the beam splitters, phase shifter and PNR detectors. (b) When the photon loss rate along each path is the same, then four effective lossy channels with the same loss rate can be formed and further moved to the front of the teleportation circuit. The effective lossy channels in the input modes AA^{\prime} and CC^{\prime} are neglected because they have no effect on the vacuum inputs.

However, based on the results in Appendix C, it can be simply shown that single photon loss in the beam splitters, phase shifter and photon number detectors can be mitigated in some special cases. Assume that the optical elements and the PNR detectors are not perfect, but the photon loss rate along each path (the modes A,C,AA,C,A^{\prime} and CC^{\prime}) is the same. Under this balanced-loss assumption, one can combine all lossy channels along each path into one effective lossy channel. Since the photon loss rate of the effective lossy channel in each path is the same, the effective lossy channels commute with the optical elements. One therefore can move them to the front of the teleportation circuit, resulting in a lossy channel in the input mode AA, which may cause single photon loss in the encoded input state, and another lossy channel in one of the arms of the Bell state, which may cause singe photon loss in the Bell state, as shown in Fig. 5. As a result, the photon loss from the optical elements and PNR detectors can be mitigated via the proposed error correction procedure.

Appendix E Generate resource state

The entangled resource state |Φ0|\Phi_{0}\rangle can be generated by the circuit shown in Fig. 2 with the state

|+L2α|0L2α+|1L2α|2α+|2α+|2iα+|2iα\displaystyle|+_{L}\rangle_{\sqrt{2}\alpha}\sim|0_{L}\rangle_{\sqrt{2}\alpha}+|1_{L}\rangle_{\sqrt{2}\alpha}\sim|\sqrt{2}\alpha\rangle+|-\sqrt{2}\alpha\rangle+|\sqrt{2}i\alpha\rangle+|-\sqrt{2}i\alpha\rangle (109)

as an initial resource state. The input of modes AA and CC is prepared in state |+L2α|+_{L}\rangle_{\sqrt{2}\alpha}, and the input of modes AA^{\prime} and CC^{\prime} is prepared in vacuum. The output state before photon number detection from this circuit is

|α,α,β,β+|α,α,β,β+|α,iα,0,2iα+|α,iα,2iα,0+\displaystyle|\alpha,\alpha,-\beta^{*},\beta\rangle+|\alpha,-\alpha,\beta,-\beta^{*}\rangle+|\alpha,i\alpha,0,\sqrt{2}i\alpha\rangle+|\alpha,-i\alpha,\sqrt{2}i\alpha,0\rangle+
|α,α,β,β+|α,α,β,β+|α,iα,2iα,0+|α,iα,0,2iα+\displaystyle|-\alpha,\alpha,-\beta,\beta^{*}\rangle+|-\alpha,-\alpha,\beta^{*},-\beta\rangle+|-\alpha,i\alpha,-\sqrt{2}i\alpha,0\rangle+|-\alpha,-i\alpha,0,-\sqrt{2}i\alpha\rangle+
|iα,α,2α,0+|iα,α,0,2α+|iα,iα,β,β+|iα,iα,β,β+\displaystyle|i\alpha,\alpha,-\sqrt{2}\alpha,0\rangle+|i\alpha,-\alpha,0,-\sqrt{2}\alpha\rangle+|i\alpha,i\alpha,-\beta,-\beta^{*}\rangle+|i\alpha,-i\alpha,-\beta^{*},-\beta\rangle+
|iα,α,0,2α+|iα,α,2α,0+|iα,iα,β,β+|iα,iα,β,β,\displaystyle|-i\alpha,\alpha,0,\sqrt{2}\alpha\rangle+|-i\alpha,-\alpha,\sqrt{2}\alpha,0\rangle+|-i\alpha,i\alpha,\beta^{*},\beta\rangle+|-i\alpha,-i\alpha,\beta,\beta^{*}\rangle, (110)

where β=αeiπ/4\beta=\alpha e^{i\pi/4} and the normalization factor eα2/8(cosh2α2+cos2α2)e^{\alpha^{2}}/\sqrt{8(\cosh 2\alpha^{2}+\cos 2\alpha^{2})} has been neglected. We now consider the conditional state obtained when both detectors click. This removes all the zero photon components. When the detectors at modes AA^{\prime} and CC^{\prime} record nn and mm photon counts respectively, the projected (unnormalized) state is then given by:

eα2αn+mn!m![(1)nfnm|α,α+(1)mfnm|α,α+(1)nfnm|α,α+(1)mfnm|α,α\displaystyle e^{-{{\alpha^{2}}}}{{\alpha^{n+m}}\over{\sqrt{n!m!}}}\big{[}(-1)^{n}f_{nm}^{*}|\alpha,\alpha\rangle+(-1)^{m}f_{nm}|\alpha,-\alpha\rangle+(-1)^{n}f_{nm}|-\alpha,\alpha\rangle+(-1)^{m}f_{nm}^{*}|-\alpha,-\alpha\rangle
+(1)n+mfnm|iα,iα+(1)n+mfnm|iα,iα+fnm|iα,iα+fnm|iα,iα],\displaystyle+(-1)^{n+m}f_{nm}|i\alpha,i\alpha\rangle+(-1)^{n+m}f_{nm}^{*}|i\alpha,-i\alpha\rangle+f_{nm}^{*}|-i\alpha,i\alpha\rangle+f_{nm}|-i\alpha,-i\alpha\rangle\big{]}, (111)

where fnm=eiπ(nm)/4f_{nm}=e^{i\pi(n-m)/4}. We see that if we obtain equal counts on the two detectors, n=mn=m, and nn is even then the projected state is the teleportation resource state given in Eq. (1). If n=mn=m, but nn is odd we obtain the phase flipped Bell state 𝒩(|0L|0L|1L|1L)\mathcal{N}\big{(}|0_{L}\rangle|0_{L}\rangle-|1_{L}\rangle|1_{L}\rangle\big{)}, which is still useful for teleportation, just requiring a different correction syndrome. The probability of obtaining equal counts on the two detectors is

Pnn=cosh2α2+cos2α24cosh2α2(cosh2α2+cos2α2)α4n(n!)2,\displaystyle P_{nn}=\frac{\cosh^{2}\alpha^{2}+\cos^{2}\alpha^{2}}{4\cosh^{2}\alpha^{2}\,(\cosh 2\alpha^{2}+\cos 2\alpha^{2})}\frac{\alpha^{4n}}{(n!)^{2}}, (112)

with n1n\geq 1.

Appendix F Probability of losing different number of photons

In this section, we briefly review the pure lossy channel and evaluate the probability of losing a particular number of photon. The pure lossy channel can be described by a set of Krauss operators {E^}\{{\hat{E}}_{\ell}\}, so that ρ^==0E^ρ^E^{\hat{\rho}}^{\,\prime}=\sum_{\ell=0}^{\infty}{\hat{E}}_{\ell}{\hat{\rho}}{\hat{E}}_{\ell}^{\dagger}, where ρ^{\hat{\rho}} and ρ^{\hat{\rho}}^{\,\prime} are the density operators before and after going through the lossy channel, respectively. If we denote the loss rate as γ=ϵ\gamma=\epsilon, then the Krauss operators can be written as

E^=(γ1γ)/2a^!(1γ)n^/2,\displaystyle{\hat{E}}_{\ell}=\bigg{(}\frac{\gamma}{1-\gamma}\bigg{)}^{\ell/2}\frac{{\hat{a}}^{\ell}}{\sqrt{\ell!}}(1-\gamma)^{{\hat{n}}/2}, (113)

where a^{\hat{a}} (a^)({\hat{a}}^{\dagger}) is the annihilation (creation) operator and n^=a^a^{\hat{n}}={\hat{a}}^{\dagger}{\hat{a}} is the photon number operator. Define an unnormalized density operator ρ¯^{\hat{\bar{\rho}}}_{\ell} as

ρ¯^=E^ρ^E^,\displaystyle{\hat{\bar{\rho}}}_{\ell}={\hat{E}}_{\ell}{\hat{\rho}}{\hat{E}}_{\ell}^{\dagger}, (114)

which represents the output density operator after the initial state experiences a quantum jump E^{\hat{E}}_{\ell}. The quantum jump E^{\hat{E}}_{\ell} occurs with probability

P(γ)=tr(ρ¯^),\displaystyle P_{\ell}(\gamma)=\text{tr}({\hat{\bar{\rho}}}_{\ell}), (115)

and the normalized output density operator is

ρ^=ρ¯^P(γ)=ρ¯^tr(ρ¯^).\displaystyle{\hat{\rho}}_{\ell}=\frac{{\hat{\bar{\rho}}}_{\ell}}{P_{\ell}(\gamma)}=\frac{{\hat{\bar{\rho}}}_{\ell}}{\text{tr}({\hat{\bar{\rho}}}_{\ell})}. (116)

Consider the case where the input state is a pure state |ψ|\psi\rangle, which can be expanded in the Fock basis as

|ψ=n=0dn|n\displaystyle|\psi\rangle=\sum_{n=0}^{\infty}d_{n}|n\rangle (117)

with dnd_{n} the complex coefficients. The probability P(γ)P_{\ell}(\gamma) becomes

P(γ)\displaystyle P_{\ell}(\gamma) =\displaystyle= tr(E^|ψψ|E^)\displaystyle\text{tr}\big{(}{\hat{E}}_{\ell}|\psi\rangle\langle\psi|{\hat{E}}_{\ell}^{\dagger}\big{)} (118)
=\displaystyle= n=|dn|2(γ1γ)(1γ)n!n|(a^)a^|n\displaystyle\sum_{n=\ell}^{\infty}|d_{n}|^{2}\bigg{(}\frac{\gamma}{1-\gamma}\bigg{)}^{\ell}\frac{(1-\gamma)^{n}}{\ell!}\langle n|({\hat{a}}^{\dagger})^{\ell}{\hat{a}}^{\ell}|n\rangle
=\displaystyle= n=|dn|2(n)γ(1γ)n.\displaystyle\sum_{n=\ell}^{\infty}|d_{n}|^{2}\begin{pmatrix}n\\ \ell\end{pmatrix}\gamma^{\ell}(1-\gamma)^{n-\ell}.

In this work, we only consider input states in the code subspace. In the Fock basis, the logical |0L|0_{L}\rangle and |1L|1_{L}\rangle can be expressed as

|0L\displaystyle|0_{L}\rangle =\displaystyle= |𝒞+α=12(1+e2α2)(|α+|α)\displaystyle|\mathcal{C}^{+}_{\alpha}\rangle=\frac{1}{\sqrt{2(1+e^{-2\alpha^{2}})}}\big{(}|\alpha\rangle+|-\alpha\rangle\big{)}
=\displaystyle= 1coshα2n=0α2n(2n)!|2n,\displaystyle\frac{1}{\sqrt{\cosh\alpha^{2}}}\sum_{n=0}^{\infty}\frac{\alpha^{2n}}{\sqrt{(2n)!}}|2n\rangle,
|1L\displaystyle|1_{L}\rangle =\displaystyle= |𝒞+iα=12(1+e2α2)(|iα+|iα)\displaystyle|\mathcal{C}^{+}_{i\alpha}\rangle=\frac{1}{\sqrt{2(1+e^{-2\alpha^{2}})}}\big{(}|i\alpha\rangle+|-i\alpha\rangle\big{)} (119)
=\displaystyle= 1coshα2n=0(1)nα2n(2n)!|2n.\displaystyle\frac{1}{\sqrt{\cosh\alpha^{2}}}\sum_{n=0}^{\infty}(-1)^{n}\frac{\alpha^{2n}}{\sqrt{(2n)!}}|2n\rangle.

Therefore an arbitrary state in the code subspace can be expressed as

|ψcode\displaystyle|\psi_{\rm code}\rangle =\displaystyle= c0|0L+c1|1L\displaystyle c_{0}|0_{L}\rangle+c_{1}|1_{L}\rangle
=\displaystyle= 1coshα2n=0[c0+(1)nc1]α2n(2n)!|2n,\displaystyle\frac{1}{\sqrt{\cosh\alpha^{2}}}\sum_{n=0}^{\infty}\big{[}c_{0}+(-1)^{n}c_{1}\big{]}\frac{\alpha^{2n}}{\sqrt{(2n)!}}|2n\rangle,

which gives

dn={0,nis odd;1coshα2[c0+(1)n/2c1]αnn!,nis even.\displaystyle d_{n}=\left\{\begin{array}[]{lc}0,&n~{}\text{is odd};\\ \frac{1}{\sqrt{\cosh\alpha^{2}}}\big{[}c_{0}+(-1)^{n/2}c_{1}\big{]}\frac{\alpha^{n}}{\sqrt{n!}},&n~{}\text{is even}.\end{array}\right.

Therefore, for a general encoded input state, the quantum jump E^{\hat{E}}_{\ell} occurs with probability

P(γ)\displaystyle P_{\ell}(\gamma) =\displaystyle= 1coshα2n/2|c0+(1)nc1|2α4n(2n)!\displaystyle\frac{1}{\cosh\alpha^{2}}\sum_{n\geq\ell/2}\big{|}c_{0}+(-1)^{n}c_{1}\big{|}^{2}\frac{\alpha^{4n}}{(2n)!} (122)
×(2n)γ(1γ)2n.\displaystyle\times\begin{pmatrix}2n\\ \ell\end{pmatrix}\gamma^{\ell}(1-\gamma)^{2n-\ell}.