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 magnetometry1,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 field3, the rate of optical pumping4, or the polarisation of pump light5. 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 maser6.

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 time7 (for derivation see8, 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 fields9, with applications such as magneto-encephalography10 and GPS-denied navigation11. 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 estimation12. 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 resonances13, GPS-denied navigation11, and a host of terrestrial and space-based geomagnetic survey applications14,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

$$\begin{aligned} \sigma ^2_{\text {CRLB}} = \frac{3\rho ^2}{\pi ^2 A^2 \tau ^3}, \end{aligned}$$
(1)

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

$$\begin{aligned} \Delta B_{\text {min}} = \frac{\sqrt{3}\rho }{\gamma \pi A \tau ^{3/2}}. \end{aligned}$$
(2)

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

$$\begin{aligned} \delta B_{\text {min}} = \frac{\sqrt{6}\rho }{\gamma \pi A \tau } \end{aligned}$$
(3)

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 detection6. 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 polarisation17. 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.

Figure 1
figure 1

Schematic showing the sensor package, including vertical cavity surface-emitting laser (VCSEL), aspheric lens (ASL), quarter-wave plate (QWP), polarising beam splitter (PBS) and micro-fabricated caesium vapour cell (MEMS cell). The distance between the VCSEL and the caesium cell (36 mm) and the opening angle for the reflected light (15 degrees) are indicated. The static magnetic field is offset from the incident light propagation direction by 45 degrees and the magnetic modulation field (not shown) is applied perpendicular to the plane of light propagation.

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 2
figure 2

Digital spin maser signal response following closure of feedback loop at \(t=0\,\hbox {s}\) in a static \(B_0\) field of \(50\,\mu \hbox {T}\).

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.

Figure 3
figure 3

Spectrum of digital spin maser signal around resonance in the presence of a static \(B_0\) field of \(50\,\mu \hbox {T}\), acquired using a Picoscope 5444D oscilloscope (15-bit, 200 MHz bandwidth down-sampled to 200 kHz, \(2^{17}\) samples, 32 averages, Blackman windowed). Peak power 70 dB above a white noise floor can be seen, giving a signal-to-noise-density ratio of \(A/\rho = 3162\,\hbox {Hz}^\frac{1}{2}\).

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.

Figure 4
figure 4

Measured sensor signal amplitude response to 10 nT oscillating applied fields at varying frequencies up to the acquisition frequency Nyquist limit of 10 kHz (20 ks/s). The oscillating field is applied parallel to the static \(B_0\) field (\(50\,\mu \hbox {T}\)).

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 cell18. 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 cell19 or the use of a re-pumping laser to achieve light-narrowing20.

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 processor21. 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 magnetometry17, allowing vector readout of a single-channel geophysical optical magnetometer22.

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 mm18. 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\) magnetometer3. 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 configurations23. 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 length24.

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.

Figure 5
figure 5

Calculated results for the amplitude and phase frequency response of the dual FIR filters, including the effects of fixed-point signal representation. The solid curves show the relative amplitude response of the matched type 1 (red) and type 3 (blue) filters, and the ratio of their amplitudes (black). The dashed lines show the phase shift of the type 1 (red) and type 3 (blue) filters, along with their difference (black). The upper plot shows the amplitude ratio and phase difference in detail. Note that the phase difference is fixed to \(\pi /2\) radian by filter coefficient symmetry.

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.