arXiv:2610.35016quant-phOct 2026

Manuscript Offprint

arXiv:2610.35016

From Single Spins to Ensembles: A Calibrated Symbolic Regression Pipeline for NV Spectroscopy

Evan Zhang, Zhenghang Zhi, Zewei Wang, Zeheng Wang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Evan Zhang 1,2^{1,2}, Zhenghang Zhi 3^{3}, Zewei Wang 3^{3}, and Zeheng Wang 4,†^{4,\dagger}

1^{1} School of Physics, UNSW, Sydney, Australia; 2^{2} School of Electrical Engineering and Telecommunications, UNSW; 3^{3} Cryo-X Tech Co., Shanghai, China; 4^{4} Hangzhou Institute of Technology, Xidian University, Hangzhou, China

China

Email: zenwang@outlook.com

Characterizing nitrogen-vacancy (NV) ensembles requires connecting their collective spectra to individual centers that experience different local environments. We develop a symbolic-regression pipeline that carries single-center spin structure into a calibrated ensemble model by generating individual spectral responses and combining them with explicit weights. A constrained search selects Hermitian operator terms from single-center optically detected magnetic resonance spectra, fits their coefficients, and retains the selected expressions as source models for the ensemble. Ensemble calibration then accounts for resonance shifts, local disorder, orientation, and optical response while keeping the individual spectral contributions accessible. On public single-center and ensemble data, the zero-field ensemble held-frequency root-mean-square error decreases from 0.008835 to 0.003872 in normalized photoluminescence, a 56.2% improvement over matched uncorrected composition. In controlled QuTiP ensembles of 128 sites spanning four NV orientations, models calibrated at 0 and 3 mT predict an independently held-out 5.17 mT spectrum with errors of 0.000207–0.000228 across three random seeds, comparable to the 0.000200 noise standard deviation. Resolving the simulated response into its individual-center contributions shows how local spectral diversity combines into the ensemble line shape. By retaining the source Hamiltonians while calibrating sample-dependent spectral differences, the pipeline connects local spin physics to collective optical readout and makes the contributions to an ensemble line shape available for physical interpretation.

I. INTRODUCTION

Nitrogen-vacancy (NV) centers in diamond offer optically accessible spins for magnetic sensing and imaging [1–3]. High-resolution single-center spectroscopy resolves the local spin structure underlying this response, whereas ensemble spectroscopy combines centers with different orientations and environments [4–7]. Their overlapping resonances make the relation between local spin structure and the measured ensemble line shape central to quantitative interpretation. Quantum diamond microscopy and vector magnetometry therefore benefit from spectral models that retain this relation while accounting for ensemble broadening and optical response [8,9]. The information available at the local level is illustrated by single-NV nuclear magnetic resonance with chemical resolution, demonstrated by Aslam et al. [10]. The question addressed here is how to reuse the spin structure identified in single-center spectra while accounting for the local environments and optical response of a target ensemble.

The connection between an individual center and an ensemble begins with the composition of their measured responses. For independent centers with additive optical readout, the ensemble spectrum is a weighted sum of local spectra. Each local spectrum can depend nonlinearly on Hamiltonian parameters, even though the optical signals add linearly. The environmental sensitivity underlying this local description also appears in single-NV relaxometry, where changes in the surrounding molecules alter the measured spin response [11]. In the static ODMR setting considered here, a distribution of local parameters represents spectral heterogeneity, and orientation-dependent projections connect each center to the applied field. Retaining these contributions separately makes it possible to examine how a change in a local resonance, a population weight, or a disorder distribution propagates into the collective spectrum. Established NV theory supplies a physically meaningful operator vocabulary for this construction. Ground-state fine structure, nitrogen hyperfine coupling, nearby nuclear spins, and magnetic-field terms can be represented using a small set of spin operators [12–14]. High-resolution zero-field spectroscopy reveals additional local spectral structure [15], while transverse splitting, temperature-sensitive resonance positions, acquisition-dependent linewidths, and orientation-dependent polarization motivate explicit calibration and readout choices [16–20]. Ensemble dephasing studies further establish the importance of site-to-site environments [21,22]. These physical ingredients connect a compact local Hamiltonian to the spectral differences that an ensemble model must represent. We use centers A and B as two measured local prototypes, then calibrate their composition to a target

Page · 1

(a) Four NV orientations

Figure

(b) Single centre and ensemble

Figure

NVA: single WGINV A, type Ila

Ensemble: separate type Ib specimen

WGINV B in Guo et al. is another single centre

(c) Optical readout and spin splitting

3^{3}E (excited triplet)

Figure

Ground-state spin structure

E⊥E_{\perp}: effective transverse strain/electric splitting

14^{14}N hyperfine: ≈\approx2.16 MHz spacing

Energy separations not to scale

(d) From local physics to ensemble readout

1 Choose sites and orientations

nkn_{k}, local fields, strain and hyperfine parameters

2 Transform to each NV frame

BNV=RkTBlabB_{NV} = R_{k}^{T} B_{lab}

3 Build and diagonalize HjH_{j}

Hj=HZFS+HZ+Hstrain/E+Hhf+HQH_{j} = H_{ZFS} + H_{Z} + H_{strain/E} + H_{hf} + H_{Q}

transition frequencies and MW coupling strengths

4 Calculate local fluorescence

optical pumping + MW drive + relaxation + linewidth

use the actual CW or pulsed protocol

5 Weight and average responses

Fens(f)=∑jwjFj(f),∑jwj=1F_{ens}(f) = \sum_{j} w_{j} F_{j}(f), \quad \sum_{j} w_{j} = 1

Independent-centre approximation; calibrate weights and parameter distributions

FIG. 1. Single-center structure and ensemble spectral composition. (a) Scripted rendering of an ideal diamond lattice with substitutional nitrogen (N), its nearest-neighbor vacancy (V), carbon atoms (C), and the NV symmetry axis along a ⟨111⟩\langle111\rangle direction. The open cage denotes the vacant lattice site. (b) A schematic diamond fragment containing NV centers along the four tetrahedral orientations illustrates how local environments and orientation enter the ensemble description. (c) Ground-state spin-level diagram showing the zero-field splitting D and the local Zeeman, transverse-splitting, and hyperfine contributions. (d) Selected local operators, site parameters, and orientation transforms determine individual spectral responses, whose weighted sum gives the ensemble readout. Lattice fragments and level separations are schematic. The geometry was constructed and rendered in Blender with an AI-assisted script.

ensemble acquired from a different specimen. This separation lets the source Hamiltonians serve as reusable local models, while target-specific calibration accounts for how their spectral contributions appear in the measured ensemble.

Hamiltonian learning provides several routes to extracting physical models from observations, including Bayesian parameter estimation, quantum-assisted inference, local-measurement reconstruction, and learned descriptions tested on NV platforms [23–27]. These approaches connect measured responses to model parameters or structures through specified inference procedures. Machine-learning models trained on continuous quantum measurements provide a further applied route [28]. Symbolic regression and sparse identification emphasize explicit mathematical expressions and controlled model complexity [29,30]. We apply that emphasis to the composition problem: select and fit a local Hamiltonian within a defined Hermitian operator library, retain the selected expression, and use it to generate the individual responses that build an ensemble spectrum. This formulation gives operator selection, parameter calibration, and spectral composition distinct roles within one characterization pipeline.

We implement this pipeline using public raw data for laser-written waveguide-integrated NV spins [31,32] and a separately implemented QuTiP simulation [33,34]. The workflow links operator selection, coefficient fitting, source-model freezing, ensemble calibration, and weighted spectral composition. Experimental evaluation withholds frequencies within the measured scans to test the calibrated line shapes. The numerical evaluation then withholds an entire magnetic-field condition and resolves the simulated ensemble into its individual-center spectra. Together, these tests connect the accuracy of the collective response to the explicit local contributions from which it is constructed.

Page · 2

A. NV centers and optical spin readout

Isolated centers were characterized in low-nitrogen

a Constrained symbolic regression and calibrated composition

Figure

The AI selects expressions from a specified Hermitian grammar; calibration is part of transfer.

b What is inherited, and what is calibrated?

Inherited: operator supports and nuclear coefficients

Target: shifts, disorder and mixture linewidth and optical readout

Composition: four orientations weighted independent-site response

c Evidence coverage and validation boundary

Figure

FIG. 2. Calibrated pathway from single NV centers to ensemble spectra. (a) Constrained symbolic regression selects operator expressions and fits continuous coefficients; the resulting local expressions are frozen before calibrated composition. (b) Source-specific supports and nuclear coefficients are inherited, while target shifts, disorder, mixture, and readout are calibrated. This separation retains the single-center model structure across different specimens. (c) Spectral observations in each experimental task and all three simulated conditions per seed. Center A contains 27 CW and 60 pulsed points; center B contains 31 CW and 179 pulsed points. Experimental prediction uses four cyclic held-frequency folds within the scans. Simulation training uses 0 and 3 mT, with the entire 5.17 mT condition withheld for each of three independently seeded 128-site populations. The source centers and experimental ensemble come from separate specimens; counts denote spectral observations.

A negatively charged nitrogen-vacancy center (NV −^{-}) consists of a substitutional nitrogen atom adjacent to a carbon vacancy [Fig. 1(a)]. The electronic ground state is a spin triplet ( S=1S = 1) with projections ms=0,±1m_s = 0, \pm 1. Its zero-field splitting is approximately 2.87 GHz, with additional structure produced by magnetic fields, transverse electric or strain effects, and hyperfine interactions. These contributions define the effective ground-state spin Hamiltonian used to calculate each local spectrum [Fig. 1(c)].

B. Experimental data and sample distinction

We analyze spectra reported by Guo et al. for laser-written waveguide-integrated NV centers [31,32]. type-IIa diamond (sample NVA), while ensemble spectra were acquired in nitrogen-rich type-Ib diamond (sample NVB). The distinct specimens provide the source and target of the transfer: the single-center data determine local operator representations, and the ensemble data determine the corrections needed for their collective response. Each sample is distinguished by its confocal photoluminescence (PL) maps in both the x-y and x-z planes (Fig. 4). The waveguide-integrated nitrogen-vacancy centers (WGINVs) were fabricated by femtosecond laser writing followed by thermal annealing. Parallel modification lines separated by 13 μ\mum define the optical waveguides.

Page · 3 a Real zero-field ensemble; all 38 held predictions

Figure

c Matched four-fold comparison

b Prediction error across the same scan

Figure

Figure

d Equivalent-fit expression choices

e Real finite-field transfer boundary; all 260 points

Figure

Figure

f Calibration dependence at finite field

Figure

FIG. 3. Experimental ensemble calibration at zero and finite field. (a,b) All 38 zero-field observations, four-fold held predictions from corrected and uncorrected composition, and their residuals. Both procedures refit linewidth and identical optical readout terms on the target training points. (c) Matched fold and pooled RMSEs; correction reduces the pooled error from 0.008835 to 0.003872, or 56.2%. (d) Full-data target supports for three search seeds, showing the selected parents and four available corrections. (e,f) All 260 finite-field observations, held predictions, and matched fold errors with the field magnitude fixed at the reported 5.17 mT or fitted as an effective parameter. Pooled errors are 0.008199 and 0.003209, respectively; the full-data effective field is 3.76 mT. Experimental folds partition frequencies within each scan.

In low-nitrogen type-IIa diamond, additional low-energy static exposures create vacancies near the waveguide center, and annealing yields isolated single NVs WGINV A and WGINV B at different longitudinal positions along the waveguide. Conversely, in nitrogen-rich type-Ib diamond, vacancies generated within the laser-modified sidewalls diffuse during annealing and are captured by substitutional nitrogen, producing ensemble WGINVs.

Optically detected magnetic resonance (ODMR) connects spin-dependent fluorescence with transitions in the electronic ground state. Green optical excitation preferentially polarizes the NV −^{-} spin toward ms=0m_{s} = 0; spin-dependent intersystem crossing produces lower fluorescence for populations in the ms=±1m_{s} = \pm 1 manifolds. A microwave field near a transition frequency changes those populations and yields an ODMR feature.

Continuous-wave (CW) ODMR applies optical and microwave excitation concurrently, whereas pulsed ODMR separates preparation, manipulation, and readout. The two protocols probe the same local ground-state structure under different drive and

Page · 4

Single NV centres · low-nitrogen type-IIa diamond

Figure

NV ensemble · nitrogen-rich type-lb diamond

Figure

Schematic—not to scale

FIG. 4. Fabrication of single and ensemble waveguide-integrated nitrogen-vacancy centres in diamond. Two parallel laser-written modification tracks separated by 13 μ\mum define the waveguide region. Top row: In low-nitrogen type-IIa diamond, additional localized laser exposure creates vacancies near the waveguide centre; Different thermal annealing exposure varied the quantity of isolated NV centres formed. Bottom row: In high-nitrogen type-lb diamond, vacancies generated by laser exposure diffuse during annealing and are captured by substitutional nitrogen, producing an NV ensemble within the waveguide core. Orange markers represent nitrogen, open circles denote vacancies, and magenta markers indicate formed NV centres. The inset illustrates a substitutional nitrogen atom adjacent to a vacant lattice site. AI-assisted cartoon summarizes the fabrication description of Y. Guo et al., APL Photonics 9, 076103 (2024). Geometry and marker densities are not to scale.

readout conditions. These conditions can change the linewidth, contrast, and background of the observed spectrum. Accordingly, CW and pulsed spectra of a given center share a fitted spin Hamiltonian, while their phenomenological linewidths and optical readout coefficients are fitted separately.

At approximately zero applied field, center A displayed a CW splitting of 2.26 MHz and center B a splitting of 3.87 MHz. Pulsed measurements resolved four prominent features for A and eight for B; measurements near 4.6 mT resolved additional hyperfine structure. The two centers therefore provide distinct local spectra with which to test the constrained operator library.

We fit separate effective Hamiltonians to centers A and B. Within each center, the spin coefficients are shared across the CW and pulsed acquisitions, with the local environment treated as unchanged between measurements. Scan-dependent linewidth, contrast, offset, and background slope describe the corresponding measurement responses. Joint fitting therefore connects the resolved features in both acquisitions to one local operator expression.

The source fits supply two compact, inspectable spin representations. Their selected operator supports and nuclear-spin coefficients remain fixed during ensemble composition. Target shifts, splitting disorder, orientation contributions, and optical response then determine how these local prototypes contribute to the measured ensemble spectrum. Figure 1(b) illustrates the relation between local environments, individual responses, and collective readout.

References (39)