Introduction

The engineering of point defects in crystals at the single defect level is becoming increasingly important for the development of quantum technologies. For example, the negatively charged nitrogen-vacancy (NV) defect in diamond provides an optically addressable spin with long coherence times, even at room temperature, and has therefore become an important tool for quantum sensing1 and nanoscale imaging2 and is a promising candidate for quantum computing and quantum communication3,4,5. Various other colour centre defects are also being explored, providing a rich source of new science and technological potential. Within this context, understanding and refining the processes by which these defects are created is of utmost importance.

Various methods are utilised for the controlled fabrication of colour centres, including ion implantation6, electron-beam irradiation7 and laser writing8, with the general objective of introducing the necessary impurities and vacancies and facilitating their binding together within the crystal lattice to form the desired defect9. The creation of a vacancy in a crystal lattice is usually achieved by dislodging an atom from its lattice site into an interstitial location, thus creating a Frenkel defect—a vacancy-interstitial pair. The role of self-interstitials in the fabrication process and their effect on the properties of the colour centres formed, therefore, needs to be understood.

Here, we focus on the dynamics of the formation of NV centres and model the effect of a migrating carbon self-interstitial (Ci) on the properties of a pre-formed NV centre. We compare our theoretical results with experimental data from the laser-writing of single NV centres, which has proven to be an effective technique both for creating Frenkel defects in diamond with minimal residual damage8 and for the subsequent annealing step that leads to the formation of the NV complex10, with real-time monitoring of the NV fluorescence during the laser annealing process providing a window to the local dynamics.

Figure 1 a, b depict the electronic configuration of the NV centre and the corresponding electronic orbitals respectively. Fluorescence from the isolated NV results from the electric dipole-allowed transition from the excited state (\({a}_{1}{a}_{2}{e}_{x}{e}_{y}{\bar{a}}_{1}{\bar{e}}_{x}\) or \({a}_{1}{a}_{2}{e}_{x}{e}_{y}{\bar{a}}_{1}{\bar{e}}_{y}\)) to the ground state (\({a}_{1}{a}_{2}{e}_{x}{e}_{y}{\bar{a}}_{1}{\bar{a}}_{2}\)). Figure 1c presents an example of intermittent fluorescence observed during the formation of an NV defect10. The typical formation process involves transitions between 'Off', 'Blink', and 'On' states, as indicated by the photoluminescence (PL) signal. Since the vacancy has combined with the nitrogen to form the NV centre, the remaining Ci is likely still located near the formed NV centre, affecting the stability of PL signal. In the context of interstitial carbon in diamond, the split-〈100〉 Ci configuration with neutral charge is considered one of the most stable arrangements, where two carbon atoms share the same lattice site along the [100] crystallographic direction. Rather than forming the typical tetrahedral sp3 bonds, these two carbon atoms may instead adopt a bonding arrangement that includes a π bond, resulting from the overlap of unhybridized p orbitals11.

Fig. 1: An overview of the electronic structure of NV and its characteristic fluorescence signal during laser writing.
figure 1

a Electronic configuration of the negatively charged NV centre in diamond in its ground state. Optical absorption promotes the spin-down electron in the a2 orbital to the ex or ey orbital, and fluorescence returns the electron to the a2 state. b Illustration of the electronic orbitals of NV in diamond. The degenerate orbitals ex and ey are shown in blue, while the a2 orbital is coloured red. c Example fluorescence intensity trace recorded during a laser annealing process, showing intermittent fluorescence preceding the formation of NV12.

Previous ab initio density functional theory (DFT) modelling has shown that in the electronic ground state, the orbitals of NV and the split-〈100〉 Ci can hybridise for some configurations, suggesting that the NV fluorescence might be quenched and that the observed fluorescence intermittency could be a signature of a Ci migrating in the vicinity of the colour centre12. Here we extend this work in two ways, firstly by introducing an improved potential to the DFT model which will provide a more accurate prediction of hybridisation and of the Ci migration dynamics, and secondly by modelling the optical transitions of NVCi defect complexes using time-dependent DFT (TDDFT).

Studying interactions between defects and defect migration dynamics requires modelling of a system of order nanometres in size containing thousands of atoms, such that computationally expensive DFT and ab initio molecular dynamics (AIMD) calculations are impractical. To conduct this investigation effectively, we therefore apply two techniques. Firstly, we utilise a machine-learning Gaussian Approximation Potential (GAP). GAP-20 is a specific inter-atomic transferable machine learning potential designed for carbon-related materials, providing an alternative to achieve large-scale molecular dynamics simulations. Secondly, we use linear-scaling DFT. The computational cost of traditional DFT methods scales cubically with the number of atoms, whereas linear-scaling DFT offers higher computational efficiency and scalability for studying large-scale systems.

We first introduce the construction of the GAP-CN (Carbon-Nitrogen) potential based on the existing GAP-20 potential. Then, the constructed GAP-CN potential is applied to optimize the geometry of input structures for TDDFT calculation and run molecular dynamics simulations. The TDDFT results begin with observing the changes in the absorption spectrum of pure NV in diamond at 300 K, where a blue shift of around 5 nm in wavelength is found compared to the results at 0 K. Then, to further investigate the interaction between Ci and NV, random optimized samples consisting of one Ci and one NV are constructed, followed by TDDFT calculation where 'Bright', 'Spike' and 'Dark' states are classified based on their absorption spectrum features. Finally, a molecular dynamics(MD) simulation, assisted with the formed GAP-CN, is performed to reveal the diffusion mechanics of defects under thermal excitation. The MD results suggest that Ci may either diffuse away from NV or recombine with V, thereby leaving pure NV alone or destroying the formed NV. In the case of diffusing away, the PL signal would transition from blinking to stable, as shown in Fig. 1c.

Methods

GAP-CN training

Training procedure of GAP-CN

Figure 2 shows the training procedure for the construction of GAP-CN. The crystalline structures from GAP20 and the CN defect-related structures serve as input geometries for DFT calculations using CASTEP. In particular, the CN defect-related structures consist of a diamond supercell composed of 3 × 3 × 3 conventional cells, containing single defects such as the nitrogen-vacancy (NV), substitutional nitrogen (Ns), interstitial nitrogen (NNi), divacancy (VV), monovacancy (V), interstitial carbon (Ci), and combinations of any two of these single defects. The total energy and atomic force data are then used to fit the parameters of the GAP-CN potential in the GAP fitting programme, generating the first iteration of the GAP-CN potential. This first iteration is subsequently used for molecular dynamics simulations in LAMMPS. To enhance the precision of force and energy calculations provided by the GAP-CN potential, frames extracted from the MD simulations are used as additional CN defect-related structures to refine the best-fit potential. The final training dataset comprises a total of 7343 configurations.

Fig. 2
figure 2

A flowchart illustrating the process for generating the GAP-CN potential.

Database construction

The dataset of this potential is made up of three parts. The first part is created based on the selected structures out of the GAP2013 dataset. This part of the GAP-CN training dataset involves structures of 'Dimer', 'SACADA'(database of exotic carbon allotropes)14, 'Fullerenes', 'Nanotubes', 'Crystalline Bulk', 'Defects', 'Graphite', 'Surfaces', 'Crystalline RSS'(random structure search from GAP17 potential)15, 'Graphene', 'Diamond', 'Single Atom', and 'Graphite Layer Sep'. There are 2965 structures in total from the GAP20 database. Next, to increase the accuracy of the -defective' structures, various nitrogen-doped and carbon-related defects, and their combinations, are generated. Here, a corresponding idea of -defective' needs to be initialised in the form of a variety of defects including nitrogen-vacancy (NV), substitutional nitrogen (Ns), interstitial nitrogen (Ni), divacancy (VV), monovacancy (V) and interstitial carbon (Ci) and a combination of any two of them. Specifically, we first build a 3 × 3 × 3 perfect diamond supercell. Next, we randomly create the different defects within the diamond lattice. Finally, we perform a random perturbation on the atoms' position and the lattice parameters ranging from 10 % to 30 %. The third part of our dataset is from the iteration loop to improve the accuracy of force and energy error.

DFT calculation

The synthetic samples are then applied to DFT single-point calculations based on the CASTEP code16. The Perdew-Burke-Ernzerhof (PBE) exchange-correlation functional17 is utilised with ultrasoft pseudopotentials. The cutoff energy is set to 600 eV and the Monkhorst-Pack (MP) grid spacing is specified to 0.02.

Training the GAP-CN potential

After constructing the dataset through first-principles calculations, the input sets are trained into a GAP using the Quippy code18,19. The fitting programme is parallelised over nodes using ScaLAPACK with MPI and OpenMP on a high-performance computing (HPC) machine20. Table 1 summarises the GAP-CN training parameters and the three classes of descriptors used (up to 2-body, 3-body and SOAP). The regularisation parameters for the expected errors on energies and forces are set to 0.001 eV/atom and 0.02 eV/Å. (For additional training details, please refer to the Supplementary Information in Figs. SI1, SI2 and SI4.)

Table 1 Key parameters used in the CN-GAP potential training

Molecular dynamics simulations

After the first trial of GAP fitting, the constructed potential is applied to perform molecular dynamics using the quip pair style implemented in LAMMPS21. In particular, the molecular dynamics simulation is conducted in the environment of a constant-particle number, constant-volume, constant-temperature (NVT) ensemble using a Nose-Hover thermostat at a temperature of 3000 K for 10 ps with the time step of 2 fs. This enables the generation of sufficient snapshots for the iteration procedure and provides adequate perturbation on the constructed defective structure. These constructed structures will serve as new 'CN_defect related structure' dataset in Fig. 2.

TDDFT calculation

A general workflow for this section is illustrated in Fig. 3. The simulation begins with a pure NV structure in a supercell diamond lattice comprising 510 carbon atoms and 1 nitrogen atom. Two main tasks are then performed subsequently. The first task focuses on investigating the differences in the excited states of NV at 0 K and 300 K. Calculations were performed at 300 K for two primary reasons: firstly, photoluminescence (PL) measurements were conducted at room temperature; and secondly, to examine the influence of room temperature on the emission spectrum. The 0 K structure is generated by geometry optimisation, accelerated using the GAP-CN potential via the ASE package22. On the other hand, the 300 K pure NV sample undergoes an additional step involving an NVT ensemble molecular dynamics simulation, from which seven snapshots are extracted at equal time intervals of 250 fs each. (Details can be found in Supplementary Information graph SI3) All these constructed samples are then used in linear-scaling TDDFT simulations with ONETEP23 to calculate absorption properties. The second task involves comparing the excited states across various ensembles of NV and Ci. The random ensemble samples are generated by placing a single carbon atom into the pure NV sample at random, followed by geometry optimisation accelerated using the GAP-CN potential. Analogously, these optimized configurations will be applied in TDDFT simulations for absorption spectrum comparison. There are 100 randomly constructed samples of NV + Ci used for the TDDFT calculations.

Fig. 3
figure 3

Details of workflow for absorption spectrum investigation.

Sample construction

The input NV sample in a 4 × 4 × 4 supercell diamond structure is constructed by CrystalMaker for further process24. The atomic simulation environment (ASE) is employed to process geometry optimization with the constructed GAP-CN potential. During the procedure of geometry optimization, the optimizer of BFGS25 is applied with the converged criterion force on all individual atoms less than 0.001 eV/ Å. There are 100 randomly constructed samples containing one NV and one Ci for further linear scaling TDDFT calculations.

Linear scaling DFT

The aforementioned structures are then applied in ONETEP23 for a single point, conduction and TDDFT calculation. In particular, PBE exchange-correlational functionals26 are used for all the simulations, while a pseudopotential is employed in treating the interaction between core and valence electrons. To explicitly model the real electronic structure of NV, one extra charge is added into the system and the spin-polarized feature is turned on. The overall spin of the system is fixed appropriately as 2. The cutoff energy and the Non-orthogonal Generalized Wannier Functions (NGWFs) are converged with the value of 1000 eV and 9 Bohr radii. To better describe the conduction band convergence, the radius of NGWFs increases to 10 Bohr radii. Twelve conduction bands are optimized and ten TDDFT states are calculated.

Molecular dynamics

The molecular dynamics simulation for NV at 300 K is conducted using LAMMPS (Large-scale Atomic/Molecular Massively Parallel Simulator) with the GAP-CN potential is implemented with QUIP21. The MD simulations are executed at 300 Kelvin using a Nose-Hoover thermostat in the NVT ensemble. Atomic velocities are initialized based on a specified temperature using a random seed, and the simulation time step is set to 1 femtosecond and the duration time for the simulation is 2000 fs. The temperature profile is checked to stabilize at around 300 K with a less than 20 K fluctuation. Seven final snapshots are extracted at equal time intervals for subsequent linear scaling TDDFT calculations.

Molecular dynamics for NV +Ci

This simulation aims to investigate the possible diffusion mechanisms of Ci around NV during laser annealing. Two models are considered in this part: the Vacancy Side Model, where Ci is initially located on the vacancy side of NV, and the Nitrogen Side Model, where Ci is placed on the nitrogen side of NV. The detailed settings of the molecular dynamics simulation are the same as those used in the previous NVT ensemble (refer to the SI), except that the temperature is adjusted to 2600 K to balance computational resources and efficiency. Although in real laser annealing experiments, the diffusion of Ci might be exciton-assisted rather than thermally driven27, NVT ensemble molecular dynamics simulations provide a comprehensive understanding of the possible movement of Ci around NV.

Results and discussion

Validation of the GAP-CN potential

Diffusion barrier comparison

This generated potential will primarily be used to study the diffusion of defects in diamond. To this end, we recalculated the diffusion barrier energies for V, NV, and Ci defects for comparison. To investigate the vacancy diffusion, we optimise the initial and final geometry as shown in Fig. 4a where a single layer of diamond in the 〈111〉 direction is displayed. The diffusion barrier of a vacancy is calculated using the Python library Atomic Simulation Environment (ASE)22 with the nudged elastic band (NEB) method, by tracing the potential energy of the diffusing carbon atom. The calculated diffusion barrier is 2.1 eV (Fig. 4a) and the experimental value is 2.3 eV28, which is an 8% difference. The inversion of the NV defect exhibits a hopping barrier of 5.11 eV across the entire system, as shown in Fig. 4b, with a 6% discrepancy compared to the 4.8 eV barrier height reported in ref. 29. For the investigation of the diffusion barrier of interstitial carbon, a thermal dynamics method is applied. This method is based on the Arrhenius equation (AE), expressed as follows:

$$r={r}_{0}\times {e}^{(-\frac{{E}_{diffusion}}{{k}_{b}T})}$$
(1)

Here, r represents the diffusion frequency, r0 corresponds to the frequency factor, which remains constant, while kb is the Boltzmann constant and T represents the corresponding temperature. To initiate the simulation, the same sample containing one interstitial carbon in a 6 × 6 × 6 diamond supercell is subjected to NVT molecular dynamics simulations at temperatures of 2000, 2300, 2500, 2700, and 3000 K. The simulation employs the Nose-Hover thermostat for 10 ps with the time step of 2 fs. For each temperature simulation, we record the hopping frequency of interstitial carbon. Using Equation (1), we can simplify the relationship between the diffusion frequency r and the temperature 1/T as follows:

$$\ln (r)=-\frac{{E}_{diffusion}}{{k}_{b}}\times \frac{1}{T}+\ln ({r}_{0})$$
(2)

In this case, the diffusion barrier of interstitial carbon in diamond can be determined from the slope of the linear plot of \(\ln (r)\) against 1/T. As shown in Fig. 4c, a linear fit is presented, and the diffusion barrier energy is calculated to be 1.8 eV. This result is consistent with the experimental findings in ref. 30, which report an activation energy of 1.68 eV. A summary of the diffusion energy comparison is provided in Table 2.

Fig. 4: A summary of the validation tests for the GAP-CN potential.
figure 4

Applied the Nudged Elastic Band (NEB) method to investigate (a) the diffusion barrier of vacancies in diamond, and (b) the barrier for NV inversion. Graph (c) illustrates an analysis of the diffusion barrier of interstitial carbon using a thermodynamic approach. d Comparison of the formation energies computed by GAP-CN, GAP2013, CASTEP and related reference on nitrogen-vacancy (NV) (DFT-PBE)33, vacancy (V) (DFT-PBE)34, interstitial carbon (Ci) (experimental results)35 and substitutional nitrogen (Ns) (DFT-B3LYP)36.

Table 2 Comparison of diffusion barriers for various defects

Formation energy comparison

This section further investigates the stability of each studied defect, including NV, V, Ci, Ns, and Ni. Since the entire dataset is trained in the neutral charge state, the comparison will be conducted based on neutral charge. The procedure for computing the formation energy follows equation (3), as shown below:

$${E}_{f}={E}_{tot}-\sum _{i}{n}_{i}{E}_{i}$$
(3)

where ni is the number of atoms of element i in the system and Ei is the chemical potential of an atom of an element i. For an individual carbon atom, it is calculated by the total energy of a diamond lattice structure divided by the number of carbon atoms, whereas for a single nitrogen atom, the chemical potential is determined by half the total energy of N2 in a sufficiently large box with 10 Å as its length. The calculated formation energy for each defect obtained using the GAP-CN, GAP-20 potential as well as using CASTEP16 with the PBE exchange-correlation functional is presented in Fig. 4d. As shown in the figure the nitrogen-related defects NV, Ns and Ni display a small formation energy error, but the absolute formation energy error is 1 eV for vacancy and is approximately 2 eV for Ci. It can be observed that the trained GAP-CN potential shows an improvement in the formation energy error for both V and Ci compared to the GAP-20 potential.

Pure negatively charged NV centre in diamond

In this section, the NV defect is optimized using the constructed GAP-CN potential, which serves as the input for subsequent TDDFT calculations. The training dataset for GAP-CN consists entirely of neutral configurations, while the TDDFT calculations include one negative charge. Notably, the addition of this extra charge does not significantly affect the atomic configuration of the structure. A comparison of positional variations for NV optimized by GAP-CN, NV0 optimized by CASTEP-PBE, and NV optimized by CASTEP-PBE is provided in the SI 6, showing that the largest variation is less than 0.02 Å. We can therefore assume that the configurations sampled from the neutral system are a good approximation to those that would be sampled from the charged system, justifying our use of the neutral system in our MD and geometry optimizations.

The results of pure NV at 300K demonstrate a tiny split on the exey orbitals which can be found on one example snapshot of its corresponding DOS graph in Fig. 5b Specifically, the energy splitting of the two degenerated orbitals is around 0.08 eV. This implies that the thermal effect on lattice distortion at 300K would potentially split the excited states on exey orbitals, thus affecting their transition properties. According to the Franck-Condon theory, if the potential energy surfaces of the ground and excited states are approximately harmonic, the absorption and emission spectra will be symmetric about the zero-phonon line (ZPL). In this case, the simulated absorption spectrum of pure NV at both 0 K and 300 K can be transformed into the emission spectrum by applying a mirror symmetry to the ZPL located at a wavelength of 637 nm. The comparison between experimental data and simulation can be found in graph 5a. It can be observed from the graph that the emission spectrum of the pure NV at both 0 K and 300 K aligns well with the experimental data at the peak of the emission spectrum, validating the simulation results. Meanwhile, the tiny splitting of the degenerate orbitals would result in a blue shift in the emission spectrum with a value of around 5 nm. This implies that the thermal influence at 300 K is not strong enough to affect the PL signal since its emission can still be detected.

Fig. 5: Results of pure negatively charged NV centre in diamond.
figure 5

a A comparison of emission spectrum on NV centre between experimental data and TDDFT simulation at both 0 K and 300 K. Specifically, the simulated NV centre at 0 K is marked in red, while the averaged spectrum at 300 K is coloured green. b A snapshot at 300 K is extracted to compare the density of states of NV at 0 K.

Negatively charged NV centre and interstitial carbon

In this section, the optimized NV + Ci structure is used in TDDFT calculations to investigate the blinking phenomenon observed in the PL experimental data. The simulation results are categorized as 'Bright,' 'Spike,' and 'Dark' based on their absorption spectra, compared to the absorption spectrum of pure NV in diamond obtained from TDDFT simulations. It is worth noting that TDDFT with the PBE functional typically underestimates the transition energy for the ground-state transition from 3A2 to 3E by approximately 0.1 eV, as reported in ref. 31. This discrepancy results in a slight blue shift in the absorption spectrum, corresponding to a wavelength difference of ~20–30 nm. Such an adjustment aligns better with the absorption process, as indicated by our results, where the pump laser, operating at 532 nm, appears to correspond to a lower wavelength range.

Non-hybridization (Bright)

Non-hybridization means the orbitals of NV and interstitial carbon can be analyzed separately. In our previous study12, it was shown that non-hybridization implies no effect on NV emission, whereas hybridization is likely to influence NV emission. An illustration of the absorption spectrum for an example of the non-hybridized situations can be found in Fig. 6a where two main peaks can be addressed at around 1370 nm and 600 nm. To further investigate the transition behind these peaks, their corresponding hole states and electron states are present in Fig. 6c Meanwhile, a typical DOS from the non-hybridized situation is presented in graph 6b Combining the DOS plot and hole-electron orbitals, the absorption peak located at around 1370 nm refers to the transition from NV's exey manifolds to Ci's π bond in the spin-up configuration while the peak at 600 nm can be interpreted as a localised transition on the NV colour centre which is a orbital to exey orbitals. Since the localised transition from NV remains and there is no obvious shift on its corresponding absorption peak, it can be concluded that in non-hybridization, the absorption procedure during experiments will not be affected significantly.

Fig. 6: An example of results for non-hybridization (Bright).
figure 6

a An illustration of the absorption spectrum on all the non-hybridized situations. b A featured density of state (DOS) plot on the non-hybridized situation. c. A demonstration of transition on the electronic orbitals of the ground state (\(\bar{a}\)) to the excited states (\({\bar{e}}_{x}\) or \({\bar{e}}_{y}\)) of the NV centre at the wavelength of around 600 nm and a transition from the ground state (ex or ey) to the excited states (π) of interstitial carbon whose wavelength is around 1400 nm.

Hybridization (Spike)

In this situation, a hybridized state between NV centre and Ci transition is detected at the wavelength around 700 nm and the transition from NV will be weaker as the increase of hybridized component between NV centre and Ci. This tendency can be observed from Fig. 7 where the absorption peak from around 600 nm decreases gradually as the absorption strength at 700 nm becomes stronger. Details of the absorption peak interpretations can be found in Fig. 7a where an example of weak-hybridization is present. In this graph, there are three main absorption peaks at around 600 nm, 700 nm and 1300 nm. Because the excited pump laser is at the wavelength of 532 nm, marked as a dashed line in green, the absorption peak localized at 1300 nm may not be transferred to the excited state. The transition at 600 nm can be regarded as the transition within NV centre from \(\bar{a}\) to \({\bar{e}}_{x}\,{\bar{e}}_{y}\) orbitals despite the weakening of absorption strength by comparing to the pure original NV absorption peak. An interesting effect happens at the peak from 700 nm, which corresponds to a transition from the \(\bar{a}\) state of the NV to a 'weak-hybridized' state which is a hybridisation of the NV centre's \({\bar{e}}_{x}\,{\bar{e}}_{y}\) states and the Ci's π state. This 'weak-hybridized' phenomenon could directly reduce the transition intensity at 600 nm, potentially accounting for the blinking signal observed during the fluorescence procedure. Furthermore, with the increase of hybridization, the transition at 700 nm will be stronger whereas the transition at ~600 nm will weaken and vanish eventually. This suggests that the absorption will weaken and potentially disappear altogether in the case of strong hybridization.

Fig. 7: An example of results for hybridization (Spike).
figure 7

a An example of weak-hybridized on both the absorption spectrum and its corresponding transition manifolds. b An illustration of progression in absorption spectrum from weak to strong hybridized situation and its corresponding hole-electron states.

To better understand the progress of hybridization and its influence on the transition within NV centre, further absorption spectrum analysis is performed on three different levels of hybridization, shown in Fig. 7. As can be extracted from the graph, with the increase of absorption strength for the 700 nm peak, defined as the signal of hybridization, the 600 nm transition localised on the NV centre weakens gradually. The corresponding electron-hole configuration for those marked absorption peaks is depicted on the right, where the volume of the isosurface around interstitial carbon highly determines the level of hybridization intensity. Another key finding from the graph is that for the bottom situation, all the orbitals from interstitial carbon are fully hybridized with NV centre, presenting no peaks around 1300 nm.

Others (Dark)

Except for the Non-hybridization and Hybridization scenarios, the absorption spectra of the remaining situations, defined as Others, are relatively complicated. A summary can be found in the bottom graph Fig. 8b Although it is not possible to systematically analyse these spectra in terms of the NV and Ci defect states, it can be observed from the graph that all of the peaks in these spectra are shifting further away from the wavelength of the pump laser at 532 nm. This indicates that there will be no excitation among all of these other situations. Examination of individual situations showed that this significant shift in the absorption spectrum can be caused by hybridization, energy level shifting, charge relocation, and other effects.

Fig. 8: A summary of all the simulated cases on one negatively charged NV and one interstitial carbon.
figure 8

a An illustration of PL signal in the experiment. b An illustration of 'Bright', 'Spike' and 'Dark' states together with their corresponding absorption spectrum. c Total energy variance for the simulated situations. d Spatial distribution for the classified situations. The NV centre is located at the centre of the supercell, while the rest corresponds to interstitial carbon where 'Bright', 'Spike' and 'Dark' locations are marked in cyan, blue and black.

Summary and spatial distribution analysis

After investigating some individual situations on non-hybridization, hybridization and others, the overview of the absorption spectra of all the random samples can be re-plotted by the classification, shown in Fig. 8b In the graph, non-hybridization is marked in cyan, presenting 'Bright' states in the absorption procedure while hybridization is coloured in blue, showing 'blinking' states. Finally, due to the right shift of all the 'others' situations, they are tagged in night blue, showing 'dark' states during the excitation procedure.

The graph c in Fig. 8 demonstrates the spatial distribution on Ci and NV of all the situations contained in this research. The carbons located at the pristine diamond lattice are eliminated by the Wigner-Seitz approach32. From our previous study12, we learn that under the annealing procedure, the interstitial carbon is mobile with a possibility to diffuse around the formed NV centre. The total energy for each simulated configuration is displayed in Fig. 8b, revealing that the maximum energy difference between random samples is less than 2 eV while most of the variance is less than 0.5 eV. This implies that interstitial carbon can migrate to all of these positions, hopping between the states of 'Bright', 'Spike', and 'Dark' during the laser annealing procedure.

Among all the simulated situations, around 20% of them are shown as 'Bright', 20% of them are marked as 'Spike' and the rest of them are present in the 'Dark' state. The outcomes associated with these states are significantly influenced by atomic configurations, the spatial proximity of defects and charge states.

Molecular dynamics simulations

The previous section demonstrated that when Ci is localized around the NV centre, the PL signal may exhibit blinking due to the presence of hybridized orbitals between NV and Ci. This section presents two MD simulations using the NVT ensemble at a temperature of 2600 K, with Ci positioned either on the vacancy side or the nitrogen side of NV. These simulations aim to provide a qualitative understanding of the diffusion mechanism of Ci around NV, and therefore how the configurations studied in the previous sections may emerge dynamically.

Vacancy side model

In this simulation, the interstitial carbon is positioned at the vacancy side of the NV centre, approximately 6 Å away. An overview of the simulation procedure can be found in Fig. 9a where snapshots captured at specific time intervals are presented. The carbon atoms in the regular diamond lattice have been removed using Wigner-Seitz defect analysis32 for better visualization. The distance of interstitial carbons from the vacancy position is plotted as a function of simulation time. Combining the tracking snapshots with the corresponding distance data, we observe that initially, the interstitial carbon relaxes into a split-〈100〉 interstitial carbon configuration, which is the predominant configuration. However, at approximately 3200 fs, one of the interstitial carbons combines with the vacancy position, leading to the disappearance of the NV centre. This observation is clearly present in the plot, where the distance between interstitial carbon 1 and the vacancy abruptly decreases to zero, indicating the merger of the interstitial carbon with the vacancy site.

Fig. 9: Results of molecular dynamics simulations for two different models.
figure 9

a An overview of NVT molecular dynamics simulation illustrates the recombination of Ci and V defects, particularly when the Ci is initially located immediately next to the vacancy side of the NV centre. b A general graph illustrating the initial placement of an interstitial on the nitrogen side of the NV centre indicates that it will tend to diffuse away over time.

Nitrogen side model

The same simulation is conducted with the initial condition of the Ci being situated at the nitrogen side of the NV centre, as depicted in Fig. 9b. The displacement between these two defects is ~6 Å. From the figure, it is evident that within the first 2000 fs, the interstitial carbons diffuse away from the NV centre. However, after 2000 fs, the interstitial carbon diffuses around the boundary of the supercell with a noticeable tendency to diffuse back towards the NV centre.

In summary, the model suggests that if an interstitial is present on the vacancy side of the NV defect, the PL signal will evolve from 'Blink' to 'Off' since the interstitial finally recombines with the vacancy of the NV centre. However, if the Ci is located on the nitrogen side of the NV centre, it will tend to diffuse away, leading to the PL evolving from 'Blink' to 'On'.

Discussion

In this work, we combine the linear-scaling DFT method together with machine-learning potential GAP to investigate the physical processes behind fluorescence intermittency prior to NV formation. The study initialises with the construction of a GAP-CN potential based on the existing GAP-20 potential. This GAP-CN potential is then applied to assist in the input structure for TDDFT calculation and molecular dynamics simulations. A summary of conclusions is listed below: 1) The results of TDDFT on pure NV centre in diamond indicate a spectral shift of ~5 nm in emission at 300 K compared to 0 K. This implies that the thermal influence at room temperature is not strong enough to produce the spiking signal in PL measurement. 2) Optimized random configurations containing one NV centre and one interstitial carbon (Ci) were generated for TDDFT analysis. Based on their absorption spectra, these configurations were categorized into 'Bright,' 'Spike,' and 'Dark' states, providing an explanation for the blinking behaviour observed in PL signals. 3) Machine-learning-driven molecular dynamics simulations provided insights into potential diffusion mechanisms for Ci around the NV centre under laser annealing. The simulations suggest that Ci may either recombine with the NV centre, leading to its disappearance in PL measurements, or diffuse away, allowing for the formation of a NV centre. This explains the observed intermittent loss and reappearance of NV centres in PL data.

While our results provide one possible explanation for the blinking signal observed in photoluminescence (PL) measurements, there are limitations in our simulations that should be considered. In the TDDFT calculations, the annealing procedure was not explicitly simulated. Under such conditions, different ensembles of defects could result in varying charge states, potentially leading to diverse spectral outcomes. Additionally, even when the system is pumped into an excited state, relaxation can occur via both radiative and non-radiative pathways. These competing processes may contribute to the observed blinking behaviour, suggesting that the dynamics of the excited state play a more complex role than captured in our current model. Similarly, in the molecular dynamics simulations, we employed a heat-driven model to investigate diffusion mechanisms. However, in real experiments, the process is believed to be exciton-driven rather than solely thermally activated. This distinction may lead to differences in the dynamics and the underlying mechanisms of defect recombination and diffusion.