1 Introduction

The development of quantum technology in the past decades makes quantum computers to be possible. The trapped ion system had been proven to be one of the most promising platforms to realize quantum computing [1]. For gate-based quantum computing with trapped ions [2], the quantum gates are realized by coherently manipulating the internal and external degrees of freedom of ions, and the long coherence time is required to perform a large amount of quantum gates [3,4,5,6,7] during the computing process. Experimentally, the coherence time of ion qubits is affected by imperfect parameters such as background gas collision, the spontaneous emission effect, the laser frequency and intensity fluctuation and the instable magnetic field [8]. Generally, the ions are stored in the ultra high vacuum chamber, laser intensity fluctuation can be easily reduced by servo system and the energy levels with extremely low decay rate (long depopulation time \(T_1\)) are chosen to encode qubit, hence the coherence time is limited by the dephasing time \(T_2\), which is mainly affected by the instable magnetic field and the driving laser frequency noise [8, 9].

To extend the coherence time of trapped ions, it is important to investigate the decoherence contributions from each dephasing source. The fluctuation of magnetic field could be quantitatively estimated by measuring the noise spectrum of magnetic field coils [10, 11]; however, this method could not provide the information of laser frequency noise. Previously, the laser and magnetic phase noise were differentiated using a custom-designed entangled state [9], however, this method requires high controllability of two ion qubits and a complicated experimental setup. Normally, the Ramsey interferometry is a standard tool for estimating the dephasing time \(T_2^*\), but the contributions of each dephasing source cannot be distinguished by this method [12]. Dynamic decoupling is also a good method for diagnosing the noise spectrum causing dephase [11, 13,14,15], but it still cannot separate different dephasing noise sources.

In this paper, we propose a handy method to quantitatively distinguish the dephasing contributions of each source, which only involves the conventional Ramsey experiments and the transitions with different magnetic sensitivities [12, 16, 17]. The dephasing time \(T_2^*\) of each transition can be measured using the conventional Ramsey experiment, and the total linewidth of the dephasing noise, which is assumed to obey Gaussian distribution in our system, could be obtained. By fitting the total linewidth of dephasing noise with random error propagation theory [18], the linewidth of independent dephasing noise sources can be quantitatively estimated. To improve the accuracy of measurement results, we make full use of all magnetically sensitive transitions rather than just two of them. Experimentally, we demonstrate this method using a single trapped \(^{40}\)Ca\(^+\), which has five magnetically sensitive quadrupole transitions, and the laser frequency noise and magnetic field noise are determined to be 493.3 ± 8.1 Hz and 181.4 ± 3.5 \(\upmu \)G in our system. We further notice that this method is not only limited to ions, but also suitable for separating magnetic field noise and other dephasing noise in atomic qubit systems such as neutral atoms.

2 Theoretical model

To demonstrate our method, here, we take the \(^{40}\)Ca\(^+\) ion as an example. As shown in Fig. 1, there are ten quadrapole transitions between the sublevels of \(S_{1/2}\) and \(D_{5/2}\) states when a weak external magnetic field B is applied along the quantization axis, but only five of them show different sensitivities to the magnetic field fluctuations, and the magnetic potential gap can be calculated by

$$\begin{aligned} \varDelta E_B = g_i \mu _B B, \end{aligned}$$
(1)

where \(g_i=| m_S g_{S_{1/2}} - m_D g_{D_{5/2}} | \), Land\(\acute{e}\) g-factor \(g_{S_{1/2}} \approx 2.0\) and \( g_{D_{5/2}} \approx 1.2\). The coefficients of magnetic potential energy gaps for five transitions are summarized in Table 1.

Table 1 The coefficients of magnetic potential gaps for different optical transitions between states \(S_{1/2}(m_J=-1/2)\) and \( D_{5/2}(m_J=-5/2,-3/2,-1/2,1/2,3/2) \)

In addition to the magnetic field fluctuations, other noise sources such as the frequency noise of the laser also limit the coherence time of the qubit. Experimentally, total noise contributions can be estimated by the Ramsey interferometric technique [19], which is a good tool to explore the phase coherence between an external field and atomic two-level system. A complete Ramsey sequence involves one \(\pi /2\) pulse, a free precession process and the other second \(\pi /2\) pulse. By scanning the free precession time, a fringe pattern

$$\begin{aligned} P_D = \frac{1}{2} (A \cos (\omega \tau +\phi _0)+1) \end{aligned}$$
(2)

can be obtained, where \(P_D\) denotes the population of D state, \(\omega \) is the oscillation frequency of the fringe, \(\tau \) is the free precession time, A is the amplitude of fringe and \(\phi _0\) is the phase offset.

If no noise exists in the experimental process, perfect phase coherence results in \(A=1\). Any dephasing noise would cause the decay of fringe amplitude. In the experiment, it is reasonable to assume the fluctuation of detuning \(\delta = \nu _L-\nu \) obeys Gaussian distribution

$$\begin{aligned} P(\delta )=\frac{1}{\sigma \sqrt{2\pi }}\exp \left( -\frac{\delta ^2}{2 \sigma ^2}\right) , \end{aligned}$$
(3)

where \(\nu \) is the quadrupole transition frequency, \(\nu _{L}\) is the laser frequency. The full width at half maximum \(\delta \nu \) of \(P(\delta )\) is linked to its standard deviation \(\sigma \) by

$$\begin{aligned} \sigma = \frac{\delta \nu }{2\sqrt{2 \ln 2}}. \end{aligned}$$
(4)

The fringe containing dephasing can be measured by averaging an ensemble of single experiment, and its amplitude A can be calculated by the average of the phase factor \(\delta \tau \)

$$\begin{aligned} \begin{aligned} A(\tau )&= |\langle \exp (i\delta \tau )\rangle | = |\int _{-\infty }^{+\infty } d\delta P(\delta ) \cos (\delta \tau )|\\&= \exp \left(-\frac{\sigma ^2 \tau ^2}{2}\right). \end{aligned} \end{aligned}$$
(5)
Fig. 1
figure 1

The lowest three energy levels of \(^{40}\)Ca\(^{+}\). The qubit states are \(S_{1/2}\) and \(D_{5/2}\) with lifetime about \(1.17\,\hbox {s}\) [20]. The narrow linewidth \(729\,\hbox {nm}\) laser beam is used to coherently control the qubit states. Laser light at \(397\,\hbox {nm}\) is used for Doppler cooling, optical pumping and quantum state detection. \(854\,\hbox {nm}\) and \(866\,\hbox {nm}\) laser beams are used for repumping the ion out of D states

Generally, the dephasing time \(T_2^*\) is defined as the free precession time when the fringe amplitude decreases to 1 / e. Based on Eq. (4) and Eq. (5), \(T_2^*\) is connected to the noise model by

$$\begin{aligned} \delta \nu = \frac{4 \sqrt{\ln 2}}{ T_2^*}. \end{aligned}$$
(6)

The linewidth of the frequency noise \(\delta _B\) induced by magnetic field fluctuations can be calculated by

$$\begin{aligned} \delta _B = g_i \mu _B\varDelta B, \end{aligned}$$
(7)

where \(\varDelta B\) is the linewidth of the magnetic field noise. Based on the experimental measurement of \(T_2^*\) and transitions with different magnetic sensitivities, we can estimate the linewidth of laser frequency noise and magnetic noise by taking the assumption that the two kinds of noise are completely independent [18] and obey Gaussian distribution, and the total linewidth can be fitted by

$$\begin{aligned} \delta \nu = \sqrt{\delta _l^2 + \delta _B^2}, \end{aligned}$$
(8)

where \(\delta _l\) denotes the linewidth of laser frequency noise.

3 Experimental setup

A single \(^{40}\)Ca\(^+\) ion is loaded into the blade-shaped linear Paul trap using the two-step photoionization method with laser light at \(423\,\hbox {nm}\) and \(370\,\hbox {nm}\) [21]. The radial confinement is formed by applying an RF signal (\(13.2\,\hbox {MHz}\)) to one pair electrodes and connecting the other pair to the ground. A DC voltage of \(900\,\hbox {V}\) sent to the two end-caps provides the confinement along the axial direction and the corresponding axial secular frequency is measured to be \({2\pi x 1.41}\,\hbox {MHz}\). Laser light at \(397\,\hbox {nm}\) is used in experiment for Doppler cooling, optical pumping and state detection, and laser light at \(866\,\hbox {nm}\) and \({854}\,\hbox {nm}\) are used for pumping the ion out of D state. The fluorescence of the ion is collected by a photomultiplier tube and an intensified CCD camera. The electronic state (\(S_{1/2}\) and \(D_{5/2}\)) of the ion can be distinguished by using the electron shelving technique [22] with a detection time of \({300}\,\upmu \hbox {s}\).

Fig. 2
figure 2

The optical setup and control of \({729}\,\hbox {nm}\) laser beam. AOM 1 working at \({110}\,\hbox {MHz}\) is used for the laser power stabilization. AOM 2 supplied with an \({80}\,\hbox {MHz}\) RF signal is used for the laser frequency shifting. AOM 3 working at \({270}\,\hbox {MHz}\) with a double-pass configuration controls the overall frequency, phase and amplitude of the \({729}\,\hbox {nm}\) laser beam. The half-wave plate is installed for adjusting the polarization of the laser beam so that all the transitions can be excited

The quadrupole transition \(S_{1/2} \leftrightarrow D_{5/2}\) is realized using a commercial diode laser at wavelength of \({729}\,\hbox {nm}\), whose frequency is stabilized to an ultra stable high finesse Fabry–Perot cavity and its linewidth is about \({20}\,\hbox {Hz}\). In the experiment, the \({729}\,\hbox {nm}\) laser is used for sideband cooling of ion’s motional mode, manipulation of quantum gates and frequency locking of \({397}\,\hbox {nm}\) and \({866}\,\hbox {nm}\) lasers. The optical and control setup of \({729}\,\hbox {nm}\) laser is shown in Fig. 2. Geometrically, the \({729}\,\hbox {nm}\) laser beam goes through the two end-cap electrodes and the wave vector almost overlaps with trap axis, resulting in the Lamb–Dicke parameter \(\eta \approx 0.08\). The polarization of the \({729}\,\hbox {nm}\) laser beam is properly adjusted to couple all the quadrupole transitions. AOM1 is used to stabilize the laser intensity so as to suppress the laser intensity fluctuation induced decoherence and distortion of Ramsey fringe patterns. AOM 2 is used to shift the laser frequency to transition resonance by \({80}\,\hbox {MHz}\). The amplitude, frequency and phase of the beam are controlled by AOM 3, which has a double pass optical configuration and is driven by an RF signal with frequency of \({270}\,\hbox {MHz}\). It is also used as a switch for laser pulses generation in experimental sequences. To reduce the magnetic fluctuations induced by the AC power line, we trigger the experimental sequence at the fixed phase of AC power line. Note that we have measured the resonance shift of each transition at different phase of the AC-power line and the trigger time is properly chosen to minimize the frequency shift during the Ramsey experiments.

4 Experimental results and analysis

Experimentally, the resonance for each transition should be identified before we implement Ramsey experiment. First, the ion is cooled down to the motional ground state by Doppler and sideband cooling. Then, we scan the frequency of AOM 3 with fixed pulse time and search the resonant frequencies for all the transitions, afterwards, we calibrate the laser power to set the same Rabi frequency for the five transitions at about 50 kHz, which guarantees that laser-induced decoherence impact is same for all transitions and the long-term drift of laser frequency during each measurement can be neglected since it is much less than the linewidth of each transition.

The dephasing time of the qubit is measured by scanning the free precession time of the Ramsey experiment up to \({1200}\,\upmu \hbox {s}\) and each data point is an average of 100 experiments. The data points are then fitted using the empirical function \(p_{\uparrow }= \frac{1}{2} [\exp (-t^2/T_{2}^{*2}) \cos (\omega t + \phi _0)+1 ]\) to obtain the dephasing time. Figure 3a shows the example for dephasing time measurement of \(S_{1/2}(m_J =-1/2) \leftrightarrow D_{5/2}(m_J=-1/2) \). It can be seen that the Ramsey fringe fits well with the empirical function. To obtain accurate measurement on coherence time, we repeat the Ramsey experiment for 50 times for each transition and take the average as the final measurement of dephasing time. Finally, the linewidth of laser frequency noise and the magnetic field noise can be obtained by fitting the data with Eq. (8). As shown in Fig. 3b, the linewidth of the laser frequency noise in our system is 493.3 ± 8.1 Hz, and the linewidth of the magnetic field noise is about 181.4 ± 3.5 \(\mu \)G.

Fig. 3
figure 3

a Ramsey fringe for \(S_{1/2}(m_J=-1/2) \leftrightarrow D_{5/2}(m_J = -1/2)\). The solid line is the fitting using empirical function \(p_{\uparrow }= \frac{1}{2}(\exp (-t^2/T_{2}^{*2}) \cos (\omega t + \phi _0)+1)\) and the coherence time \(T_2^*\) extracted is around \({1.3}\,\hbox {ms}\). b Fitting of total frequency noise with Eq. (8). The dots are the total linewidth of the dephasing noise, and the solid line is the fitting with Eq. 8. The laser and the magnetic field noise are 493.3 ± 8.1 Hz and 181.4 ± 3.5 \(\upmu \)G, respectively

Since the fluctuation of magnetic field distorts the Ramsey fringes, the error bars in Fig.3b increase with the magnetic sensitivity. For the transition \(S_{1/2}(m_J = -1/2) \leftrightarrow D_{5/2}(m_J = -1/2)\), the magnetic field-induced fluctuation is about 203 Hz, which is about half of the laser frequency noise, therefore, the dominate noise for this transition is laser frequency noise. We further found that the laser frequency noise is caused by the limited response of the laser diode to current modulation as stated in Ref [12]. The problem could be overcome using the ultra-high finess cavity as a filter for laser beam and amplifying the transmitted laser beam with injected-locking method, or using another laser source with less frequency noise.

To further verify our method and experimental results above, we build another 729 nm laser system based on the Ti:sapphire laser that has much less frequency noise than the diode one. We repeat our measurement on transition \(S_{1/2}(m_J=-1/2) \leftrightarrow D_{5/2}(m_J =-1/2)\), and the linewidth is around 156 \(\upmu \)G for magnetic field noise if we ignore the laser frequency noise. This number is very close to the one we measured with diode laser and it proves the validity of our method and experimental results.

5 Conclusion

In this work, we proposed and demonstrated a convenient and useful method for estimating the magnetic- and laser-induced frequency noise in optical qubit, and we demonstrated this method with a single trapped \(^{40}\)Ca\(^+\) ion. By measuring the dephasing time of the five magnetically sensitive transitions of a single \(^{40}\)Ca\(^+\) ion, we discriminated and estimated the linewidth of laser frequency noise and magnetic field noise to be 493.3 ± 8.1 Hz and 181.4 ± 3.5 \(\upmu \)G, respectively. In fact, there are other kinds of noise in the experiment such as electric field noise, patch charges on electrodes, but they only contribute to decoherence of motional mode and show negligible affection to qubit in the Lamb–Dicke regime. Since this method is independent of the ion species, it is a general method for all ion qubits, besides it can be used to separate the magnetic field noise and other kinds of dephasing noise in other atomic systems such as neutral atoms.