Introduction

Optically addressable spin defects in solids1 are outstanding platforms for quantum sensing2,3 and other quantum information applications4,5. A prominent example of spin defects in three-dimensional (3D) crystals is the diamond nitrogen-vacancy (NV) center6. These diamond NV centers enable nanoscale measurements of magnetic field, temperature and other external stimuli, thus opening up a broad range of applications in condensed matter physics, biology, and material science7,8,9,10,11. However, the fabrication of diamond-based devices remains challenging and costly, and the properties of NV centers degrade when near diamond surfaces. Recently, the discovery of optically-active spin defects in hexagonal boron nitride (hBN)12,13,14, a two-dimensional (2D) van der Waals (vdW) material, offers new opportunities in the field of quantum sensing15,16,17,18,19,20. The 2D nature of hBN allows the presence of stable spin defects in atomically-thin flakes21, enabling them to be in close proximity to the target sample, thereby enhancing the signal. Most studies on hBN spin defects have focused on ensembles of negatively charged boron vacancies (\({{{{\rm{V}}}}}_{B}^{-}\))22,23,24,25,26,27,28. The \({{{{\rm{V}}}}}_{B}^{-}\) ensembles have been used to image 2D magnets with wide-field microscopy16,17 but are limited by the optical diffraction limit. Furthermore, both diamond NV centers and hBN \({{{{\rm{V}}}}}_{B}^{-}\) defects are spin S = 1 defects with intrinsic spin axes, which makes them insensitive to off-axis magnetic fields29. Electron spin qubits in quantum dots, which are zero-dimensional (0D) materials, have been used for quantum information processing at cryogenic temperatures30. However, their spin lifetime is very short at room temperature, which limits their applications in quantum sensing.

One-dimensional (1D) vdW nanotubes with optically-active spin defects will provide unique opportunities for quantum sensing, particularly when configured into sharp tips for scanning probe magnetometry (Fig. 1a). Because vdW nanotubes are free of dangling bonds on their side walls, they can remain robust even at extremely small diameters. This feature has led to the use of carbon nanotube tips in atomic force microscopy (AFM) for high-resolution imaging of complex surface topographies31. In addition, spin defects in a nanotube can be coupled to the nanotube’s mechanical vibration for quantum information transduction32,33,34. Spin qubits in carbon nanotubes have been observed by electronic transport35 and conventional electron paramagnetic resonance36 at low temperatures. However, optically detected magnetic resonance (ODMR) of localized spin defects in nanotubes, crucial for quantum sensing, remains elusive.

Fig. 1: Spin defect in a nanotube affixed to an atomic force microscope (AFM) cantilever.
figure 1

a Conceptual schematic of scanning-probe magnetometry with an optically-active spin defect in a nanotube attached to an AFM cantilever. The spin defect is excited by a laser beam and driven by a microwave (MW). The resulting photoluminescence (PL) is collected by a confocal system. As the sample on the MW waveguide is scanned, optically detected magnetic resonance (ODMR) measurements can be conducted to create a 2D map of the stray magnetic field generated by the sample. An external magnetic field Bext is applied using a permanent magnet. b A scanning electron microscope (SEM) image of a single boron nitride nanotube (BNNT) attached to the tip of an AFM cantilever. Scale bar: 2 μm. Inset: An illustration of a spin defect at the end of a BNNT. c A confocal microscopy image of a BNNT mounted on a cantilever. The bright spot at the end of the nanotube signifying an optically-active spin defect. Scale bar: 2 μm. a.u.: arbitrary unit. d A PL spectrum of the spin defect shown in subfigure (c). A 532 nm laser is used to excite the defect. e An example ODMR spectrum taken with the spin defect on the cantilever. An external magnetic field of 26 mT is applied in the measurement. The MW waveguide is placed approximately 100 μm away from the BNNT probe.

In this article, we report the observation of single optically-active spin defects in boron nitride nanotubes (BNNTs) at room temperature. BNNTs are structurally similar to carbon nanotubes but have a large band-gap (~6 eV)37,38, which enables them to host quantum emitters39,40. Our ODMR measurements reveal negligible zero-field splitting (ZFS) in the ground state of these defects, suggesting the lack of spin quantization axis in the absence of an external magnetic field. Rabi oscillation measurements further confirm that these BNNT spin defects have a spin S = 1/2 ground state. Remarkably, we find that the ODMR resonant frequency and contrast are independent of the magnetic field orientation, offering nearly constant omnidirectional sensitivity for magnetic field detection. To show the capability of BNNT spin defects in omnidirectional magnetic field sensing, we perform measurements of anisotropic magnetization of a representative 2D magnet. Moreover, we develop an efficient technique to deterministically transfer a single BNNT, which contains spin defects, onto the tip of an AFM cantilever. Utilizing a BNNT-attached cantilever as a probe for scanning-probe ODMR measurements, we measure the stray magnetic field distribution near nickel patterns. These findings highlight the great potential of BNNT spin defects for high resolution sensing applications.

Results

Observation of spin defects in BNNTs

A conceptual schematic of scanning probe magnetometry with a spin defect in a nanotube is shown in Fig. 1a. A BNNT, containing a spin defect at its end, is attached to the tip of an AFM cantilever. The BNNT spin defect is excited using a 532-nm laser, and its spin-dependent photoluminescence (PL) is monitored as the underlying sample is scanned. A gold microstripe antenna underneath the sample delivers a microwave (MW) to drive electron spin transitions and enable the acquisition of spectra. A nearby permanent magnet provides an external magnetic field, Bext, both to separate the spin sublevels of the BNNT spin defects and to magnetize the sample.

In our experiments, we observe that BNNTs, with an average diameter of 50 nm (Supplementary Fig. S1)40,41, host stable optically addressable spin defects. To construct a BNNT scanning probe, we first place BNNTs on a flat cantilever (Supplementary Fig. S2). We then use an AFM cantilever with an extended tip to pick up a nanotube with spin defects (Supplementary Figs. S2, S3). Figure 1b shows a scanning electron microscope (SEM) image of a BNNT attached to an AFM cantilever. The nanotube sticks out by several micrometers, facilitating the collection of photons emitted by the spin defects. A PL map (Fig. 1c), taken by our home-built confocal microscope, shows a bright emitter located at the nanotube’s tip. This emitter produce room temperature PL in the visible spectrum (Fig. 1d). More importantly, this PL is spin-dependent. During the continuous-wave (CW) ODMR measurement, we record PL count rates under a 532-nm laser excitation as a function of the applied MW frequency. By modulating the MW with a 1 kHz square wave, we determine the ODMR contrast (ΔPL/PL) at each MW frequency by gauging the normalized change in PL count rates between the situations of MW being on and off. Figure 1e presents a representative ODMR spectrum in a 26-mT magnetic field. The spin defect shows a resonant peak at 735 MHz with a 26 MHz linewidth. A positive ODMR contrast indicates an increase of PL intensity when the MW is applied at the spin resonance frequency42. We note that both positive and negative ODMR contrast can be observed at different defect spots (Supplementary Fig. S8)42, but the positive contrast is more commonly observed in our BNNT samples.

To gain more insight into the spin properties of BNNT spin defects, we characterize BNNT spin defects placed on a gold stripline MW waveguide at room temperature. Figure 2b shows the PL spectrum of an isolated bright spot in a BNNT under 532-nm laser illumination. The measured second-order correlation, g(2)(τ = 0) < 0.5, suggests that the photons primarily originate from a single defect (Fig. 2c). From the g(2)(τ) measurement, the lifetime of the excited state is estimated to be 1.8 ± 0.3 ns. To pinpoint the ground state spin energy levels, we perform CW ODMR measurements across various out-of-plane magnetic fields ranging from 13 mT to 98 mT. As depicted in Fig. 2d, the spin defect exhibits a single spin resonance peak for each external magnetic field Bext. The ODMR contrast first increases with increasing magnetic fields when the field is relatively weak (Bext < 40 mT), and then stabilizes at stronger fields (Bext > 40 mT). If we consider this as a spin S = 1 defect, its ground state spin Hamiltonian can be written as: \({H}_{S=1}=D{S}_{z}^{2}+g{\mu }_{B}{{{\bf{B}}}}\cdot {{{\bf{S}}}}\), where D is the ZFS parameter, g is the Landé factor, and μB is the Bohr magneton. S and Sz are the spin operators. Linear fitting of the measured ODMR spin resonance frequency ν versus Bext yields a negligible ZFS (D < 10 MHz) and a Landé factor of g = 2.000 ± 0.004 (Fig. 2e. This minimal ZFS points towards this defect possessing a spin S = 1/2 ground state, which is further substantiated by comparing the Rabi frequency of this defect with that of the hBN \({V}_{B}^{-}\) defects (Supplementary Figs. S5, S6)43. Recent studies suggest that the S = 1/2 spin manifold is a metastable state (MS), coupled to a manifold of singlet ground and optically excited states44,45. An energy level diagram is depicted in Fig. 2a. Under the green laser excitation, the electron is pumped into the excited state (ES) and then goes back to the ground state (GS) via either radiative decay with a photon emitted or spin-dependent non-radiative decay through the doublet MS. The spin-dependent non-radiative decay can be induced by a weak interaction with a nearby dark electron spin45. The MS can be describe by a S = 1/2 spin Hamiltonian as

$${H}_{S=1/2}=g{\mu }_{B}{{{\bf{B}}}}\cdot {{{\bf{S}}}},$$
(1)

which will be optimal for omnidirectional magnetic field sensing.

Fig. 2: A single spin defect in BNNT.
figure 2

a A possible energy level diagram depicting the electron spin dynamics under laser and microwave excitation44,45. The spin defect contains a singlet ground state (GS), a singlet optically excited state (ES) and a doublet metastable state (MS). The green arrow is the spin conservative excitation under 532 nm laser pumping. The orange arrow is spontaneous emission from ES to GS. Gray dashed lines are non-radiative decays. An external magnetic field can cause a splitting of γeB in the MS via the Zeeman effect. A microwave (MW) is applied to drive the electron spin in MS. b An optical spectrum of an isolated spin defect in a BNNT. Inset: an confocal PL map of this isolated defect. The scale bar is 500 nm. c Second-order intensity-correlation measurement for the defect at 400 μW laser excitation. The solid line is a theoretical fit. d ODMR spectra taken in different magnetic fields. e The fitted resonance frequency from (d) as a function of the magnetic field Bext. The solid line is a linear fitting of the data, showing a slope of 2.000 ± 0.004.

Orientation-independent ODMR

The negligible ZFS suggests that the observed BNNT spin defects have no intrinsic quantization axis. Consequently, the direction of their spin polarization is solely determined by the orientation of the external magnetic fields. As a result, the energy splitting (Eq. (1)) only depends on the magnitude of a magnetic field, not its orientation. Given an appropriate MW drive (Supplementary Fig. S9), both the ODMR contrast and linewidth should remain unchanged regardless of the magnetic field orientation. This enables omnidirectional magnetic field sensing with nearly uniform sensitivity. This is a distinct advantage over anisotropic spin defects such as diamond NV centers and hBN \({V}_{B}^{-}\) defects. The latter ones have spin S = 1 ground states with large ZFS (usually in the GHz range), which leads to a reduced ODMR contrast when the magnetic field does not align with their intrinsic quantization axis29.

To demonstrate this capability, we perform a series of CW ODMR measurements, maintaining constant MW and laser powers while adjusting the magnetic field’s orientation around two perpendicular axes (Fig. 3a, b). Regardless of the rotation angle, the spin resonance frequency remains constant, with minimal variance in ODMR contrast (Supplementary Fig. S10). The minor contrast reduction seen in Fig. 3b arises from a decrease in the MW magnetic field component perpendicular to the static external magnetic field Bext. To investigate the spin coherence properties of BNNT spin defects, we perform pulsed ODMR measurements to determine their spin relaxation times T1. The pulsed ODMR sequence consists of an 8 μs initial laser pulse for initializing the spin state (Supplementary Fig. S7), a MW pulse to manipulate the spin state, and a final laser pulse to readout the state. Using a resonant MW drive of varying durations, as shown in Fig. 3c, we observe a Rabi oscillation with a characteristic frequency fR. After determining the Rabi frequency, spin relaxation measurements are performed for different magnetic field orientations. A measurement protocol is shown in the top panel in Fig. 3d. The exponential decay time of PL gives the spin relaxation time T1 of around 14 μs, which is nearly independent of the external magnetic field’s orientation. In addition, the spin coherence time is measured to be around 110 ns (Supplementary Fig. S12).

Fig. 3: ODMR measurements at different orientations.
figure 3

a, b Top panels: Illustrations of the magnetic field rotated around two orthogonal axes. Bottom panels: ODMR spectra as functions of the orientation of external magnetic fields. c Coherent control of the spin defect in BNNTs. The pulse sequence is shown in the top diagram. d T1 relaxation measurement. The pulse sequence is shown in the top panel. Inset: T1 relaxation times for different magnetic field orientations.

Sensing anisotropic magnetization

To showcase the potential of omnidirectional magnetic field sensing, we employed BNNT spin defects to analyze the anisotropic magnetization of a representative 2D magnet. Specifically, we use BNNT spin defects to directly measure the stray magnetic field Bs generated by a 2D magnet with varied magnetization directions. Note it would be challenging to measure the stray magnetic field in orthogonal directions with a diamond NV center as it is insensitive to a field perpendicular to the NV axis. We found that only a few percents of bright emitters in commercial BNNTs are spin defects. To improve the probability of getting a spin defect in a BNNT, we treat BNNTs with carbon ion implantation followed by thermal annealing for 2 hours. About 30% of bright emitters in the treated BNNTs show ODMR signals. Thus these BNNT spin defects are expected to be related to carbon atoms13.

We start with an exfoliated Fe3GeTe2 (FGT) flake on a gold MW stripline46,47. After transferring BNNTs with spin defects onto the FGT flake and the gold stripline (Fig. 4a), the assembled device is mounted in a cryostat for temperature-varied ODMR measurements (Supplementary Fig. S13). The local magnetic field, Bloc, is extracted from the ODMR resonance frequency fODMR through the Zeeman effect. Extracting the external field’s contribution, Bloc,Au, as gauged by the ODMR on the gold stripline, gives the stray field from FGT: Bs = Bloc,FGT − Bloc,Au = (fODMR,FGT − fODMR,Au)/gμB. Figure 4b, c shows two ODMR spectra at 300 K and 90 K, in an external magnetic field Bext = 19.4 mT. At 300 K, the ODMR spectra give nearly the same resonance frequencies for both FGT and gold, implying negligible stray magnetic field from FGT. In contrast, at 90 K, below a thick FGT flake’s Curie temperature (Tc ≈ 220K)46,47, an 88.7 MHz ODMR frequency difference is observed. This corresponds to a stray field Bs ≈ 3.2 mT. Figure 4d illustrates that as temperatures drop below about 220 K, the ODMR resonance frequency on FGT rises, while the frequency on gold remains stable, suggesting increased magnetization below the Curie temperature. With an in-plane external magnetic field, the local stray field at the edge of FGT stays nearly unchanged within the measured temperature range. This shows the magnetization of FGT is highly anisotropic.

Fig. 4: Characterization of the stray magnetic field near a 2D magnet.
figure 4

a An optical image of a BNNT cluster with spin defects on a Fe3GeTe2 (FGT) flake. A part of the BNNT cluster locates on the gold stripline for characterizing the background magnetic field. The white and black circles indicate the two spots for ODMR measurements. Scale bar: 10 μm. b, c Two examples of ODMR spectra taken with the BNNT spin defects on the gold (blue) and on the FGT (red) at (b) 300 K and (c) 90 K. The magnetic field is applied out-of-plane for (b) and (c). d The stray magnetic field BS generated by the FGT flake at different temperatures ranging from 90 K to 300 K. The external magnetic field is applied in-plane (red) or out-of-plane (blue). Error bars represent fitting uncertainties.

Scanning probe magnetometry

BNNT spin defects, besides being placed directly on samples to sense stray fields, can also be attached to an AFM cantilever for scanning probe magnetometry, offering spatial resolution surpassing the optical diffraction limit. Notably, BNNTs are more robust than nanofabricated diamond tips with NV centers8,9. Here, we demonstrate scanning probe magnetometry with BNNT spin defects attached on a cantilever to profile the stray field distribution over a nickel pattern. Figure 5a depicts a schematic of the experimental setup. A BNNT with spin defects is attached to an AFM cantilever and sticks out by a few micrometers. The scanning probe is brought close to the surface of a nickel pattern on a MW waveguide, maintaining a sub-micrometer gap. For simplicity, our current setup does not have feedback stabilization found in commercial AFM systems. The nickel pattern on the waveguide is scanned while the position of BNNT probe is fixed. ODMR spectra at each position determine the local magnetic field, with stray fields derived by deducting the minimum magnetic field in the scanned area.

Fig. 5: Scanning probe magnetometry with BNNT spin defects.
figure 5

a A illustration of the setup for the scanning probe ODMR measurement. (b) The optical images of the nickel pattern to be characterized. The scale bars are 15 μm in the top image and 5 μm in the bottom image. c The stray magnetic field distribution measured by the scanning BNNT probe. The pixel size is 500 nm. d Two ODMR spectra measured away from (Spot 1) and on (Spot 2) the nickel patch. e The ODMR spectra as a function of position in a 1D scan along X-axis (as depicted in the bottom panel of (b)). The step size is 40 nm. f The stray magnetic field BS measured based on the fitted resonance frequency from the data in (e).

Figure 5b shows two nickel patterns used in our experiment. For the 5 μm × 5 μm pattern (Pattern 1) in Fig. 5c, our 2D scan reveals a stray field map closely aligned with our simulation (Supplementary Fig. S14). Two examples of ODMR spectra are presented in 5d, showing a clear shift in the spin resonance frequency when the probe is on top of the nickel patch. We further investigate the field distribution along a line across a smaller nickel pattern with a 600 nm width for each patch. The ODMR spectra as a function of the position with a step size of 40 nm is shown in Fig. 5e. A clear shift in the ODMR resonance peak is resolved when the probe goes across the pattern. The stray field distribution obtained from the resonance frequencies matches well with the simulation (Fig. 5f and Supplementary Fig. S14).

In summary, we have observed single optically addressable spin defects in BNNTs with a suggested spin S = 1/2 ground state. Unlike diamond NV centers, these BNNT defects enable magnetic field sensing in any orientation with consistent sensitivity. We use the BNNT spin defects for sensing stray magnetic fields in a wide range of temperatures. The inherent 1D structure of a BNNT with spin defects is cost-effective and optimal for scanning probes compared to nanofabricated diamond tips with NV centers or superconducting quantum interference devices48. Additionally, the absence of ZFS ensures the ODMR resonance frequency remains unaffected by temperature or strain, leading to magnetic field sensing that is resilient against environmental changes. The typical DC magnetic field sensitivity of BNNT spin defects is around 80 μT/\(\sqrt{Hz}\) when it is charaterized on a gold stripline (Supplementary Fig. S11). The sensitivity is affected by the ODMR contrasts and photon count rates which differ from defect to defect. The best sensitivity we obtained was 21 μT/\(\sqrt{{{{\rm{Hz}}}}}\) (Supplementary Table I). For a BNNT attached to a AFM cantilever used in Fig. 5, the sensitivity is estimated to be 245 μT/\(\sqrt{{{{\rm{Hz}}}}}\) which is mainly caused by the relatively low count rate and contrast. This can be further improved by selecting defects with a higher ODMR contrast.

The spatial resolution of scanning probe techniques is primarily determined by the distance between the probe and the sample, which is a few hundred nanometers in this study. By implementing feedback stabilization and reducing this separation, we can significantly improve the resolution to the nanometer scale. Notably, when attaching a BNNT to an AFM cantilever, it remains stable even upon direct contact with the target (Supplementary Fig. S4), thanks to BNNT’s resilience. This contrasts starkly with diamond NV scanning probes. Consequently, a contact mode could be feasible with BNNT spin defects, allowing for direct sample characterization without damage. A BNNT with a spin defect can image both the topological structure31 and magnetic properties of a sample. Due to its small diameter, a BNNT can also be inserted into a living cell49 to perform in situ quantum sensing. These unique features of BNNT spin defects open up innovative possibilities for atomic scale quantum sensing in diverse fields like condensed matter physics and biology.

Methods

Defects preparation

The boron nitride nanotubes (BNNTs) used in this work have an average diameter of about 50 nm and a typical length of a few μm40,41. The yield of spin defects in these commercial BNNTs was approximately 5% according to over 100 bright emitters we have tested. To create more spin defects, we treated the BNNTs with ion implantation and thermal annealing. We dissolve the as-received commercial BNNT powder in ethanol and sonicated it for 10 minutes to separate the nanotubes. Then the BNNT solution is spin coated onto a Si substrate. The Si substrate with BNNTs is mounted in the home-built ion implanter and irradiated with 2.5 keV ionized CO2 with a dose density of 1013 cm−2. The irradiated BNNT sample is annealed at 1000 °C for 2 h at 10−5 Torr. About 20-30% of bright spots in treated BNNTs show ODMR signals.

ODMR experiment

ODMR measurements were carried out using a home-built confocal microscope system. A 532-nm laser was sent through a 550 nm dichroic mirror and focused on the sample using a high numerical aperture (NA = 0.9) objective lens with ×100 magnification. An acousto optic modulator (ISOMET, M1205-T110L-1) was used as a fast optical switch. The PL was separated from the laser by the dichroic mirror and the residual laser light was blocked by two 550-nm long-pass filters. Afterward, the PL was coupled into an optical fiber, and guided to a single-photon counter (Excelitas, SPCM-AQRH). The microwaves are generated by a Stanford Research Systems SG386 signal generator. The amplitude is modulated by two fast RF switches (Mini-Circuits ZASWA-2-50DRA+) and then amplified by an amplifier (Mini-circuits ZHL-10W-202s, or ZHL-16W-43-s+). For ODMR measurements, a pulse steamer (Swabian Instruments Pulse Streamer 8/2) sends pulses to modulate the RF switches, signal generator and AOM. A permanent magnet was mounted on a translation stage combined with a Goniometer behind the sample to apply a tunable external dc magnetic field. The temperature dependent measurements for characterizing stray magnetic fields generated from a Fe3GeTe2 flake were done in a cryostat using liquid nitrogen. The laser beam is guided into the cryostat chamber by using a flip mirror, enabling the ability to switch between the room-temperature setup and the low-temperature setups.

Stray magnetic field sensing

The external magnetic field was generated by a permanent magnet in this work. To change the direction of the external magnetic field applied to a Fe3GeTe2 flake in a cryostat, we first raise the temperature of the device to room temperature, change the direction of the magnet, and then cool down the system again. During this process, the Fe3GeTe2 flake is demagnetized at room temperature before it is magnetized again in a new external magnetic field. The quantization direction of a spin S = 1/2 defect follows the direction of the total magnetic field. When the magnitude of the external magnetic field, Bext, is much larger than the magnitude of the stray magnetic field from the sample, Bs, the BNNT spin defect will be primarily sensitive to the component of the stray magnetic field in parallel to the external magnetic field: Bs,. This is because \(\sqrt{{({B}_{ext}+{B}_{s,\parallel })}^{2}+{({B}_{s,\perp })}^{2}}-{B}_{ext}\, \approx \, {B}_{s,\parallel }\) when Bext + Bs, Bs,, where Bs, is the component of the stray magnetic field perpendicular to the direction of the external magnetic field. Thus by changing the direction of the external magnetic field, we can measure the stray magnetic field in different directions, following the orientation of the external magnetic field.

Scanning probe magnetometry

The scanning probe measurements were done in the same room-temperature setup but with an additional translation stage for mounting the cantilever with BNNT. Two piezo controllers (MDT693B) were used to control the positions of the cantilever and the sample individually. To perform scanning-probe ODMR measurements, the tip of the BNNT probe is first brought to a distance of 10 μm using the knobs on the stage manually. Further distance control is achieved by using the piezoelectric positioners, which allow us to make the probe-to-sample distance within a few hundred nanometers.