Introduction

In the new era of quantum sensing, point defect qubits play a crucial role in revolutionizing measurements in material science, biology, and medicine1. In particular, the NV center in diamond2 has provided the means to detect magnetic field3, electric field4, strain5, and temperature6 with high spatial resolution and high sensitivity. Novel magnetic resonance protocols7,8 with unlimited frequency resolution9,10 have opened new horizons for magnetic resonance in the few-spin limit that provides hitherto inaccessible information on the structure and functioning of molecules and proteins11. On the other hand, the NV center is an inherently bulk system, that implies severe challenges when near-surface applications are demanded12,13. Wide-band gap van der Waals semiconductors with mature exfoliation possibilities, such as hBN, hosting applicable, optically addressable point defect qubits on the surface and even in a single layer may be advantageous in various sensing applications14,15. Recently, hBN sensing foils have been utilized to detect the magnetic field of van der Waals heterostructures16,17, paramagnetic defects18,19, and other nanometer-scale structures20.

Optically detected magnetic resonance (ODMR) studies have demonstrated optically addressable spin qubits in hBN21,22,23,24,25. One of the qubits has already been assigned to the negatively charged boron vacancy (VB center)22,26,27,28. The VB center can be coherently manipulated29,30 and used as high spatial resolution thermometer31 and magnetic field probe16,17,18,19,20. The sensitivity of these sensors, however, falls most often behind the NV center in diamond31. The reasons for the relatively low sensitivity of the VB center are the low photon emission rate due to the first-order forbidden optical transition26 and the noisy environment due to the 100% natural abundance of paramagnetic isotopes of B and N. Other ODMR centers in hBN exhibit narrow linewidth23,24,25,32 and bright optical signals, however, their microscopic structures are yet to be explored. While these centers are promising for quantum sensing23,25, their controlled fabrication on an ensemble level has not been achieved.

Recent developments in the field of single-photon emitters and qubits in hBN have inspired a vast number of theoretical studies32,33,34,35,36,37,38,39,40,41,42. In contrast to conventional bulk systems, such as diamond and silicon carbide (SiC), point defect related electronic states in hBN are often strongly correlated and require treatment on high level of theory28,43. Fortunately, the layered structure of the hBN allows computationally affordable but physically sound models to be studied by advanced post-DFT and post-Hartree-Fock methods28,43. Such methods enable us to carry out predictive, quantitatively accurate computational studies in hBN26,44.

Here we experimentally and computationally investigate a point defect complex created by the fusion of two boron vacancies in the neutral charge state. We demonstrate by scanning transmission electron microscopy (STEM) imaging that the stable configuration of the defect, named VB2 center, can be found in single-layer free-standing hBN samples after electron irradiation. We report on nearly degenerate singlet-triplet pairs of states in the spectrum of the defect with allowed optical transitions for initializing and reading out the spin states. We show that the peculiar electronic structure of the VB2 configuration enables long-lived storage of population information in the singlet manifold. Furthermore, we demonstrate that the transverse zero-field splitting interaction of the ground state gives rise to efficient coherence protection mechanisms. As a result, the electron spin resonance linewidth is reduced by a factor of 4.2, and the inhomogeneous coherence time is elongated by a factor of 7.5 at zero magnetic fields compared to those obtained at non-zero magnetic field values. The reported properties of the VB2 center may be utilized in novel quantum sensing applications with high sensitivity.

Results

Structure, stability, and fabrication

A pair of adjacent in-plane boron vacancies results in a highly unstable configuration where the nitrogen atom between the two vacancies possesses two dangling bonds and binds only to a single boron atom, see Fig. 1a. The loosely bonded nitrogen atom between the boron vacancies migrates into one of the vacancy sites. A new point defect complex is formed consisting of a boron vacancy, a nitrogen vacancy, and a nitrogen anti-site (VBVNNB). One of the six possible symmetrically equivalent configurations is depicted in Fig. 1b, while the remaining five configurations can be obtained by rotating this structure 120 and 240 around an outplane axis, as well as reflecting the original and rotated configurations to perpendicular of plane reflection planes. The VBVNNB defect complex is from now on refered to as the VB2 configuration. Due to the formation of strong nitrogen-nitrogen bonds in the VB2 configuration, the complex is highly favorable. Indeed, the binding energy of two boron vacancy pairs is found to be as large as 5.15 eV in good agreement with the previous theoretical prediction of 4.9 eV45. The small difference in the theoretical values can be attributed to the use of different hybrid functionals in the calculations.

Fig. 1: Structure and stability of the VB2 center.
figure 1

a Unrelaxed structure of two adjacent boron vacancies. b The energetically most favorable VB2 configuration where the unstable nitrogen atom of two dangling bonds has jumped into the upper boron vacancy site forming a VBVNNB complex. c Formation energies of VB2 (magenta) and VB (light blue) defects in h-BN as a function of Fermi level under B-poor (solid line) and B-rich (dashed line) growth conditions. Color-coded numbers represent the charge states of the corresponding defect, while vertical dotted gray lines indicate the charge state transition levels of the VB2 defect. d A false-coloured ADF-STEM image of the VB2 configuration in single layer free-standing hBN sample. The top and bottom panels show the experiment and simulation of the VB2 configuration. e Intensity profile across the bright atoms along the yellow dashed box in d that reveals an anti-site nitrogen next to the vacancy sites.

The formation energy curves of the VB2 and the VB defects as a function of the Fermi energy are depicted in Fig. 1c. The figure demonstrates that the VB2 configuration exhibits four stable charge states and three charge-state transition levels, (+1/0), (0/ −1), and (−1/ −2) at 1.78 eV, 3.61 eV, and 4.90 eV in the band gap of hBN, respectively. The neutral charge state is stable in the middle of the band gap and photostable up to 3.61 eV photon energy, which is the threshold for exciting an electron from the valence band to the defect and creating a negatively charged VB2 configuration and a hole at the valence band edge, see Fig. 1c.

To confirm the existence and stability of the VB2 configuration in hBN, we carry out annular dark-field scanning transmission electron microscopy (ADF-STEM) imaging of a single-layer free-standing hBN sample grown in our CVD laboratory46. Among many other defect types reported in previous works46, our experiments reveal here the VB2 defect in single layer hBN, see Fig. 1d. The STEM image of the VB2 configuration resembles the boron vacancy-nitrogen vacancy complex, however, the intensity profile across the bright atoms shows an excellent match to the VB2 complex with an adjacent pair of N atoms in the first neighbor shell of the vacancies, see the multi-slice simulated STEM image in Fig. 1e.

We note that the appearance of the VB2 configuration is presumably a consequence of the high-energy electron irradiation of the STEM imaging. In our measurements, clean defect-free regions of the suspended hBN monolayers were first located on a layer carbon Cu mesh TEM grid. Because hBN reacts under the electron beam, vacancies and defects are produced during imaging. The creation of defects is stochastic, however, more likely boron vacancies are formed. In addition, prior work has shown that electron beam irradiation of monolayer hBN causes the ejection of B and N atoms around point defects leading to defect complex formation46. The observed VB2 defect is presumably the result of the high-energy non-equilibrium processes taking place under the STEM measurements and not an ingrown defect. Elaborating further on this observation, we note that the STEM may utilized for high-position accuracy fabrication of defects, including the VB2 configuration, e.g. by using engineered electron beam pulses at specific locations and omitting scanning of the sample. Filling of vacancies with other adventitious atoms is also possible, such as C or O, coming from the TEM column vacuum chamber46. For further discussion on the single layer and bulk fabrication see Supplementary Note 2 with Supplementary References34,45,47,48,49,50,51.

Observation of the VB2 configuration in our STEM images motivates an in-depth study of the excited states and magneto-optical properties of the defect, which is the topic of the following sections.

Excited state properties

The in-plane and perpendicular-to-plane dangling bonds of the VB2 configuration give rise to a number of localized defect states, most of which can be found in the band gap of hBN. For a comprehensive analysis of the single-particle electronic structure, see Supplementary Note 3. As a consequence of the complicated electronic structure, several excited states can be found below the ionization threshold resulting in diverse optical excitation and decay pathways.

The energy level spectrum including the eight lowest-lying many-particle energy levels obtained on corresponding relaxed geometries is depicted in Fig. 2a. The spectrum exhibits a peculiar feature that has not been seen in point defect qubits before, i.e. it is built up from nearly degenerate pairs of singlet and triplet states, referred to as excited manifolds from now on. The reason for the observed quasi-degenerate singlet-triplet pairs can be understood by examining the ground state triplet. Due to the defect’s low symmetry, the observed high-spin ground state is the result of an accidental degeneracy in the single-particle electronic structure, see Supplementary Note 3. The unpaired electrons occupy two defect states that belong to two different irreducible representations and are localized on distinct first neighbor atoms of the defect, see the spin density in Fig. 3a. As a result, the exchange energy is marginal in the ground state and gives rise only to a 3.3 meV splitting between the ground state triplet and the corresponding lowest energy singlet state. The wavefunctions of the low energy optical excited states exhibit similar characteristics that explain the spectrum depicted in Fig. 2a.

Fig. 2: Optical properties, initialization, and non-destructive readout of the VB2 center.
figure 2

a Energy level structure of the VB2 defect exhibiting quasi degenerate singlet-triplet pairs throughout the spectrum. b Calculated PL emission spectra of the VB2 defect a room temperature. The emission maximum is red-shifted by 60 nm compared to the PL emission peak of the VB center. c Schematic diagram of the possible radiative and phonon-assisted non-radiative relaxation pathways. Solid arrows indicate optical transition with parallel to c-axis polarization, dashed arrows indicate spin-conserving non-radiative relaxation, dashed double line arrows indicate direct spin-conserving relaxation to the ground state, and dotted arrows indicate spin non-conserving non-radiative transitions through inter-system crossings.

Fig. 3: Qubit properties of the VB2 center.
figure 3

a Spin density of the triplet ground state of VB2 center. b Rabi oscillation of the electron spin at zero magnetic fields. c Magnetic resonance map of the VB2 center as a function of the applied magnetic field (horizontal axis) and the microwave frequency (vertical axis). In the simulations, the system was driven by an in-plane polarized microwave field. The broad frequency-independent signal at 160 G is due to the hyperfine mixing of the spin states observed at the level avoided-crossing of the electron spin levels. d Magnetic field dependence of the free induction decay time (\({T}_{2}^{\star }\)). The coherence time is enhanced by a factor of 7.5 close to B = 0 due to the transverse zero-field splitting that partially suppresses the hyperfine coupling. e Magnetic resonance signal at 0 G and 500 G magnetic field values. The width of the zero-field electron spin resonance signal is 23.8% of the width of the signal at 500G. This effect gives rise to a 4.2 times enhancement of the sensitivity at zero magnetic field.

Since the triplet and singlet states in each manifold have approximately the same spatial wavefunctions and atomic configurations, spin-orbit coupling and phonon-mediated inter-system crossing (ISC) between these states are forbidden in leading order (El-Sayed’s rule). Consequently, the lowest lying S0 singlet excited state close to the triplet ground state T0 is long-lived. Indeed, we find the lifetime of the S0 state to be as long as 39.5 ms at low temperatures, which remains in the same order of magnitude even at room temperature. This indicates that the S0 singlet state can serve as a classical memory to store population information.

By analyzing the potential decay pathways from the excited states, we find that the states in the lowest-lying ES1 manifold can directly decay non-radiatively to the ground state, and its lifetime is expected to be in the picosecond range, see Supplementary Note 4 with Supplementary References52,53,54,55,56,57. The fast decay suppresses any optical emission from the T1 triplet and S1 singlet states. On the other hand, the ES2 manifold is optically active and gives rise to zero-phonon luminescence (ZPL) lines from the T2 triplet and the S2 singlet states at 1.578 eV and 1.586 eV, respectively. We note color centers most often emit from the lowest energy excited state, however, depending on the ratio of the radiative and phonon-assisted non-radiative decay rates, higher-lying excited states may also be optically active58. High-temperature PL spectrum of the VB2 defect is depicted in Fig. 2b showing a 60 nm red-shifted PL phonon side-band compared to the boron vacancy center. The ES3 manifold decays dominantly to the ES2 manifold via internal conversion.

Figure 2c depicts the most relevant radiative and non-radiative decay pathways of the VB2 defect. Besides the optical decay, the system can decay non-radiatively from the ES2 manifold through the ES1 manifold to the ground state manifold by emitting phonons. For the quantum efficiency of the VB2 center, we obtain 0.15 and 0.12 for the triplet and the singlet transitions, respectively. The inter-system crossing (ISC) rates between the singlet and triplet channels are a few orders of magnitude smaller than the spin-conserving decay rates, see Fig. 2c. Consequently, the singlet and triplet emissions are independent of each other to a large degree. This effect and the differences in the optical lifetime and the emission energy of the T2 triplet and the S2 singlet states can be utilized to realize a single-shot read-out of the singlet-triplet occupation, see Supplementary Note 4 for more details.

Since the electronic structure of the VB2 configuration does not exhibit dark long-lived metastable states, the photon count observed in the measurements is limited by the radiative lifetime, two-photon excitation processes, and collection efficiency of the emitted photons in saturation. Due to the high photon collection efficiency achievable in hBN59,60 and the ≈ 3 MHz radiative lifetime of the VB2 center, the saturated photo-count of a single VB2 center is expected to be in the order of 100 kcps.

The ISC transition between the singlet and triplet states is found to be strictly selective on the spin sub-levels of the triplet states, i.e. only the \(\left\vert {m}_{{\rm{S}}}=0\right\rangle\) state is connected with the singlet channel. Consequently, continuous optical excitation of the VB2 center leads to spin polarization in the triplet ground state. Furthermore, since the triplet and singlet radiative relaxation rates are slightly different in the ES2 manifold, see Fig. 2c, the luminescence of the VB2 defect depends on the spin state. The saturated spin read-out contrast is approximated to be 4.6%, see Supplementary Note 4. Since the contrast is set by the relative luminescence intensity of the singlet and triplet manifolds, for which we do not expect considerable temperature dependence, and not by the relative rates of various non-radiative decay processes, the observed 4.6% contrast may be preserved even at room temperature. Finally, we note that fast ISC transitions and fast optical spin initialization may be achieved by pumping through the ES3 manifold, where ISC rates are found in the MHz range. Such excitation, on the other hand, may not be advantageous for read-out due to the enhanced non-radiative decay rates that may substantially reduce the quantum efficiency of the defect.

VB2 center as a qubit

As we have shown, the spin states of the ground state triplet of the VB2 center can be initialized and read out optically, therefore the spin states of the defect complex can implement an optically addressable qubit in hBN. In the following, we study the spin and qubit properties of the center. Figure 3a depicts the spin density of the triplet ground state that clearly shows low symmetric characteristics, in contrast to existing point defect qubits that exhibit (quasi-)three-fold rotation symmetry. The spin Hamiltonian of the triplet ground state is discussed in Supplementary Note 5 with Supplementary References47,61,62.

The low symmetric structure has a significant effect on the zero-field splitting (ZFS) interaction whose preferential quantization axis is in-plane and the corresponding conventional ZFS parameters are D = 1.394 GHz and E = 78.2 MHz. Note, however, that the preferential quantization axis of the spin-orbit interaction is perpendicular to the plane. Hereinafter, we use this latter quantization axis, in which the electron spin is polarized in the \(\left\vert {m}_{{\rm{S}}}=0\right\rangle =\left\vert 0\right\rangle\) spin state. In this basis, a new set of non-conventional ZFS parameters can be defined as \(\widetilde{D}=-814\) MHz and \(\widetilde{E}=-658\) MHz that provides the same level structure as the conventional ZFS parameters in the corresponding quantization basis. Here, we note that due to the six possible orientations of the defects with six different preferential quantization axes, one would observe a complex magnetic field-dependent ODMR signal in an ensemble.

The large effective transverse ZFS \(\widetilde{E}\) mixes the \(\left\vert {m}_{{\rm{S}}}=\pm 1\right\rangle =\left\vert \pm 1\right\rangle\) spin states and gives rise to new quantum states \(\left\vert \pm \right\rangle =\left\vert +1\right\rangle \pm \left\vert -1\right\rangle\). By applying a microwave field that is polarized in an in-plane direction, spin transitions can be resonantly driven between the \(\left\vert 0\right\rangle\) and \(\left\vert \pm \right\rangle\) state at zero magnetic fields. Rabi oscillation can be observed in the optical signal due to the microwave drive, see Fig. 3b. In Fig. 3c, we depict the magnetic field dependence of the resonance signal. As the magnetic field enhances the zero-field mixing of the mS = ± 1 states reduces; the states become the eigenstates of the Zeeman Hamiltonian term, and eventually depend linearly on the magnetic field. On the other hand, as can be seen in Fig. 3c, the spin states are independent of the magnetic field in first order at B ≈ 0. The zero first-order Zeeman (ZEFOZ) transitions arising at this field are protected from magnetic fluctuations that result in an elongated coherence time of the qubit states. We study this effect through the magnetic field dependence of the free induction decay time (\({T}_{2}^{\star }\)) in Figure 3d. As can be seen, the coherence time is enhanced by a factor of 7.5 at B = 0 and reaches a value as high as 128 ns. Note that the coherence time may be further elongated by driving a transition between \(\left\vert +\right\rangle\) and \(\left\vert -\right\rangle\) states with a parallel to plane-polarized microwave field. These coherence protection schemes are indispensable in hBN as it possesses nuclear spins in its lattice with 100% natural abundance. We note furthermore that the electron spin resonance linewidth is reduced by a factor of 4.2 at zero magnetic fields, see Fig. 3e.

Note, furthermore, that the magnetic resonance map in Fig. 3c exhibits a broad driving frequency-independent signal at B ≈ 160 G. This signal is due to hyperfine coupling of the environment whose effect is enhanced at the avoided-crossing of the ground state spin levels observed at B ≈ 160 G, see Supplementary Note 5. The interplay of the optical pumping and the strong hyperfine coupling at this magnetic field may give rise to efficient polarization of the surrounding spin bath. Low magnetic field hyperpolarization of an hBN sample can be utilized in sensitivity-enhanced NMR and MRI measurements63.

VB2 as a sensor

Finally, we study the sensitivity of the VB2 center. To this end, we first determine the pressure and electric field dependence of the ZFS parameters, for which we obtain \(d\widetilde{D}/dp=9.98\) MHz/kBar (−8.61 MHz/kBar) and \(d\widetilde{E}/dp=8.50\) MHz/kBar (−9.36 MHz/kBar) for pressure applied parallel (perpendicular) to the VB-VN axis and \(d\widetilde{D}/d{\mathcal{E}}=0.04\) Hz cm/V (−3.45 Hz cm/V) and \(d\widetilde{E}/d{\mathcal{E}}=3.81\) Hz cm/V (7.52 Hz cm/V) for static electric field \({\mathcal{E}}\) set parallel (perpendicular) to the VB-VN axis. The stress coupling parameters of the VB2 center and the VB center31 are comparable, however, they are two orders of magnitude larger than the NV center’s stress coupling parameter64. The electric field coupling parameter of the VB2 center along special directions is comparable to the NV center’s electric field coupling strength.

The shot noise limited sensitivity of a single VB2 sensor in continuous wave magnetic resonance measurement scheme can be obtained according to the formula65,66

$${\eta }_{{\rm{MR}}}={\left(\frac{d{\nu }_{0+}}{d{\mathcal{P}}}\right)}^{-1}\frac{\Delta \nu }{C\sqrt{{\mathcal{R}}}}\,\text{,}\,$$
(1)

where ν0+ is the resonance frequency, \({\mathcal{P}}\) is the perturbation to be measured, Δν is the full width at half maximum of the magnetic resonance curve, which takes 49.5 MHz at zero magnetic fields for electric field, pressure, and temperature sensing and 205 MHz at high magnetic field values for DC magnetic field sensing, C ≈ 0.05 is the estimated spin read-out contrast, and \({\mathcal{R}}\) is the photon count that may reach 100 kcps in saturation. Using this formula and the values specified above, for pressure, DC electric field, and DC magnetic field sensitivity we respectively obtain 30 MPa/Hz1/2, 907 kV/cm/Hz1/2, and 463 μT/Hz1/2 for a single VB2 defect in hBN in continuous wave sensing mode.

Discussion

The sensitivity of the VB2 center in a continuous wave measurement scheme is expected to be lower than that of the NV center in diamond, dominantly due to the enhanced magnetic resonance linewidth and the slightly lower photon count of the VB2 center. On the other hand, it may still be useful for high spatial resolution sensing in near-surface and low-dimension applications. The dipole-allowed optical transition, the sizable spin read-out contrast, and the narrowed-down magnetic resonance signal at zero magnetic fields are all in favor of the VB2 center.

Pulsed sensing protocols and decoherence protection techniques can be utilized to enhance the sensitivity of the VB2 center further. The low symmetric structure offers new functionalities. The long-lived bright singlet manifold can be utilized as a memory and may lead to the storage of spin state population information beyond the spin relaxation time of the ground state triplet. This may be utilized in a single-shot read-out of the spin states when the center is coupled with an optical cavity. Furthermore, dressing of the \(\left\vert \pm \right\rangle\) states with resonant microwave drive may be used in filtering out low-frequency magnetic field fluctuations62 that can give rise to a highly protected subspace in hBN.

Fabrication of point defect qubits in 2D materials offers new possibilities in nanometer-scale sensing. For example, few-layer hBN samples with pre-fabricated sensors may be moved on top of nano-scale structures or installed in van der Waals heterostructure in order to obtain high spatial resolution information not accessible with other means. The VB2 center exhibiting desirable qubit properties has already been fabricated in single-layer hBN providing a suitable sensor for such applications.

In summary, in this joint theoretical and experimental work, we investigated the peculiar properties of the neutrally charged VB2 configuration in hBN. The appearance of this structural defect has been demonstrated in our STEM measurements on a free-standing single-sheet hexagonal boron nitride sample. We showed that the triplet ground state of the VB2 defect implements an optically addressable spin qubit with novel characteristics. The possibility of an efficient coherence protection mechanism and dipole-allowed optical transition makes the VB2 center a suitable candidate for emerging point defect qubit applications, such as sub-nanoscale sensing in van der Waals heterostructure.

Methods

In this study, we use scanning transmission electron microscopy, three state-of-the-art electronic structure computational methods, see Supplementary Note 1, and exact spin dynamics simulations to investigate the VB2 defect.

Sample and STEM measurements

Chemical vapor deposition (CVD) was employed to grow hBN on copper substrates in our laboratory at the University of Texas. Copper (Cu) (25 μm, Alfa Aesar) was placed in a horizontal tube furnace and heated to 1000 C under a gas flow of Ar and hydrogen (500 sccm, 0.35% hydrogen) for 60 min. Subsequently, the gas flow was adjusted to 80 sccm (22% hydrogen and 78% argon). Ammonia borane powder (>97%, Sigma Aldrich) was heated (80 C) separately, and its vapor was delivered downstream to the Cu substrate to react. Growth occurred over 30 min, followed by rapid sample cooling. The hBN film was spin-coated with PMMA, etched in ammonium borane to remove the Cu, and then transferred to a TEM grid. The PMMA was removed by acetone overnight and then the samples were annealed in vacuum overnight. Annular dark-field scanning transmission electron microscopy (ADF-STEM) was performed using a JEOL ARM200CF STEM equipped with a CEOS probe corrector operated at an accelerating voltage of 80 kV. ADF-STEM with a low collection angle was acquired to increase the signal from light elements and discriminate B and N atoms as darker and brighter contrast. Dwell times of 5–20 μs and a pixel size of 0.006 nm px-1 were used for imaging with a convergence semi-angle of 22.5 mrad and a beam current of 35 pA. A camera length of 20 cm was used to provide a large collection of low-angle scattered electrons, increasing the contrast of hBN. ImageJ was used for line profile measurements and image analysis. Multislice image simulations were using QSTEM software with an accelerating voltage of 80 kV, a convergence semiangle of 21 mrad, a detector angle of 40–110 mrad, a spherical aberration of 0.001 nm, the chromatic aberration of 1 mm, and the defocus of −0.001 nm. The ADF-STEM images were colorized with Gem in lookup tables using ImageJ for better visibility.

DFT calculations

We apply density functional theory (DFT) calculations to study the energetic, ground state electronic, and spin properties, as well as the selected excited state properties of the VB2 defect. Throughout this work, we use a plane wave basis set of 450 eV and PAW67 core potentials as implemented in VASP68 and HSE06 hybrid exchange-correlation functional69,70 with 0.32 exact exchange fraction34. For the charge transition level calculations we use a 768-atom supercell model of bulk hBN and the charge correction scheme by Freysoldt et al.71. For all the other calculations, we use a 162-atom single-sheet model of hBN embedding a single defect complex. In perpendicular direction, we use 30 Å supercell size. Furthermore, in single-layer calculations, we use DFT-D3 correction method of Grimme et al.72. We use a ZFS tensor calculation routine in the PAW formalism as implemented in VASP and spin contamination error correction as proposed in ref.73. We note that the spin contamination error is comparable with the largest element of the ZFS tensor, thus accurate ZFS parameters can only be achieved after decontamination. The DFT values are confirmed by NEVPT2 results for the unstrained configuration.

NEVPT2 calculations

The N-Electron Valence State Perturbation Theory (NEVPT2)74 calculations were carried out using cc-pVDZ basis set75 by the ORCA program package76. To this end, we employed a flake model of hBN, consisting of 38 B-, 40 N-, and 22 H-atoms. The underlining complete active space self-consistent field (CASSCF) calculations were performed based on the unrestricted Hartree-Fock orbitals, while we employed the CAS of 8 electrons and 8 orbitals and considered 6 triplet and 6 singlet states for the state-averaging. The spin-orbit coupling was introduced in the framework of quasi-degenerate perturbation theory, as implemented in ORCA.

DMRG calculations

DMRG77 is a reference-free variational post-Hartree–Fock method which relies on an iterative local optimization scheme based on Schmidt decomposition78. The method is natively suitable for describing multireference problems of several dozens of strongly correlated orbitals79,80. As DMRG is capable of treating significantly larger completely active spaces compared to CASSCF-based methods, it can provide more robust results for strongly correlated problems.

DMRG computations are performed applying the Budapest DMRG package81 restricting the spin of the target states to 0 and 1. In the DMRG truncation80, the density matrix is formed of the equally weighted linear combination of the targeted spin-states, and the quantum information loss is preferred to be kept below threshold value χ = 10−5. Considering that only six defect orbitals display multireference character whereas the rest of the orbitals are found to be contributing to the dynamical correlation effects, a variant of the standard dynamically extended active space approach (DEAS)82 is implemented and applied to initialize environment DMRG block states. Namely, the orbitals in the DMRG chain are arranged according to their localization on the defect atoms in descending order and the DMRG system block is optimized in the configuration space of the environment orbitals which is composed of determinants allowing up to all single orbital excitations. Contrary to the standard DEAS implementation, where environment block states tend to capture the essence of the multireference features of the corresponding orbitals, the modified initialization scheme focuses on the description of dynamical correlations of the complete environment from the initial DMRG micro iterations. The application of the novel DEAS protocol is favorable for the particular orbital space setups of current interest, i.e., orbitals display well-distinguished static or dynamical correlation character. In practice, the relative vertical energies are found to approach convergence within the first macro iterations of DMRG owing to the effective environmental initialization.

The input required for the DMRG calculations, i.e., Hamiltonian matrix elements, are expanded in the active space of Kohn-Sham DFT orbitals using program suite ORCA83. The spin-restricted Kohn-Sham orbitals are obtained assuming PBE correlation-exchange functional and fixing half-occupation on the highest-lying valence defect orbital pair. Matrix elements were computed by MRCC program84,85 applying the complete active space protocol86,87. In our analysis, various active space setups were tested providing consistent excitation spectra, while the actual results are presented for 100 canonical orbitals filled with 188 electrons. The NEVPT and the DMRG calculations were performed on the same flake geometry.

Spin dynamics simulations

Exact spin dynamics simulations were carried out by using a spin Hamiltonian parametrized by our DFT spin coupling parameter calculations88. Magnetic resonance (MR) spectra were obtained by propagating the states of a four-spin model, including the triplet electron spin and three closest 14N triplet nuclear spins, under an oscillating magnetic field of various frequencies and polarization direction. The MR figures show the change of the initial population of the mS = ± 1 states. The \({T}_{2}^{\star }\) coherence time was obtained by simulating the coherent oscillation of 178 electron spin-nuclear spin two spin systems. The overall coherence function is obtained as a product of the individual coherence functions89. The decaying coherence function of the electron spin was fitted by a Gaussian function to obtain the \({T}_{2}^{\star }\). No nuclear spin nuclear spin flip-flops are included here.