## Abstract

One of the biggest challenges in experimental quantum information is to sustain the fragile superposition state of a qubit^{1}. Long lifetimes can be achieved for material qubit carriers as memories^{2}, at least in principle, but not for propagating photons that are rapidly lost by absorption, diffraction or scattering^{3}. The loss problem can be mitigated with a nondestructive photonic qubit detector that heralds the photon without destroying the encoded qubit. Such a detector is envisioned to facilitate protocols in which distributed tasks depend on the successful dissemination of photonic qubits^{4,5}, improve loss-sensitive qubit measurements^{6,7} and enable certain quantum key distribution attacks^{8}. Here we demonstrate such a detector based on a single atom in two crossed fibre-based optical resonators, one for qubit-insensitive atom–photon coupling and the other for atomic-state detection^{9}. We achieve a nondestructive detection efficiency upon qubit survival of 79 ± 3 per cent and a photon survival probability of 31 ± 1 per cent, and we preserve the qubit information with a fidelity of 96.2 ± 0.3 per cent. To illustrate the potential of our detector, we show that it can, with the current parameters, improve the rate and fidelity of long-distance entanglement and quantum state distribution compared to previous methods, provide resource optimization via qubit amplification and enable detection-loophole-free Bell tests.

## Main

The qubit is the elementary information unit in quantum information science^{1}. Encoding a qubit into two modes of a single photon allows the distribution of quantum information over long distances. This has enabled a range of experiments, from fundamental tests of quantum physics^{10,11} to applications related to quantum communication^{3} and quantum networks^{9,12}. However, unavoidable absorption, diffraction and scattering losses of long transmission channels severely limit the transfer distance. It is important to emphasize that these losses typically occur independent of the state of the qubit that is encoded in the two optical modes, be it time bins or light polarization. In fact, in optical fibres the loss rate of the qubit carrier, the photon, can be many orders of magnitude larger than all decoherence rates of the encoded qubit. By contrast, material qubit carriers are rarely lost in any quantum information protocol demonstrated so far. For photons, the loss is fundamental and cannot be eliminated in any of the envisioned quantum information processing tasks. However, the loss effect could be mitigated by tracking the photon without destroying the encoded qubit, provided a nondestructive photonic qubit detector (NPQD) is available.

Once at hand, such an NPQD could communicate to both the sending and the receiving nodes of a quantum network whether or not a photonic qubit has been lost along the way (Fig. 1a). This loss monitoring has several advantages: first, it allows quantum communication schemes to stop the execution of further operations and restart the protocol when the qubit-carrying photon was found to be lost along the communication channel. This is important when these operations are time-expensive or involve the use of precious resources such as long-distance entanglement for quantum teleportation. Second, the detector can precertify the arrival of a photonic qubit immediately before a planned quantum measurement so that the latter is only conducted when the qubit is present at the measurement input. This enables us to perform loss-sensitive qubit measurements even in the presence of high transmission losses. Examples are measurements limited by the detection noise, photon-receiving repeater schemes^{13}, or experiments where qubit loss leads to loopholes as in Bell tests^{6,7}. The last are of key importance for device-independent quantum key distribution^{14}.

Despite recent progress on the quantum nondemolition detection of optical and microwave fields^{15,16,17,18,19,20,21}, the nondestructive detection of the photonic energy without projection of the encoded qubit information remains an outstanding challenge. Some work related to the experimental implementation of NPQDs in the optical domain has been conducted, such as the nondestructive detection of bright two-mode light pulses using cross-phase modulation^{22}, although this scheme operates far from the single-photon qubit regime. Another approach makes use of parametric down-conversion of the incoming qubit photon^{23}, where one down-converted photon heralds the qubit presence and the other provides the qubit information. This approach shows a severely limited efficiency (−76 dB), owing to the small conversion efficiency of the applied photon-splitting process. Other related work includes heralded qubit amplifiers, which use two ancilla photons that interfere with the input signal^{24}. However, interference requires prior knowledge about the pulse shape and arrival time and therefore restricts the range of possible applications. Finally, our previous work on heralded quantum memories^{25,26} can, in combination with readout, be used to herald photonic qubits. But the single-photon herald signal is highly sensitive to losses and the system therefore has a small detection efficiency. It is important to point out that (in contrast to the NPQD reported here) all mentioned qubit-heralding schemes destroy the original incoming photon waveform, which is important in applications where synchronization and interference matter, as for time-bin qubits or in linear optical quantum computing^{27}.

We here demonstrate the implementation of an NPQD using a single atom strongly coupled to the modes of two independent optical resonators. Photonic polarization qubits are sent onto the qubit cavity where they are reflected while imprinting a π phase shift on an atomic superposition state. By coherent manipulation of the atomic superposition state, phase information is mapped into population information, which can be read out using the state-detection cavity. This signal heralds the nondestructive detection of the photonic qubit reflected off the qubit cavity. We show that the strong atom–photon interaction provided by both cavities allows for an efficient NPQD. We also prove that the reflection mechanism preserves the temporal waveform of the light pulse, which is of key importance for photonic time-bin qubits.

The qubit–atom interaction mechanism is, in essence, a single-rail version of the scheme proposed by Duan et al.^{28}. In our case, it starts with a ^{87}Rb atom prepared in state \((|{0}_{{\rm{a}}}\rangle +|{1}_{{\rm{a}}}\rangle )/\sqrt{2}\) (Bloch sphere I in Fig. 1e). The atomic state |0_{a}⟩ is strongly coupled to the optical cavity modes, thus preventing a photon from entering the cavity. Instead, the photon reflects from the cavity input mirror (Fig. 1d) so that |*Ψ*_{ph}⟩|0_{a}⟩ → +|*Ψ*_{ph}⟩|0_{a}⟩, where |*Ψ*_{ph}⟩ denotes a photonic polarization qubit. By contrast, state |1_{a}⟩ has no transition in resonance with the qubit cavity. Hence, the qubit photon enters the cavity and acquires a π phase shift upon reflection, |*Ψ*_{ph}⟩|1_{a}⟩ → −|*Ψ*_{ph}⟩|1_{a}⟩. Together, the qubit photon flips the atomic superposition state to \((|{0}_{{\rm{a}}}\rangle -|{1}_{{\rm{a}}}\rangle )/\sqrt{2}\) (Bloch sphere II). Finally, a π/2 pulse rotates the atomic state to |0_{a}⟩ (|1_{a}⟩) in the case of one (no) qubit photon (Bloch sphere III), enabling us to witness the atomic phase flip by means of deterministic atomic-state detection (Bloch sphere IV).

Compared to previous experiments^{18}, our scheme is made possible by two key ingredients: first, we choose a state |0_{a}⟩ ≔ |*F* = 1, *m*_{F} = 0⟩ so that the qubit cavity, with its two left and right circularly polarized and frequency-degenerate eigenmodes, couples strongly to two atomic transitions, |0_{a}⟩ ↔ |*F*′ = 2, *m*_{F} = ±1⟩ (Fig. 1c). Here, *F* and *F*′ denote the magnitude of the total atomic angular momentum and *m*_{F} denote their projection onto the quantization axis. The coupling strengths for both transitions are equal by definition but much smaller than for a cycling transition. We compensate this reduction by using a miniaturized fibre resonator^{29}, achieving a coupling constant *g* = 2π × (18.6 ± 0.5) MHz and a cooperativity of *C* = 1.67 ± 0.09 (see Methods). Second, the compact lateral size of fibre resonators allows for the integration of a second crossed optical-fibre resonator with small mode volume. Here, it is used as the state-detection cavity which is tuned to the atomic cycling transition |*F* = 2⟩ ↔ |*F*′ = 3⟩, enabling a strong fluorescence signal to be observed from |1_{a}⟩ ≔ |*F* = 2, *m*_{F} = 0⟩. This is used to distinguish the two atomic states |0_{a}⟩ and |1_{a}⟩ with a fidelity of (98.2 ± 0.2)% at a photon-number threshold of one.

The physical elements needed to implement the NPQD are shown in Fig. 1b. The photon qubit |*Ψ*_{ph}⟩ first passes a highly transmitting non-polarizing beam splitter. Although the non-polarizing beam splitter is suitable for characterization measurements employing weak coherent pulses, for future implementations using single photons it should be replaced by an efficient optical circulator (Fig. 1a). After reflection at the non-polarizing beam splitter, the photon qubit is coupled into a single-mode optical fibre that connects to the qubit fibre cavity where the nondestructive interaction takes place. After reflection, the qubit photon is characterized by state tomography. Coherent manipulation of the atomic ground states is achieved by means of microwave fields emitted by an antenna close to the fibre cavities. The microwave flips the atomic state in about 12 μs with a probability of (97 ± 1)% (see Methods). The detector herald signal is generated by a laser that, together with the state-detection cavity, induces cavity-enhanced fluorescence^{9} for typically 7.5 μs. The fluorescence photons are predominantly emitted into the cavity from where they are guided towards a single-photon detector. Note that both fibre cavities are single-sided (for details, see ref. ^{26}), so that the dominant escape channels for cavity photons are the two single-mode fibres.

We now characterize the nondestructive detection of photonic polarization qubits. For this, weak coherent pulses at the single-photon level were used. Figure 2a illustrates the NPQD temporal sequence by showing a time histogram of single-photon detector counts at the qubit measurement setup and the state-detection cavity output. The mean photon number here is |*α*|^{2} = 0.13 in front of the qubit cavity. As can be seen, the reflection of photonic qubits at the NPQD (green bars) has a large effect on the number of observed state-detection photons (red bars) compared to the situation where no qubits are sent (blue bars). This enables an efficient detection of the photonic qubits. However, the definition of the NPQD efficiency is ambiguous as it depends on the use case. Relevant parameters that relate to the NPQD efficiency include the conditional probability of detecting the atom in the qubit-heralding state |0_{a}⟩, either given a qubit at the qubit cavity output (1_{oq}), *P*(0_{a}|1_{oq}) = (79 ± 3)%, or given a qubit at the NPQD input (1_{iq}), *P*(0_{a}|1_{iq}) = (45 ± 2)%, and the photon survival probability *η*_{surv} = (31 ± 1)%. Another figure of merit for any detector is the dark-count probability, which is *p*_{DC} = (3.3 ± 0.2)% for our NPQD.

As NPQDs should preserve the qubit, polarization state tomography was conducted on the outgoing photonic qubits and compared with the incoming qubits. With this we calculate the fidelity \( {\mathcal F} \) = ⟨*Ψ*_{in}|*ρ*_{out}|*Ψ*_{in}⟩. Six orthogonal polarization states were tomographically investigated (Fig. 2b), showing an overall mean state fidelity of \({\bar{ {\mathcal F} }}_{{\rm{a}}{\rm{l}}{\rm{l}}}=(96.2\pm 0.3){\rm{ \% }}\) conditioned on a nondestructive qubit detection. Our fidelity, here for |*α*|^{2} = 0.2, greatly exceeds the upper limit of the fidelity 2/3 or 5/6 which is possible for schemes employing 1 → ∞ or 1 → 2 universal quantum cloning machines, respectively^{30}. Note that the limits must be slightly shifted to 67.5% (ref. ^{31}) and 84.9%, owing to higher photon number contributions of weak coherent pulses. Against this backdrop we conclude that our NPQD operates in the quantum regime.

A major contribution to the infidelity comes from a polarization rotation around the *A*/*D* axis, attributed to a residual birefringence of the qubit cavity (see Methods). The mean fidelity for rotated and non-rotated states is given by \({\bar{ {\mathcal F} }}_{{\rm{HVRL}}}\) and \({\bar{ {\mathcal F} }}_{{\rm{AD}}}\), respectively (Fig. 2c). However, taking into account this rotation in the calculation (which would be experimentally feasible by placing retardation waveplates after the qubit cavity) leads to an overall mean state fidelity of \({\overline{ {\mathcal F} }}_{\circlearrowleft }=(98.0\pm 0.3) \% \) (orange bar). The remaining 2% infidelity is attributed to errors in the calibration of the qubit measurement setup and to fluctuations of the qubit cavity resonance frequency. Additionally, a quantum process is reconstructed via a maximum-likelihood fit, leading to an overall mean state fidelity of \({\bar{ {\mathcal F} }}_{{\rm{s}},\chi }=(96.3\pm 0.6) \% \).

Another important property of an NPQD is to preserve the temporal waveform of the photonic qubit (Fig. 2d). This is of great importance in scenarios where photons interfere or where quantum information is encoded in the temporal mode of the photon in addition to, or instead of, the polarization. To illustrate that our NPQD preserves the waveform, we compare three different envelopes of qubit pulses reflected off our atom–cavity system (blue points) with pulses reflected off an empty cavity (yellow points). For all three cases we find an intensity waveform overlap between the outgoing and the incoming photon exceeding 99.5%.

The mean input photon number |*α*|^{2} of the weak coherent pulses encoding the qubit has a role in the performance of the NPQD. Its characterization is presented in Fig. 3 where different figures of merit of our detector are shown. For the given range of |*α*|^{2} in front of the qubit cavity, the nondestructive detection probability upon qubit survival *P*(0_{a}|≥1_{oq}) (blue points in Fig. 3a) shows a maximum of (79 ± 3)% at |*α*|^{2} = 0.13. Here, the major error is attributed to a difference in intensity reflection coefficients for a coupling \(({R}_{|{0}_{{\rm{a}}}\rangle }=0.50\pm 0.02)\) and a noncoupling atom \(({R}_{|{1}_{{\rm{a}}}\rangle }=0.117\pm 0.003)\); see Methods. For high |*α*|^{2}, the conditional probability converges towards 0.5 owing to the balanced contribution of odd and even photon numbers^{32}, and decreases for small |*α*|^{2} values owing to dark counts of the qubit measurement set-up. The unconditional probability *P*(0_{a}) (green points) shows the same convergence for high |*α*|^{2}. However, in the limit of |*α*|^{2} → 0, the probability is lower-bounded by *p*_{DC} (grey dashed line), which is due to imperfections in the atomic-state manipulation, in the optical pumping and in the state detection.

Another important figure of merit is the probability of having a photonic qubit at the NPQD output conditioned on its nondestructive detection, *P*(1_{oq}|0_{a}). Because we characterize the NPQD with weak coherent states (and not with single-photon Fock states), we instead show in Fig. 3b the conditioned mean photon number, \({\bar{n}}_{{\rm{oq}}}({0}_{{\rm{a}}})\), which is equivalent to *P*(1_{oq}|0_{a}) for small input photon numbers. We observe \({\bar{n}}_{{\rm{oq}}}({0}_{{\rm{a}}})=0.56\pm 0.02\) for |*α*|^{2} = 0.2, but this value decreases for smaller |*α*|^{2}, owing to the NPQD dark counts *p*_{DC}. The simulation that considers *p*_{DC} = 0 (dashed line), converges towards *P*(1_{oq}|0_{a}) = 52.3% for |*α*|^{2} → 0. This value is below one because of parasitic losses of the cavity mirrors, imperfect mode matching and a finite atomic decay rate. Interestingly, not only the mean photon number but also the photon statistics change after qubit reflection (Fig. 3b, inset). We prove this by measuring the second-order autocorrelation function at zero time delay, *g*^{(2)}(0), of the reflected qubits conditioned on their nondestructive detection. The obtained sub-Poissonian statistics *g*^{(2)}(0) < 1 originates from the distillation of single photons out of the incoming weak coherent pulse (see Supplementary Information and ref. ^{32}).

To explore the potential of our NPQD, we discuss now four exemplary applications that would benefit from our detector (details in Methods). Figure 4a, b illustrates situations in which monitoring the qubit loss along a transmission channel saves time and precious resources. The first example (Fig. 4a) consists of an atom–photon entanglement source^{9} that sends photonic qubits to a heralded quantum memory^{26} to generate sender–receiver entanglement. The plot shows the entanglement speed-up defined as the ratio of the mean entanglement generation time without the nondestructive detector to that with the nondestructive detector, \({T}_{{\rm{ent}}}/{T}_{{\rm{ent}}}^{{\rm{NPQD}}}\), versus the channel length *L*. The position of the detector was chosen such that \({T}_{{\rm{ent}}}^{{\rm{NPQD}}}\) is minimal. Our nondestructive detector (solid lines) outperforms direct transmission at channel distances greater than or equal to 14 km, whereas a perfect NPQD (dashed lines) would provide an advantage at any distance. The second example (Fig. 4b) describes a situation in which it is more efficient to perform a complex operation on an input photonic qubit only if this qubit has survived the transmission through a lossy channel. This can be accomplished by placing an NPQD right before the operating node. One example for a complex operation is quantum teleportation of the photonic qubit by means of previously established long-distance entanglement. A good figure of merit is the ratio of the probability of having a reflected qubit photon after nondestructive detection *P*(1_{oq}|0_{a}) to the probability of having an incoming qubit photon *P*_{iq}, usually called qubit amplification^{24}. The qubit amplification is substantially higher than one for *P*_{iq} ≪ 1 and would notably improve in the absence of NPQD dark counts (dashed line).

Another group of applications refers to situations in which NPQDs can improve a subsequent photonic qubit measurement. Figure 4c shows a scenario in which photonic qubits are sent to a remote receiver that uses noisy detectors for the qubit measurement. An NPQD right before the receiver enables measurement of the qubit only when it is not lost, reducing the impact of measurement noise. This is of particular interest for quantum key distribution, because the dark-count noise of classical detectors is an important limitation on the quantum key rate for large distribution distances^{14}. The signal-to-noise ratio (SNR) gain is defined as the ratio of the SNR with an NPQD to that without an NPQD, SNR_{NPQD}/SNR, and exceeds one for a sender–receiver distance *L* > 1 km. For longer distances, this ratio converges towards approximately seven, which could be raised with lower NPQD dark counts (illustrated by the dashed line, which considers perfect NPQD parameters). A last example relates to loophole-free Bell tests (Fig. 4d). As proposed previously^{6}, the herald signals of NPQDs could allow two parties to be certain that they share an entangled photon pair right before the measurement, helping to close the detection loophole. The important parameter here is the photonic qubit reflection probability conditioned on its nondestructive detection. From our experiment we find \({\bar{n}}_{{\rm{oq}}}({0}_{{\rm{a}}})=0.56\pm 0.02\) for an input |*α*|^{2} = 0.2 (Fig. 3b). This value exceeds the minimum detection efficiency of 43% (assuming no detector background noise) which is required for a detection-loophole-free asymmetric Bell test^{33}.

In conclusion, we have demonstrated a nondestructive detector for photonic polarization qubits. We anticipate that it should also work with time-bin qubits. The main features are a conditional detection efficiency of up to (79 ± 3)% and a qubit preservation fidelity of at least (96.2 ± 0.3)%. None of the observed limitations seems fundamental. Most importantly, we present four possible applications that would benefit from our present device, to which we still expect to make improvements. This creates confidence that our detector will turn out to be a useful tool in near-future quantum communication links and fundamental tests of quantum physics.

## Methods

### NPQD experimental sequence

The experiment starts with a two-second-long loading phase of a single atom into the crossing point of the two fibre-cavity modes (details in ref. ^{26}). A magneto-optical trap with ^{87}Rb atoms is loaded approximately 10 mm above the fibres and is released such that the laser-cooled atoms fall towards the intracavity region. At the crossing point of the two cavity modes there is a three-dimensional optical lattice where single atoms are trapped. The lattice consists of two blue-detuned intracavity traps (774.6 nm and 776.5 nm wavelength) and one red-detuned standing-wave optical dipole trap (799.2 nm wavelength), detuned with respect to the *D* line and with a trap depth of *U*_{0}/*k*_{B} ≈ 1 mK each (*k*_{B}, Boltzmann constant). A cooling beam comes in at an oblique angle and cools the single atoms in the trap, where they remain for a few seconds. Cooling light that is scattered by the atom into the state-detection cavity mode is subsequently detected with a single-photon detector so that the presence of single atoms is confirmed. Afterwards, the NPQD scheme runs with a repetition rate of 576 Hz. This sequence is divided into three parts: the atomic cooling, atomic-state preparation and the NPQD part. The temporal length of atomic cooling constitutes 97% of the fast sequence time. This high fraction goes along with a desired and small microwave duty cycle to minimize system heating and cavity shaking that is attributed to the applied microwave fields. However, during this long cooling time, we conduct six 3-μs-long sequences to generate single photons emitted by the atom. The recorded photon counts are used to calculate the autocorrelation function *g*^{(2)}(0) = 1 − 1/*n*, to infer the number of trapped atoms *n*. The atom cooling is followed by a 30-μs-long optical pumping phase to prepare the atom in the Zeeman state |*F* = 1, *m*_{F} = 0⟩. Here, the applied laser fields are the same as described in ref. ^{26}, except we do not apply the final 4-μs-long π-polarized laser field used in that work. After optical pumping, the sequence starts with the NPQD scheme as reported in the main text. We have stated that for cavity-assisted state detection the state-detection cavity is near-resonant with the atomic transition D_{2}: |*F* = 2⟩ ↔ |*F*′ = 3⟩. Because the state-detection cavity exhibits an intentional polarization mode splitting by more than four cavity linewidths^{26}, only the π-polarization mode is near-resonant with the atomic transition; the second polarization mode is blue-detuned.

### Coherent atomic-state manipulation

The nondestructive detector scheme requires the coherent manipulation of the atomic ground states |*F* = 1, *m*_{F} = 0⟩ and |*F* = 2, *m*_{F} = 0⟩. In our experiment this manipulation is done via microwave radiation. It is advantageous to use microwave fields as opposed to a Raman transition with near-infrared radiation fields, as the latter is intrinsically less detuned from the excited states and therefore leads to a higher probability of populating these, which causes decoherence processes^{34}.

A microwave antenna is placed inside the vacuum chamber a distance of <2 cm from the crossing point of the fibre-cavity modes. The antenna consists of a single loop with a circumference of 4.4 cm, equal to the microwave field wavelength. A magnetic guiding field of 226.5 mG magnitude defines the quantization axis along the qubit cavity axis which enables us to address a single ground state transition at a microwave pulse duration of 5.8 μs. Extended Data Fig. 1a shows a microwave spectrum for an atom that is prepared in the state |*F* = 1, *m*_{F} = 0⟩ and which was subsequently driven with a microwave field of varying frequency and a rectangular pulse duration of 25 μs. Final cavity-assisted state detection measures the population in state 5^{2}S_{1/2} *F* = 2.

Choosing the related frequency enables the driving of the transition of interest: |*F* = 1, *m*_{F} = 0⟩ ↔ |*F* = 2, *m*_{F} = 0⟩. The coherent Rabi flopping of these two states is shown in Extended Data Fig. 1b, revealing the π/2-pulse duration of 5.8 μs. One limitation that affects this coherent driving is decoherence, which leads to a shrinking of the visibility of the Rabi oscillations. To further characterize this effect, we performed a Ramsey-type experiment (Extended Data Fig. 1c). We have applied two rectangularly shaped π/2 pulses with varying time gap in between. During the waiting time, the internal microwave clock is shifted by 100 kHz to distinguish the decoherence from small microwave detunings. Decoherence is then unambiguously detected by the shrinking visibility of the oscillations. Extended Data Fig. 1c shows how the visibility decreases to the 1/e value (e, Euler’s number) after 121 μs, which we define as the coherence time. We suspect that the decoherence arises from the effects of a mechanical non-ground state cooled atom that is trapped via a near-resonant red-detuned optical dipole trap. Hence, the hyperfine ground states |*F* = 1⟩ and |*F* = 2⟩ are differently a.c. Stark-shifted which leads to different trap frequencies and ultimately to non-degenerate ground state transition frequencies. This situation can be improved by ground-state cooling of the single atom^{35} or a further red-detuned (and therefore more powerful) optical dipole trap.

### Atom–cavity interaction and conditional reflection

One enabling ingredient for the NPQD is the polarization-independent strong coupling between the atom and the photonic qubit mediated by the qubit cavity. For characterization, reflection spectra were measured (Extended Data Fig. 2a) with a probe field in a superposition of left and right circular polarization, once with an atom coupled to the cavity mode (blue points) and once without any atom (green points). In the figure, a probe field frequency of zero corresponds to the atomic transition frequency. The empty cavity spectrum yields a field decay rate of *κ*_{QC} = 2π × (34.6 ± 0.3) MHz at a qubit cavity length of 162 μm. The normal-mode spectrum provides a coupling rate of *g* = 2π × (18.6 ± 0.5) MHz which leads to—considering the atomic dipole decay rate of *γ* = 2π × 3 MHz—a cooperativity of *C* = *g*^{2}/(2*κ*_{QC}*γ*) = 1.67 ± 0.09. Note the difference between the intensity reflection coefficients with \(({R}_{|{0}_{{\rm{a}}}\rangle }=0.50\pm 0.02)\) and without \(({R}_{|{1}_{{\rm{a}}}\rangle }=0.117\pm 0.003)\) a coupling atom, both close to zero detuning. The intensity reflection coefficients at zero atom and cavity detuning can be calculated according to \(R={|1-{\mu }_{{\rm{fc}}}^{2}\tfrac{2{\kappa }_{{\rm{QC}},1}}{{\kappa }_{{\rm{QC}}}}\tfrac{1}{2C+1}|}^{2}\), which employs the cavity field decay rate via the outcoupling mirror \({\kappa }_{{\rm{QC}},1}={\kappa }_{{\rm{QC}}}\times \tfrac{340\,{\rm{ppm}}}{430\,{\rm{ppm}}}\). The equation for the intensity reflection coefficient additionally considers the mode matching between the fibre and the cavity mode, *μ*_{fc} = 0.92e^{–i0.03}, with respect to the equation provided in ref. ^{9}. The difference between the coefficients constitutes a major error source of our nondestructive detector, which leads to a lower detection probability, as explained in the following.

The theoretical model given in Supplementary Information includes a detailed set of contributing imperfections of our NPQD. However, here we assume a perfect system detecting single photons with only the conditional reflection as imperfection to clarify its consequences for the detector. The NPQD scheme starts with the atom prepared in a superposition of two ground states \(|{\varPsi }_{{\rm{a}}1}\rangle =(|{0}_{{\rm{a}}}\rangle +|{1}_{{\rm{a}}}\rangle )/\sqrt{2}\) which ideally turns into \(|{\varPsi }_{{\rm{a}}2}\rangle =(|{0}_{{\rm{a}}}\rangle -|{1}_{{\rm{a}}}\rangle )/\sqrt{2}\) upon successful photon reflection (blue and first red vector in Extended Data Fig. 2b). However, owing to the different cavity reflection coefficients corresponding to the two atomic states, the initial state turns into

with \({r}_{0}=|\sqrt{{R}_{|{0}_{{\rm{a}}}\rangle }}|\) and \({r}_{1}=|\sqrt{{R}_{|{1}_{{\rm{a}}}\rangle }}|{{\rm{e}}}^{{\rm{i}}{\rm{\pi }}}\) (first green vector). As *r*_{0} and *r*_{1} are not only different in phase but also in magnitude, the atomic state leaves the equatorial plane of the Bloch sphere. A subsequent microwave π/2 pulse rotates this state into \(|{\varPsi }_{{\rm{a}}3}\rangle ={\hat{R}}_{a}({\rm{\pi }}/2)|{\varPsi }_{{\rm{a}}2}\rangle \) which goes beyond the pole |0_{a}⟩ (second green vector) and therefore leads to a state that is not orthogonal to |1_{a}⟩. The detection probability upon qubit reflection is then upper-bounded by *P*(0_{a}|1_{oq}) = |⟨0_{a}|*Ψ*_{a3}⟩|^{2} = 89%. The further reduction of this value that we observe is attributed to a group of imperfections that are further discussed in Supplementary Information.

### Photonic qubit fidelity and cavity birefringence

As shown in Fig. 2, the photonic polarization qubit experiences a small rotation after its nondestructive detection. This is due to the birefringence of the qubit cavity, which originates from a small ellipticity of the fibre-cavity mirrors and leads to a polarization mode splitting^{36} of a fifth of the qubit cavity linewidth. By means of a *λ*/2 retardation waveplate positioned after the cavity, all polarization states rotate such that the qubit cavity eigenmode polarizations at reflection rotate into polarizations *A* and *D* at the detection setup. We measure that a superposition of polarizations *A* and *D* experiences a rotation of 42° around the *A*/*D* axis on the Bloch sphere in the case of an empty cavity. The detector scheme relies on an atom being in a superposition of a coupling and noncoupling state, and so the incoming photonic qubit does not experience this full rotation. A rotation angle of 19.6° is extracted from a fit of the input and output polarization states which are measured by polarization state tomography (Extended Data Fig. 3a; the analysis follows the description of ref. ^{26}). This rotation is also observed in Extended Data Fig. 3b, which shows the matrix of the related underlying quantum processes of the detector^{37}. The shown matrix is derived from a maximum-likelihood fit with matrix element uncertainties that are calculated according to ref. ^{26}. Major contributing matrix elements are *χ*_{0,0}, *χ*_{1,0} and *χ*_{0,1}, illustrating the polarization rotation effect.

In this Article we provide the mean state fidelities under the condition of nondestructive detection. However, evaluation of unconditional SPD counts (for example, events from all photonic qubits reflected from the NPQD) reveals a reduction of the polarization state fidelity for cavity noneigenstate polarizations (compare \( {\mathcal F} \)_{cond.} with \( {\mathcal F} \)_{uncond.} in Extended Data Table 1). We attribute this to a partial entanglement effect between the photonic polarization state and the atomic state, because the polarization rotation preferably occurs when the atom is in the noncoupling state. This effect can be theoretically described as follows. An initial atomic superposition state and an incoming photonic qubit lead to a partially entangled state after reflection,

|0_{a}⟩ and |1_{a}⟩ represent the coupling and non-coupling atomic states, respectively, and |*Ψ*_{ph}⟩ represents the photon polarization state, which experiences a rotation \(\hat{R}\) when the atom is in state |1_{a}⟩. *r*_{0} and *r*_{1} describe the field reflection coefficients as used in Methods section ‘Atom–cavity interaction and conditional reflection’. Moreover, we assume no qubit rotation in case of a coupling atom. When the atomic part is not observed, the entanglement translates into decoherence for the photonic qubit as shown by the shrinking sphere in Extended Data Fig. 3c. This situation holds true only for polarization states that experience a rotation due to the cavity birefringence. Because photonic polarizations *A* and *D* do not rotate, for these polarizations the state in equation (2) becomes separable and therefore follows the ideal situation.

As mentioned previously, the polarization rotation leads to a qubit infidelity that could be overcome by means of retardation waveplates. However, in addition one would also expect a polarization dependency on the imprinted atomic phase shift at qubit reflection which would affect the nondestructive detection efficiency. We have tried to observe this effect by comparing the detector performance for different incoming polarization states (Fig. 3), but do not find substantial differences in the NPQD performance. We attribute this observation to the fact that the birefringence effect is relatively small compared to other imperfections, for example, the conditional reflection.

### Theoretical models for NPQD applications

In Fig. 4 we show simulations of specific situations in which our nondestructive detector is advantageous. The details of these simulations are explained in this section. As the operating wavelength of our NPQD is 780 nm, we consider photonic qubits of this wavelength with a corresponding fibre attenuation of *α*_{att} = 4 dB km^{−1}.

#### Situation 1

Situation 1 (Fig. 4a) describes long-distance entanglement between an atom–photon entanglement source and a heralded quantum memory. For simplicity we consider the ideal situation, in which the time required to entangle the two systems is given by the communication time (for example, the time to distribute the entangled photonic qubit plus the time to communicate back if the heralded storage succeeded). In such a situation the mean entanglement time is given by *T*_{ent} = 2*L*/(*cp*_{ent}), where *L* is the distance between sender and receiver, *c* is the speed of light in an optical fibre and *p*_{ent} = *η*_{AP}\({10}^{-{\alpha }_{{\rm{a}}{\rm{t}}{\rm{t}}}L/10}\)*η*_{H} is the heralded entanglement distribution probability. This probability depends on the atom–photon entanglement source efficiency *η*_{AP}, the attenuation coefficient of the transmission channel *α*, and the heralding efficiency of the heralded quantum memory *η*_{H}.

When an NPQD is inserted along the transmission channel at a distance *l* < *L* from the sender, the mean entanglement time reads \({T}_{{\rm{ent}}}^{{\rm{NPQD}}}=2\langle l\rangle /(c{p}_{{\rm{ent}}}^{{\rm{NPQD}}})\). Compared with *T*_{ent}, the average communication distance ⟨*l*⟩ replaces *L* and is given by ⟨*l*⟩ = *P*(0_{a})*L* + [1 − *P*(0_{a})](*l* + *t*_{NPQD}*c*/2). It has two terms: First, the NPQD may provide a nondestructive detection event that goes along with the full distance *L*. Second, the NPQD does not detect any qubit photon, leading to a shortening of the effective distance to *l*. In this case, one has to consider the NPQD herald signal readout time *t*_{NPQD}, which delays the subsequent classical communication. Both terms include the probability for a nondestructive detection event, which is

It takes into account the nondestructive detection probability upon an incoming qubit *P*(0_{a}|1_{iq}) and the NPQD dark counts, *p*_{DC}. In addition to the replacement of *L* by ⟨*l*⟩ in \({T}_{{\rm{ent}}}^{{\rm{NPQD}}}\), one needs to provide the entanglement probability at the presence of an NPQD, \({p}_{{\rm{ent}}}^{{\rm{NPQD}}}\), which replaces *p*_{ent}. It is given by \({p}_{{\rm{ent}}}^{{\rm{NPQD}}}={p}_{{\rm{ent}}}P({0}_{{\rm{a}}}|{1}_{{\rm{iq}}})P({1}_{{\rm{oq}}}|{0}_{{\rm{a}}})\) that additionally considers the NPQD inefficiency. These expressions at hand, we calculate the entanglement time \({T}_{{\rm{ent}}}^{{\rm{NPQD}}}\) and compare it with the situation that does not include a nondestructive detector *T*_{ent}, in order to obtain the entanglement speed-up. For both simulations we consider *η*_{AP} = 0.5 and *η*_{H} = 0.11, which are realistic parameters that have been obtained in previous works^{26,38}.

#### Situation 2

Situation 2 (Fig. 4b) describes qubit amplification for different probabilities of input photon numbers. The qubit amplification *A*_{q} is defined as the ratio of the probability of having a photonic qubit at the output of the NPQD conditioned on its nondestructive detection *P*(1_{oq}|0_{a}) to the probability of having an input qubit *P*_{iq}. These quantities are related to those shown in Fig. 3, from which the qubit amplification is inferred as \({A}_{{\rm{q}}}={\bar{n}}_{{\rm{oq}}}({0}_{{\rm{a}}})/|\alpha {|}^{2}\) for small |*α*|^{2}. The data points shown in Fig. 4b are calculated according to this expression. To simulate the qubit amplification with our NPQD parameters (solid line) and without NPQD dark counts (dashed line), we use the theoretical model described in Supplementary Information.

#### Situation 3

In situation 3 (Fig. 4c), remote photonic qubits are measured with noisy detectors: an NPQD gates a qubit measurement in order to improve its signal-to-noise ratio, SNR = *p*_{s}/*p*_{n}. This gating reduces the noise detection probability to \({p}_{{\rm{n}}}^{{\rm{NPQD}}}=P({0}_{{\rm{a}}}){p}_{{\rm{n}}}\) but also reduces the signal, owing to the parasitic losses induced by the nondestructive detector, \({p}_{{\rm{s}}}^{{\rm{NPQD}}}={p}_{{\rm{s}}}P({0}_{{\rm{a}}}|{1}_{{\rm{iq}}})P({1}_{{\rm{oq}}}|{0}_{{\rm{a}}})\). Additionally, we relate the nondestructive detection probability with our NPQD parameters, *P*(0_{a}) = *P*(0_{a}|1_{iq})*p*_{s}(1 – *p*_{DC}) + *p*_{DC}, and consider that the input signal probability depends only on the transmission losses of the communication channel, *p*_{s} = \({10}^{-{\alpha }_{{\rm{a}}{\rm{t}}{\rm{t}}}L/10}\). This enables us to calculate the SNR gain as a function of the communication distance *L*, considering an NPQD with our parameters (solid line) and a perfect NPQD (dashed line).

## Data availability

The datasets generated during and/or analysed during the current study are available at https://doi.org/10.5281/zenodo.4381767.

## References

- 1.
Bennett, C. & DiVincenzo, D. Quantum information and computation.

*Nature***404**, 247–255 (2000). - 2.
Zhong, M. et al. Optically addressable nuclear spins in a solid with a six-hour coherence time.

*Nature***517**, 177–180 (2015). - 3.
Gisin, N. & Thew, R. Quantum communication.

*Nat. Photon*.**1**, 165–171 (2007). - 4.
Minář, J., de Riedmatten, H. & Sangouard, N. Quantum repeaters based on heralded qubit amplifiers.

*Phys. Rev. A***85**, 032313 (2012). - 5.
Boone, K. et al. Entanglement over global distances via quantum repeaters with satellite links.

*Phys. Rev. A***91**, 052325 (2015). - 6.
Cabello, A. & Sciarrino, F. Loophole-free Bell test based on local precertification of photon’s presence.

*Phys. Rev. X***2**, 021010 (2012). - 7.
Gisin, N., Pironio, S. & Sangouard, N. Proposal for implementing device-independent quantum key distribution based on a heralded qubit amplifier.

*Phys. Rev. Lett*.**105**, 070501 (2010). - 8.
Brassard, G., Lütkenhaus, N., Mor, T. & Sanders, B. C. Limitations on practical quantum cryptography.

*Phys. Rev. Lett*.**85**, 1330–1333 (2000). - 9.
Reiserer, A. & Rempe, G. Cavity-based quantum networks with single atoms and optical photons.

*Rev. Mod. Phys*.**87**, 1379–1418 (2015). - 10.
Hensen, B. et al. Loophole-free Bell inequality violation using electron spins separated 1.3 kilometres.

*Nature***526**, 682–686 (2015). - 11.
Giustina, M. et al. Significant-loophole-free test of Bell’s theorem with entangled photons.

*Phys. Rev. Lett*.**115**, 250401 (2015). - 12.
Liao, S.-K. et al. Satellite-relayed intercontinental quantum network.

*Phys. Rev. Lett*.**120**, 030501 (2018). - 13.
Van Loock, P. et al. Extending quantum links: modules for fiber- and memory-based quantum repeaters.

*Adv. Quantum Technol*.**3**, 1900141 (2020). - 14.
Scarani, V. et al. The security of practical quantum key distribution.

*Rev. Mod. Phys*.**81**, 1301–1350 (2009). - 15.
Grangier, P., Levenson, J. A. & Poizat, J.-P. Quantum non-demolition measurements in optics.

*Nature***396**, 537–542 (1998). - 16.
Guerlin, C. et al. Progressive field-state collapse and quantum non-demolition photon counting.

*Nature***448**, 889–893 (2007). - 17.
Johnson, B. R. et al. Quantum non-demolition detection of single microwave photons in a circuit.

*Nat. Phys*.**6**, 663–667 (2010). - 18.
Reiserer, A., Ritter, S. & Rempe, G. Nondestructive detection of an optical photon.

*Science***342**, 1349–1351 (2013). - 19.
Kono, S., Koshino, K., Tabuchi, Y., Noguchi, A. & Nakamura, Y. Quantum non-demolition detection of an itinerant microwave photon.

*Nat. Phys*.**14**, 546–549 (2018). - 20.
Besse, J.-C. et al. Single-shot quantum nondemolition detection of individual itinerant microwave photons.

*Phys. Rev. X***8**, 021003 (2018). - 21.
Lee, M. et al. Ion-based quantum sensor for optical cavity photon numbers.

*Phys. Rev. Lett*.**122**, 153603 (2019). - 22.
Sinclair, N. et al. Proposal and proof-of-principle demonstration of non-destructive detection of photonic qubits using a Tm:LiNbO

_{3}waveguide.*Nat. Commun*.**7**, 13454 (2016). - 23.
Meyer-Scott, E. et al. Certifying the presence of a photonic qubit by splitting it in two.

*Phys. Rev. Lett*.**116**, 070501 (2016). - 24.
Kocsis, S., Xiang, G., Ralph, T. & Pryde, G. Heralded noiseless amplification of a photon polarization qubit.

*Nat. Phys*.**9**, 23–28 (2013). - 25.
Kalb, N., Reiserer, A., Ritter, S. & Rempe, G. Heralded storage of a photonic quantum bit in a single atom.

*Phys. Rev. Lett*.**114**, 220501 (2015). - 26.
Brekenfeld, M., Niemietz, D., Christesen, J. D. & Rempe, G. A quantum network node with crossed optical fibre cavities.

*Nat. Phys*.**16**, 647–651 (2020). - 27.
Knill, E., Laflamme, R. & Milburn, G. A scheme for efficient quantum computation with linear optics.

*Nature***409**, 46–52 (2001). - 28.
Duan, L.-M. & Kimble, H. J. Scalable photonic quantum computation through cavity-assisted interactions.

*Phys. Rev. Lett*.**92**, 127902 (2004). - 29.
Hunger, D. et al. A fiber Fabry–Perot cavity with high finesse.

*New J. Phys*.**12**, 065038 (2010). - 30.
Scarani, V., Iblisdir, S., Gisin, N. & Acín, A. Quantum cloning.

*Rev. Mod. Phys*.**77**, 1225–1256 (2005). - 31.
Specht, H. et al. A single-atom quantum memory.

*Nature***473**, 190–193 (2011). - 32.
Daiss, S., Welte, S., Hacker, B., Li, L. & Rempe, G. Single-photon distillation via a photonic parity measurement using cavity QED.

*Phys. Rev. Lett*.**122**, 133603 (2019). - 33.
Brunner, N., Gisin, N., Scarani, V. & Simon, C. Detection loophole in asymmetric Bell experiments.

*Phys. Rev. Lett*.**98**, 220403 (2007). - 34.
Körber, M. et al. Decoherence-protected memory for a single-photon qubit.

*Nat. Photon*.**12**, 18–21 (2018). - 35.
Reiserer, A., Nölleke, C., Ritter, S. & Rempe, G. Ground-state cooling of a single atom at the center of an optical cavity.

*Phys. Rev. Lett*.**110**, 223003 (2013). - 36.
Uphoff, M., Brekenfeld, M., Rempe, G. & Ritter, S. Frequency splitting of polarization eigenmodes in microscopic Fabry–Perot cavities.

*New J. Phys*.**17**, 013053 (2015). - 37.
Nielsen, M. A. & Chuang, I. L.

*Quantum Computation and Quantum Information*(Cambridge Univ. Press, 2010). - 38.
Ritter, S. et al. An elementary quantum network of single atoms in optical cavities.

*Nature***484**, 195–200 (2012).

## Acknowledgements

We thank M. Brekenfeld and J. D. Christesen for contributions during an early stage of this work. This work was supported by Bundesministerium für Bildung und Forschung via Verbund Q.Link.X (grant number 16KIS0870), Deutsche Forschungsgemeinschaft under Germany’s Excellence Strategy (EXC-2111, 390814868) and the European Union’s Horizon 2020 Research and Innovation programme via the project Quantum Internet Alliance (GA number 820445). P.F. acknowledges support by the Cellex-ICFO-MPQ postdoctoral fellowship programme.

## Funding

Open access funding provided by Max Planck Society.

## Author information

### Affiliations

### Contributions

All authors contributed to the experiment, analysis of the results and writing of the manuscript.

### Corresponding author

## Ethics declarations

### Competing interests

The authors declare no competing interests.

## Additional information

**Peer review information** *Nature* thanks the anonymous reviewers for their contribution to the peer review of this work. Peer reviewer reports are available.

**Publisher’s note** Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

## Extended data figures and tables

### Extended Data Fig. 1 Coherent microwave driving.

**a**, Microwave spectroscopy of an atom prepared in Zeeman state |*F* = 1, *m*_{F} = 0⟩. The light-blue curve is a fit consisting of three sinc^{2} functions. Fit parameters are centre and Rabi frequency of each transition whereas the pulse duration is fixed to 25 μs. The peak at 0 kHz corresponds to the |0_{a}⟩ ↔ |1_{a}⟩ transition. **b**, Microwave-driven Rabi oscillation on the |0_{a}⟩ ↔ |1_{a}⟩ transition for an atom prepared in state |0_{a}⟩. **c**, An atom prepared in state |0_{a}⟩ is subsequently driven into a superposition of |0_{a}⟩ and |1_{a}⟩ by a microwave π/2 pulse. After a variable time a second microwave π/2 pulse is applied. During the waiting time the internal microwave clock is shifted by 100 kHz. Final state detection measures the population in |1_{a}⟩. All error bars represent the 1*σ* confidence interval, some error bars are smaller than the symbol size.

### Extended Data Fig. 2 Atom–cavity reflection spectra and the atomic state during the NPQD scheme.

**a**, Cavity reflection spectra of the qubit cavity with no atom (green points) and with a cavity mode that is strongly coupled to an atom prepared in the state |*F* = 1, *m*_{F} = 0⟩ (blue points). The solid lines represent fit functions and the error bars show the standard deviation. **b**, Bloch sphere with the atomic state (represented by vectors) at different stages of the detector scheme. The blue vector is the initial atomic state after the first π/2 microwave pulse. After photon reflection, the initial state turns into the red or green state (dotted arrow is a guide to the eye). Green and red states show the situation with and without conditional reflection, respectively. A subsequent microwave π/2 pulse rotates the atom to the final state (dashed arrow follows the rotation). State detection (not shown) then projects the atomic state onto |0_{a}⟩ or |1_{a}⟩.

### Extended Data Fig. 3 Polarization state and quantum process tomography.

**a**, **c**, Poincaré sphere showing the underlying quantum process of our NPQD. The coloured spheres are the result of polarization state tomography for reflected photonic pulses for the correspondingly coloured and labelled input polarizations. **b**, **d**, NPQD underlying quantum process matrix *χ* which is reconstructed via a maximum-likelihood fit. \({{\mathbb{1}}}_{2}\) denotes the 2 × 2 identity matrix and *σ*_{x}, *σ*_{y} and *σ*_{z} denote the Pauli matrices. In **a** and **b**, the photon counts at the tomography setup are conditioned on the nondestructive qubit detection. In **c** and **d**, they are not conditioned on the nondestructive detection. The rotation around the *A*/*D* axis is described by an operator built by *σ*_{x}. The uncertainty of *χ*_{m,n} is assessed with a Monte Carlo method and represents the standard error.

## Supplementary information

### Supplementary Information

This file contains supplementary text regarding the theory model for the NPQD and distillation of photonic Fock state qubits.

## Rights and permissions

**Open Access** This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.

## About this article

### Cite this article

Niemietz, D., Farrera, P., Langenfeld, S. *et al.* Nondestructive detection of photonic qubits.
*Nature* **591, **570–574 (2021). https://doi.org/10.1038/s41586-021-03290-z

Received:

Accepted:

Published:

Issue Date:

## Comments

By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.