Introduction

Protecting the qubits' coherence against environmental noise is of vital importance. Generally, there are several different methods to protect qubits against noise, such as dynamical decoupling1,2,3, decoherence free subspace4,5, quantum error correction6,7 and purification protocols8,9,10. Quantum error correction works by redundantly encoding the quantum state into a higher-dimensional Hilbert space. Error syndromes, which are collective quantities, can be identified with measurement and errors are then corrected by performing recovering gate operations. Purification technique obtains entangled states with higher purities from those with lower purities. These two methods have advantages in different situations. Compared to quantum error correction, purification protocols require less resources and simpler operations and are better suited for cases where large quantities of simple quantum systems are needed, for instance, in quantum communications. Entanglement purification protocols with8,11,12, or without controlled-NOT (CNOT) gate9,13,14,15 were proposed. Moreover, purification of entanglement of different degrees of freedom16,17 and partially entangled photon pairs18,19 were put forward. Experimental realizations of entanglement purification schemes have also been reported10,20,21,22.

Cirac, Ekert and Macchiavello23 proposed the CEM protocol that purifies single qubits and they showed that single qubits of better quality can be purified from two or more copies of degraded qubits. Single qubit states are the building blocks in quantum information processing, such as quantum teleportation24, quantum cryptography25, quantum computation26,27 and quantum metrology28. Therefore, the CEM protocol could be routinely used as a fundamental procedure in these tasks. The main idea of the CEM protocol is to use a set of projections onto a symmetric subspace of the input qubits. Suppose there are two input qubits. If a purification procedure succeeds, the state of the two qubits is projected onto a two-qubit symmetric subspace, formed by |00〉, and |11〉, i.e. the triplet states. If the protocol fails, the two-qubit state is projected onto the antisymmetric subspace, formed by the singlet state .

In 2004, this protocol was first realized by Ricci et al. in a linear-optical system29. The experiment was based on the Hong-Ou-Mandel effect where a beam splitter scatters two encoded polarized photons into the same arm when they are projected onto the symmetric subspace. This experiment is a partial demonstration of the CEM protocol because the implementation in photon system cleverly took advantage of the bosonic nature of photons which exempted the symmetrization procedure in the CEM protocol. In general, physical systems are not necessarily bosonic and the symmetrization procedure has to be realized explicitly. Full experimental realization of the CEM protocol, implementing the symmetrization explicitly, is demanding. The experimental challenge lies in the implementation of a complicated quantum network that involves the CNOT gates and the Toffoli gate and demands a high level of precise quantum coherent controls. In this work, we designed an experiment scheme that implemented the complicated quantum network efficiently and realized the universal purification of single qubits in a nuclear magnetic resonance (NMR) quantum information processor. Our experiment shows that the CEM protocol is an efficient way of obtaining high purity qubits.

Results

Now we briefly describe the theoretical model23. There is a group of single qubits. Due to noises, they are in mixed state of the form,

where corresponds to a pure state , which is represented by a vector of unit length in the Bloch spheres as shown by the dashed arrows in Figure 1. Here c1 + c0 = 1, , are the two eigenstates of . , which is orthogonal to and denotes the error (Note that our definition is different from that of Ref. 23 where the role of state and is exchanged, namely is the state to be purified). The three-dimensional vector and the pure state are related by (nx = α*β + αβ*, ny = −α*β + αβ*, nz = |α|2 − |β|2). Here λ = c0c1 is the purity of the state, since if λ = 1, is a pure state, while if λ = 0, ρ|λ= 0 = I/2 is a maximumly mixed state.

Figure 1
figure 1

The experimental scheme and the CEM circuit.

The CEM circuit was given in Ref. 30. The input state of two work qubit is ρ2 = ρa ρb, where ρ is shown by a gray vector at the left Bloch sphere. The ancillary qubit is initially prepared at |0〉〈0|. After purification, the state of work qubits becomes ρ′ ρ′, where ρ′ is shown by a longer red arrow at the right Bloch sphere. The dashed arrow represents the pure state which is the target state of the purification.

Given a density matrix ρ, the fidelity f(ρ) is defined as

Suppose , the fidelity

Let us consider the system with two input qubits, the density operator of the two qubits can be decomposed into the symmetric (triplet) and antisymmetric (singlet) subspace as follows,

If the purification is successful, the density operator can be written as

with being the normalization constant. is the symmetric state in the basis . Then the output reduced density matrix of either qubit is

where . Define the purification factor F(λ) = λ′/λ, then

It is clear that F(λ) is always greater than 1 and approaches 1 as λ → 1.

The procedures of the CEM protocol is shown in Figure 1. The circuit was given by Sciarrino et al. in Ref. 30. An ancillary qubit is initially prepared in state |0〉〈0| and the input state of the two work qubits is a mixed state. After performing the Hadamard, CNOT and the Toffoli gate operations on the initial three-qubit system, the ancillary qubit will be conditionally flipped. If the state of qubit a and qubit b is , which carries no information about the initial state, the ancillary qubit will flip and the two work qubits will be discarded. Otherwise, the ancillary qubit will not change and qubit a and b are kept. Therefore, by measuring the ancillary qubit, one can decide whether or not the purification is successful. Then the state can be recovered by performing a Hadamard and a CNOT operations.

In the experiment, different input states have been prepared. Let the initial states be . We prepared states with different purity parameters λ, which corresponds to states with different degrees of degradation. Three unit Bloch vectors, , and , which correspond to , and , were chosen respectively. In the NMR experimental demonstration, a pseudo pure state |0〉 is prepared at first. To prepare mixed states with different λ's, the pseudo-pure state |0〉 is rotated around the x-axis with angle θ and then followed by performing the gradient field. Hence the purity parameter has a simple expression in terms of θ, λ = cos(θ). This procedure is illustrated in Figure 2 and described in detail in Methods section. The θ angles were set to with ranging from 0.1 to 0.9 with an interval of 0.1. The normalized density matrix of the output state is written as . It is clear that the purification factor F(λ) is greater than 1.

Figure 2
figure 2

Procedure of input mixed state preparation: (a) pseudo-pure state |0〉 indicated by a blue vector along z-axis; (b) rotating the pseudo pure state through angle θ around the x axis, shown by a green vector; (c) performing a gradient field to produce a mixed state shown by a short red vector.

Full tomography process of whole three-qubit system is carried out first and then the tomography of the output qubit is picked by tracing out the other two qubits. Because the sample is of natural abundance, the splitting in hydrogen and fluorine spectra caused by carbon could hardly be observed. To obtain their states, a SWAP gate (which is also realized through radio-frequency pulses) is applied to transfer the state of hydrogen or fluorine to carbon and be observed through the carbon spectrum. One example tomography result of the input and output state is shown in Figure 3. For the example, the initial purity is λ = cos(7π/20) = 0.454, which means the initial state is ρi = (1 + 0.454σz)/2. The purity of the output state is λ′ = 0.566, which is larger than the input state, giving F(λ) = 1.25.

Figure 3
figure 3

Comparison of the density matrices with λ = cos(7π/20): theoretical (a) and experimental (b) input density matrix with ρin = (I + λσz) and theoretical (c) and experimental (d) output density matrix with ρout = (I + λ′σz), where λ′ = 4λ/(3 + λ2) = 0.5664.

Theoretical and experimental results of purification factors and the state fidelities after purification are compared in Figure 4. In Figures 4a), 4b) and 4c), the experimental result of purification factors are compared with the theoretical results for states , and , respectively. Each data point is obtained by repeating one the experiment for eight times and the standard deviation is obtained and shown as the error bar. The experimental results agree with theoretical predictions very well.

Figure 4
figure 4

Result of purification.

State 1 (red), state 2 (blue) and state 3 (gray) refer to |0〉, and exp (−i7πσx/40) |0〉 respectively. The rotation angles represent the purity λ = cos(θ). Sub-figures (a), (b) and (c) are the purification factors obtained in the experiment. The experiments were repeated for eight times and the standard deviations were calculated as the error bar. Sub-figures (d), (e) and (f) show the fidelity before and after the purification. The black squares(triangles) represent the fidelities of the initial(output) pseudo mixed states. The dashed line and dotted line represent the theoretical fidelities before and after purification, respectively.

In Figures 4d), 4e) and 4f), we plotted the fidelities of the input (as square in the figure) and output (as triangle in the figure) states compared with the theoretical value for states , and , respectively. In Ref. 23, the fidelity of the output state after purification is given explicitly. In the current situation, the fidelity after purification is fout) = c0(1 − c1/2)/(1 − c0c1) > c0. The experimental data agree well with this theoretical prediction. The good agreement between experimental results and theoretical prediction for both the purification factors and the fidelities of the states after purification shows that the protocol is effective and universal.

In the experiments, the deviations of the experimental results from the theoretical predictions are mainly due to the inhomogeneities in the magnetic fields, the inaccuracy in the gate operations and decoherence due to noise. The low signal-to-noise ratio (SNR) also contributes to the deviation because the sample used in our experiment is of natural abundance and the percentage of 13C is only about 1%. The low signal is more pronounced for states with a lower fidelity, because initial mixed state is prepared by applying a Z-gradient and the Z-gradient kills the transverse polarization and thus the signal decreases. Hence, the lower the purity of the initial state, the weaker the SNR. This explains why the error bars of the purification factors increase as the purities of the initial state decrease.

Discussion

It is interesting to compare the current CEM protocol with the traditional entanglement purification. Pan et al. discussed and realized the photonic polarization entanglement purification for bit-flip error9,10. They showed that the bit-flip error can be well corrected by selecting the four-mode cases. In this way, the two cross-combinations, which cannot lead to the four-mode cases, are eliminated automatically. The cross-combinations essentially are the two pairs which only contain one bit-flip error. In the CEM protocol, the original mixed states can also be described as a probabilistic mixture of four pure states: i) they are in the state , with a probability of , ii) in the states and , with equal probabilities of c0c1 and iii) in the state , with a probability of . In detail, the four states could be expanded as follows,

Note that , is invariant with respect to the rotation of . From Eqs. (8)(11), we cannot eliminate the cross-combination items and completely. Fortunately, we can partially eliminate the cross-combination items, for both cross-combination items contain the singlet state |Ψ〉. Therefore, by projecting the states onto the symmetric subspace, we can complete the purification task.

The CEM protocol focuses on unknown single qubits, which is the fundamental building blocks in many quantum communication and quantum computation protocols, which could hardly avoid preparing single qubits with high purities. The realization of CEM protocol in Ref. 29 took advantage of the Hong-Ou-Mandel effect. It is suitable for optical system, which applies to almost all quantum communication protocols. In this experiment, we fully demonstrated the CEM protocol in an NMR system. Different from the realization in linear optical system, we exploit the quantum circuit to project the initial mixed states onto the symmetric subspace. This experiment showed that the circuit protocol is a universal approach to purify the single qubit.

Conclusion

In conclusion, we have fully realized the CEM protocol in a three-qubit NMR quantum information processor. We also explained theoretically that the CEM protocol is quite different from the traditional entanglement purification, for it can partially eliminate the cross-combinations, i. e. the singlet state. Our experimental results show that the purification factor agrees well with the theoretical prediction. This experiment fully demonstrated the original CEM protocol proposed by Cirac et al. As single qubits are the building blocks in quantum information processing, the CEM protocol is a powerful way for protecting single qubits from decoherence.

Methods

System and experiment procedure

The protocol is implemented on a BRUKER AVANCE III 400 MHz NMR spectrometer with diethyl-fluoromalonate dissolved in d6-acetone at 295.0 K as the quantum information processor. As shown in Figure 5, qubit a, qubit b and the ancillary qubit are represented by 1H, 13C and 19F, respectively. The natural Hamiltonian of these three nuclei of the molecule placed in a static magnetic field is

where ωi is the Larmor frequency of the i-th nuclei and Jij is the scalar coupling of spin i and j. The molecular parameters, structure as well as the thermal spectrum of the 13C are shown in Figure 5. Note that each of the four peaks represent the state of the other two qubits and this helps us to decide the state of the ancillary qubit after the purification operation.

Figure 5
figure 5

Molecular parameters, structure and the thermal spectrum of 13C of diethyl-fluoromalonate.

(a) The scalar couplings and chemical shifts of the three nuclei. (b) The molecular structure, where three nuclei used as the three qubits are marked. (c) The thermal equilibrium spectrum of the 13C marked in the molecule.

In our experiment, we realized the purification of three different input states: , , . The pulse sequence for the experiment is shown in Figure 6. First, the system should be initialized in a pure state and for an ensemble system like NMR, a pseudo-pure state(PPS) is prepared. Second, to demonstrate the purification protocol, qubit a and b need be prepared in an mixed state. Similar to what we have done with pure state on an ensemble system, a pseudo mixed state is prepared. Third, after the preparation of the mixed state, the purification process is applied. After all these processes are completed, measurement is performed to obtain the result of the experiment. We now discuss these procedures in details as follows.

Figure 6
figure 6

Pulse sequence for the experiment.

The small blocks refer to the single qubit rotations applied in NMR system, with the angle and axis of rotation shown inside the blocks. Ua is applied to qubits a and b to create an arbitrary state that is to be purified. To simplify the readout process, after the purification process is completed, is applied.

Initial state preparation

First of all, we create the pseudo pure state , where is the thermal polarization of the nuclear spin system, using the spatial averaging method31. The pulse sequence for preparing the state is shown in the PPS Preparation block in Figure 6.

Then what we want is the mixed state, which could be prepared using gradient fields32 or through the superposition of density matrices33. Here the method using gradient fields is employed. Apply a rotation of angle θ to qubit a around the x-axis, which makes PPS become (I + cos(θ)σz + sin(θ)σy)(I + σz)(I + σz). After performing a gradient field along the z-axis, the density matrix of qubit a can be described as I + cos(θ)σz, which means a pseudo-mixed state on qubit a is created. By applying the same procedure to qubit b, a pseudo-mixed state with density matrix

is prepared, where λ = cos(θ) and is the unit vector along the z-axis. At last, to prepare an arbitrary mixed state , a single qubit operation Ua, which can also be seen as a single qubit rotation that rotate to any arbitrary direction , is applied to both qubits a and b. The pulse sequence for pseudo-mixed state preparation can be seen in the corresponding block of Figure 6.

Realization of purification process

After the mixed state is prepared, the purification protocol is applied. There are two approaches of implementing an arbitrary unitary operation on an NMR system. One is to decompose the unitary operations into one-qubit operations and two-qubit σzσz interactions which can be implemented directly on an NMR spectrometer with radio frequency pulses and time delays34. The other is to use the optimal control technique to get an optimized shaped pulse with high fidelity to better control the system. One way of doing this is to use a GRAPE pulse which requires a full knowledge of the physical system35,36. The goal of this experiment is to demonstrate the effectiveness of the purification protocol and the pulse for this protocol can be regarded as a fundamental operation for future quantum information processing. Therefore, we adopt the GRAPE pulse. The pulse is found with a fidelity of 0.9995 and optimized so that it is robust to the fluctuations of the power of the spectrometer, the chemical shift of the molecules and other parameters in the experiment37. The number of the steps of the pulse is 103 and the duration of each step is 10 μs, so the total duration of the pulse is 10 ms.

Result readout

The last step of the protocol is to measure the ancillary qubit: if the state of that qubit is |0〉, the protocol is successful and we keep the two work qubits. Otherwise, if the state of the qubit is |1〉, both work qubits are discarded. For simplicity, before measurement, we rotate to by applying to both qubit a and qubit b. Figure 5c) shows the spectra of 13C, which is assigned as qubit a. The four peaks of the spectrum from left to right represent that the nuclei 1H and 19F are in the states |10〉, |00〉, |11〉 and |01〉, respectively. With respect to the state of 19F, which is assigned as the ancillary qubit, the four peaks are divided into two groups: group 1, consisting of the left two peaks, corresponds to the state |0〉 of 19F, indicating that the purification process successful and group 2, consisting of the right two peaks, corresponds to the state |1〉 of 19F, indicating that the purification process failed. Let the intensity of the two peaks of the left two peaks after purification be denoted by A1 and A0, respectively. Then the purity λ′ after purification is calculated as

With purity λ′ the purification factor F(λ) = λ′/λ and the fidelity of output density matrix fout) can be obtained and compared to theoretical prediction. To better demonstrate the result, each experiment was repeated for eight times and the standard deviation of the purification factors were determined and is used as the error bar, shown in Figure 4.