Thank you for visiting nature.com. You are using a browser version with limited support for CSS. To obtain the best experience, we recommend you use a more up to date browser (or turn off compatibility mode in Internet Explorer). In the meantime, to ensure continued support, we are displaying the site without styles and JavaScript.

# Spin defects in hBN as promising temperature, pressure and magnetic field quantum sensors

## Abstract

Spin defects in solid-state materials are strong candidate systems for quantum information technology and sensing applications. Here we explore in details the recently discovered negatively charged boron vacancies (VB) in hexagonal boron nitride (hBN) and demonstrate their use as atomic scale sensors for temperature, magnetic fields and externally applied pressure. These applications are possible due to the high-spin triplet ground state and bright spin-dependent photoluminescence of the VB. Specifically, we find that the frequency shift in optically detected magnetic resonance measurements is not only sensitive to static magnetic fields, but also to temperature and pressure changes which we relate to crystal lattice parameters. We show that spin-rich hBN films are potentially applicable as intrinsic sensors in heterostructures made of functionalized 2D materials.

## Introduction

Spin defects in three-dimensional (3D) wide band-gap semiconductors have extensively been utilized in both fundamental and practical realizations in quantum science. The most prominent systems are the nitrogen-vacancy (NV) center in diamond1 and various types of spin defects in silicon carbide (SiC) (divacancy and silicon-vacancy)2,3. These systems reveal optically detected magnetic resonance (ODMR), which allows for polarization, manipulation, and optical readout of their spin state and consequent mapping of external stimuli (magnetic/electric field, temperature, pressure, etc.) onto it4,5,6. A variety of reports have demonstrated outstanding nanoscale sensing applications of NV-centers (particularly NV) in physics and biology including detection of individual surface spins7 and nanothermometry in living cells8,9. However, NV-centers in diamond and spin centers in SiC possess intrinsic limitations. The three-dimensional nature of the material makes it challenging to position the spin-defects close as to the sample surface, and thus, to the object/quantity to be sensed. Furthermore, the proximity to the surface deteriorates their spin coherence properties and hinders their sensitivity as nano-sensors10.

A remedy to these limitations may be provided by recently discovered defects in layered materials. One of the most prominent stackable 2D materials is hexagonal boron nitride (hBN) which hosts a large variety of atom-like defects including single-photon emitters11,12,13,14. Spin carrying defects have been theoretically predicted and experimentally confirmed in hBN15,16,17,18,19. Currently, the most understood defect is the negatively-charged boron vacancy center ($${{{{\rm{V}}}}}_{{{{\rm{B}}}}}^{-}$$)20, which can be readily created by neutron irradiation, ion implantation, or femtosecond laser pulses21,22. Due to its spin-optical properties, the $${{{{\rm{V}}}}}_{{{{\rm{B}}}}}^{-}$$ center is proving to be a promising candidate system for quantum information and nanoscale quantum sensing applications and has thus expanded the already large suite of unique features displayed by 2D materials13.

The recently identified $${{{{\rm{V}}}}}_{{{{\rm{B}}}}}^{-}$$ in hBN displays a photoluminescence (PL) emission band around 850 nm and has been found to be an electronic spin-triplet (S = 1) system with a ground state zero-field splitting (ZFS) $${D}_{{gs}}/h\cong 3.5\,{{{\rm{GHz}}}}$$ between its spin sublevels $${m}_{s}=0$$ and $${m}_{s}=\pm 1$$16. Here, we study the effect of external stimuli on the defect’s properties and demonstrate its suitability for sensing temperature, pressure (as lattice compression), and magnetic fields. Notably, our experiments show that the resolution and range of operation of the hBN $${{{{\rm{V}}}}}_{{{{\rm{B}}}}}^{-}$$ center is competitive or exceeding those of similar defect-based sensors23.

## Results

The results presented in this work were obtained on single-crystal hBN. The $${{{{\rm{V}}}}}_{{{{\rm{B}}}}}^{-}$$ centers were generated in the sample via neutron irradiation ($$\approx$$2.3 × 1018 n cm−2), as described elsewhere16,20. More specifically, the absolute number of $${{{{\rm{V}}}}}_{{{{\rm{B}}}}}^{-}$$ defects was determined as 1013 spins by electron paramagnetic resonance in the dark, giving the defect density of $$\approx$$5.4 × 1017 cm−3. Since we used neutron irradiation, it is assumed that the defects are homogeneously distributed in the sample. The hBN single-crystalline sample consists of a stack of a few thousand monolayers. The distance between two identically aligned layers is $$c\cong 6.6\,\mathring{{{\rm{A}}}}$$, while the in-plane distance between two identical atoms is $${{a}}\,{\mathtt{\cong }}\,2.5\,\mathring{{{\rm{A}}}}$$ (Fig. 1a). As shown by temperature-dependent X-ray data24, the hBN lattice undergoes highly anisotropic thermal response with $$c$$ and a changing in opposite directions, i.e., while $$c$$ decreases with cooling, a increases, as schematically shown in Fig. 1b. This crystallographic feature can be used to monitor local temperature variations optically, via ODMR, since the temperature-driven compression/expansion of the lattice parameters a and $$c$$ causes a direct change in the ZFS parameter $${D}_{{gs}}$$ of the triplet ground state25. Figure 1c shows continuous wave (cw) ODMR measurements for three different temperatures, with (dark blue) or without (cyan) an external magnetic field $${{{\boldsymbol{B}}}}$$ applied. At room temperature and in the absence of the external magnetic field, the ODMR spectrum of the $${{{{\rm{V}}}}}_{{{{\rm{B}}}}}^{-}$$ shows two resonances ($${\nu }_{1},{\nu }_{2}$$) centered symmetrically around $${\nu }_{0}$$, which corresponds to the ZFS parameter $${D}_{{gs}}/h={\nu }_{0}=3.48\,{{{\rm{GHz}}}}$$ with the splitting due to the non-zero off-axial ZFS parameter $${E}_{{gs}}/h\cong 50\,{{{\rm{MHz}}}}$$. When applying an external static magnetic field $${{{\boldsymbol{B}}}}$$, $${\nu }_{1}$$ and $${\nu }_{2}$$ split further following:

$${\nu }_{1,2}={D}_{{gs}}/h\pm \left(1/h\right)\sqrt{{E}_{{gs}}^{2}+{\left(g{\mu }_{{{\mathrm{B}}}}B\right)}^{2}}.$$
(1)

Here, h is Planck’s constant, g is the Landé factor and $${\mu }_{{{\mathrm{B}}}}$$ is the Bohr magneton. The separation of the two resonances $${\nu }_{1}$$ and $${\nu }_{2}$$ can clearly be seen in Fig. 1c (dark blue traces). The visible substructure in both ODMR peaks is due to the hyperfine coupling of the electron S = 1 spin system (negatively charged boron vacancy) with three equivalent nearest nitrogen atoms, each possessing nuclear spin $$I=1$$ for the most abundant 14N isotope (99.63%). In total, seven hyperfine peaks can be resolved, whose relative separations are temperature and magnetic field independent. A closer look at Fig. 1c reveals that cooling down the sample results in a shift of the ODMR peaks to higher frequencies. Thus, the dependencies of the ODMR spectrum on temperature and magnetic fields can provide a basis for the use of the $${{{{\rm{V}}}}}_{{{{\rm{B}}}}}^{-}$$ center as a thermometer and magnetometer at the sub-nanoscale.

### Temperature sensing

The observed shift of the resonances to higher frequency values (Fig. 1c) is independent of the applied magnetic field and is solely due to a reduction of the ZFS parameter $${D}_{{gs}}$$. Over the temperature range 295−10 K, $${D}_{{gs}}$$ undergoes a variation $$\triangle {D}_{{gs}}\cong 195\,{{{\rm{MHz}}}}$$. This is a relatively large change compared to analogous spin systems in 3D materials ($$\approx$$30-fold). For instance, the NV center in diamond exhibits a shift $$\triangle {D}_{{gs}}\cong 7\,{{{\rm{MHz}}}}$$25, while the $${D}_{{gs}}$$ of VSi in SiC is almost constant over the same range. Only more complex spin defects such as Frenkel defects (VSi−Sii) in SiC display a comparably strong effect ($$\triangle {D}_{{gs}}\cong 300\,{{{\rm{MHz}}}}$$)5.

To quantify this temperature-induced shift of the ground state triplet energy-levels we combine temperature- and magnetic field-dependent ODMR measurements. Figure 2 summarizes the shift of $${D}_{{gs}}$$ in the ODMR spectrum as a function of temperature both, in the presence (a) and absence (b) of an external magnetic field. In Fig. 2a, an external magnetic field of 8.5 mT is applied. A monotonic, nearly linear increase of the resonance frequencies associated to a change in the ZFS parameter $${D}_{{gs}}$$ can be observed for temperatures down to 50 K. Zero-field ODMR (Fig. 2b) shows the same behavior. From Fig. 2a, b we now extract the ZFS values $${D}_{{gs}}/h$$ and plot them against temperature (Fig. 2c). Both temperature dependencies, represented by dark blue and cyan diamonds, match perfectly and thus confirm that the temperature scaling of $${D}_{{gs}}$$ is indeed independent of the magnetic field.

The temperature dependency can be explained by considering the change in the delocalization of the spin-defect wave function due to temperature-induced structural deformations of the crystal lattice. This is consistent with e.g., the case of the NV center in diamond25,26. The latter shows a linear behavior for the shift of the ZFS associated to the relative change of the lattice constant $$\eta$$ is observed26: $$\triangle {D}_{{gs}}(\eta )/h=\theta \eta (T)$$, where $$\theta$$ is the proportionality factor, explicitly written as $${{{{\mathrm{d}}}}D}/{{{\mathrm{d}}}}\eta$$ and $$\eta (T)$$ is the relative change of the lattice parameter. Applying the same concept to hBN with its two lattice parameters $${{a}}$$ and $$c$$ results in the equation:

$${{D}_{{gs}}\left(T\right)=D}_{{gs}}\left(295\,{{{\mathrm{K}}}}\right)+{\theta }_{{a}}{\eta }_{{a}}\left(T\right)h+{\theta }_{c}{\eta }_{c}(T)h$$
(2)

Here, $${D}_{{gs}}/h$$ is the experimentally measured ZFS frequency. Dgs(295 K)/h = 3.48 GHz is the ZFS at T = 295 K that we choose as reference, and $${\eta }_{{a}}(T)$$, $${\eta }_{c}\left(T\right)$$ are relative changes of $${{a}}$$ and $$c$$, respectively (see also Eqs. (6) and (7) below). The temperature-dependent lattice parameters $${a}(T)$$ and $$c(T)$$ for hBN were determined in ref. 24 and are plotted in Fig. 2c in addition to the ODMR data. The proportionality factors $${\theta }_{{a}}$$ and $${\theta }_{c}$$ are the significant parameters that connect lattice deformation and ZFS and will be derived from the experimental data in the following. To do so, Eq. (2) is fitted to the experimentally measured ZFS $${D}_{{gs}}$$, as shown in Fig. 2c. The fit perfectly reproduces the experimental data, which highlights the remarkable linear response of the resonance frequency to changes of the lattice constants in this case due to temperature. More specifically, the maximum error between the fit and the measured data is <5 MHz, which is within the measured data scatter. Figure 2c (bottom panel) shows the difference between the fit and the measured data.

Figure 3 shows the relationship between temperature-dependent lattice parameters and ZFS by combining the three separate functions ($${a}(T)$$, $$c(T)$$ and $${D}_{{gs}}(T)$$) of Fig. 2c in one plot (Fig. 3a). By inserting the crystallographic data for the hBN lattice parameters24 (Fig. 3b) into Eq. (2), we obtain partial shifts of the ZFS $$\triangle {D}_{{gs},a}$$ and $$\triangle {D}_{{gs},c}$$ with respective slopes $${\theta }_{{a}}$$and $${\theta }_{c}$$, as shown in Fig. 3c, d. For a more in-depth graphical analysis of the complex relationships, please refer to Supplementary Fig. 1.

We extract the values for $${\theta }_{{{a}}}$$ of $$(-84\pm 15)$$ and $$(-78.2\pm 8.8)\,{{{\rm{GH}}}}z$$ or $${\theta }_{c}$$ of $$(-24.32\pm 0.59)$$ and $$(-24.6\pm 1.0)\,{{{\rm{GH}}}}z$$ at B = 0 and 8.5 mT, respectively. The out-of-plane $${\theta }_{c}$$ can be determined more precisely, since the relative change of lattice parameter $$c$$ is one order of magnitude larger. The values coincide within the experimental error and can be combined as:

$${\theta }_{{{a}}}=(-81+12)\,{{{\rm{GH}}}}z$$
(3)
$${\theta }_{c}=\left(-24.5{{{\rm{\pm }}}}0.8\right)\,{{{\rm{GH}}}}z$$
(4)

Remarkably, the ratio $${\theta }_{{{a}}}/{\theta }_{c}\approx$$ 3.3, which means the influence of the lattice distortion on the ZFS in-plane is at least three times stronger than the influence of the interplanar distance on the same, indicating a localization of the $${{{{\rm{V}}}}}_{{{{\rm{B}}}}}^{-}$$ spin density in the plane as predicted by the theory17.

Finally, we propose a polynomial, which allows a direct determination of $${D}_{{gs}}$$ from the sample temperature $$T$$:

$${D}_{{gs}}\left(T\right)=h\mathop{\sum}\limits_{k}{A}_{k}{T}^{k}(k=0,1,2,3)$$
(5)

where T is the temperature, h is Planck’s constant, $$k$$ is an integer, and the polynomial coefficients $${A}_{k}$$ are summarized in Table 1 for different temperature ranges. To obtain the coefficients $${A}_{k}$$, the essential step is to determine the relative changes of the lattice parameters from the crystallographic data24 by using the Eqs. (6) and (7):

$${\eta }_{{{a}}}\left(T\right)=\frac{{{a}}\left(T\right){\mathtt{-}}{{a}}\left(295\,{{{\mathrm{K}}}}\right)}{{{a}}\left(295\,{{{\mathrm{K}}}}\right)}$$
(6)
$${\eta }_{c}\left(T\right)=\frac{c\left(T\right)-c\left(295\,{{{\mathrm{K}}}}\right)}{c\left(295\,{{{\mathrm{K}}}}\right)}$$
(7)

To estimate the heating effects induced by the laser excitation and resonant microwaves we performed ODMR measurements which are shown in Supplementary Figs. 2 and 3, respectively.

### Pressure sensing

The observation that a temperature-induced change in the lattice parameters directly results in a shift of the ZFS $${D}_{{gs}}$$ leads to the consideration of utilizing the $${{{{\rm{V}}}}}_{{{{\rm{B}}}}}^{-}$$ center also as a sensor, for externally applied in-plane or out-of-plane pressure. For a first-order estimation, we assume an isothermal system without shear strain and derive the perspective sensitivity based on reported elastic moduli for hBN crystals27,28. In cartesian coordinates, the pressure vector $${{{{\rm{\sigma }}}}}_{{xyz}}$$ is given by the elastic moduli tensor $$C$$ multiplied with the relative change of the lattice parameters $${\eta }_{{xyz}}$$:

$$\left(\begin{array}{c}{\sigma }_{x}\\ {\sigma }_{y}\\ {\sigma }_{z}\end{array}\right)=\left(\begin{array}{ccc}{C}_{11} & {C}_{12} & {C}_{13}\\ {C}_{12} & {C}_{11} & {C}_{13}\\ {C}_{13} & {C}_{13} & {C}_{33}\end{array}\right)\left(\begin{array}{c}{\eta }_{x}\\ {\eta }_{y}\\ {\eta }_{z}\end{array}\right)$$
(8)

The reported elastic moduli for hBN are: $${C}_{11}$$ = (811 ± 12) GPa, $${C}_{12}$$ = (169 ± 24) GPa, $${C}_{13}$$ = (0 ± 3) GPa and $${C}_{33}$$ = (27 ± 5) GPa27. The hBN lattice parameters a and $$c$$ are oriented along the y- and z-direction, respectively. This simplifies Eq. (8) by incorporating $${\eta }_{{{a}}{\mathtt{,}}c}$$ and removing $${C}_{13}$$, which is 0:

$$\left(\begin{array}{c}{\sigma }_{x}\\ {\sigma }_{y}\\ {\sigma }_{z}\end{array}\right)=\left(\begin{array}{c}{\eta }_{a}\left({\frac{2}{3}C}_{11}+{\frac{1}{3}C}_{12}\right)\\ {\eta }_{a}\left(\frac{2}{3}{C}_{12}+{\frac{1}{3}C}_{11}\right)\\ {\eta }_{c}{C}_{33}\end{array}\right)$$
(9)

This can be rewritten to obtain $${\eta }_{{{a}}{\mathtt{,}}c}$$ directly:

$${\eta }_{a}={\sigma }_{x}/\left(\frac{2}{3}{C}_{11}+\frac{1}{3}{C}_{12}\right)={\sigma }_{y}/\left(\frac{2}{3}{C}_{12}+\frac{1}{3}{C}_{11}\right)$$
(10)
$${\eta }_{c}={\sigma }_{z}/{C}_{33}$$
(11)

Substituting these relationships into Eq. (2) yields the ZFS as a function of the applied pressure:

$${D}_{{gs}}({\sigma }_{x},{\sigma }_{y},{\sigma }_{z}) ={D}_{{gs},295\,{{{\mathrm{K}}}}}+\triangle {D}_{{gs},x}+\triangle {D}_{{gs},y}+\triangle {D}_{{gs},z}\\ ={D}_{{gs},295\,{{{\mathrm{K}}}}}+\frac{{\theta }_{a}{\sigma }_{x}h}{\tfrac{2}{3}\,{C}_{11}+\tfrac{1}{3}\,{C}_{12}}+\frac{{\theta }_{a}{\sigma }_{y}h}{\tfrac{2}{3}\,{C}_{12}+\tfrac{1}{3}\,{C}_{11}}+\frac{{\theta }_{c}{\sigma }_{z}h}{{C}_{33}}$$
(12)

Based on our estimates for $${\theta }_{{{a}}{\mathtt{,}}c}$$ in Eqs. (3) and (4) and the reported elastic moduli27, we obtain the sensitivity to measure the ZFS shifts for each direction of the applied pressure:

$$\triangle {D}_{{gs},x}={\sigma }_{x}h(-0.136\pm 0.028)\,{{{\mathrm{Hz}}}}/{{{\mathrm{Pa}}}}$$
(13)
$$\triangle {D}_{{gs},y}={\sigma }_{y}h(-0.212\pm 0.052)\,{{{\mathrm{Hz}}}}/{{{\mathrm{Pa}}}}$$
(14)
$$\triangle {D}_{{gs},z}={\sigma }_{z}h(-0.91\pm 0.20)\,{{{\mathrm{Hz}}}}/{{{\mathrm{Pa}}}}$$
(15)

Consequently, we find that the ZFS shift $$\triangle {D}_{{gs},{xyz}}$$ is directly associated with external compression of the hBN lattice and therefore $${{{{\rm{V}}}}}_{{{{\rm{B}}}}}^{-}$$ can be utilized as a pressure sensor. Remarkably, the out-of-plane sensitivity along the $$c$$-axis is much higher due to the small $${C}_{33}$$ coefficient. This makes this type of sensor particularly useful to measure vertical indentation in 2D heterostructures.

To verify the above considerations, we performed pressure-dependent experiments, which are shown in Fig. 4. Pressure is applied in the $$c$$-direction of the hBN lattice by stacking weights on the sample. To improve the sensitivity, we applied sinusoidal modulation to the static B-field instead of amplitude modulation (on/off) of the microwave while sweeping the frequency. The sine-wave modulation of the B-field yields the first derivative of the spectrum (see Supplementary Fig. 4 for the modulation behavior of the spectrum), which increases the signal-to-noise ratio by a factor of four (Fig. 4a, orange). For an accurate determination of the resonant transitions $${\nu }_{1}$$ and $${\nu }_{2}$$ and their shift with the applied pressure, the spectra were linearly fitted near the zero crossings, as shown in zoomed-in Fig. 4b, c. The resulting pressure dependence of the parameter $${D}_{{gs}}/h$$ is shown in Fig. 4d. The experimentally determined slope of (1.16 ± 0.15) $${{{{\mathrm{Hz}}}}}/{{{{\mathrm{Pa}}}}}$$ is close to the theoretically expected slope (0.91 ± 0.20) $${{{{\mathrm{Hz}}}}}/{{{{\mathrm{Pa}}}}}$$ according to Eq. (15).

As we show in Supplementary Fig. 5, the method can be also potentially used to study local and temperature-induced strains in the sample by measuring the off-axis ZFS parameter Egs.

### Magnetic field sensing

As shown in Fig. 2a, the two resonant transitions $${\nu }_{1,2}$$ are equally separated with respect to $${\nu }_{0}$$ over the entire temperature range between 5 and 350 K. It should be pointed out that the magnetic field sensing is based on the g-factor, which is independent of the lattice parameters. In Fig. 5, we demonstrate the principle suitability of a $${{{{\rm{V}}}}}_{{{{\rm{B}}}}}^{-}$$ center in hBN for magnetic field sensing, where we show the resonant microwave transitions $${\nu }_{1}$$ and $${\nu }_{2}$$ over a broad range (0−3500) mT and exemplarily simulated for two distant temperatures, T = 295 K (dark blue) and T = 5 K (light blue). For a magnetic field applied in the $$c$$-direction of the hBN lattice, the behavior can be described with Eq. (1). Due to the non-zero off-axis $${E}_{{gs}}$$, the Zeeman splitting term $$g{\mu }_{{{{\mathrm{B}}}}}B$$ leads to a linear regime only for B > 3 mT, when the applied magnetic field is large enough to separate the two otherwise partially overlapping $${\nu }_{1,2}$$ transitions.

To extend the magnetic field range of our measurements beyond the confocal ODMR setup limit of ≈20 mT, we applied cw electron paramagnetic resonance (cw EPR) and electron spin-echo detected (ESE) EPR. The advantage is that the cw EPR measurements are performed at a microwave frequency of $$9.4\,{{{\rm{GHz}}}}$$ (X-band) (light green diamonds) and the ESE EPR measurements at a microwave frequency of 94 GHz (W-band) (dark green diamonds) which allow extending the magnetic field range to 3500 mT. The multifrequency spin resonance approach enables us to determine the g-factor with extremely high accuracy as $$g=2.0046\pm 0.0021$$.

## Discussion

As we mentioned, one of the crucial parameters for high-sensitivity sensing is the distance between the sensor and the object to be sensed. In this regard, sensors based on the hBN $${{{{\rm{V}}}}}_{{{{\rm{B}}}}}^{-}$$ center are particularly appealing as—based on the presented model of lattice constant variations—the required hardware ideally consists of only three hBN layers, with the intermediate one hosting a $${{{{\rm{V}}}}}_{{{{\rm{B}}}}}^{-}$$ center. This corresponds to a minimum distance of the defect to the surface in the sub-nanometer range of ≈0.33 nm. A further thickness reduction, e.g., to a single monolayer, would indeed eliminate the interlayer contribution $$c(T)$$, but make the sensing effect completely dependent on the interaction of the $${{{{\rm{V}}}}}_{{{{\rm{B}}}}}^{-}$$ wave function with the parameters of the adjacent material. For single layers, $${D}_{{gs},295\,{{{\mathrm{K}}}}}$$ would differ from the theoretical calculation29, and a calibration would be required to determine the set of parameters ($${D}_{{gs},295\,{{{{\mathrm{K}}}}}}$$, $${\theta }_{a}$$, $${\theta }_{c}$$) specific for the adjacent material. To substantiate this hypothesis, however, further measurements and calculations must be carried out.

In the following, we benchmark the properties of the hereby proposed sensor based on $${{{{\rm{V}}}}}_{{{{\rm{B}}}}}^{-}$$ centers in hBN against other defect-based sensors in silicon carbide and diamond. For this purpose, the general sensitivity is derived, which includes the respective coupling coefficient $${\Gamma }_{T,\sigma ,{B}}$$ representing the sensitivity of the ODMR frequency shift due to the corresponding external influence, and the general resolution in relative change of frequency in relation to acquisition time and noise level5. An overview of all calculated coupling coefficients and resolutions is summarized in Table 2.

In order to facilitate comparison with other color centers in 3D materials, we consider first a linear regime (50–350 K) in our analysis. In this range, a proportionality between $$\triangle {D}_{{gs}}$$ and $$T$$ is given by the factor $${\Gamma }_{T}=\tfrac{\triangle {D}_{{gs}}}{\triangle T}=-623\,{{{\mathrm{kHz}}}}/{{{\mathrm{K}}}}$$. This value is almost one order of magnitude (> 8-fold) larger than the corresponding factor for NV centers in diamond ($$-74\,{{{\mathrm{kHz}}}}/{{{\mathrm{K}}}}$$)30. This remarkable difference is in particular due to the larger relative change of the lattice parameters as a function of temperature in hBN, while $$\theta$$ is of the same order of magnitude. For NV centers, a value of $${\theta }_{{{{{\mathrm{NV}}}}}}=-14.41\,{{{\rm{GHz}}}}$$ is reported26, which is comparable to $${\theta }_{c}\approx -24\,{{{\rm{GHz}}}}$$ for $${{{{\rm{V}}}}}_{{{{\rm{B}}}}}^{-}$$ in hBN. Note that $${\theta }_{{a}}$$ can be neglected here, since on the one hand the relative change of the lattice parameter a is negligible and on the other hand it counteracts the effect due to the expansion of the in-plane distance while cooling the sample. Interestingly, for temperatures below ~50 K, the quantity Dgs remains almost constant in NV centers in diamond31, which limits their operating range. Conversely, Dgs/h in $${{{{\rm{V}}}}}_{{{{\rm{B}}}}}^{-}$$ centers maintains a measurable temperature dependence well-below 50 K, down to a few K (see Fig. 2c). We estimate $${{{\mathrm{d}}}}{D}_{{gs}}/{{{{\mathrm{d}}}}T}(T=10\,{{{\mathrm{K}}}})=$$ $$-87\,{{{\mathrm{kHz}}}}/{{{\mathrm{K}}}}$$ for hBN, while $${{{\mathrm{d}}}}{D}_{{gs}}/{{{{\mathrm{d}}}}T}(T=10\,{{{\mathrm{K}}}})$$ in the NV diamond is in the range of $$-7\times {10}^{-2}\,{{{\mathrm{kHz}}}}/{{{\mathrm{K}}}}$$31, i.e., three orders of magnitude smaller. This is particularly intriguing for applications that require monitoring temperature changes, with high spatial resolution, in cryogenic conditions.

The general resolution $${\delta }_{T}^{295{{{\mathrm{K}}}}}$$ obtained at room temperature is approximately $$3.82\, {{{\mathrm{K}}}}/{\sqrt{{{\mathrm{Hz}}}}}$$ which is of the same order of magnitude as defect-based temperature sensors in SiC ($$1\, {{{\mathrm{K}}}}/{\sqrt{{{\mathrm{Hz}}}}}$$) using the same cw ODMR set-up5. It should be noted, however, that at cryogenic temperatures the resolution of the $${{{{\rm{V}}}}}_{{{{\rm{B}}}}}^{-}$$ center is enhanced by a factor of $$\approx$$20 ($${\delta }_{T}^{50\,{{{\mathrm{K}}}}}=0.19\, {{{\mathrm{K}}}}/{\sqrt{{{\mathrm{Hz}}}}}$$), as both the ODMR contrast ΔPL/PL and the PL intensity increase, which significantly reduces the required measurement time. Despite the smaller coupling coefficient, a temperature sensor based on NV’s in diamond is still more sensitive (0.76$$\,\tfrac{{{{{\mathrm{mK}}}}}}{\sqrt{{{{{\mathrm{Hz}}}}}}}\,$$)32, mainly due to stronger PL emission, higher ODMR contrast, and an optimized pulsed measurement protocol that exceeds the sensitivity of standard cw ODMR measurements performed here. Analogously, the magnetic field resolution of the $${{{{\rm{V}}}}}_{{{{\rm{B}}}}}^{-}$$ can be quantified at room temperature as $${\delta }_{B}^{295{{{\mathrm{K}}}}}=85.1\,\upmu {{{\mathrm{T}}}}/{\sqrt{{{\mathrm{Hz}}}}}$$($${\delta }_{B}^{50\,{{{\mathrm{K}}}}}=4.33\,\upmu {{{\mathrm{T}}}}/{\sqrt{{{\mathrm{Hz}}}}}$$ at T = 50 K). This is comparable to VSi in SiC ($$10\,\upmu {{{\mathrm{T}}}}/{\sqrt{{{\mathrm{Hz}}}}}$$)5 but lower than for NVs in diamond ($$3\, {{{\mathrm{nT}}}}/{\sqrt{{{\mathrm{Hz}}}}}$$)33. However, spin defects in 3D materials can lose their superior properties if they are close to the surface of the crystalline host10, which also leads to an inevitable limitation of the minimum achievable sensor-to-object distance. This can significantly hinder the effectiveness of the spin defects-based sensors in 3D materials, highlighting the potential advantages of the $${{{{\rm{V}}}}}_{{{{\rm{B}}}}}^{-}\,$$ center as a nanometer-scale sensor.

Finally, we perform an estimate of the minimum detectable magnetic field, which is based on the shot noise limited sensitivity analysis34. Accordingly:

$$\delta B\cong \frac{1}{g{\mu }_{{{\mathrm{B}}}}R\sqrt{\eta }\sqrt{{Nt}{T}_{2}^{\ast }}},$$
(16)

where $$g$$ is the electronic Landé factor and $${\mu }_{{{\mathrm{B}}}}$$ is the Bohr magneton, so that $$g{\mu }_{{{\mathrm{B}}}}\approx 28\,{{{{\mathrm{MHz}}}}}/{{{{\mathrm{mT}}}}}$$, the ODMR contrast for $${{{{\rm{V}}}}}_{{{{\rm{B}}}}}^{-}$$ center is R = 0.1%, $$\eta$$ is the collection efficiency, $$N$$ is the number of active spins, and t = 1 s is taken as measurement time. Since the $${{{{\rm{V}}}}}_{{{{\rm{B}}}}}^{-}$$ density is known and we excite a voxel of about 10 μm diameter, we can estimate a number $$N\approx 2.6\times {10}^{9}$$ of simultaneously addressed spins, and from the previously measured Rabi oscillations20, we derived the dephasing time T2* = 100 ns. The value for $$\eta$$ is limited by both the efficiency of the detection setup and the optical properties of the spin-hosting sample, and is therefore important. On one hand, the photon extraction efficiency of $${{{{\rm{V}}}}}_{{{{\rm{B}}}}}^{-}$$ defects in hBN is very high (near-unity for hBN monolayers) compared to, e.g., that of spin systems such as color centers in diamonds. This is a consequence of the 2D nature of hBN which renders it less prone to phenomena such as total internal reflection or scattering. On the other hand, we work with crystals (even if the refractive index is lower than diamonds) and in our optical detection system, we use a lens with low numerical aperture NA = 0.3. This leads us to consider a conservatively low—but realistic—value of η ≈ 1%. Note, however, that higher values of η are feasible using objectives with higher NA and/or nanophotonic structures (e.g., solid immersion lenses). With the selected parameters according to Eq. (16) we estimate $$\delta B\cong 20\, {{{\mathrm{nT}}}}/{\sqrt{{{\mathrm{Hz}}}}}$$. Note that we deliberately consider the spectral linewidth to be constrained by the reciprocal T2* time and not by longer spin-echo T2 or dynamically decoupled spin-coherence times.

In this work, we have analyzed the spin properties of $${{{{\rm{V}}}}}_{{{{\rm{B}}}}}^{-}$$ lattice defects in van der Waals hBN crystals in terms of their sensitivity to external perturbations and evaluated their advantages and disadvantages for possible applications as a nanoscale quantum sensor. The advantages include the simple intrinsic nature of the defect basically consisting of a missing boron atom, but also the potentially accessible very small distance between the sensor and the object to be sensed. In particular, we focused on the influence of temperature on the ground-state ZFS, which can be directly measured by cw ODMR and is explained by the temperature-dependent lattice compression/expansion. We showed that externally applied pressure induces lattice deformations and therefore can be mapped onto the defect ODMR spectrum of the $${{{{\rm{V}}}}}_{{{{\rm{B}}}}}^{-}$$. However, temperature and pressure measurements need to be performed isobar or isothermal, respectively. Nevertheless, $${{{{\rm{V}}}}}_{{{{\rm{B}}}}}^{-}$$ can be used for simultaneous magnetic field measurements with high sensitivity, due to the invariability of its g-factor with respect to temperature and pressure. By comparing three spin defect hosting solid systems, diamond, SiC, and hBN, we showed that the $${{{{\rm{V}}}}}_{{{{\rm{B}}}}}^{-}$$ defect has comparable and, in some cases, even superior properties compared to 3D hosts. The coupling coefficient between ZFS and temperature in the temperature range 50–350 K is eight times larger than the corresponding factor for NV centers in diamond. Moreover, hBN is particularly interesting for temperature sensing under cryogenic conditions, i.e., at temperatures down to a few K, since $${{{{\rm{V}}}}}_{{{{\rm{B}}}}}^{-}$$ centers exhibit a measurable temperature dependence of ZFS there, while it is nearly constant for NV centers in diamond. For completeness, a temperature sensor based on NV centers in diamond is still more sensitive, mainly due to stronger PL emission, higher ODMR contrast, and an optimized pulsed measurement protocol that exceeds the sensitivity of cw ODMR measurements. Regarding temperature sensing, we show that the heating effects due to laser excitation and absorbed microwave power are important, but they can be controlled. The resolution of $${{{{\rm{V}}}}}_{{{{\rm{B}}}}}^{-}$$ to external magnetic fields is comparable to that of silicon vacancies in SiC, but lower than that of NV centers in diamond. However, we believe that the favorable optical properties of this 2D system, the recent demonstration of coherent control of $${{{{\rm{V}}}}}_{{{{\rm{B}}}}}^{-}$$ spins in hBN together with the overcoming of inhomogeneous ODMR line broadening by multifrequency spectroscopy20 will stimulate the development of advanced pulse protocols35 and lead to a further increase in the resolution of this sensor. In addition, during the preparation of our manuscript, a relevant work on $${{{{\rm{V}}}}}_{{{{\rm{B}}}}}^{-}$$ in hBN was submitted36 reporting an ODMR contrast of almost 10% and its high-temperature stability up to 600 K. Finally, the unique feature of hBN is its non-disturbing chemical and crystallographic compatibility with many different 2D materials, which gains a new fundamental functionality with the embedded spin centers and allows sensing in heterostructures with high resolution serving as a boundary itself.

## Methods

### Odmr

The low-field ODMR measurements are performed with a lab-built confocal microscope setup. A 532-nm laser (Cobolt Samba 100) is coupled into a 50-µm fiber and focused on the sample with a 10× objective (Olympus LMPLN10XIR), which excites an area on the sample with a diameter of about 10 μm. The photoluminescence is separated from the laser by a dichroic mirror and the remaining laser light is rejected by a 532-nm long-pass filter. The photoluminescence is then coupled into a 600 µm fiber and directed onto an avalanche photodiode (Thorlabs APD440A). A 0.5-mm wide copper strip-line is used to apply microwaves to the hBN sample placed on top. Microwaves from a signal generator (Stanford Research Systems SG384) are amplified by a Mini Circuits ZVE-3W-83+ amplifier. Lock-in detection is used (Signal Recovery 7230) by on−off modulation of the microwaves. For an external magnetic field, a permanent magnet is placed below the sample.

## Data availability

All data needed to evaluate the conclusions in the paper are present in the main paper and the Supplementary Information.

## References

1. Gruber, A. et al. Scanning confocal optical microscopy and magnetic resonance on single defect centers. Science 276, 2012 (1997).

2. Koehl, W. F., Buckley, B. B., Heremans, F. J., Calusine, G. & Awschalom, D. D. Room temperature coherent control of defect spin qubits in silicon carbide. Nature 479, 84–87 (2011).

3. Riedel, D. et al. Resonant addressing and manipulation of silicon vacancy qubits in silicon carbide. Phys. Rev. Lett. 109, 226402 (2012).

4. Doherty, M. W. et al. Electronic properties and metrology applications of the diamond NV-center under pressure. Phys. Rev. Lett. 112, 047601 (2014).

5. Kraus, H. et al. Magnetic field and temperature sensing with atomic-scale spin defects in silicon carbide. Sci. Rep. 4, 5303 (2014).

6. Dolde, F. et al. Electric-field sensing using single diamond spins. Nat. Phys. 7, 459–463 (2011).

7. Grinolds, M. S. et al. Subnanometre resolution in three-dimensional magnetic resonance imaging of individual dark spins. Nat. Nanotechnol. 9, 279–284 (2014).

8. Kucsko, G. et al. Nanometre-scale thermometry in a living cell. Nature 500, 54–58 (2013).

9. Schirhagl, R., Chang, K., Loretz, M. & Degen, C. L. Nitrogen-vacancy centers in diamond: nanoscale sensors for physics and biology. Annu. Rev. Phys. Chem. 65, 83–105 (2014).

10. Zhang, W. et al. Depth-dependent decoherence caused by surface and external spins for NV centers in diamond. Phys. Rev. B 96, 235443 (2017).

11. Shotan, Z., Jayakumar, H., Considine, C. R., Mackoit, M. & Fedder, H. et al. Photoinduced modification of single-photon emitters in hexagonal boron nitride. ACS Photonics 3, 2490–2496 (2016).

12. Jungwirth, N. R. et al. Temperature dependence of wavelength selectable zero-phonon emission from single defects in hexagonal boron nitride. Nano Lett. 16, 6052–6057 (2016).

13. Caldwell, J. D. et al. Photonics with hexagonal boron nitride. Nat. Rev. Mater. 4, 552–567 (2019).

14. Hoese, M. et al. Mechanical decoupling of quantum emitters in hexagonal boron nitride from low-energy phonon modes. Sci. Adv. 6, eaba6038 (2020).

15. Abdi, M., Chou, J.-P., Gali, A. & Plenio, M. B. Color centers in hexagonal boron nitride monolayers: a group theory and ab initio analysis. ACS Photonics 55, 1967–1976 (2018).

16. Gottscholl, A. et al. Initialization and read-out of intrinsic spin defects in a van der Waals crystal at room temperature. Nat. Mater. 19, 540–545 (2020).

17. Ivády, V. et al. Ab initio theory negatively charged boron vacancy qubit hexagonal boron nitride.npj Comp. Mater. 6, 1–6 (2020).

18. Mendelson, N. et al. Identifying carbon as the source of visible single-photon emission from hexagonal boron nitride. Nat. Mater. 20, 321–328 (2021).

19. Chejanovsky, N. et al. Single spin resonance in a van der Waals embedded paramagnetic defect. Nat. Mater. https://doi.org/10.1038/s41563-021-00979-4 (2021).

20. Gottscholl, A. et al. Room temperature coherent control of spin defects in hexagonal boron nitride. Sci. Adv. 7, eabf3630 (2021).

21. Kianinia, M., White, S., Froch, J. E., Bradac, C. & Aharonovich, I. Generation of spin defects in hexagonal boron nitride. ACS Photonics 7, 2147–2152 (2020).

22. Gao, X. et al. Femtosecond laser writing of spin defects in hexagonal boron nitride. ACS Photonics 8, 994–1000 (2021).

23. Bradac, C., Lim, S. F., Chang, H. C. & Aharonovich, I. Optical nanoscale thermometry: from fundamental mechanisms to emerging practical applications. Adv. Opt. Mater. 8, 2000183 (2020).

24. Paszkowicz, W., Pelka, J. B., Knapp, M., Szyszko, T. & Podsiadlo, S. Lattice parameters and anisotropic thermal expansion of hexagonal boron nitride in the 10–297.5 K temperature range. Appl. Phys. A 75, 431–435 (2002).

25. Chen, X. D. et al. Temperature dependent energy level shifts of nitrogen-vacancy centers in diamond. APL 99, 161903 (2011).

26. Ivády, V., Simon, T., Maze, J. R., Abrikosov, I. A. & Gali, A. Pressure and temperature dependence of the zero-field splitting in the ground state of NV centers in diamond: a first-principles study. Phys. Rev. B 90, 235205 (2014).

27. Bosak, A. et al. Elasticity of hexagonal boron nitride: inelastic X-ray scattering measurements. Phys. Rev. B 73, 041402 (2006).

28. Lynch, R. W. & Drickamer, H. G. Effect of high pressure on the lattice parameters of diamond, graphite, and hexagonal boron nitride. J. Chem. Phys. 44, 181–184 (1966).

29. Ivády, V. et al. Ab initio theory of the negatively charged boron vacancy qubit in hexagonal boron nitride. npj Comput. Mater. 6, 1–6 (2020).

30. Acosta, V. M. et al. Temperature dependence of the nitrogen-vacancy magnetic resonance in diamond. Phys. Rev. Lett. 104, 070801 (2010).

31. Doherty, M. W. et al. Temperature shifts of the resonances of the NV center in diamond. Phys. Rev. B 90, 041201 (2014).

32. Hayashi, K. et al. Optimization of temperature sensitivity using the optically detected magnetic-resonance spectrum of a nitrogen-vacancy center ensemble. Phys. Rev. Appl. 10, 034009 (2018).

33. Zhang, N. et al. Microwave field uniformity impact on DC magnetic sensing with NV ensembles in diamond. IEEE Sens. J. 19, 451–456 (2018).

34. Acosta, V. M. et al. Diamonds with a high density of nitrogen-vacancy centers for magnetometry applications. Phys. Rev. B 80, 115202 (2009).

35. Soltamov, V. A. et al. Excitation and coherent control of spin qudit modes in silicon carbide at room temperature. Nat. Commun. 10, 1–8 (2019).

36. Liu, W., et al. Temperature-dependent energy-level shifts of spin defects in hexagonal boron nitride. ACS Photonics (2021). https://doi.org/10.1021/acsphotonics.1c00320.

## Acknowledgements

A. G, A. S., and V. D. acknowledge financial support from the DFG through the Würzburg-Dresden Cluster of Excellence on Complexity and Topology in Quantum Matter—ct.qmat (EXC 2147, project-id 39085490) and C. K through the DY18/13-1. I. A. and V. S. are grateful for the Alexander von Humboldt (AvH) Foundation for their generous support. I. A. acknowledges the Australian Research Council (CE200100010) and the Asian Office of Aerospace Research and Development (FA2386-20-1-4014) for the financial support. This publication was supported by the Open Access Publication Fund of the University of Wuerzburg.

## Funding

Open Access funding enabled and organized by Projekt DEAL.

## Author information

Authors

### Contributions

The ODMR measurements were performed by A. G., M. D., C. K., and A. S.. D. K. performed pressure sensing experiments. V. S. performed high-field ESE EPR measurements and together with C.B. analyzed magnetic field resolution. I. A., M. K. C. B. assisted with sample fabrication. V. D. and I. A. conceived and supervised the project. All the authors contributed to analysis of the data, discussions and to the writing of the paper.

### Corresponding author

Correspondence to Vladimir Dyakonov.

## Ethics declarations

### Competing interests

The authors declare no competing interests.

Peer review information Nature Communications thanks the anonymous reviewers for their contribution to the peer review of this work.

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

## Rights and permissions

Reprints and Permissions

Gottscholl, A., Diez, M., Soltamov, V. et al. Spin defects in hBN as promising temperature, pressure and magnetic field quantum sensors. Nat Commun 12, 4480 (2021). https://doi.org/10.1038/s41467-021-24725-1

• Accepted:

• Published:

• DOI: https://doi.org/10.1038/s41467-021-24725-1

• ### Quantum sensors go flat

• J.-P. Tetienne

Nature Physics (2021)