1 Introduction

Entanglement [1,2,3] plays an important role in quantum information processing (QIP), such as long-distance quantum communication and distributed quantum computation. In order to complete these QIP protocols perfectly, maximally entangled states are usually required. However, in a realistic situation, decoherence, induced by uncontrolled coupling between a quantum system and the environment, is a significant obstacle to the realization of QIP. When qubits are coupled to the environment, the quantum superposition and coherence are easily destructed, and as a result, the maximally entangled state collapses into a nonmaximally entangled one or even a mixed state. This will degrade the fidelity and security of quantum communication. Since it is impossible to perfectly isolate a quantum system from its surrounding environment, decoherence effects are more or less inevitable. Overcoming the destructive effects of decoherence is the central issue for quantum communication and computation. Many strategies addressing this challenge have been focused on using either quantum error corrections [4, 5], dynamical decoupling [6, 7], entanglement concentration [8,9,10,11] or decoherence-free subspaces (DFSs) [12,13,14,15]. In these approaches, the proposal of DFSs is a promising way. Provided that the interaction between the system and the environment exhibits a certain symmetry, the particular subspaces of the overall Hilbert space are immune to the decoherence induced by this symmetrical interaction. That is, when the decoherence-free (DF) states are influenced by this symmetrical interaction, no matter how strong this qubit–environment interaction, they exhibit some symmetry, so the quantum states are invariant under this interaction. This property makes the decoherence-free states also useful for long-distance quantum information transmission and storage.

The N-qubit decoherence-free states were originally proposed by Kempe et al. [14]. For two qubits, there is only one decoherence-free singlet state, i.e., \(\frac{1}{\sqrt{2}}(|01\rangle -|10\rangle )\). Therefore, it is not sufficient to fully protect the quantum information of an arbitrary logical qubit against collective noise. Another nontrivial example is the four-qubit entangled decoherence-free state

$$\begin{aligned} |\Phi _{0}\rangle =\alpha |0\rangle _{L}+\beta |1\rangle _{L}, \end{aligned}$$
(1)

where

$$\begin{aligned} |0\rangle _{L}= & {} \frac{1}{2} (|01\rangle -|10\rangle )(|01\rangle -|10\rangle ),\end{aligned}$$
(2)
$$\begin{aligned} |1\rangle _{L}= & {} \frac{1}{2\sqrt{3}} (2|0011\rangle +2|1100\rangle -|0101\rangle -|1010\rangle -|0110\rangle -|1001\rangle ). \end{aligned}$$
(3)

The dimension of the above four-qubit decoherence-free state in Eq. (1) is 2, and thus it is sufficient to fully protect an arbitrary logical qubit against collective noise in contrast to the two-qubit state. With its interesting applications, DFSs have been extensively studied both in theoretical and in experimental frames [16,17,18,19,20]. Bourennane et al. [16] did an experiment to generate four-photon polarization-entangled decoherence-free states via a spontaneous parametric down-conversion source. Subsequently, Zou et al. [17] and Gong et al. [18] proposed two different schemes to generate four-photon polarization-entangled decoherence-free states based on linear optical elements and postselection strategy. In 2011, Wang et al. [19] proposed a probabilistic linear-optics-based scheme for local conversion of four Einstein–Podolsky–Rosen photon pairs into four-photon polarization-entangled decoherence-free states. Very recently, Zhou et al. [20] proposed three effective protocols to generate four-qubit entangled decoherence-free states assisted by the cavity-QED system.

In this paper, we present a new scheme to generate the four-photon polarization-entangled decoherence-free state with the help of the cross-Kerr nonlinearities. Due to the fact that photons have the merits of higher speed, lower decoherence, easier manipulation and lower energy cost compared with more massive qubits, we use the polarization of photons as qubit and define the horizontally (vertically) linear polarization \(|H\rangle \) (\(|V\rangle \)) as the qubit \(|0\rangle \) (\(|1\rangle \)). The photonic QIP requires interactions between photons. One possible coupling mechanism is the cross-Kerr nonlinearity, where the photons interact via a nonlinear medium. The cross-Kerr nonlinearity between photons offers an ideal playground for quantum state engineering, and a number of applications have been studied, such as constructing nondestructive quantum nondemolition detectors (QND) [21, 22], quantum logic gates [22,23,24], deterministic entanglement distillation [25], logic-qubit entanglement [26, 27], generation of multi-photon-entangled states and three- or four-photon decoherence-free states [28,29,30,31,32,33].

The paper is organized as follows. We begin by briefly reviewing the cross-Kerr nonlinearity, which was first used in Ref. [34], and describe the generation process of the four-photon polarization-entangled DF state with the assistance of weak cross-Kerr nonlinearities in Sect. 2. The discussion and conclusion are presented in Sect. 3.

2 Generation of four-qubit entangled decoherence-free states

The cross-Kerr nonlinearity can be described with the Hamiltonian \(\hat{H}_{k}=-\hbar \kappa \hat{n}_{s}\hat{n}_{p}\), where \(\hat{n}_{s}\) \((\hat{n}_{p}) \) is the photon number operator of the signal (probe) mode, and \(\kappa \) is the strength of the nonlinearity. If the signal field contains n photons and the probe field is in an initial coherent state with amplitude \(\alpha \), the cross-Kerr nonlinearity interaction causes the combined signal-probe system to evolve as follows:

$$\begin{aligned} \mathrm {e}^{-\mathrm {i}\hat{H}_{k}t/\hbar }|n\rangle _{s}|\alpha \rangle _{p}=\mathrm {e}^{\mathrm {i}\kappa t\hat{n}_{s}\hat{n}_{p}}|n\rangle _{s}|\alpha \rangle _{p}=|n\rangle _{s}|\alpha \mathrm {e}^{\mathrm {i}n\theta }\rangle _{p}, \end{aligned}$$
(4)

where \(\theta =\kappa t\) with t being the interaction time. It is easy to observe that signal-photon state is unaffected by the interaction but the coherent state picks up a phase shift \(n\theta \) directly proportional to the number of photons n in the signal mode. One can exactly obtain the information of photons in the signal state but cannot destroy them through a general homodyne–heterodyne measurement of the phase of the coherent state. This technique was first used to realize a parity gate [21] and then a CNOT gate [22], where the requirement for this technique is \( \alpha \theta ^{2} > 9\) with \(\alpha \) denoting the amplitude of the coherent state. As for the cross-Kerr nonlinearity, the nonlinearity magnitude \(\theta \sim 10^{-2}\) is potentially available with the help of electromagnetically induced transparency [35]. In particular, the error probability is \(P_{\texttt {error}}=3.4\times 10^{-6}\) on the condition \(\alpha =90000, \theta =0.01\). This shows that it is still possible to operate in the regime of weak cross-Kerr nonlinearity, and the amplitude of the probe coherent state beam is physically reasonable with current experimental technology. Our scheme of preparing quantum-entangled state also works with the weak cross-Kerr nonlinearity.

In what follows, we explain the detailed procedures for generating the four-photon polarization-entangled decoherence-free state abided by the following processes, which is also illustrated in Fig. 1.

Fig. 1
figure 1

Illustration plot for generating four-photon polarization-entangled decoherence-free state with the help of the cross-Kerr nonlinearities. The beam splitters BS\(_{1_{}}\), BS\(_{2}\) and BS\(_{3}\) have equal probability (50:50) of transmission and reflection, while BS\(_{4}\) has the ratio \(A^{2}_{1}: A^{2}_{2}\) for the reflection and transmission coefficients. HWP22.5, HWP45 and HWP\(\delta \) denote half-wave plates which realize the Hadamard transformation operation, single-photon \(\sigma _{x}\) operation and rotation of \(2\delta \) on the basis \(\{|H\rangle , |V\rangle \}\), respectively. In the construction of the circuit, after a spatial entanglement module, the swap gates and the polarization entanglement module are need to be performed, which can be seen in Figs. 2 and 3, respectively. Before four photons leave the circuit, the eight potential paths of four photons are coherently combined by BS\(_{5}\)-BS\(_{8}\) for obtaining the four-photon polarization-entangled decoherence-free state

Assume the four single photons are initially prepared in the state \(|H\rangle _{1}\otimes |H\rangle _{2}\otimes |H\rangle _{3}\otimes |H\rangle _{4}\), and let them enter into the circuit shown in Fig. 1 from the input ports. In the spatial entanglement gate, four photons pass through beam splitters (BS\(_{1}\), BS\(_{2}\), BS\(_{3}\) and BS\(_{4}\)). The BSs’ reflectivity and transmissivity are independent of polarizations, and BSs have the following function between two input modes (a,b) and two output modes (c,d): \(a^{\dagger }\rightarrow (A_{1}c^{\dagger }+A_{2}d^{\dagger }), b^{\dagger }\rightarrow (A_{1}c^{\dagger }-A_{2}d^{\dagger })\), where the reflection and transmission coefficients of the BS\(_{1}\), BS\(_{2}\) and BS\(_{3}\) are \(A_{1}=A_{2}=\frac{1}{\sqrt{2}}\). Accompanying with a coherent state, the four photons enter into Kerr media; the evolution process of four photons interacting with the coherent state \(|\alpha \rangle \) can be expressed as

$$\begin{aligned} \frac{1}{2\sqrt{2}}(|H\rangle _{1}|S_{11}&\rangle +|H\rangle _{1}|S_{12}\rangle )(|H\rangle _{2}|S_{21}\rangle +|H\rangle _{2}|S_{22}\rangle )(|H\rangle _{3}|S_{31}\rangle \nonumber \\&\quad +|H\rangle _{3}|S_{32}\rangle )(A_{2}|H\rangle _{4}|S_{41}\rangle +A_{1}|H\rangle _{4}|S_{42}\rangle )\nonumber \\ \xrightarrow {\mathrm {Kerr \ media}}&\frac{1}{2\sqrt{2}} |H\rangle _{1}|H\rangle _{2}|H\rangle _{3}|H\rangle _{4}[(A_{2}|S_{11}\rangle |S_{21}\rangle |S_{31}\rangle |S_{41}\rangle \nonumber \\&\, +A_{1}|S_{12}\rangle |S_{22}\rangle |S_{32}\rangle |S_{42}\rangle )|\alpha \rangle \nonumber \\&+\,(A_{2}|S_{12}\rangle |S_{21}\rangle |S_{31}\rangle |S_{41}\rangle |\alpha \mathrm {e}^{-\mathrm {i}\theta }\rangle +A_{1}|S_{11}\rangle |S_{22}\rangle |S_{32}\rangle |S_{42}\rangle |\alpha \mathrm {e}^{\mathrm {i}\theta }\rangle )\nonumber \\&+\,(A_{2}|S_{11}\rangle |S_{22}\rangle |S_{31}\rangle |S_{41}\rangle |\alpha \mathrm {e}^{-\mathrm {i}2\theta }\rangle +A_{1}|S_{12}\rangle |S_{21}\rangle |S_{32}\rangle |S_{42}\rangle |\alpha \mathrm {e}^{\mathrm {i}2\theta }\rangle )\nonumber \\&+\,(A_{2}|S_{12}\rangle |S_{22}\rangle |S_{31}\rangle |S_{41}\rangle |\alpha \mathrm {e}^{-\mathrm {i}3\theta }\rangle + A_{1}|S_{11}\rangle |S_{21}\rangle |S_{32}\rangle |S_{42}\rangle |\alpha \mathrm {e}^{\mathrm {i}3\theta }\rangle )\nonumber \\&+\,(A_{2}|S_{11}\rangle |S_{21}\rangle |S_{32}\rangle |S_{41}\rangle |\alpha \mathrm {e}^{-\mathrm {i}4\theta }\rangle +A_{1}|S_{12}\rangle |S_{22}\rangle |S_{31}\rangle |S_{42}\rangle |\alpha \mathrm {e}^{\mathrm {i}4\theta }\rangle )\nonumber \\&+\,(A_{2}|S_{12}\rangle |S_{21}\rangle |S_{32}\rangle |S_{41}\rangle |\alpha \mathrm {e}^{-\mathrm {i}5\theta }\rangle +A_{1}|S_{11}\rangle |S_{22}\rangle |S_{31}\rangle |S_{42}\rangle |\alpha \mathrm {e}^{\mathrm {i}5\theta }\rangle )\nonumber \\&+\,(A_{2}|S_{11}\rangle |S_{22}\rangle |S_{32}\rangle |S_{41}\rangle |\alpha \mathrm {e}^{-\mathrm {i}6\theta }\rangle +A_{1}|S_{12}\rangle |S_{21}\rangle |S_{31}\rangle |S_{42}\rangle |\alpha \mathrm {e}^{\mathrm {i}6\theta }\rangle )\nonumber \\&+\,(A_{2}|S_{12}\rangle |S_{22}\rangle |S_{32}\rangle |S_{41}\rangle |\alpha \mathrm {e}^{-\mathrm {i}7\theta }\rangle +A_{1}|S_{11}\rangle |S_{21}\rangle |S_{31}\rangle |S_{42}\rangle |\alpha \mathrm {e}^{\mathrm {i}7\theta }\rangle )]. \end{aligned}$$
(5)

Performing an X-quadrature homodyne measurement [21] on the coherent state with \(\alpha \) real, there are eight groups of measurement outcomes corresponding to eight scenarios of phase shifts (\(0, \pm \theta ,\pm 2\theta ,\pm 3\theta ,\pm 4\theta ,\pm 5\theta ,\pm 6\theta ,\pm 7\theta \))denoted as Eq. (5). If zero phase shift occurs, the spatial entangled state of the four photons

$$\begin{aligned} |\psi \rangle _{1234,\mathrm {zero}} =|H\rangle _{1}|H\rangle _{2}|H\rangle _{3}|H\rangle _{4}(A_{2}|S_{11}\rangle |S_{21}\rangle |S_{31}\rangle |S_{41}\rangle +A_{1}|S_{12}\rangle |S_{22}\rangle |S_{32}\rangle |S_{42}\rangle ) \end{aligned}$$
(6)

is created. Otherwise, nonzero phase shifts (\(\pm j\theta , j=1,2,\ldots ,7\)) are obtained; a phase shift \(2\phi (x,k\theta ), (k=1,2,\ldots ,7)\) operation should be performed to erase the phase difference between the two superposition terms in the scenarios of seven different nonzero phase shifts. Here \(2\phi (x,k\theta )=2\alpha \sin k\theta (x-2\alpha \cos k\theta ) \mathrm {mod} 2\pi \) is a function of the phase shift and the eigenvalue x of the X operator. Then, some swap gates are inserted into the corresponding paths (\(S_{11},S_{12}; S_{21}, S_{22}; S_{31}, S_{32}; S_{41}, S_{42}\) ) to change the system state to that shown in Eq. (6). A swap gate is an important two-qubit logic gate. In terms of the basis of \(\{|00\rangle , |01\rangle , |10\rangle , |11\rangle \}\), the swap gate can be represented as the following matrix:

$$\begin{aligned} \begin{bmatrix}1&0&0&0\\0&0&1&0\\0&1&0&0\\0&0&0&1\end{bmatrix}. \end{aligned}$$
(7)

In practice, the swap gate transformation can be yielded by the Hong-Ou-Mandel interference [36] in the Mach-Zehnder interferometer [23, 37], illustrated in Fig. 2. Two beam splitters constitute a Mach-Zehnder interferometer. Additionally, the phase shifter PS \(\pi \) denotes the phase shift \(\pi \) executed on the photon passing through the line it is inserted.

Fig. 2
figure 2

Illustration plot for depicting the swap gate. The symbol PS \(\pi \) denotes the phase shift \(\pi \) executed on the photon passing through the line it is inserted. A beam splitter has the following function between two input modes (a, b) and two output modes (c, d): \(a^{\dagger }\rightarrow \frac{1}{\sqrt{2}}(c^{\dagger }+d^{\dagger })\), \(b^{\dagger }\rightarrow \frac{1}{\sqrt{2}}(d^{\dagger }-c^{\dagger })\)

Subsequently, the half-wave plates, HWP\(22.5^{\circ }\)s, are inserted into the paths \(S_{11}, S_{12}, S_{31}, S_{32}\). Meanwhile, a HWP\(\delta \) is inserted into the path \(S_{21}\), and a HWP\(45^{\circ }\) is inserted into the path \(S_{41}\). The HWP\((\delta )\) transformation function is given by \(|H\rangle \rightarrow \cos 2\delta |H\rangle + \sin 2\delta |V\rangle \). So the system evolves to

$$\begin{aligned}&{\frac{A_{2}}{2}[\cos 2\delta (|VHHV\rangle +|VHVV\rangle +|HHHV\rangle +|HHVV\rangle )}\nonumber \\&\quad +\sin 2\delta (|VVHV\rangle +|VVVV\rangle +|HVHV\rangle +|HVVV\rangle )]|S_{11}\rangle |S_{21}\rangle |S_{31}\rangle |S_{41}\rangle \nonumber \\&\quad +\frac{A_{1}}{2}(|HHHH\rangle +|HHVH\rangle +|VHHH\rangle +|VHVH\rangle )|S_{12}\rangle |S_{22}\rangle |S_{32}\rangle |S_{42}\rangle .\nonumber \\ \end{aligned}$$
(8)

In the polarization entanglement module, four controlled-NOT (CNOT) gates are performed on the paths (\(S_{31},S_{41}\)), (\(S_{12},S_{22}\) ), (\(S_{32},S_{42}\)) and (\(S_{41},S_{21}\) ) ( the photon in the former path as control photon and the photon in the latter path as target photon in each pair of paths). The CNOT gate is important in the experimental realization. Knill et al. [38] firstly proposed a probabilistic CNOT gate on two photonic qubits by using linear optical elements and postselection. The cross-Kerr nonlinearity has also been used to implement the CNOT gate [22, 23, 44]. After four CNOT gates, the four-photon system will evolve into

$$\begin{aligned}&{\frac{A_{2}}{2}[\cos 2\delta (|VVHV\rangle +|VHVH\rangle +|HVHV\rangle +|HHVH\rangle )}\nonumber \\&\quad +\sin 2\delta (|VHHV\rangle +|VVVH\rangle +|HHHV\rangle +|HVVH\rangle )]|S_{11}\rangle |S_{21}\rangle |S_{31}\rangle |S_{41}\rangle \nonumber \\&\quad +\frac{A_{1}}{2}(|HHHH\rangle +|HHVV\rangle +|VVHH\rangle +|VVVV\rangle )|S_{12}\rangle |S_{22}\rangle |S_{32}\rangle |S_{42}\rangle .\nonumber \\ \end{aligned}$$
(9)

When the photons (1,2,3) enter into the Kerr media, affected by cross-Kerr nonlinearities, the horizontal polarization mode of photons (1,2,3) via the paths \(S_{11},S_{12}, S_{21}, S_{32}\) will accumulate the phase shift \(\theta \), respectively, on the coherent state \(|\alpha '\rangle \). As the consequence of the nonlinear interaction between photons and the coherent state, the state of the whole system can be expressed as

$$\begin{aligned}&{\frac{A_{2}}{2}\{[\cos 2\delta (|VHVH\rangle +|HVHV\rangle )+\sin 2\delta (|VHHV\rangle +|HVVH\rangle )]|\alpha '\rangle }\nonumber \\&\quad +\,(\cos 2\delta |HHVH\rangle +\sin 2\delta |HHHV\rangle )|\alpha ' \mathrm {e}^{\mathrm {i}\theta }\rangle +(\cos 2\delta |VVHV\rangle \nonumber \\&\quad +\,\sin 2\delta |VVVH\rangle )|\alpha ' \mathrm {e}^{\mathrm {-i}\theta }\rangle \}|S_{11}\rangle |S_{21}\rangle |S_{31}\rangle |S_{41}\rangle \nonumber \\&\quad +\,\frac{A_{1}}{2}[(|HHVV\rangle +|VVHH\rangle )|\alpha '\rangle +|HHHH\rangle |\alpha ' \mathrm {e}^{\mathrm {i}\theta }\rangle \nonumber \\&\quad +\,|VVVV\rangle |\alpha ' \mathrm {e}^{\mathrm {-i}\theta }\rangle ]|S_{12}\rangle |S_{22}\rangle |S_{32}\rangle |S_{42}\rangle . \end{aligned}$$
(10)

Perform the X-quadrature homodyne measurement on the coherent state. If zero phase shift occurs, no phase modulation is necessary. Otherwise, if nonzero phase shift is presented, three HWP\(45^{\circ }\)s should be put into the paths \(S_{11}, S_{32}, S_{42}\), respectively, and two phase shifters PS \(2\phi (x)\) are inserted into the circuit. After that, we can obtain the four-photon state as follows

$$\begin{aligned}&\frac{A_{2}}{\sqrt{2}}[\cos 2\delta (|HVHV\rangle +|VHVH\rangle )\nonumber \\&\quad +\sin 2\delta (|VHHV\rangle +|HVVH\rangle )]|S_{11}\rangle |S_{21}\rangle |S_{31}\rangle |S_{41}\rangle \nonumber \\&\quad +\frac{A_{1}}{\sqrt{2}}(|HHVV\rangle +|VVHH\rangle )|S_{12}\rangle |S_{22}\rangle |S_{32}\rangle |S_{42}\rangle . \end{aligned}$$
(11)
Fig. 3
figure 3

Illustration plot for depicting a polarization entanglement module. The left part represents the photonic CNOT gates assisted by cross-Kerr nonlinearities, which can be realized in Refs. [22, 23, 44]. The polarization beam splitters (PBS) reflect the vertical polarization \(|V\rangle \) mode and transmit the horizontal polarization \(|H\rangle \) mode. After the CNOT gates, the photons (1,2,3) pass through the Kerr medium. Influenced by cross-Kerr nonlinearities, the photons (1,2,3) in the horizontal polarization state enable the coherent state \(|\alpha \rangle \) to pick up the phase shift \(\theta \), respectively, while the phase shifter \(-\theta \) is applied to generate the minus phase shift

Before four photons leave the circuit, we let them pass through the beam splitters \(\hbox {BS}_{5}-\hbox {BS}_{8}\). According to the following rules, \(a^{\dagger }_{S_{11}}\rightarrow \frac{1}{\sqrt{2}}(a^{\dagger }_{S'_{11}}+a^{\dagger }_{S'_{12}})\), \( a^{\dagger }_{S_{12}}\rightarrow \frac{1}{\sqrt{2}}(a^{\dagger }_{S'_{12}}-a^{\dagger }_{S'_{11}})\), \(a^{\dagger }_{S_{21}}\rightarrow \frac{1}{\sqrt{2}}(a^{\dagger }_{S'_{21}}-a^{\dagger }_{S'_{22}})\), \(a^{\dagger }_{S_{22}}\rightarrow \frac{1}{\sqrt{2}}(a^{\dagger }_{S'_{22}}+a^{\dagger }_{S'_{21}})\), \(a^{\dagger }_{S_{31}}\rightarrow \frac{1}{\sqrt{2}}(a^{\dagger }_{S'_{31}}-a^{\dagger }_{S'_{32}})\), \(a^{\dagger }_{S_{32}}\rightarrow \frac{1}{\sqrt{2}}(a^{\dagger }_{S'_{32}}+a^{\dagger }_{S'_{31}})\), \(a^{\dagger }_{S_{41}}\rightarrow \frac{1}{\sqrt{2}}(a^{\dagger }_{S'_{41}}+a^{\dagger }_{S'_{42}})\), and \( a^{\dagger }_{S_{42}}\rightarrow \frac{1}{\sqrt{2}}(a^{\dagger }_{S'_{42}}-a^{\dagger }_{S'_{41}})\), at the output ports, the state of four photons expressed as Eq. (11) is transformed to

$$\begin{aligned}&{\frac{1}{4\sqrt{2}}\{[A_{2}\cos 2\delta (|HVHV\rangle +|VHVH\rangle )+A_{2}\sin 2\delta (|VHHV\rangle +|HVVH\rangle )}\nonumber \\&\quad +\,A_{1}(|HHVV\rangle +|VVHH\rangle )](|S'_{11}\rangle |S'_{21}\rangle |S'_{31}\rangle |S'_{41}\rangle -|S'_{11}\rangle |S'_{21}\rangle |S'_{32}\rangle |S'_{42}\rangle \nonumber \\&\quad -\,|S'_{11}\rangle |S'_{22}\rangle |S'_{31}\rangle |S'_{42}\rangle +|S'_{11}\rangle |S'_{22}\rangle |S'_{32}\rangle |S'_{41}\rangle +|S'_{12}\rangle |S'_{21}\rangle |S'_{31}\rangle |S'_{42}\rangle \nonumber \\&\quad -\,|S'_{12}\rangle |S'_{21}\rangle |S'_{32}\rangle |S'_{41}\rangle -|S'_{12}\rangle |S'_{22}\rangle |S'_{31}\rangle |S'_{41}\rangle +|S'_{12}\rangle |S'_{22}\rangle |S'_{32}\rangle |S'_{42}\rangle )\nonumber \\&\quad +\, [A_{2}\cos 2\delta (|HVHV\rangle +|VHVH\rangle )+A_{2}\sin 2\delta (|VHHV\rangle +|HVVH\rangle )\nonumber \\&\quad -\,A_{1}(|HHVV\rangle +|VVHH\rangle )](|S'_{11}\rangle |S'_{21}\rangle |S'_{31}\rangle |S'_{42}\rangle -|S'_{11}\rangle |S'_{21}\rangle |S'_{32}\rangle |S'_{41}\rangle \nonumber \\&\quad -\,|S'_{11}\rangle |S'_{22}\rangle |S'_{31}\rangle |S'_{41}\rangle +|S'_{11}\rangle |S'_{22}\rangle |S'_{32}\rangle |S'_{42}\rangle +|S'_{12}\rangle |S'_{21}\rangle |S'_{31}\rangle |S'_{41}\rangle \nonumber \\&\quad -\,|S'_{12}\rangle |S'_{21}\rangle |S'_{32}\rangle |S'_{42}\rangle -|S'_{12}\rangle |S'_{22}\rangle |S'_{31}\rangle |S'_{42}\rangle +|S'_{12}\rangle |S'_{22}\rangle |S'_{32}\rangle |S'_{41}\rangle )\}. \end{aligned}$$
(12)

From the above equation, we can see that by detecting the outputs of the four photons, if the state \(A_{2}\cos 2\delta (|HVHV\rangle +|VHVH\rangle )+A_{2}\sin 2\delta (|VHHV\rangle +|HVVH\rangle )-A_{1}(|HHVV\rangle +|VVHH\rangle )\) is obtained, two HWPs are employed to be performed \(\sigma _{z}\sigma _{z}\) on the photons (1, 2) or the photons (3, 4). Finally, we obtain

$$\begin{aligned}&\frac{A_{2}\cos 2\delta }{\sqrt{2}}(|HVHV\rangle +|VHVH\rangle )+\frac{A_{2}\sin 2\delta }{\sqrt{2}}(|VHHV\rangle +|HVVH\rangle )\nonumber \\&\quad +\,\frac{A_{1}}{\sqrt{2}}(|HHVV\rangle +|VVHH\rangle ). \end{aligned}$$
(13)

By modulating the coefficients \( A_{1}, A_{2}\) and \(\delta \) as \( A_{1}=\sqrt{\frac{2}{3}}\beta , A_{2}\sin 2\delta =-\frac{\alpha }{\sqrt{2}}-\frac{\beta }{\sqrt{6}}\) and \( A_{2}\cos 2\delta =\frac{\alpha }{\sqrt{2}}-\frac{\beta }{\sqrt{6}}\), we can obtain

$$\begin{aligned} |\psi \rangle _{L}= & {} \alpha |0\rangle _{L}+\beta |1\rangle _{L}=\frac{\alpha }{2}(|HV\rangle -|VH\rangle )(|HV\rangle -|VH\rangle )\nonumber \\&+\,\frac{\beta }{2\sqrt{3}}(2|VVHH\rangle +2|HHVV\rangle -|VHVH\rangle -|VHHV\rangle \nonumber \\&-\,|HVHV\rangle -|HVVH\rangle )]_{1234}. \end{aligned}$$
(14)

That is, the generation of four-photon polarization-entangled decoherence-free state is achieved. Compared with the previous protocol in Ref. [33], which can be iterated to get a good success probability, the present one is the first nearly deterministic scheme to prepare the four-photon polarization-entangled decoherence-free state based on cross-Kerr nonlinearities (Fig. 3).

3 Discussion and conclusion

So far, we have shown an alternative scheme for photonic qubits in generating an entangled decoherence-free state. We now give a brief discussion about the experimental feasibility of protocol with the current experimental technology. First of all, the cross-Kerr nonlinearities are exploited in the spatial entanglement process and the polarization entanglement module. Although a lot of works have been studied in the area of cross-Kerr nonlinearities, we should acknowledge that it is still a quite controversial concept to have a clean cross-Kerr nonlinearity in the optical single-photon regime with present science and technology. What is worse, the natural cross-Kerr nonlinearities are extremely small and unsuitable for single-photon interaction. Hence, various physics systems or artificial media such as negative index metamaterials [39], a superconducting artificial atom [40] and three-dimensional circuit quantum electrodynamic architecture [41, 42] are investigated to achieve larger strength of cross-Kerr nonlinearities. Second, the experiment feasibility of the present protocol also depends on the veracity of the X-quadrature homodyne measurement. Without considering other conditions, the error chiefly comes from the overlap of adjacent curves because of the fact that the coherent states of the probe beam with different phase shifts are not completely orthogonal. In fact, it is only one type of detection error in homodyne; other errors, such as the noises in detection, the reduced fidelity to the process in Eq. (4) due to multi-mode effect and decoherence, etc., also exist in a realistic implementation. Exploiting the appropriate measurement methods, the disadvantageous influence can be overcome or alleviated and the error probability will be decreased. In 2010, Wittmann et al. [43] investigated quantum measurement strategies capable of discriminating two coherent states using a homodyne detector and a photon number resolving (PNR) detector. In order to lower the error probability, the postselection strategy is applied to the measurement data of homodyne detector as well as a PNR detector. They indicated that the performance of the new displacement-controlled PNR is better than homodyne receiver. Finally, one can see that four CNOT gates are performed in the polarization entanglement module. Employing weak cross-Kerr nonlinearities, a nearly deterministic CNOT gate was put forward by Nemoto and Munro [22] with one auxiliary photon. At the price of halving the construction probability, Lin and Li [23] proposed a CNOT gate without the ancilla photon. Motivated by these schemes, Xiu et al. [44] presented a scheme for constructing the nearly deterministic CNOT gate, where the auxiliary photon is not necessary. However, these methods are at the best, nearly deterministic, so our scheme could be nearly deterministic.

To summarize, we have proposed the detailed generation circuit of the four-photon polarization-entangled decoherence-free state with the assistance of the cross-Kerr nonlinearities. In our protocol, combined with some swap gates and simple linear optical elements, two main processes including the four-photon spatial entanglement process and the four-photon polarization entanglement process are applied. This protocol can be implemented nearly deterministically in principle. By virtue of the availability of optical elements and techniques involved, we hope the generation scheme is feasible and it will stimulate investigations on the applications of four-qubit decoherence-free states based on optics.