## Abstract

Well controlled and highly stable magnetic fields are desired for a wide range of applications in physical research, including quantum metrology, sensing, information processing, and simulation. Here we introduce a low-cost hybrid assembly of rare-earth magnets and magnetic field coils to generate a field strength of \(\simeq \)10.9 mT with a calculated spatial variation of less than 10^{−6} within a diameter of spherical volume of 150 μm. We characterise its tuneability and stability performance using a single Mg^{+} atom confined in a radio-frequency surface-electrode trap under ultra-high vacuum conditions. The strength of the field can be tuned with a relative precision of ≤2 × 10^{−5} and we find a passive temporal stability of our setup of better than 1.0 × 10^{−4} over the course of one hour. Slow drifts on time scales of a few minutes are actively stabilised by adjusting electric currents in the magnetic field coils. In this way, we observe coherence times of electronic superposition states of greater than six seconds using a first-order field insensitive (clock) transition. In a first application, we demonstrate sensing of magnetic fields with amplitudes of ≥0.2 μT oscillating at \(\simeq \)2π × 60 MHz. Our approach can be implemented in compact and robust applications with strict power and load requirements.

## Introduction

Quantum technologies^{1} are developed for a wide range of applications in the context of metrology^{2}, sensing^{3}, information processing^{4}, communication^{5}, and simulation^{6,7,8,9}. While different experimental platforms are studied^{3,4,6,9,10}, atomic systems, in particular, perform quantum gate operations with highest fidelities^{4,11,12} and present clocks with exceptional precision^{13,14,15,16,17,18}. Generally, advantageous performance of any quantum application in comparison to classical counterparts can be harnessed only when required control fields interplay with a high level of precision, while the system is well isolated from environmental disturbances. For example, static magnetic (quantisation) fields tune and stabilise electronic states of atoms to desired energy splittings which can be addressed by additional control fields for state manipulation. Fidelities of coherent manipulations crucially depend on the performance of any such quantisation fields. For some applications, specific combinations of atomic species and field strengths can be desired and enable the use of so-called first-order field insensitive (clock) transitions^{19,20} that are less sensitive to field fluctuations than others.

The origin of these field insensitive transitions in atomic species with non-zero nuclear magnetic moments lies in variable nuclear and electronic (hyperfine) interaction strengths as a function of an externally applied magnetic field strength^{21}. In the low field (Zeeman) regime, electronic and nuclear angular momentum are coupled and the interaction with the magnetic field can be treated as a perturbation. In contrast, in the high field (Paschen-Back) regime, electronic and nuclear angular momentum are decoupled and the hyperfine interaction can be treated as a perturbation. In case of an electronic angular momentum of 1/2, the energy level shifts in both regimes are analytically described by the so-called Breit-Rabi formula^{21} and corresponding non-linear shifts in the intermediate regime can be calculated; depicted, e.g., in ref.^{22}. Such calculations can be used to identify first-order insensitive transitions for specific magnetic fields^{19,20,21}, where differential energy shifts between two states vanish to first-order. Note, clock states at zero magnetic field are used as well^{23}, where the absolute energy shift of participating states is zero to first order.

Typically, required magnetic fields are generated by field coils and to ensure stable operation conditions cooling and stable high-power current supplies are required. To further increase fidelities and complexity of quantum applications and/or to enable portable devices, robust and compact experimental setups with highly integrated components are required and being developed^{24,25,26,27,28}. Under these circumstances the use of rare-earth magnets to create quantisation fields can be beneficial in contrast to field coils. In the last years, such permanent magnets became more popular for a variety of applications in atomic physics research^{29,30,31,32,33}, in particular, due to their high magnetisation and despite their limited tunability of field strengths.

In our manuscript, we introduce a hybrid approach, using an assembly of rare-earth magnets and pairs of field coils, to generate well-controlled quantisation fields with strengths of more than 10 mT. To benchmark the performance of our approach, we use a single trapped Mg^{+} atom as a quantum sensor. Further, we implement a protocol to probe stray magnetic fields with amplitudes of \(\ge 0.2\,\)μT oscillating at radio-frequencies enabled by the high stability of our magnetic field setup.

## Experimental Setup

We equip our experimental setup with a combination of two sets of rare-earth ring magnets and three pairs of field coils (electro magnets) to generate, tune, and stabilise a quantisation field at a strength \(|\,{{\bf{B}}}_{0}\,|\,\simeq 10.9\) mT. In Fig. 1a, we sketch the geometry of this hybrid setup. Each set of the solid-state magnets consists of three neodymium (an alloy made of neodymium, iron, and boron) ring magnets that are axially magnetised. Each ring has the following dimensions: 58 mm inner diameter, 102 mm outer diameter, and 4 mm thickness. The vendor specifies the grade of this neodymium in-stock item to be N35, which corresponds to a remanence of \({B}_{r}\simeq 1.17\) T and a temperature coefficient of \(\simeq -1.2\,\times {10}^{-3}\) K^{−1} ^{34}. We numerically calculate the spatial magnetic field distribution of both sets that are aligned collinear at a distance \(d\simeq 223\) mm (distance between facing planes) using the open-source software package RADIA^{35,36}. Along their symmetry axis \(\hat{z}\), we can also analytically estimate the field distribution. The magnetic-field strength of a single axially magnetised ring is given by^{37}:

with inner radius *R*_{i}, outer radius *R*_{o}, and thickness *D*. We calculate the corresponding field for our magnet assembly by summation of Eq. 1, geometrically offset for each ring. Results of our calculations are shown in Fig. 1b and we, further, numerically estimate the field homogeneity of our magnet configuration in the central region between both sets. Following, we calculate a diameter of spherical volume \({d}_{{\rm{dsv}}}\simeq 150\,\)μm, where the relative strength of the magnetic field varies less than 1 × 10^{−6}. Note, the specific choice of materials in close proximity to the geometric centre can increase the field inhomogeneity significantly and needs careful consideration in order to estimate the homogeneity within the entire setup. In our setup, we mount each set on a threaded cylinder (one turn equals one millimetre travel) to fine tune *d*. In this way, we can coarsely tune |**B**_{0}| by \(\simeq 0.11\) mT mm^{−1}. For fine tuning of the spatial alignment and the strength, as well as, temporal stabilisation of |**B**_{0}|, we deploy the three pairs of field coils (shim coils). All coil pairs can be fed by current-stabilised low-power supplies with a vendor-specified stability of 0.2 × 10^{−6} A and a maximum current of 0.1 A. Two pairs can be used for spatial fine tuning and are aligned transversally to \(\hat{z}\): the first pair creates a magnetic field of \(\simeq 0.24\) mT for a current of 1 A in the horizontal direction and the second pair tunes the vertical direction with 1.3 mT A^{−1}. The third pair of shim coils is aligned along \(\hat{z}\) and we can apply a field strength of 0.26 mT A^{−1}. In addition, we control the current running in the longitudinal shim coils with our data acquisition system and a resolution of 3 × 10^{−6} A.

Our experimental apparatus for trapping and controlling single atoms is located in a \(\simeq \) 100 m^{2} laboratory space that is specified with a temperature stability of better than ±0.3 K. We trap individual ^{25}Mg^{+} atoms under ultra-high vacuum conditions with a background gas pressure of below 2 × 10^{−9} Pa in a surface-electrode ion trap. The trap is microfabricated by Sandia National Laboratories and copies of the trap have been previously described^{38,39}. A maximum zero-to-peak voltage \({U}_{{\rm{RF}}}\,\simeq \,80\) V oscillating at \({{\rm{\Omega }}}_{{\rm{RF}}}\,\mathrm{/(2}\pi )\simeq 57.3\) MHz is applied to two \(\simeq \,2.5\) mm long radio-frequency (RF) electrodes that are 60 μm wide and are separated by \(\simeq 210\,\)μm. This provides confinement of ions in the *x*-*y* (radial) plane at a distance \(h\simeq 83\) μm above the surface. Further, electric (control) potentials are applied to several additional electrodes, in order to confine ions along the *z* (axial) direction. Correspondingly, we find single-ion motional frequencies of \(\simeq \,2\pi \,\times 0.8\) MHz (axially) and \(\simeq \,2\pi \,\times 2.1\) MHz (radially).

The external quantisation field is aligned at an angle of approximately 30° with respect to the *z* axis and lies within the *x*-*z* plane (see Fig. 1a). In Fig. 2a, we illustrate the level scheme of the ^{2}S_{1/2} ground state manifold of ^{25}Mg^{+} with a nuclear spin of 5/2. Near the field strength \({\boldsymbol{|}}{{\bf{B}}}_{0}|\,\simeq 10.9\,\) mT, the |*F* = 3, *m*_{
F
} = 1〉 to |*F* = 2, *m*_{
F
} = 0〉 hyperfine transition frequency \({\omega }_{\text{MW},2}\mathrm{/(2}\pi )\simeq \mathrm{1,762.974}\) MHz is first-order insensitive to magnetic field changes, while the quadratic frequency deviation is \(\simeq 2\pi \times 217\) kHz mT^{−2}. Here, *F* denotes the total angular momentum and *m*_{
F
} is the projection of the angular momentum along the magnetic field axis. We keep this notation for labelling purposes only. In case of \({\boldsymbol{|}}{{\bf{B}}}_{0}|\gg 0\), *F* and *m*_{
F
} are inappropriate quantum numbers and, therefore, we calculate level splittings and inter-state coupling strengths numerically. Laser beams (with wavelengths close to 280 nm and *σ*^{+} -polarised) for Doppler cooling to a temperature of \(\simeq 1\) mK and state preparation via optical pumping into |3,3〉 of the ^{2}S_{1/2} ground state propagate parallel to the magnetic field. For state detection, a single laser beam induces resonant fluorescence and we can discriminate the |3,3〉 (bright) state from the other hyperfine ground (dark) states. Fluorescence photons are detected by a photon-multiplier tube (PMT) detector; more details on our laser setups, state preparation and detection techniques are described in refs.^{40,41,42,43,44}. Further, we can coherently manipulate the internal states via a pulsed application of microwaves between \({\omega }_{{\rm{MW}}}\mathrm{/(2}\pi )\simeq \mathrm{1,300}\,\) MHz and \(\simeq \mathrm{1,850}\,\) MHz or radio-frequency waves at \({\omega }_{{\rm{RF}}}\mathrm{/(2}\pi )\simeq 55.3\,\) MHz. The microwaves are applied via a home-built biquad antenna^{45} that is geometrically optimised for 2*π* × 1,600 MHz, while the radio-frequency waves are capacitively coupled onto the RF electrodes.

Individual experimental sequences are comprised by about 500 μs of cooling and state preparation, zero to 1.5 s of state manipulations or (near) free evolution, and 100 μs of state detection. Sequences are repeated \({N}_{\exp }\simeq 100\) to 500 times to yield averaged data points (including statistical uncertainties) for fixed parameter settings. More details on raw data analysis in our experiments can be found in ref.^{43}. Note, in the following experiments, state preparation can include population transfer from the bright state to any other state of the hyperfine manifold, e.g., |3,1〉 state, via microwave (or radio-frequency) pulses. In turn, state detection, will then include reversed application of pulses to transfer population back into the bright state. After optimisation, we further neglect infidelities of these transfer pulses in the analysis of our experiments; in similar experimental setups infidelities below 10^{−4} have been reported^{46}.

## Results

### Tuning and long-term stability of the quantisation field

In dedicated calibration measurements, we tune the orientation and strength of **B**_{0}, to enable optimal experimental conditions: We require, firstly, first-order field insensitivity of the |3,1〉–|2,0〉 state splitting and, secondly, optimal state preparation in our experiments. For these calibration experiments, we probe the magnetic field with a single ion via the |3,3〉 to |2,2〉 transition frequency *ω*_{MW, 0}, with a field sensitivity of \(\simeq \,-2\pi \,\times 21.764\) MHz mT^{−1}, cf. Fig. 2 and Table 1. We apply either a single microwave *π* pulse (Rabi sequence, i.e., full population transfer from |3,3〉 to |2,2〉) or two *π*/2 pulses separated by the duration \({T}_{{\rm{Ramsey}}}\le 20\) μs (Ramsey sequence).

A coarse setup of the orientation of **B**_{0}, i.e., superposition of the magnetic field with the wave vector of our laser beams for optimal optical pumping into the |3,3〉 state, is ensured by mechanical/geometrical constraints and adjustments of the beam polarisation. Further, we coarsely tune the strength of **B**_{0} by mechanical adjustments of *d*, while monitoring *ω*_{MW, 0} via Rabi sequences. In addition, we record *ω*_{MW, 2} via Rabi sequences to find the field strength corresponding to the first-order field-independent transition, see Fig. 2b.

For fine tuning of **B**_{0}, we adjust current amplitudes fed into the shim coils guided by Ramsey sequences probing *ω*_{MW, 0} in multiple iterations: The currents in the vertical and horizontal shim coils are adjusted to minimise |**B**_{0}|, i.e., optimising superposition of **B**_{0} with preparation laser beams, while the current in the longitudinal shim coils is optimised for setting |**B**_{0}| to its target value within a relative precision of ≤0.1 × 10^{−4}. We perform multiple long-term measurements of the passive magnetic-field stability over the course of up to 8 hours with a single ion without re-loading or other systematic variations of experimental parameters. We find maximal variations of the magnetic field strength of \(\simeq 0.3\,\times {10}^{-4}\) within five minutes and \(\simeq 1.0\,\times {10}^{-4}\) within one hour.

In literature several mechanisms are discussed to influence the stability of fields from permanent magnets and it is distinguished between reversible and irreversible effects. Irreversible effects that lead to a degradation of the magnetisation can be triggered, e.g., by heat, external magnetic fields, and mechanical force. Timescales of this ageing vary strongly with effective amplitudes of these disturbances and are difficult to assess. For example, in our case, a longterm demagnetisation due to the room temperature surrounding may be of about 0.01 within one year, as studied in ref.^{47}. On shorter timescales (from minutes to hours), reversible effects due to variations of the surrounding temperature need to be considered. First of all, magnetisation varies proportional to the reversible temperature coefficient and we calculate that in our case (assuming a temperature stability of ±0.3 K) it yields a relative magnetic field stability of better than 3.6 × 10^{−4}. Another effect results from thermal expansion of the supporting structure of the magnets with increasing temperature. We estimate this effect to contribute not more than 1.5 × 10^{−4} of field variations. Note, that both of these reversible effects add up in our current setup.

During the following measurement runs, we track magnetic-field strength drifts every five to 20 minutes via variations of *ω*_{MW, 0} within a Ramsey sequence, and readjust current amplitudes of the longitudinal shim coils, accordingly. In this way, we actively stabilise the magnetic field to |*B*_{0}| = 10.9584(2) mT.

Finally, we conservatively estimate spatial magnetic field gradients in the vicinity of a single trapped ion from final mechanical setup tolerances and based on the numerical field simulations of the solid-state magnets. We assume that the ion is displaced by less than 2 mm from the geometric centre position \(\hat{z}=0\) of the magnet assembly. Therefore, we expect spatial gradients of less than 11 nT μm^{−1} in any direction, neglecting additional contributions, e.g., from contaminating magnetic materials in the trap chip and the surrounding support structures. Note, this corresponds to a spatial variation of *ω*_{MW, 2} of less than 2*π* × 26 μHz μm^{−2}.

### Measurements of coherence times

In the following, we determine coherence times *τ*–in some literature referred to as the \({{\rm{T}}}_{2}^{\ast }\) relaxation duration–of four different sets of internal state superpositions within the ground state hyperfine manifold, cf. Fig. 2a, in order to further benchmark the performance of our overall setup. In Table 1, we quantify and summarise relevant properties of the probed transitions. We apply the following experimental sequences to measure coherence times: After preparation of the initial state, we create internal state superposition states via a first *π*/2 (microwave or radio-frequency) pulse, wait for fixed durations *T*_{Ramsey}, apply a second *π*/2 pulse with variable phase Δ*ϕ* (relative to the phase of the first pulse) and detect the final state. In Fig. 3a, we show, as an example, results of the field-independent superposition states.

We plot the population probability \({P}_{\mathrm{|3,1}\rangle }\) of state \(\mathrm{|3,1}\rangle \) as a function of Δ*ϕ* for two different values of *T*_{Ramsey}. From sinusoidal model fits to the data, we determine the contrast of such Ramsey sequences for all four sets of superposition states for variable *T*_{Ramsey} and show these results in Fig. 3b. In a final analysis step, we determine *τ*, i.e., the duration *T*_{Ramsey} after which the initial contrast decayed to *e*^{−1}, by exponential model fits to each data set. We find a coherence time of 6.6(9) s for the field-independent superposition states, while coherence times are shorter than two milliseconds for all other superposition states; all results are summarised in Table 1. Measured decoherence rates Γ = 2*πτ*^{−1} increase linearly as a function of the corresponding magnetic-field sensitivities and suggesting significant magnetic-field fluctuations on time scales between a few hundred microseconds and a few seconds. From additional experiments with less stable power supplies feeding the shim coils, we estimate that noise levels from the relevant current supplies contribute less than 2*π* × 0.002 Hz to the lowest decoherence rates of 2*π* × 0.15(3) Hz (for the field insensitive transition). Further, we assume that the limited thermal stability of the permanent magnets contributes significantly to field noise in our setup. A temperature variation of about 45 mK on timescales faster than the bandwidth (\(\simeq 1\) mHz) of our active stabilisation translates to a field variation of \(\simeq 0.8\,\) µT and would suffice to explain the observed decoherence rates. For reference, we infer the amplitude of background/stray magnetic field noise to be ≤0.1 μT from another experimental setup in our laboratory^{48}. Note, we ensure that leakage from our laser beams contribute less than 2*π* × 0.08 Hz (for all probed transitions).

### Sensing of oscillating magnetic fields

In a first application, we use the clock transition for sensing of oscillating magnetic fields **B**_{osc} that originate from stray currents with unknown amplitude (∝ *U*_{RF}) in the two RF electrodes. We consider that these fields predominantly lie in the *x*-*y* plane, due to the symmetry of the electrode structure. Under this assumption and from basic atomic properties, we calculate the frequency dependent a.c. Zeeman shift^{49} of the probed transition, and find a quadratic sensitivity of 2*π* × 4.783 Hz μT^{−2} to fields oscillating at Ω_{RF}. To further characterise **B**_{osc}, we apply the following experimental (spin-echo) sequence and detect phase accumulations from differential a.c. Zeeman shifts due to a variation of *U*_{RF}: After preparation of |3,1〉, a *π*/2 pulse to create a |3,1〉−|2,0〉 superposition, and a free evolution duration *T*_{P}, we apply a *π* pulse in phase with the previous pulse. After an additional duration *T*_{P}, during which we ramp down and back the radio-frequency voltage by Δ*U*_{RF} within ramp durations of ≤80 μs, we conclude the experimental sequence with a second *π*/2 pulse (again, in phase with the previous pulses) and detection of the |3,1〉 state, cf. Fig. 4a. Note, the spin echo sequence makes results insensitive to quantisation-field fluctuations slower than the time scale of an individual sequence (\(\simeq 1\) s). In subsequent measurements, we vary *T*_{P} to up to 1.2 s for fixed Δ*U*_{RF} to determine the phase accumulation from differential a.c. Zeeman shifts. Corresponding results as a function of Δ*U*_{RF} are shown in Fig. 4a. A quadratic model fit to this data yields a slope of 2*π* × 20.77(7) mHzV^{−2} and from this we infer an oscillating magnetic field strength of *B*_{osc} = 5.239(8) μT for *U*_{RF} = 79.5 V.

Next, we measure the spatial dependence of this field along the *y* axis. We deploy a similar spin-echo sequence as described above, but vary the position Δ*y* of the ion, respectively to its initial position *y*_{0}, within the second free evolution duration for fixed *U*_{RF}, cf. Fig. 4b. In such sequences, the ion position is varied by applying electric control fields. We calibrate relative ion displacements in dedicated measurements to within ±0.2 μm and ensure that displacements in all other directions are less than \(\simeq \,1.0\) μm for maximal *y* displacements. We observe a linear variation of Δ*ω*_{MW, 2} as a function of Δ*y* with a slope of 2*π* × 327(7) mHz μm^{−1} and attribute this to differential a.c. Zeeman shifts. Note, to explain the observed frequency shift by a spatial variation of static magnetic fields only, it would require local gradients of \(\simeq 1.2\,\) mT μm^{−1/2}. In comparison, we refer to our estimation of global linear gradients of less than 11 nT μm^{−1} (see above) and judge the presence of such large (static) local gradients to be unlikely in our setup. Consequently, we show in Fig. 4b the variation of *B*_{osc} with a non-linear slope of \(\delta {B}_{{\rm{osc}}}/\sqrt{\delta y}=\mathrm{0.261(3)}\,\) μT μm^{−1/2}.

## Discussion

We describe a hybrid approach for generating stable magnetic fields, with a field strength around 10.9 mT and a calculated spatial variation of less than 10^{−6} within a diameter of spherical volume of 150 μm, using a combination of rare-earth magnets and magnetic field coils powered by stable low-power current supplies. We coarsely tune the magnetic field by mechanical adjustments of the permanent magnets and use the field coils for fine tuning. In our experiments, we use a single trapped Mg^{+} atom to probe the field characteristics. We find a passive long-term temporal stability of \(\simeq 1\,\times {10}^{-4}\) over the course of one hour. In addition, we implement a feed-back loop for active field stabilisation with a bandwidth of about 1 mHz to better than 2 × 10^{−5} via re-adjustments of currents in the field coils. Further, we benchmark the short-term performance of our setup by measurements of coherences of internal state superpositions and find coherence times of up to 6.6(9) s. We assume that the short-term stability is limited by the passive (thermal) stability of the permanent magnets and the bandwidth of the active field stabilisation. In a first quantum sensing application, we probe magnetic fields oscillating at 2*π* × 60 MHz that originate from currents running in our trapping structure. We measure the magnitude with a quadratic sensitivity of 2*π* × 4.783 Hz mT^{−2} and spatial variation within about ten micrometers. In an extension of our measurements, complete, i.e., local amplitude and phase information of the oscillating field can be recorded^{50}. Numerical simulations of the oscillating magnetic fields can be compared to our results and, in turn, would yield detailed understanding of electronic properties of trapping structures that are used for quantum simulation^{42} and related fields of research.

The stability of our hybrid approach can be further increased in several ways. First of all, we can increase the bandwidth and accuracy of the active stabilisation. In addition, we can combine permanent magnets with different reversible temperature coefficients in arrays that create magnetic fields that are intrinsically robust against thermal variations^{51}. Another way can be to use a support structure that is engineered to counteract on the change of magnetisation due to thermal drifts by a change in the distance between the magnet sets. The magnetic field noise floor can be improved via implementation of shielding against stray magnetic fields as, e.g., demonstrated in ref.^{26}. Finally, adapted and optimised geometries of the solid-state magnets can yield smaller footprints, while increasing regions of homogeneous field distribution, and variable field strengths. We conclude that improved versions our hybrid approach are of particular importance for setups that have strict power and load requirements, while being cost effective. Thus, it enables more compact and robust developments in a variety of applications.

### Data availability

The datasets generated and analysed during the current study are available from the corresponding author on reasonable request.

## Additional information

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

## References

- 1.
Georgescu, I. & Nori, F. Quantum technologies: An old new story.

*Phys. World***25**, 16–17, https://doi.org/10.1088/2058-7058/25/05/28 (2012). - 2.
Giovannetti, V., Lloyd, S. & Maccone, L. Advances in quantum metrology.

*Nat. Photonics***5**, 222–229, https://doi.org/10.1038/nphoton.2011.35 (2011). - 3.
Degen, C., Reinhard, F. & Cappellaro, P. Quantum sensing.

*Rev. Mod. Phys.***89**, 035002, https://doi.org/10.1103/RevModPhys.89.035002 (2017). - 4.
Ladd, T. D.

*et al*. Quantum computers.*Nature***464**, 45–53, https://doi.org/10.1038/nature08812 (2010). - 5.
Gisin, N. & Thew, R. Quantum Communication.

*Nat. Photonics***1**, 1–8, https://doi.org/10.1038/nphoton.2007.22 (2007). - 6.
Buluta, I. & Nori, F. Quantum Simulators.

*Science***326**, 108–111, https://doi.org/10.1126/science.1177838 (2009). - 7.
Bloch, I., Dalibard, J. & Nascimbène, S. Quantum simulations with ultracold quantum gases.

*Nat. Phys.***8**, 267–276, https://doi.org/10.1038/nphys2259 (2012). - 8.
Schaetz, T., Monroe, C. R. & Esslinger, T. Focus on quantum simulation.

*New J. Phys.***15**, 85009, https://doi.org/10.1088/1367-2630/15/8/085009 (2013). - 9.
Georgescu, I. M., Ashhab, S. & Nori, F. Quantum simulation.

*Rev. Mod. Phys.***86**, 153–185, https://doi.org/10.1103/RevModPhys.86.153 (2014). - 10.
Xiang, Z.-L., Ashhab, S., You, J. Q. & Nori, F. Hybrid quantum circuits: Superconducting circuits interacting with other quantum systems.

*Rev. Mod. Phys.***85**, 623–653, https://doi.org/10.1103/RevModPhys.85.623 (2013). - 11.
Gaebler, J. P. P.

*et al*. High-Fidelity Universal Gate Set for Be^{+}Ion Qubits.*Phys. Rev. Lett.***117**, 060505, https://doi.org/10.1103/PhysRevLett.117.060505 (2016). - 12.
Ballance, C. J., Harty, T. P., Linke, N. M., Sepiol, M. A. & Lucas, D. M. High-Fidelity Quantum Logic Gates Using Trapped-Ion Hyperfine Qubits.

*Phys. Rev. Lett.***117**, 060504, https://doi.org/10.1103/PhysRevLett.117.060504 (2016). - 13.
Schmidt, P. O.

*et al*. Spectroscopy Using Quantum Logic.*Science***309**, 749–752, https://doi.org/10.1126/science.1114375 (2005). - 14.
Rosenband, T.

*et al*. Frequency Ratio of Al+ and Hg+ Single-Ion Optical Clocks; Metrology at the 17th Decimal Place.*Science***319**, 1808–1812, https://doi.org/10.1126/science.1154622 (2008). - 15.
Chou, C. W., Hume, D. B., Rosenband, T. & Wineland, D. J. Optical Clocks and Relativity.

*Science***329**, 1630–1633, https://doi.org/10.1126/science.1192720 (2010). - 16.
Bloom, B. J.

*et al*. An optical lattice clock with accuracy and stability at the 10^{−18}level.*Nature***506**, 71–75, https://doi.org/10.1038/nature12941 (2014). - 17.
Huntemann, N., Sanner, C., Lipphardt, B., Tamm, C. & Peik, E. Single-Ion Atomic Clock with 3 × 10

^{−18}Systematic Uncertainty.*Phys. Rev. Lett.***116**, 1–5, https://doi.org/10.1103/PhysRevLett.116.063001 (2016). - 18.
Zhang, X. & Ye, J. Precision measurement and frequency metrology with ultracold atoms.

*Natl. Sci. Rev.***3**, 189–200, https://doi.org/10.1093/NSR/NWW013 (2016). - 19.
Bollinger, J. J., Heinzen, D. J., Itano, W. M., Gilbert, S. L. & Wineland, D. J. A 303-MHz Frequency Standard Bases on Trapped Be

^{+}Ions.*IEEE Trans. Instrum. Meas.***40**, 126, https://doi.org/10.1109/TIM.1990.1032897 (1991). - 20.
Langer, C.

*et al*. Long-Lived Qubit Memory Using Atomic Ions.*Phys. Rev. Lett.***95**, 060502, https://doi.org/10.1103/PhysRevLett.95.060502 (2005). - 21.
Metcalf, H. J. & van der Straten, P.

*Laser Cooling and Trapping*(Springer-Verlag New York, 1999). - 22.
Itano, W. M. & Wineland, D. J. Precision measurement of the ground-state hyperfine constant of 25Mg+.

*Phys. Rev. A***24**, 1364–1373, https://doi.org/10.1103/PhysRevA.24.1364 (1981). - 23.
Fisk, P. T. H., Sellars, M. J., Lawn, M. A. & Coles, G. Accurate measurement of the 12.6 GHz “clock” transition in trapped Yb+ ions.

*IEEE Trans. Ultrason. Ferroelectr. Freq. Control***44**, 344–354, https://doi.org/10.1109/58.585119 (1997). - 24.
Ospelkaus, C.

*et al*. Microwave quantum logic gates for trapped ions.*Nature***476**, 181–184, https://doi.org/10.1038/nature10290 (2011). - 25.
Cheng, J.

*et al*. Miniature Bose–Einstein condensate system design based on a transparent atom chip.*J. Phys. B At. Mol. Opt. Phys.***49**, 165301, https://doi.org/10.1088/0953-4075/49/16/165301 (2016). - 26.
Ruster, T.

*et al*. A long-lived Zeeman trapped-ion qubit.*Appl. Phys. B***122**, 254, https://doi.org/10.1007/s00340-016-6527-4 (2016). - 27.
Schwindt, P. D.

*et al*. A highly miniaturized vacuum package for a trapped ion atomic clock.*Rev. Sci. Instrum*.**87**, https://doi.org/10.1063/1.4948739 (2016). - 28.
Koller, S. B.

*et al*. Transportable optical lattice clock with 7 × 10^{−17}uncertainty.*Phys. Rev. Lett.***118**, 073601, https://doi.org/10.1103/PhysRevLett.118.073601 (2017). - 29.
Fernholz, T., Gerritsma, R., Whitlock, S., Barb, I. & Spreeuw, R. J. C. Fully permanent magnet atom chip for Bose-Einstein condensation.

*Phys. Rev. A***77**, 033409, https://doi.org/10.1103/PhysRevA.77.033409 (2008). - 30.
Tan, J. N., Brewer, S. M. & Guise, N. D. Penning traps with unitary architecture for storage of highly charged ions.

*Rev. Sci. Instrum.***83**, 23103, https://doi.org/10.1063/1.3685246 (2012). - 31.
Khromova, A.

*et al*. Designer spin pseudomolecule implemented with trapped ions in a magnetic gradient.*Phys. Rev. Lett.***108**, 220502, https://doi.org/10.1103/PhysRevLett.108.220502 (2012). - 32.
Lebedev, V. & Weld, D. M. Self-assembled Zeeman slower based on spherical permanent magnets.

*J. Phys. B At. Mol. Opt. Phys.***47**, 155003, https://doi.org/10.1088/0953-4075/47/15/155003 (2014). - 33.
Kawai, Y., Shimizu, K., Noguchi, A., Urabe, S. & Tanaka, U. Surface-electrode trap with an integrated permanent magnet for generating a magnetic-field gradient at trapped ions.

*J. Phys. B At. Mol. Opt. Phys.***50**, 025501, https://doi.org/10.1088/1361-6455/50/2/025501 (2017). - 34.
die-magnetprofis.de. private communication (2016).

- 35.
Elleaume, P., Chubar, O. & Chavanne, J. Computing 3D magnetic fields from insertion devices.

*Proc. 1997 Part. Accel. Conf. (Cat. No.97CH36167)***3**, 3509–3511, https://doi.org/10.1109/PAC.1997.753258 (1998). - 36.
Chubar, O., Elleaume, P. & Chavanne, J. A three-dimensional magnetostatics computer code for insertion devices.

*J. Synchrotron Radiat.***5**, 481–484, https://doi.org/10.1107/S0909049597013502 (1998). - 37.
Peng, Q. L., McMurry, S. M. & Coey, J. M. Axial magnetic field produced by axially and radially magnetized permanent rings.

*J. Magn. Magn. Mater.***268**, 165–169, https://doi.org/10.1016/S0304-8853(03)00494-3 (2004). - 38.
Brady, G. R.

*et al*. Integration of fluorescence collection optics with a microfabricated surface electrode ion trap.*Applied Physics B***103**, 801–808, https://doi.org/10.1007/s00340-011-4453-z (2011). - 39.
Allcock, D.

*et al*. Heating rate and electrode charging measurements in a scalable, microfabricated, surface-electrode ion trap.*Appl. Phys. B***107**, 913–919, https://doi.org/10.1007/s00340-011-4788-5 (2012). - 40.
Leibfried, D., Blatt, R., Monroe, C. & Wineland, D. Quantum dynamics of single trapped ions.

*Rev. Mod. Phys.***75**, 281–324, https://doi.org/10.1103/RevModPhys.75.281 (2003). - 41.
Friedenauer, A.

*et al*. High power all solid state laser system near 280 nm.*Appl. Phys. B***84**, 371–373, https://doi.org/10.1007/s00340-006-2274-2 (2006). - 42.
Mielenz, M.

*et al*. Arrays of Individually Controlled Ions Suitable for Two-Dimensional Quantum Simulations.*Nat. Commun.***7**, 11839, https://doi.org/10.1038/ncomms11839 (2016). - 43.
Clos, G., Porras, D., Warring, U. & Schaetz, T. Time-Resolved Observation of Thermalization in an Isolated Quantum System.

*Phys. Rev. Lett.***117**, 170401, https://doi.org/10.1103/PhysRevLett.117.170401 (2016). - 44.
Kalis, H.

*et al*. Motional-mode analysis of trapped ions.*Phys. Rev. A***94**, 023401, https://doi.org/10.1103/PhysRevA.94.023401 (2016). - 45.
Tec, J., González, C., García, M., Narváez, L. & Canché, M. Homemade Antennas Implementation: A Comparative Analysis of the Quality of Service.

*IJCSI Int. J. Comput. Sci. Issues***9**, 62–69 (2012). - 46.
Brown, K. R.

*et al*. Single-qubit-gate error below 10^{−4}in a trapped ion.*Phys. Rev. A***84**, 1–5, https://doi.org/10.1103/PhysRevA.84.030303 (2011). - 47.
Haavisto, M. & Paju, M. Temperature stability and flux losses over time in sintered NdFeB permanent magnets.

*IEEE Trans. Magn.***45**, 5277–5280 (2009). - 48.
Clos, G., Enderlein, M., Warring, U., Schaetz, T. & Leibfried, D. Decoherence-Assisted Spectroscopy of a Single Mg + Ion.

*Phys. Rev. Lett.***112**, 113003, https://doi.org/10.1103/PhysRevLett.112.113003 (2014). - 49.
Warring, U.

*et al*. Techniques for microwave near-field quantum control of trapped ions.*Phys. Rev. A***87**, 013437, https://doi.org/10.1103/PhysRevA.87.013437 (2013). - 50.
Böhi, P., Riedel, M. F., Hänsch, T. W. & Treutlein, P. Imaging of microwave fields using ultracold atoms.

*Appl. Phys. Lett.***97**, 051101, https://doi.org/10.1063/1.3470591 (2010). - 51.
Danieli, E., Perlo, J., Bluemich, B. & Casanova, F. Highly stable and finely tuned magnetic fields generated by permanent magnet assemblies.

*Phys. Rev. Lett.***110**, 1–5, https://doi.org/10.1103/PhysRevLett.110.180801 (2013).

## Acknowledgements

We thank Frederik Jacobs for introducing us to the RADIA software package. Our work was supported by the Deutsche Forschungsgemeinschaft (DFG) [SCHA 973/6-3; 91b (INST 39/828-1 and 39/901-1 FUGG)]. The article processing charge was funded by the DFG and the University of Freiburg in the funding programme Open Access Publishing.

## Author information

### Affiliations

#### Albert-Ludwigs-Universität Freiburg, Physikalisches Institut, Hermann-Herder-Straße 3, 79104, Freiburg, Germany

- Frederick Hakelberg
- , Philip Kiefer
- , Matthias Wittemer
- , Tobias Schaetz
- & Ulrich Warring

### Authors

### Search for Frederick Hakelberg in:

### Search for Philip Kiefer in:

### Search for Matthias Wittemer in:

### Search for Tobias Schaetz in:

### Search for Ulrich Warring in:

### Contributions

F.H., P.K., M.W., U.W., and T.S. developed the experimental apparatus. F.H., P.K., and U.W. conceived, conducted, and analysed the experiments. All authors carefully discussed the results and reviewed the manuscript.

### Competing Interests

The authors declare no competing interests.

### Corresponding author

Correspondence to Frederick Hakelberg.

## 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

## 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.