## Abstract

Self-oscillating atomic magnetometers, in which the precession of atomic spins in a magnetic field is driven by resonant modulation, offer high sensitivity and dynamic range. Phase-coherent feedback from the detected signal to the applied modulation creates a resonant spin maser system, highly responsive to changes in the background magnetic field. Here we show a system in which the phase condition for resonant precession is met by digital signal processing integrated into the maser feedback loop. This system uses a modest chip-scale laser and mass-produced dual-pass caesium vapour cell and operates in a 50 \(\mu \)T field, making it a suitable technology for portable measurements of the geophysical magnetic field. We demonstrate a Cramér-Rao lower bound-limited resolution of 50 fT at 1 s sampling cadence, and a sensor bandwidth of 10 kHz. This device also represents an important class of atomic system in which low-latency digital processing forms an integral part of a coherently-driven quantum system.

## Introduction

The generation of radio-frequency modulation in the polarisation or intensity of light transmitted through a precessing ensemble of optically pumped atomic spins is a phenomenon exploited in optical magnetometry^{1,2}. The measured spin precession results from Zeeman splitting of the atomic ground state in the presence of a non-zero magnetic field. For alkali metal vapours, including commonly used isotopes such as \(^{133}\)Cs, \(^{85}\)Rb and \(^{87}\)Rb, Zeeman splitting is approximately linear in typical geophysical fields, and the precession frequency is related proportionally to the measured field by the gyromagnetic ratio \(\gamma \). Optical detection of the spin precession allows closure of a feedback loop, in which this oscillating signal is applied to the atomic vapour via modulation of the local magnetic field^{3}, the rate of optical pumping^{4}, or the polarisation of pump light^{5}. Under the condition that the modulation phase matches that required for coherent feedback, the system undergoes a driven resonant response, strongly amplifying signals at the precession frequency. Such a system can be considered an alkali spin maser^{6}.

Precessing geophysical magnetometers benefit from the atomic transduction of measured field to frequency, a physical property which can be determined precisely. Limiting noise sources on the precessing signal, such as photon shot noise, are white, meaning that the variance on this frequency (and hence magnetic field) measurement scales inversely with the cube of measurement time^{7} (for derivation see^{8}, equations 1-17). Coupled with the high signal-to-noise measurement of optical rotation in the presence of a polarised optically pumped atomic sample, highly precise magnetometry may be achieved in geophysical magnetic fields^{9}, with applications such as magneto-encephalography^{10} and GPS-denied navigation^{11}. Furthermore, the direct mapping of precession frequency to magnetic field allows rapid changes in field to be resolved with high bandwidth, at rates even exceeding the precession frequency with use of signal phase estimation^{12}. For alkali metals in geophysical magnetic fields, the magnetic precession (Larmor) frequency ranges between 70 kHz and 450 kHz. This frequency range is suitable for digitisation and real-time processing, which we exploit in this work.

Precise geophysical-field measurements are an exciting tool in several applications, especially if achieved using compact scalable hardware. Examples include detection of geomagnetic Alfvén resonances^{13}, GPS-denied navigation^{11}, and a host of terrestrial and space-based geomagnetic survey applications^{14,15,16}.

### Determination of magnetic field

Consider the signal output of a spin system precessing at a magnetic resonance frequency \(f_L = \gamma B_0\), where \(\gamma \) is the gyromagnetic ratio, for convenience rescaled to units of Hz/nT. The lowest variance on the measurement of this frequency, in the presence of white noise, is given by the Cramér-Rao lower bound (CRLB)^{7}

where \(\rho \) is the spectral noise density (units \(\hbox {V}\cdot \hbox {Hz}^{-1/2}\)) at the measurement frequency \(f_L\), *A* the signal amplitude (V) and \(\tau \) the measurement duration (s), which we assume to greatly exceed the data acquisition sample interval. The resolution of a single measurement of magnetic field is therefore given (in nT) by

Consider the measurement of a slowly varying magnetic field \(B_0\), the magnitude of which we determine through *N* independent measurements of duration \(\tau \), giving a bandwidth of \((2\tau )^{-1}\). The resolution of each measurement is given by Eq. (2), and we can find that the bandwidth-adjusted noise floor, commonly referred to as the sensitivity of the magnetometer, is proportional to \(\tau ^{-1}\), and given by

in units \(\hbox {nT}\cdot \hbox {Hz}^{-1/2}\).

In the case of a freely precessing magnetometer, the atomic coherence time \(T_2\) limits the duration of each measurement to \(\tau \simeq 2T_2\), fixing the minimum noise floor to this physical property of the atomic system. By contrast, a continuously oscillating signal may be sampled at a rate chosen to optimally cover the desired signal bandwidth and hence achieve the highest possible sensitivity to the desired signal source.

To achieve such a continuous atomic spin resonance, alkali spin masers have been realised using electronic feedback, using analogue phase shift and homodyne detection^{6}. However, to reduce reliance on manually tuned analogue electronics, we use a continuous low-latency digital filter to drive resonant atomic spin precession in a \(^{133}\)Cs sample, implemented in firmware running on a field-programmable gate array (FPGA). In a practical sensor this represents a more scalable, flexible and portable option than analogue electronic feedback. This approach is particularly powerful in situations where the resonance phase condition is not known, for example in arbitrary geometries of the magnetic field or optical polarisation^{17}. We implement a pair of matched finite-impulse response (FIR) filters, exploiting their fixed-phase output to generate the full analytic signal, from which a frequency-agnostic constant-phase-shifted signal can be generated and applied as magnetic feedback to drive the \(^{133}\)Cs spins. We describe the spontaneous emergence and amplification of resonant dynamics in this digital-atomic system, measure the signal-to-noise achieved in a compact sensor package, and characterise the system bandwidth and uniformity of response to rapid variation in the measured magnetic field.

## Results

A detailed description of the spin maser package (Fig. 1) and the firmware design for resonant \(B_{RF}\) feedback is given in “Methods” section.

### Digital spin maser resonance

Figure 2 shows the polarimeter signal response following closure of the FPGA dual-FIR filter feedback loop between the polarimeter signal and the \(B_{RF}\) feedback coil, while the sensor is held in a shielded magnetic field \(B_0= 50\,\mu \hbox {T}\). This feedback is tuned on at \(t=0\,\hbox {s}\) and within \(300\,\mu \hbox {s}\) an oscillating signal is spontaneously generated at the \(^{133}\hbox {Cs}\) Larmor frequency \(\sim 175\,\hbox {kHz}\).

Figure 3 shows the spectrum around the magnetic resonance frequency for steady-state operation in a stable \(B_0\) field of \(50\,\mu \hbox {T}\), allowing the ratio of signal amplitude to noise density \(A/\rho \) to be estimated. The observation of 70 dB spurious-free dynamic range (SFDR) (\(A/\rho = 3162\,\hbox {Hz}^\frac{1}{2}\)), allows the optimum magnetic resolution \(\Delta B_\text {min}\) and sensitivity \(\delta B_\text {min}\) to be estimated for a measurement time \(\tau =1\,\hbox {s}\) using Eqs. (2) and (3) respectively. We obtain \(\Delta B_\text {min} =50\,\hbox {fT}\) and \(\delta B_\text {min}=70\,\hbox {fT}\cdot \hbox {Hz}^{-1/2}\) respectively, representing the CRLB-limited resolution of a 1 s duration measurement and the corresponding bandwidth-adjusted sensitivity of this measurement.

### Bandwidth of field response

The low-latency feedback circuit allows very rapid response between changes in the magnetic field and the observed resonance frequency. The upper limit on this response is given by the phase update rate of 1 MHz. In practice, the extraction of frequency data at this rate is hard to achieve due to limitations on data transfer rates between the FPGA and analysis software. However, the real-time firmware generation of the analytic signal (see “Methods” section) allows the real-time phase to be found on each data sample cycle (1 MHz in this case).

From the real-time phase, the instantaneous phase step is found by numerical differentiation, and this 1 MHz data is down-sampled to 20 kHz for transfer and analysis. The phase step can then be rescaled to the instantaneous frequency, and a time series of \(B_0(t)\) data recorded. A small low-impedance coil of six turns was used to generate an additional 10 nT oscillating field parallel to \(B_0\), and the observed sensor response to this field extracted by demodulation of recorded \(B_0(t)\) data. Figure 4 shows this response, demonstrating uniform sensor response up to the transfer Nyquist limit of 10 kHz, with the expected amplitude reduction due to under-sampling around the Nyquist frequency visible.

## Discussion

### Self-oscillating spin resonance

We have confirmed that resonant self-oscillating behaviour emerges in the digital-atomic system following the activation of the feedback loop (Fig. 2). The response of this resonant oscillator to changes in the local magnetic field is limited to 10 kHz by the Nyquist limit on data transfer (Fig. 4), indicating that atomic system response does not impose a bandwidth limit below this frequency.

The FIR filter architecture provides a flexible and powerful tool for defining the frequency-domain response of the system and allows a real-time estimator for the resonance frequency to be obtained. The use of a digital processor to modify and define spin maser feedback, governing and driving the inversion of Zeeman states, on a timescale faster than their precession is a valuable capability with potential for elaboration and further study. Interaction with alkali vapour ground-state Zeeman levels in geophysical fields offers a convenient sub-MHz frequency range for digital feedback and manipulation. In theses systems the use of well-established optical pumping techniques allows preparation of highly-polarised ensembles. The increasing processing power, availability and scalability of embedded processors will continuously offer enhanced impact in the manipulation of quantum systems and their application to portable devices. Development of this work has potential for study of modified spin dynamics, through infinite-impulse response (IIR) filtering, or the use of Bayesian estimation, such as Kalman filtering, to achieve CRLB-limited real-time frequency estimation.

### Geophysical magnetic resolution

The resolution of this digital spin maser system as a geophysical magnetometer can be estimated from the measured signal-to-noise-density (Fig. 3). Based on this we estimate the CRLB-limited root-mean-square resolution of this sensor to be 50 fT at 1 s sampling cadence. This measurement benefits from the persistent driven atomic oscillation, which allows \(\tau \) to be chosen on the basis of signal bandwidth, rather than limited by atomic coherence \(T_2\). The system also enjoys a 100% duty cycle, without down-time for cell heating or pump laser operation. The sensor hardware used is rather modest; a single VCSEL for optical pumping and probing and a mass-produced double-pass MEMS alkali vapour cell^{18}. This is reflected in the signal-to-noise-density ratio observed. Several well-established techniques could be used to significantly enhance signal-to-noise, such as the use of a multi-pass vapour cell^{19} or the use of a re-pumping laser to achieve light-narrowing^{20}.

### Potential applications

The combination of these optical magnetometry techniques with the digital feedback loop demonstrated here would constitute a geophysical magnetometer of outstanding resolution, significantly exceeding parts-per-billion resolution in the Earth’s field. The key advantage unlocked by the digital spin maser demonstrated here is to permit magnetic measurement by frequency estimation of a persistent resonant oscillation, not limited by atomic relaxation lifetime. In practical applications this frequency estimation may be implemented using a CRLB-limited algorithm running on a modest processor^{21}. In addition, the on-resonance phase-shift is a variable and optimised free parameter in this sensor. The capacity to vary this parameter dynamically is a unique advantage of the reported technique, offering the potential to exploit the phase-angle relations present in \(B_{RF}\)-modulated atomic alignment magnetometry^{17}, allowing vector readout of a single-channel geophysical optical magnetometer^{22}.

## Methods

### OPM sensor head

Since the aim of our work is the development of practical atomic sensors for real-world magnetic measurements, we have utilised a compact, fully integrated sensor module, shown in Fig. 1. This sensor module is built around a \(^{133}\)Cs atomic sample, hermetically sealed within a glass-silicon micro-fabricated cell of outer dimensions 10 x 10 x 5.5 mm^{18}. The caesium atoms, introduced by azide decomposition, inhabit a cavity of approximate dimensions 6 x 6 x 5 mm. One wall of this cavity is formed by a silicon wafer, which is around 30% reflective at the operating wavelength of 894.6 nm. A single-mode vertical-cavity surface emitting laser (VCSEL) of output 300 \(\mu \)W at this wavelength is collimated to a beam diameter of 3.2 mm, circularly polarised and used to optically pump the caesium vapour, which is heated to 80\(^{\circ }\)C using a non-inductively wound Ohmic heater driven at 390 kHz. The rate of depolarising caesium-wall collisions is reduced by use of 250 torr \(\hbox {N}_2\) buffer/quenching gas, and for optimum magnetic resonance amplitude, the VCSEL is 15 GHz blue-detuned from the unresolved D1 absorption line of the caesium vapour. The oscillating optical rotation induced by the atomic sample is detected by polarisation measurement of the transmitted light using a polarimeter, comprising a polarising beam-splitter and differential photodiode circuit. Magnetic modulation and feedback is implemented using a single-turn coil to generate an oscillating field \(B_{\text {RF}}\) on the axis perpendicular to the incident and reflected light propagation.

### Test conditions

To establish its performance under optimal conditions, the entire sensor module is placed within a degaussed five-layer mu-metal magnetic shield, to eliminate external noise sources and allow a static magnetic field \(B_0 \simeq \) 50 \(\mu \)T to be applied. This field is established at an angle of 45\(^\circ \) to the incident light propagation axis, the optimal operating geometry for an \(\hbox {M}_x\) magnetometer^{3}. Further studies under variable \(B_0\) orientation will quantify its effect on signal amplitude and heading error. We note useful prior work on \(B_0\) orientation effects on similar sensor configurations^{23}. Under optical pumping from the incident light, a net spin orientation moment is generated configurations. within the atomic sample, which precesses about \(B_0\) at a frequency \(f_L = \gamma B_0\). With the application of a small \(B_\text {RF}\) field at this frequency the atomic coherence can be driven and maintained, provided a \(\pi /2\) radian phase shift is maintained between the phase of \(B_\text {RF}\) and the polarimeter signal. Under transformation to a frame co-rotating about \(B_0\) with \(B_\text {RF}\) the magnitude of the spin coherence, which is quasi-static in this frame, increases up to a maximum limited by \(B_\text {RF}\) saturation, which dominates for \(\gamma B_\text {RF} > T_2^{-1}\)^{3}. In this frame the maximised static spin coherence corresponds to a driven inversion of the ground-state Zeeman populations away from their equilibrium unpolarised values.

### Filter design and firmware implementation

The generation of this phase-coherent feedback in a frequency-invariant manner from the polarimeter signal is achieved using dual FIR filters to generate both a filtered signal and its Hilbert transform. This exploits the symmetries of linear-phase FIR filters, in this case, odd-coefficient even symmetry (Type 1) and odd symmetry (Type 3) filters. The phase response of a Type 3 FIR filter will be \(\pi /2\) radian offset from that of a Type 1 filter of equal coefficient vector length^{24}.

The design of these dual filters was optimised in the following way. The passband was defined as 150 - 220 kHz to cover a suitable range for a \(^{133}\)Cs spin maser operating in geophysical fields around latitudes of 56\(^\circ \) N, and the filter performance was optimised over a wider band of 0.001–400 kHz. The method for FIR filter design described here would work for any geophysical passband, allowing sensor operation at different latitude ranges to be achieved with firmware changes. The signal fixed-point representation was defined as 16 bits to match the analogue-digital converter (ADC) resolution, and the ADC sampling rate was specified (1 MS/s). For a given length *n* of FIR coefficient vector, a windowed filter design tool was used to generate fixed-point coefficients for a Type 1 band-pass coefficient vector \(h_1(n)\). The amplitude and phase response of filter \(h_1(n)\) was found by Fourier transformation, including the effects of fixed-point representation rounding errors. The required \(\pi /2\) radian phase difference of the Type 3 filter was locked by symmetry but the amplitude response was a function of the \((n-1)/2\) free parameters in the Type 3 coefficient vector \(h_3(n)\). \(h_3(n)\) was found iteratively by minimising the root-mean-square residual in the ratio of the amplitude response of \(h_1(n)\) to \(h_3(n)\) integrated over 0.001 - 400 kHz using a Levenberg–Marquardt algorithm. The coefficient vector length *n* was allowed to vary freely between 9 and 53, and a range of band-pass filter windows were investigated. Figure 5 shows the amplitude and phase response of the optimum filter, generated with \(n=23\) coefficients and an Exact Blackman window function. A root-mean-square ratio residual of \(2.23\times 10^{-5}\) between the amplitude response of the Type 1 and Type 3 filters was obtained.

The output of the Type 1 and Type 3 filters can be considered the real and imaginary parts of the complex-plane analytic signal, allowing synchronous calculation of the signal phase by trigonometry on each ADC clock cycle. The live signal phase thus obtained is represented by a signed 18-bit fixed point number representing a phase between -\(\pi \) and \(\pi \) radian. This choice of fixed-point representation for signal phase allows phase wrapping to be unwrapped without additional operation or resolution loss by fixed point overflow. The feedback phase is found by manually shifting the signal phase by \(\pi /2\) radian, and a CORDIC trigonometry algorithm used to generate phase-coherent \(B_{RF}\) modulation (with a fixed amplitude below the saturation threshold), which is output to a single-turn coil at the magnetometer cell using an digital-to-analogue converter (DAC) and buffer amplifier. The live phase is also numerically differentiated to obtain a live estimate for the oscillation frequency, as described in “Results” section.

## Data Availability

The datasets used in this work are available at https://doi.org/10.15129/e6e558c9-135d-431e-a8f2-63d0fa647fbb.

## References

Bloom, A. L. Principles of operation of the rubidium vapormagnetometer.

*Appl. Opt.***1**(1), 61–68. https://doi.org/10.1364/AO.1.000061 (1962).Lucivero, V. G., Lee, W., Dural, N. & Romalis, M. V. Femtotesla direct magnetic gradiometer using a single multipass cell.

*Phys. Rev. Appl.***15**, 014004. https://doi.org/10.1103/PhysRevApplied.15.014004 (2021).Groeger, S., Bison, G., Schenker, J.-L., Wynands, R. & Weis, A. A high-sensitivity laser-pumped \({M}_{x}\) magnetometer.

*Eur. Phys. J. D***38**, 239–247. https://doi.org/10.1140/epjd/e2006-00037-y (2006).Pustelny, S.

*et al.*Magnetometry based on nonlinear magneto-optical rotation with amplitude-modulated light.*J. Appl. Phys.***103**(6), 063108. https://doi.org/10.1063/1.2844494 (2008).Breschi, E., Grujić, Z. D., Knowles, P. & Weis, A. A high-sensitivity push-pull magnetometer.

*Appl. Phys. Lett.***104**(2), 023501. https://doi.org/10.1063/1.4861458 (2014).Chalupczak, W. & Josephs-Franks, P. Alkali-metal spin maser.

*Phys. Rev. Lett.***115**, 033004. https://doi.org/10.1103/PhysRevLett.115.033004 (2015).Jaufenthaler, A.

*et al.*Pulsed optically pumped magnetometers: addressing dead time and bandwidth for the unshielded magnetorelaxometry of magnetic nanoparticles.*Sensors*https://doi.org/10.3390/s21041212 (2021).Rife, D. & Boorstyn, R. Single tone parameter estimation from discrete-time observations.

*IEEE Trans. Inf. Theory***20**(5), 591–598. https://doi.org/10.1109/TIT.1974.1055282 (1974).Hunter, D.

*et al.*Free-induction-decay magnetometer based on a microfabricated cs vapor cell.*Phys. Rev. Appl.***10**, 014002. https://doi.org/10.1103/PhysRevApplied.10.014002 (2018).Limes, M. E.

*et al.*Portable magnetometry for detection of biomagnetism in ambient environments.*Phys. Rev. Appl.***14**, 011002. https://doi.org/10.1103/PhysRevApplied.14.011002 (2020).Canciani, A. J. Magnetic navigation on an F-16 aircraft using online calibration.

*IEEE Trans. Aerosp. Electr. Syst.*https://doi.org/10.1109/TAES.2021.3101567 (2021).Wilson, N., Perrella, C., Anderson, R., Luiten, A. & Light, P. Wide-bandwidth atomic magnetometry via instantaneous-phase retrieval.

*Phys. Rev. Res.***2**, 013213. https://doi.org/10.1103/PhysRevResearch.2.013213 (2020).Beggan, C. D. & Musur, M. Observation of ionospheric Alfvén resonances at 1–30 Hz and their superposition with the Schumann resonances.

*J. Geophys. Res. Space Phys.***123**(5), 4202–4214. https://doi.org/10.1029/2018JA025264 (2018).Gooneratne, C. P., Li, B. & Moellendick, T. E. Downhole applications of magnetic sensors.

*Sensors*https://doi.org/10.3390/s17102384 (2017).Becker, H. From nanotesla to picotesla-a new window for magnetic prospecting in archaeology.

*Archaeol. Prospect.***2**(4), 217–228. https://doi.org/10.1002/1099-0763(199512)2:4<217::AID-ARP6140020405>3.0.CO;2-U (1995).Thébault, E., Purucker, M., Whaler, K. A., Langlais, B. & Sabaka, T. J. The magnetic field of the Earth’s lithosphere.

*Space Sci. Rev.***155**, 95–127. https://doi.org/10.1007/s11214-010-9667-6 (2010).Ingleby, S. J., O’Dwyer, C., Griffin, P. F., Arnold, A. S. & Riis, E. Orientational effects on the amplitude and phase of polarimeter signals in double-resonance atomic magnetometry.

*Phys. Rev. A***96**, 013429. https://doi.org/10.1103/PhysRevA.96.013429 (2017).T. Dyer et al., article in preparation.

Sheng, D., Li, S., Dural, N. & Romalis, M. V. Subfemtotesla scalar atomic magnetometry using multipass cells.

*Phys. Rev. Lett.***110**, 160802. https://doi.org/10.1103/PhysRevLett.110.160802 (2013).Scholtes, T., Schultze, V., IJsselsteijn, R., Woetzel, S. & Meyer, H.-G. Light-narrowed optically pumped \({M}_{x}\) magnetometer with a miniaturized Cs cell.

*Phys. Rev. A***84**, 043416. https://doi.org/10.1103/PhysRevA.84.043416 (2011).Groeger, S., Bison, G., Knowles, P. E. & Weis, A. A sound card based multi-channel frequency measurement system.

*Eur. Phys. J. Appl. Phys.***33**(3), 221–224. https://doi.org/10.1051/epjap:2006020 (2006).Ingleby, S. J., O’Dwyer, C., Griffin, P. F., Arnold, A. S. & Riis, E. Vector magnetometry exploiting phase-geometry effects in a double-resonance alignment magnetometer.

*Phys. Rev. Appl.***10**, 034035. https://doi.org/10.1103/PhysRevApplied.10.034035 (2018).Lee, W.

*et al.*Heading errors in all-optical alkali-metal-vapor magnetometers in geomagnetic fields.*Phys. Rev. A***103**, 063103. https://doi.org/10.1103/PhysRevA.103.063103 (2021).Proakis, J. G. & Manolakis, D. G.

*Digital Communications. Chap. 10*4th edn, 669–766 (Pearson, London, 2007). ISBN: 978-1-292-02573-5.

## Acknowledgements

The authors would like to thank Iain Chalmers for his valuable advice and discussion in firmware design. This work was funded by the UK Quantum Technology Hub in Sensing and Timing, EPSRC (Grant No. EP/T001046/1).

## Author information

### Authors and Affiliations

### Contributions

S.I. designed the system and conducted the testing, with input from P.G. and E.R. T.D. designed and fabricated the Cs vapour cell. M.M. developed and built test hardware, including bias field current supplies. All authors discussed the results and commented on the manuscript.

### Corresponding author

## Ethics declarations

### Competing interest

The authors declare no competing interests.

## Additional information

### Publisher's note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

## 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 licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence 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 licence, visit http://creativecommons.org/licenses/by/4.0/.

## About this article

### Cite this article

Ingleby, S., Griffin, P., Dyer, T. *et al.* A digital alkali spin maser.
*Sci Rep* **12**, 12888 (2022). https://doi.org/10.1038/s41598-022-16910-z

Received:

Accepted:

Published:

DOI: https://doi.org/10.1038/s41598-022-16910-z

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