# Fileset

[Kageura_Carbon2024_MDR.pdf](https://mdr.nims.go.jp/filesets/5a4293cd-e69e-4577-99eb-586c5e985e99/download)

## Creator

[Taisuke Kageura](https://orcid.org/0000-0002-9792-5223), [Yosuke Sasama](https://orcid.org/0000-0002-8358-6101), Keisuke Yamada, Kosuke Kimura, Shinobu Onoda, [Yamaguchi Takahide](https://orcid.org/0000-0003-0208-7317)

## Rights

[Creative Commons BY-NC-ND Attribution-NonCommercial-NoDerivs 4.0 International](https://creativecommons.org/licenses/by-nc-nd/4.0/)

## Other metadata

[Surface transfer doping of hydrogen-terminated diamond probed by shallow nitrogen-vacancy centers](https://mdr.nims.go.jp/datasets/ac0dd490-659b-4e81-9761-a5f1e3c45eb7)

## Fulltext

Surface transfer doping of hydrogen-terminated diamond probed by shallownitrogen-vacancy centersTaisuke Kageura,1, 2 Yosuke Sasama,3 Keisuke Yamada,4 Kosuke Kimura,4, 5Shinobu Onoda,4 and Yamaguchi Takahide1, 6, a)1)Research Center for Materials Nanoarchitectonics, NationalInstitute for Materials Science (NIMS), Tsukuba 305-0044,Japan2)National Institute of Advanced Industrial Science and Technology (AIST),Tosu 841-0052, Japan3)International Center for Young Scientists, National Institute for Materials Science(NIMS), Tsukuba 305-0044, Japan4)National Institutes for Quantum Science and Technology (QST),Takasaki 370-1292, Japan5)Graduate School of Science and Technology, Gunma University, Kiryu, 376-8515,Japan6)University of Tsukuba, Tsukuba, 305-8571, Japan1The surface conductivity of hydrogen-terminated diamond is a topic of great interestfrom both scientific and technological perspectives. This is primarily due to the factthat the conductivity is exceptionally high without the need for substitutional dop-ing, thus enabling a wide range of electronic applications. Although the conductivityis commonly explained by surface transfer doping due to air-borne surface acceptors,there remains uncertainty regarding the main determining factors that govern thedegree of band bending and hole density, which are crucial for the design of elec-tronic devices. Here, we elucidate the dominant factor influencing band bending bycreating shallow nitrogen-vacancy (NV) centers beneath the hydrogen-terminated di-amond surface through nitrogen ion implantation at varying fluences. We measuredthe photoluminescence and optically detected magnetic resonance (ODMR) of theNV centers, as well as the surface conductivity, as a function of the nitrogen im-plantation fluence. The disappearance of the conductivity with increasing nitrogenimplantation fluence coincides with the appearance of photoluminescence and ODMRsignals from negatively charged NV centers. This finding indicates that band bendingis not exclusively determined by the work-function difference between diamond andthe surface acceptor material, but by the finite density of surface acceptors. Thiswork emphasizes the importance of distinguishing work-function-difference-limitedband bending and surface-acceptor-density-limited band bending when modeling thesurface transfer doping, and provides useful insights for the development of devicesbased on hydrogen-terminated diamond.Keywords: Diamond, Transfer doping, NV center, Two-dimensional hole gas,Hydrogen-terminated surfacea)Corresponding author. E-mail address: yamaguchi.takahide@nims.go.jp21. INTRODUCTIONDiamond has excellent properties as a wide bandgap semiconductor and quantum ma-terial and has potential applications in power electronics1,2, communication2, computing3,4,and sensing5,6. An unusual property of diamond that could be used for such applications isits surface conductivity when it is terminated with hydrogen1,2,7. P-type surface conductiv-ity appears when hydrogen-terminated diamond is exposed to air even when the diamond isnot intentionally doped, offering a unique solution to the problem of inefficient charge-carriergeneration in diamond through substitutional doping1,7. The surface conductivity can be ba-sically explained by the surface transfer doping concept1,7–9. Here, atmospheric adsorbates,such as water and NO2, on hydrogen-terminated surfaces act as acceptors. Electrons in thevalence band of diamond are transferred to the acceptors, which induces band bending andgenerates holes below the diamond surface. Apart from atmospheric adsorbates, depositedoxides also act as acceptor materials1,2,7.The magnitude of the band bending induced by surface transfer doping and the corre-sponding areal density of holes and ionized acceptors are important information for design-ing devices based on hydrogen-terminated diamond. The hole density directly relates to thesheet resistance and current density. The ionized acceptors behave as scattering sources,and the hole mobility therefore depends on their density. It is generally assumed that theband bending due to electron transfer proceeds until the Fermi level of diamond aligns withthat of the (isolated) surface acceptor material or, equivalently, the surface potential energyof diamond reaches the work-function difference between the diamond and surface accep-tor material7–9. For certain ranges of surface acceptor density and nitrogen concentrationin diamond, however, the band bending due to electron transfer would not be as large asthat10,11. Such a surface transfer doping limited by the surface acceptor density and nitrogenconcentration has not been investigated in detail.In this study, we implanted nitrogen ions with ranging from 1011 to 1013 cm−2 in thesurface of diamond and investigated the implantation-fluence dependence of the surfaceconductivity of air-exposed hydrogen-terminated diamond. Furthermore, we carried outphotoluminescence (PL) and optically detected magnetic resonance (ODMR) measurementson shallow nitrogen-vacancy (NV) centers created from the implanted nitrogen, which pro-vided information on the potential energy and electric field near the diamond surface. The3results of the experiments were compared with simulations based on the Schrödinger-Poissonequations under the assumption that the surface potential is constant or that the surfaceionized acceptor density is constant irrespective of the nitrogen implantation fluence. Theresults suggest that band bending is not exclusively determined by the work-function differ-ence between diamond and the surface acceptor material, but by the finite density of surfaceacceptors, which is approximately 1012 cm−2 under our experimental conditions. This studydemonstrates that shallow NV centers can be used to gain insights into surface transferdoping of hydrogen-terminated diamond.2. METHODS2.1. Experimental methodsTwo samples (Sample A and B) were made from high-purity single-crystal diamond plateswith a nitrogen concentration below 5 ppb and boron concentration below 1 ppb. (SeeAppendix B for details of the sample preparation.) Schematic diagrams of the samples areshown in Fig. 1. Shallow NV centers were created by nitrogen (15N) ion implantation withan implantation energy of 10 keV and subsequent annealing at 1000˚C. The implantednitrogen atoms (and created NV centers) were distributed with a mean depth of ≈15 nmaccording to a SRIM (Stopping and Range of Ions in Matter) simulation12. The surface ofthe samples was divided into four sections that had different nitrogen implantation fluences:1×1011, 2×1011, 5×1011, and 1×1012 cm−2 in Sample A, and 1×1012, 2×1012, 5×1012, and1 × 1013 cm−2 in Sample B. The diamond surface was hydrogen-terminated in a hydrogenplasma in a microwave-plasma-assisted chemical vapor deposition (CVD) chamber.The PL imaging and ODMR measurements were performed using a home-built confocalmicroscope system13. A green laser with a wavelength of 532 nm was used for excitation, andfluorescence from the NV centers was detected with an avalanche photo diode through a 648-nm long-pass filter or guided to a spectrometer through a 561-nm long-pass filter. To obtainthe cw-ODMR spectra, the fluorescence intensity was measured by continuously irradiatingthe sample with the green laser and sweeping the frequency of the applied microwaves. Thesurface conductivity was measured with a two-terminal method using two prober needles incontact with the diamond surface. (See Appendix C for details of the measurement setup.)4The charge state of an NV center can be negative (-1), neutral (0), or positive (+1)depending on the Fermi level EF at its position. These different charge states can be dis-tinguished by making PL and ODMR measurements. (See Appendix A for details.) Thecalculated NV+/NV0 and NV0/NV− transition levels are at E+/0NV = 1.1 eV and E0/−NV = 2.7eV above the valence band maximum14. This means that the NV center is in the NV−state for EF>E0/−NV , NV0 state for E+/0NV <EF<E0/−NV , and NV+ state for EF<E+/0NV . Therefore,once the charge state of the shallow NV centers is determined from PL and ODMR, it canbe used to identify the energy range of the Fermi level at the positions of the NV centers.The electric field at the positions of the NV centers can also be estimated from the ODMRfrequency.15,162.2. ModelingThe band bending (the dependence of the potential φ on the depth z) in hydrogen-terminated diamond was calculated by solving the Schrödinger-Poisson equations16–18. (SeeSection S1 of the Supplementary Material for details.) The band bending is caused bysurface transfer doping (capture of electrons by surface acceptors) and the resulting positivecharges (positively charged donors and holes) generated in diamond. Nitrogen in diamondacts as a donor with a deep level 1.7 eV below the conduction band minimum. Therefore,the band bending depends significantly on the implanted nitrogen density as well as thebackground bulk nitrogen concentration.Boundary conditions are necessary for solving the Poisson equation. The boundary con-dition dφdz(z→∞) = 0 is used for deep inside diamond. Two different boundary conditionsare used at the surface (z = 0). One is that the surface potential φ(0) (relative to deepinside the diamond) is constant irrespective of the implantation fluence. The other is thatthe surface electric field dφdz(z = 0) (φ′(0)) is constant irrespective of the implantation fluence.These two conditions correspond to the following situations.The constant φ(0) boundary condition corresponds to the situation where the band bend-ing due to the electron transfer proceeds until the surface potential energy−eφ(0) reaches thework function difference between the diamond and surface acceptor material. This situationis the one of the original surface transfer doping model.8 The constant φ(0) boundary con-dition assumes that the surface acceptor density is large enough to generate positive charge5in diamond that can bend the band until −eφ(0) reaches the work function difference.The constant φ′(0) boundary condition corresponds to the situation where the ionizedacceptor (negative charge) density on diamond surface is constant. Here, φ′(0) = eεSn−SA,where n−SA is the density of negatively charged surface acceptors. This boundary conditionis applicable when the density of surface acceptors is not large enough. Even when thesurface acceptors are fully ionized, the band does not bend until −eφ(0) reaches the workfunction difference.The difference in the two boundary conditions may become clearer by considering bandbending in an ideal pn junction of silicon, for example. Here, let us assume that the densitiesof donors in the n-type layer and acceptors in the p-type layer are both 1017 cm−3 and thatthe n-type layer is thick enough. If the p-type layer is also thick enough, the band bendsuntil the total band bending coincides with the difference (0.83 eV at 300 K) between thework functions of the n- and p-type layers19. The depletion region extends to 73 nm depthin both layers. However, if the p-type layer is as thin as 1 nm (i.e., the total areal densityof acceptors is limited to be 1010 cm−2), the depletion region in the n-type region (and p-type region) extends only to 1 nm because of charge neutrality, resulting in a band bendingof only 1.5×10−4 eV, which is much smaller than the work-function difference. The bandbending is limited by the finite areal density of acceptors in this case. Note that, even inthis case, the Fermi level is equal everywhere when equilibrium is achieved. However, theFermi level in the p-type layer is close to the conduction band minimum as in the n-typelayer. This Fermi level position is far from the Fermi level of a p-type layer that is isolatedor before the junction is formed.3. RESULTS AND DISCUSSION3.1. Results of the simulation3.1.1. Constant φ(0) boundary conditionLet us first show the results for the constant φ(0) boundary condition. Figure 2a showsthe band bending for implantation fluences of 1×1011 and 7×1012 cm−2. The bulk nitrogenand boron concentrations are assumed to be 5 and 1 ppb, respectively. The surface potentialenergy −eφ(0) relative to deep inside the diamond is assumed to be 3.8 eV. The electron6affinity of hydrogen-terminated diamond is -1.3 eV20 and the Fermi level of diamond withnitrogen and boron concentrations of 5 and 1 ppb is -1.7 eV, indicating that the workfunction of the diamond is 0.4 eV. Therefore, the surface potential energy of 3.8 eV meansthat the work function of the surface acceptor material is 4.2 eV. This value is nearly thesame as the one assumed in the original surface transfer doping model8.For an implantation fluence of 1011 cm−2, bulk nitrogen donors are ionized from thesurface to deep inside the diamond and the band bending is gradual due to the small con-centration (5 ppb) of the positively charged donors. (See Figs. S1b and S1d for the depthprofile of ionized impurities.) In contrast, the band bends steeply for an implantation fluenceof 7× 1012 cm−2 due to the large density of ionized implanted nitrogen. (See Figs. S1f andS1h for the depth profile of ionized impurities.) Figure 3b shows the electric field at thesurface and the negative surface charge density as a function of implantation fluence. Theelectric field and negative charge density increase with increasing implantation fluence. Thenegative charge density reaches 8.6×1012 cm−2 for an implantation fluence of 1×1013 cm−2.This means that this constant φ(0) boundary condition (for an implantation fluence lessthan 1× 1013 cm−2) is valid only when the surface acceptor density is larger than 8.6× 1012cm−2.The hole density is affected by the strong dependence of the band bending on the im-plantation fluence. As the implantation fluence increases, the confinement potential for thehole gas becomes steeper (Fig. 2b). This makes the quantized levels (the maximum energiesof the valence subbands) depart from the Fermi level, which results in a decrease in holedensity (Fig. 3c). Note that the hole density also depends strongly on φ(0). The holedensity decreases substantially even for [Nimp] = 0 as −eφ(0) decreases from 3.8 to 3.6 eV(Fig. S2b).The charge state of the shallow NV centers is determined by the position of the Fermilevel relative to the NV0/NV− and NV+/NV0 transition levels. Figures 2c and 2d showthe depth profiles of the charge state of the shallow NV centers for implantation fluences[Nimp] of 1 × 1011 and 7 × 1012 cm−2. For [Nimp] = 1 × 1011 cm−2, all the NV centers arepositively charged because the Fermi level is below the NV+/NV0 transition level for theentire depth range in which the NV centers are distributed. (See also Figs. S1c and S1d.)For [Nimp] = 7×1012 cm−2, the band bends rapidly and the Fermi level crosses the NV+/NV0and NV0/NV− levels within a narrow range of ≈20 nm below the surface (Fig. S1g). The7charge state varies from NV+ to NV0 and from NV0 to NV− as the position of the NV centerbecomes deeper (Fig. S1h). Figure 3d shows the integrated density of NV+, NV0, and NV−as a function of implantation fluence. A relatively high implantation fluence of ≈5.5× 1012cm−2 is required to obtain negatively charged NV centers for this constant φ(0) boundarycondition. This implantation fluence does not significantly depend on φ(0) (Fig. S2a) andis much larger than the fluence (≈2 × 1012 cm−2) at which the hole layer disappears (Fig.3c).3.1.2. Constant φ′(0) boundary conditionNext, let us turn to the results for the constant φ′(0) boundary condition. Figure 2eshows the band bending for implantation fluences of 1 × 1011 and 1.5 × 1012 cm−2. Thenegative surface charge density n−SA is assumed to be 1× 1012 cm−2, and this corresponds toφ′(0) of 0.317 MV/cm. In the case of [Nimp] = 1 × 1011 cm−2, the negative surface chargeis balanced mostly with the positive charge of holes generated near the surface, but alsowith the positive charge of the ionized bulk nitrogen and ionized implanted nitrogen. Bulknitrogen is ionized from the surface to deep inside the diamond. (See Figs. S3b and S3dfor the depth profile of ionized impurities.) Because the concentration of bulk nitrogen islow, the band bends gradually and the Fermi level is close to the valence band maximumat z = 0. In the case of [Nimp] = 1.5 × 1012 cm−2, the negative surface charge is balancedmostly with the positive charge of the ionized implanted nitrogen (Figs. S3f and S3h). Theelectric field appears only just below the surface and the magnitude of the band bending issmall. The Fermi level is far above the valence band maximum, and holes are not generated.Figure 3e shows the surface potential energy plotted as a function of implantation fluence.The surface potential energy rapidly decreases when the implantation fluence approachesthe negative surface charge density. Figure 3g shows the hole density plotted as a functionof implantation fluence. The hole density at [Nimp] = 0 is slightly lower than the negativesurface charge density (by the amount of the space charge density caused by the ionizedbulk nitrogen). The hole density decreases with increasing implantation fluence and goes tozero at an implantation fluence slightly lower than the negative surface charge density.The implantation-fluence dependence of the charge state of the NV centers for the con-stant φ′(0) boundary condition (Fig. 3h) significantly differs from that for the constant8φ(0) boundary condition. (Fig. 3d) The charge state of the NV centers changes steeplyfrom NV+ to NV0 and from NV0 to NV− in a small range of implantation fluences, whichreflects the steep decrease in the surface potential shown in Fig. 3e. The charge states ofall the NV centers change at nearly the same implantation fluence (Figs 2g and 2h), whichis in contrast to the distribution of different charge states along the depth direction for theconstant φ(0) boundary condition (Fig. 2d). It is also worth noting that the transition ofthe charge state of the NV centers and ceasing of hole generation occur at nearly the sameimplantation fluence, which is characteristic to the constant φ′(0) boundary condition.3.1.3. Which surface boundary condition is appropriate?Which boundary condition at the surface is appropriate for a given situation would dependon the surface acceptor density and the work function difference between the diamond andsurface acceptor material. If the surface acceptor density is large, and/or if the work functiondifference is small, the constant φ(0) boundary condition is appropriate. In contrast, if thesurface acceptor density is small, and/or if the work function difference is large, the φ′(0)constant boundary condition is appropriate. (The applicable boundary condition in thepresent study may depend on the nitrogen implantation fluence. See Section S2 of theSupplementary Material.) The acceptor density and work function difference depend on theacceptor material and the condition for the gas adsorption or oxide deposition on hydrogen-terminated diamond. The work function of the atmospheric adsorbed water layer dependson the pH and hydrogen concentration8. The surface acceptor density would also stronglydepend on the environment where the diamond is placed. The acceptor density would belimited if molecules that do not act as acceptors adsorb and cover the diamond surface fasterthan the atmospheric acceptors.The calculations of band bending in hydrogen-terminated diamond for different nitrogenimplantation fluences in Refs.17,18 assume an electrolyte layer on the diamond and a constantpotential φ(−∞) in the bulk electrolyte, providing results similar to our calculation underthe constant φ(0) boundary condition. This boundary condition (a constant φ(−∞)) isreasonable for the case of electrolyte gating18 because the potential in the bulk electrolyteis maintained by applying a gate bias, but whether it is appropriate or not for the case ofair-exposed hydrogen-terminated diamond17 remains to be examined. The band-bending9calculations in Refs.11,16 assume a fixed density of ionized adsorbed acceptors, but neglectthe formation of subbands due to quantum confinement. The calculation in Ref.16 assumesacceptor-type surface defect states as well as adsorbed acceptors. The Fermi-level-dependentdensities of ionized nitrogen and NV centers are not included in the space charge densityin the Poisson equation in Ref.11. As shown below, our experimental results are in betteragreement with the calculation under the constant φ′(0) boundary condition than they arewith the calculation under the constant φ(0) boundary condition.3.2. Experimental results and discussionThe PL measurements were carried out on samples with different implantation-fluenceregions before and after hydrogen plasma treatment. The PL intensity is plotted againstimplantation fluence in Fig. 4a. The intensity is the average over the 20 µm × 20 µmarea of the PL images taken through a 648-nm long-pass filter. The diamond surface beforethe hydrogenation is oxygen-terminated because of the acid treatment. The PL intensityof the oxygen-terminated samples increases nearly linearly with implantation fluence. Thisobservation suggests that the yield of the NV centers created by the ion implantation andsubsequent vacuum annealing is independent of the implantation fluence, which is consonantwith an earlier study in a low fluence range21. The PL intensity decreases after the hydrogenplasma treatment, and the decrease is more prominent at low fluences. Figure 4b shows theratio of the PL intensity of the hydrogen-terminated surface to that of the oxygen-terminatedsurface.The decrease in the PL intensity after hydrogenation can be attributed predominantly totwo mechanisms. One is the transformation of NV centers to NVH defects due to hydrogendiffusion22, and the other is the stabilization of the NV+ state due to band bending causedby the hydrogenation and surface transfer doping17. Note that the transition from NV−to NV0 also causes a decrease in PL intensity in our setup because a 648-nm long-passfilter was used for the PL intensity measurements. For a fluence of 1013 cm−2, the NVcenters should primarily be in the NV− state, along with a smaller number in the NV0 state,whereas the NV+ state can be ruled out, even after the hydrogenation, because of the highconcentration of nitrogen that acts as a donor. Therefore, the decrease in the PL intensityfor [Nimp] = 1×1013 cm−2 is mainly due to the formation of NVH defects. As the probability10of the NVH formation is not expected to be higher for a lower fluence, the decrease in thePL intensity after hydrogenation in the low fluence range is attributed to stabilization ofthe NV+ (and NV0) state due to band bending.PL spectra were measured (using a 561-nm long-pass filter) to assign NV0 and NV−contributions to the PL (Fig. 5a). The 637-nm zero phonon peak and broad phonon sideband, which are characteristic to NV−, appear for [Nimp]≥1× 1012 cm−2, while the 637-nmzero phonon peak disappears and the broad-band emission is shifted to a shorter wavelengthfor [Nimp]<5 × 1011 cm−2. A similar effect of the nitrogen fluence on the PL spectra wasreported in Ref.23 for NV centers below the hydrogen-terminated surface created with 5-keVnitrogen implantation. To evaluate the NV−/NV0 population ratio, the measured PL spectrawere fitted using NV0 and NV− reference spectra. The NV0 and NV− reference samples wereprepared by controlling the density of donors (nitrogen) and acceptors (boron). The relativecontributions of NV0 and NV− centers to the PL were evaluated from a least-squares fit ofthe PL spectra with a linear combination of the reference spectra. (See Section S3 of theSupplementary Material for the details of the preparation of NV0 and NV− reference spectraand fitting.) Then, the NV+/NV0/NV− population ratio was calculated as shown in Fig. 5busing the NV0 and NV− contributions to PL and the PL-intensity ratio between the oxygen-and hydrogen-terminated surface. (See Section S4 in the Supplementary Material for detailsof the calculation.) The NV+ state is dominant at low fluences, while the proportion ofNV− centers increases for [Nimp]≥1 × 1012 cm−2. The transition of the charge state wascorrelated with the implantation-fluence dependence of the surface conductivity (Fig. 5c).The conductivity decreases as the implantation fluence increases, and it nearly disappearswhen the implantation fluence reaches (1 − 2) × 1012 cm−2, at which the NV centers startto be negatively charged.Figure 6 shows ODMR spectra obtained at 15 randomly selected spots in the PL images(20 µm × 20 µm area) of different fluence regions (Fig. S7). No ODMR dips are visiblefor [Nimp] = 2× 1011 and 5× 1011 cm−2, while ODMR dips are visible in all the spectra for[Nimp]≥1× 1012 cm−2. This indicates the presence of the NV− centers for [Nimp]≥1× 1012cm−2. Here, only two dips are visible in the spectra although PL signals from ensembles ofNV centers were detected. This is because the magnetic field was aligned along the [001] axisof the diamond crystal to make the four possible N-V directions relative to the field directionequivalent (Fig. S9) and to enable a quantitative comparison of ODMR contrasts for different11implantation fluences. Figures 7a and 7b show the implantation fluence dependence ofthe ODMR contrasts obtained by Lorentzian fits to the ODMR spectra (Fig. S8). TheODMR contrasts increase with increasing fluence, suggesting an increase in the NV−/NV0ratio. This is consistent with a relative change in the NV− concentration obtained fromthe PL spectra (Fig. 5b). It is worth noting that Rabi oscillations were also observedfor [Nimp]≥1 × 1012 cm−2 (Fig. S10). Figures 7c and 7d show the implantation fluencedependence of the ODMR frequencies. The frequencies are independent of the implantationfluence within an experimental precision of ≤0.3 MHz. This indicates that the electricfield at the position of the NV− centers does not substantially depend on implantationfluence, as discussed below. Note that the ODMR measurements were made at 15 individualfluorescence spots for [Nimp] = 1× 1011 cm−2. Dips are visible in the ODMR spectra of oneof these spots (Fig. 6a and S8a). As individual fluorescence spots can be distinguished for[Nimp] = 1× 1011 cm−2 (Fig. S7a), the 15 spots cannot be regarded as randomly selected. Ifthey were randomly selected in the whole image (not limited to the fluorescence spots), theprobability of detecting ODMR would be close to zero, as is the case for [Nimp] = 2 × 1011and 5× 1011 cm−2.Here, let us compare the experimental results with simulations. The observation that theNV− state appears for [Nimp]≥1 × 1012 cm−2 is difficult to explain with the band-bendingmodel with the constant φ(0) boundary condition. If we keep assuming that the surfacepotential energy −eφ(0) is 3.8 eV, the NV0/NV− transition energy level E0/−NV must beassumed to be very low (≈0.6 eV above the valence band maximum) to make the NV−state stable for [Nimp]≈1 × 1012 cm−2. This transition energy level is substantially lowerthan 2.7-2.9 eV (above the valence band maximum) reported in the literature14,24. If weuse a value of 2.7 eV for E0/−NV , −eφ(0) must be as low as ≈1.6 eV to make the NV− statestable for [Nimp]≈1× 1012 cm−2. The low surface potential energy means a large (positive)electron affinity of diamond and/or a small work function of surface acceptors. As the surfacepotential energy decreases, the hole density decreases rapidly (Fig. S2b). No hole appearsfor the small surface potential energy of ≈1.6 eV even at [Nimp] = 0, which is inconsistentwith the experimentally observed conductivity. The simulation in Ref.17 also indicates thatNV centers created with an implantation energy of 10 keV are not negatively charged for[Nimp]≤3× 1012 cm−2.The band-bending model with the constant φ′(0) boundary condition can explain the12observation of NV− centers for [Nimp]≈1 × 1012 cm−2 if a negative surface charge densityof ≈1 × 1012 cm−2 is assumed, as shown in Fig. 3h. The presence of the negative surfacecharge also leads to the generation of holes with a density of ≈1× 1012 cm−2 for [Nimp] = 0(Fig. 3g). As the hole mobility of hydrogen-terminated diamond exposed to air is ≈200cm2V−1s−1 (Ref.25), the hole density of 1 × 1012 cm−2 corresponds to a conductivity of3× 10−5 Ω−1, which is in reasonable agreement with those (2.6× 10−5 Ω−1 and 1.7× 10−5Ω−1) observed in the non-implanted region of the samples. It is worth noting that thevalue of the negative surface charge density is comparable to the one estimated from themobility of field-effect transistors made of hydrogen-terminated diamond exposed to air anda hexagonal boron nitride gate insulator26. Furthermore, the model with the constant φ′(0)boundary condition is consistent with the finding that ceasing of hole conduction and anincrease in the NV− ratio occur at a similar nitrogen implantation fluence.Another experimental observation that is consistent with the constant φ′(0) boundarycondition is the nitrogen-implantation-fluence dependence of the ODMR frequency. Thepositions of the dips in the ODMR spectra are independent of the implantation fluencewithin an experimental precision of ≤0.3 MHz. (Figs. 7c and 7d) When the constant φ′(0)boundary condition is used, the calculated average electric field at the positions of the NV−centers is smaller than 0.17 MV/cm and is a decreasing function of implantation fluence for[Nimp]≥1× 1012 cm−2 (Fig. 7f). In this case, the shift in the ODMR frequency due to thevariation in the electric field is less than 0.1 MHz (Figs. 7g and 7h; See Section S5 of theSupplementary Material for the details of the calculation.), which could not be resolved inour experiment. When the constant φ(0) boundary condition is used, however, the calculatedaverage electric field at the positions of the NV− centers varies from ≈0.1 to ≈0.9 MV/cmwith increasing implantation fluence (Fig. 7e). This increase in the electric field shifts theODMR frequency by ≈2 MHz (Figs. 7g and 7h), which could be detected experimentally.Thus, the nitrogen-implantation-fluence dependence of the ODMR frequency is also moreconsistent with the constant φ′(0) boundary condition than the constant φ(0) boundarycondition.The band-bending model with the constant φ′(0) boundary condition thus essentiallyexplains the nitrogen-implantation-fluence dependences of the PL, ODMR, and conductivity.However, there is some discrepancy between the experiment and calculation. The calculated[Nimp] dependence of NV+/NV0/NV− ratio has a sharp threshold near [Nimp] = 1×101213cm−2 (Fig. 3h), whereas the experimental transition from NV+ to NV− is gradual (Fig.5b). The NV− state and hole conductivity appear to coexist at [Nimp] = 1 × 1012 cm−2(Figs. 5b and 5c), which is not explained by the calculation (Figs. 3g and 3h). Thediscrepancy may be caused by spatial inhomogeneities in the negative surface charge andimplanted nitrogen, which are not considered in the calculation. For implantation fluencesnear the threshold, conductive non-fluorescent (NV+) regions and insulating fluorescent(NV−) regions may coexist within a length scale of the resolution of the optical microscope.When the average density of the negative surface charge (or implanted nitrogen) is 1×1012cm−2, which corresponds to 1/(10 nm)2, it is likely that its local density varies on a lengthscale of order 10 nm. Specifically, the negative surface charges may concentrate on the stepedges of the hydrogen-terminated diamond (001) surface27, which could lead to coexistenceof filamentary conductive regions and insulating fluorescent regions on such a length scale.The smaller ODMR contrast for [Nimp] = 1×1012 and 2×1012 cm−2 than for [Nimp] = 5×1012and 1×1013 cm−2 (Figs. 7a and 7b) could be caused by the presence of intermediate regionswhere the NV centers are in the NV0 state. The finite NV0/NV− ratio for [Nimp] = 1×1013cm−2 may be caused by photo-induced conversion from NV− to NV0 due to the laser lightillumination24.4. CONCLUSIONSWe have shown that shallow NV centers below the hydrogen-terminated diamond surfacecreated with different nitrogen implantation fluences can provide novel information on thedominant factor that determines the band bending in surface transfer doping. In particular,we found that, with increasing nitrogen implantation fluence, the charge state of shallowNV centers estimated from PL and ODMR measurements changes from the NV+ to NV−state at an implantation fluence of ≈1 × 1012 cm−2. Moreover, the conductivity decreaseswith increasing implantation fluence and nearly disappears in a similar implantation fluencerange. These results, together with the simulated implantation fluence dependences, indi-cate that the band bending is limited by a negative surface charge density (surface acceptordensity) of ≈1×1012 cm−2 under our experimental conditions. This means that band bend-ing does not necessarily proceed until the surface potential energy of diamond reaches thework-function difference between the diamond and surface acceptor material as is generally14thought to occur. In addition, our results have also shown spatial inhomogeneities in thesurface conductivity and the charge state of the NV centers when the implantation fluenceis close to the negative surface charge density.This work highlights the importance of distinguishing work-function-difference-limitedband bending and surface-acceptor-density-limited band bending when treating the surfacetransfer doping of hydrogen-terminated diamond. This finding will be critical for designingdevices based on hydrogen-terminated diamond, particularly for cases in which the densityof atmospheric surface acceptors is reduced28. Another implication of this work is thatcontrolling the impurity concentration in diamond is important for hydrogen-terminateddiamond devices. The impurity concentration has a strong effect on the carrier density, as isindicated by the nitrogen-implantation-fluence dependence of the conductivity. In the case ofhydrogen-terminated diamond FETs, the threshold voltage29 and channel mobility26 dependon the impurity concentration. In addition, the impurity concentration must be adjusted toprevent reach through and achieve a high breakdown voltage. For this purpose, adjustingthe nitrogen concentration by using ion implantation would be a useful approach. Our workthus provides helpful insights that could be used in the development of hydrogen-terminateddiamond devices.Appendix A. NV centersNV centers are defects composed of a substitutional nitrogen and an adjacent vacancyin diamond. The charge state of an NV center can be negative (-1), neutral (0), or positive(+1) depending on the Fermi level EF at its position. These different charge states can bedistinguished by their photonic and magnetic properties.The NV− state has a spin S = 1 and exhibits photoluminescence (PL) with a 637 nmzero phonon line and broad phonon sideband when the diamond is illuminated by a 532-nm excitation light. It is possible to polarize the spin to mS = 0 through illumination of532-nm light and to make a transition between mS = 0 and mS = ±1 by irradiating thediamond with 2.87 GHz microwaves at room temperature. The spin state can be detectedby measuring the PL intensity because the PL intensity for the mS = ±1 state is weakerthan that for mS = 0. These properties of the NV− state allow magnetic resonance to beobserved optically (optically detected magnetic resonance; ODMR)5,30.15The NV0 state shows PL with a 575-nm zero phonon line and broad phonon sideband.The NV0 state has a spin S = 1/2, but it does not give rise to ODMR. Therefore, the NV−and NV0 states can be distinguished by their PL spectra and observation of ODMR specificto NV−. The NV+ state does not show any PL in the visible wavelength range, which isunlike NV− and NV0.NV centers can be created close to the surface of diamond through nitrogen ion implanta-tion and subsequent annealing. The implantation energy determines the depth distributionof nitrogen and hence, that of the NV centers. This study treats nitrogen and NV centersthat are created with an implantation energy of 10 keV and are distributed at depths ofaround 15 nm. The creation yield of NV centers from implanted nitrogen atoms is ≈1% foran implantation energy of 10 keV31.The calculated NV+/NV0 and NV0/NV− transition levels are at E+/0NV = 1.1 eV andE0/−NV = 2.7 eV above the valence band maximum14. This means that the NV center is inthe NV− state for EF>E0/−NV , in the NV0 state for E+/0NV <EF<E0/−NV , and in the NV+ statefor EF<E+/0NV . Therefore, once the charge state of shallow NV centers is determined by PLand ODMR measurements, it can be used to identify the energy range of the Fermi level atthe positions of the NV centers. The electric field at the positions of the NV centers canalso be estimated from the ODMR frequency.15,16Appendix B. Sample preparationTwo samples were made from ≈2.2 × 2.2 × 0.5 mm high-purity single-crystal diamondplates with a (001) top surface cut from 4.5× 4.5× 0.5 mm electronic grade diamond plates(Element Six) with a nitrogen concentration below 5 ppb and boron concentration below 1ppb. The top surface of the plates was polished by Syntek Co., Ltd. The plates were cleanedin a mixture of sulfuric and nitric acids at 200˚C and rinsed in deionized water. The plateof Sample A was additionally cleaned in organic solvents (acetone and isopropyl alcohol).The top surface of each diamond plate was divided into four sections (I, II, III, andIV). Nitrogen ion implantation was carried out with different fluences on the four sectionsby using aluminum foil masks. An implantation with a fluence of 1 × 1011 cm−2 was firstcarried out on all sections of Sample A without a mask. Then, a second implantation witha fluence of 1×1011 cm−2 was carried out by masking section I. A third implantation with a16fluence of 3×1011 cm−2 was carried out by masking two sections (I and II). Finally, a fourthimplantation with a fluence of 5×1011 cm−2 was carried out by masking three sections (I, IIand III). The total fluences for the four sections of Sample A were 1×1011, 2×1011, 5×1011,and 1× 1012 cm−2. Implantations were similarly carried out for Sample B with fluences anorder of magnitude larger than those for Sample A. The total fluences for the four sectionsof Sample B were 1×1012, 2×1012, 5×1012, and 1×1013 cm−2. After the ion implantation,the plates were cleaned in the acid mixture and rinsed in deionized water as before. Theplates were then annealed in vacuum at 1000˚C for two hours to form NV centers. Afterthat, the plates were cleaned in the acid mixture and rinsed in deionized water again.After formation of NV centers, the diamond plates were exposed to hydrogen plasma ina microwave-plasma-assisted CVD chamber (Seki Technotron, AX5000) to make the surfacehydrogen terminated. The hydrogen gas pressure, flow rate, microwave power, treatmenttime and temperature were 10 Torr, 50 sccm, 100 W, 30 min, and <600˚C (the detectionlimit of our pyrometer), respectively. Soft hydrogen plasma was used to avoid reducing thefluorescence of the NV centers22. The quality of hydrogen termination made under the abovecondition was evaluated through contact angle measurements. The contact angle was foundto be ≈90˚, which is characteristics to the hydrophobic nature of the hydrogen-terminatedsurface32. The hydrogen plasma treatment was carried out separately on the two samples.After the treatment, the samples were exposed to air for approximately 2 days before themeasurements were started.Appendix C. Measurement setupPL imaging and ODMR measurements were performed using a custom-built confocalmicroscope system. Details of the setup are described in Ref.13. The diamond plate wasplaced on an epoxy board with a microwave planar ring antenna. A green laser with awavelength of 532 nm was used for excitation. The laser was focused on the sample thoroughan objective lens (Olympus, MPLAPON50X; NA 0.95, WD 0.35 mm). The laser intensityin front of the objective lens was controlled in the range 1 − 200 µW by using an NDfilter. Fluorescence was detected with an avalanche photo diode through a 648-nm long-pass filter in the PL-mapping and ODMR measurements. Alternatively, it was guided toa spectrometer (Teledyne Princeton Instruments, SpectraPro HRS-300) through a 561-nm17long-pass filter. To obtain cw-ODMR spectra, the fluorescence intensity was measured bycontinuously irradiating the sample with a green laser and sweeping the microwave frequency.In the Rabi-oscillation measurements, pulsed microwaves at the resonance frequency (mS =−1) determined by cw-ODMR were irradiated with the sequence described in Ref.13. Amagnetic field of ≈2 mT was applied to the sample by using a permanent magnet, whichled to peak splitting in the ODMR spectra.The surface conductivity was measured with a two-terminal method. Two prober needlesmade of Au-based alloy and with a tip radius of 50 µm were put in contact with the hydrogen-terminated surface in the central region of each section (I, II, III, and IV) of Sample A andB. The distance between the probe contacts was ≈150 µm. Current-voltage characteristicswere measured with a source-measure unit (Keysight Technologies, B2902A) for applyinga voltage between 0.1 and −0.1 V and a current preamplifier (DL Instruments, 1211) formeasuring the current. The current-voltage characteristics were linear, and the conductancewas obtained from linear fits.CRediT authorship contribution statementTaisuke Kageura: Investigation, Methodology, Formal Analysis, Writing - review &editing. Yosuke Sasama: Methodology, Resources. Keisuke Yamada: Resources. Ko-suke Kimura: Resources. Shinobu Onoda: Investigation, Methodology, Resources.Yamaguchi Takahide: Conceptualization, Investigation, Methodology, Formal Analysis,Software, Resources, Writing - original draft, Supervision.Declaration of competing interestThe authors declare that they have no known competing financial interests or personalrelationships that could have appeared to influence the work reported in this paper.ACKNOWLEDGMENTSWe thank Y. Kubo and J. Isoya for allowing the use of the NV0 reference samples.We thank J. Inoue and T. Teraji for their helpful discussions and K. Hino, T. Uchihashiand T. Ando for their support. We also thank M. Monish for correcting the draft. Thisstudy was financially supported by JSPS KAKENHI (Grants No. 19H02605, 22H01962, and1823H01429).REFERENCES1M. W. Geis, T. C. Wade, C. H. Wuorio, T. H. Fedynyshyn, B. Duncan, M. E. Plaut,J. O. Varghese, S. M. Warnock, S. A. Vitale, and M. A. Hollis, “Progress toward diamondpower field-effect transistors,” physica status solidi (a) 215, 1870050 (2018).2H. Kawarada, “Diamond p-FETs using two-dimensional hole gas for high frequency andhigh voltage complementary circuits,” Journal of Physics D: Applied Physics 56, 053001(2023).3J. Wrachtrup and F. Jelezko, “Processing quantum information in diamond,” Journal ofPhysics: Condensed Matter 18, S807 (2006).4L. Childress and R. Hanson, “Diamond NV centers for quantum computing and quantumnetworks,” MRS bulletin 38, 134–138 (2013).5R. Schirhagl, K. Chang, M. Loretz, and C. L. Degen, “Nitrogen-vacancy centers in di-amond: nanoscale sensors for physics and biology,” Annual review of physical chemistry65, 83–105 (2014).6J. F. Barry, J. M. Schloss, E. Bauch, M. J. Turner, C. A. Hart, L. M. Pham, and R. L.Walsworth, “Sensitivity optimization for NV-diamond magnetometry,” Reviews of ModernPhysics 92, 015004 (2020).7K. G. Crawford, I. Maini, D. A. Macdonald, and D. A. Moran, “Surface transfer dopingof diamond: A review,” Progress in Surface Science 96, 100613 (2021).8F. Maier, M. Riedel, B. Mantel, J. Ristein, and L. Ley, “Origin of surface conductivity indiamond,” Physical review letters 85, 3472 (2000).9J. Ristein, “Surface transfer doping of diamond,” Journal of Physics D: Applied Physics39, R71 (2006).10J. Ristein, M. Riedel, M. Stammler, B. Mantel, and L. Ley, “Surface conductivity ofnitrogen-doped diamond,” Diamond and related materials 11, 359–364 (2002).11V. Petráková, A. Taylor, I. Kratochv́ılová, F. Fendrych, J. Vaćık, J. Kučka, J. Štursa,P. Ćıgler, M. Ledvina, A. Fǐserová, P. Kneppo, and M. Nesládek, “Luminescence ofnanodiamond driven by atomic functionalization: Towards novel detection principles,”Advanced Functional Materials 22, 812–819 (2012).1912J. F. Ziegler, M. D. Ziegler, and J. P. Biersack, “SRIM–The stopping and range of ions inmatter (2010),” Nuclear Instruments and Methods in Physics Research Section B: BeamInteractions with Materials and Atoms 268, 1818–1823 (2010).13T. Kageura, Y. Sasama, C. Shinei, T. Teraji, K. Yamada, S. Onoda, and Y. Takahide,“Charge stability of shallow single nitrogen-vacancy centers in lightly boron-doped dia-mond,” Carbon 192, 473–481 (2022).14P. Deák, B. Aradi, M. Kaviani, T. Frauenheim, and A. Gali, “Formation of NV centersin diamond: A theoretical study based on calculated transitions and migration of nitrogenand vacancy related defects,” Physical review B 89, 075203 (2014).15F. Dolde, H. Fedder, M. W. Doherty, T. Nöbauer, F. Rempp, G. Balasubramanian, T. Wolf,F. Reinhard, L. C. L. Hollenberg, F. Jelezko, and J. Wrachtrup, “Electric-field sensingusing single diamond spins,” Nature Physics 7, 459 (2011).16D. A. Broadway, N. Dontschuk, A. Tsai, S. E. Lillie, C.-K. Lew, J. C. McCallum, B. John-son, M. Doherty, A. Stacey, and L. Hollenberg, “Spatial mapping of band bending in semi-conductor devices using in situ quantum sensors,” Nature Electronics 1, 502–507 (2018).17M. Hauf, B. Grotz, B. Naydenov, M. Dankerl, S. Pezzagna, J. Meijer, F. Jelezko,J. Wrachtrup, M. Stutzmann, and F. Reinhard, “Chemical control of the charge stateof nitrogen-vacancy centers in diamond,” Physical Review B 83, 081304 (2011).18B. Grotz, M. V. Hauf, M. Dankerl, B. Naydenov, S. Pezzagna, J. Meijer, F. Jelezko,J. Wrachtrup, M. Stutzmann, and F. Reinhard, “Charge state manipulation of qubits indiamond,” Nature communications 3, 729 (2012).19D. Jena, Quantum physics of semiconductor materials and devices (Oxford UniversityPress, 2022).20F. Maier, J. Ristein, and L. Ley, “Electron affinity of plasma-hydrogenated and chemicallyoxidized diamond (100) surfaces,” Physical Review B 64, 165411 (2001).21S. Pezzagna, B. Naydenov, F. Jelezko, J. Wrachtrup, and J. Meijer, “Creation efficiencyof nitrogen-vacancy centres in diamond,” New Journal of Physics 12, 065017 (2010).22A. Stacey, T. Karle, L. McGuinness, B. Gibson, K. Ganesan, S. Tomljenovic-Hanic,A. Greentree, A. Hoffman, R. Beausoleil, and S. Prawer, “Depletion of nitrogen-vacancycolor centers in diamond via hydrogen passivation,” Applied Physics Letters 100, 071902(2012).23K. Groot-Berning, N. Raatz, I. Dobrinets, M. Lesik, P. Spinicelli, A. Tallaire, J. Achard,20V. Jacques, J.-F. Roch, A. M. Zaitsev, J. Meijer, and S. Pezzagna, “Passive charge statecontrol of nitrogen-vacancy centres in diamond using phosphorous and boron doping,”physica status solidi (a) 211, 2268–2273 (2014).24N. Aslam, G. Waldherr, P. Neumann, F. Jelezko, and J. Wrachtrup, “Photo-inducedionization dynamics of the nitrogen vacancy defect in diamond investigated by single-shotcharge state detection,” New Journal of Physics 15, 013064 (2013).25Y. Sasama, K. Komatsu, S. Moriyama, M. Imura, T. Teraji, K. Watanabe, T. Taniguchi,T. Uchihashi, and Y. Takahide, “High-mobility diamond field effect transistor with amonocrystalline h-BN gate dielectric,” APL Materials 6, 111105 (2018).26Y. Sasama, T. Kageura, K. Komatsu, S. Moriyama, J.-i. Inoue, M. Imura, K. Watanabe,T. Taniguchi, T. Uchihashi, and Y. Takahide, “Charge-carrier mobility in hydrogen-terminated diamond field-effect transistors,” Journal of Applied Physics 127, 185707(2020).27M. Geis, J. Varghese, A. Vardi, J. Kedzierski, J. Daulton, D. Calawa, M. Hollis, C. Wuorio,G. Turner, and S. Warnock, “Hydrogen and deuterium termination of diamond for lowsurface resistance and surface step control,” Diamond and Related Materials 118, 108518(2021).28Y. Sasama, T. Kageura, M. Imura, K. Watanabe, T. Taniguchi, T. Uchihashi, andY. Takahide, “High-mobility p-channel wide-bandgap transistors based on hydrogen-terminated diamond/hexagonal boron nitride heterostructures,” Nature Electronics 5, 37–44 (2022).29N. Oi, T. Kudo, M. Inaba, S. Okubo, S. Onoda, A. Hiraiwa, and H. Kawarada, “Normally-off two-dimensional hole gas diamond MOSFETs through nitrogen-ion implantation,”IEEE Electron Device Letters 40, 933–936 (2019).30F. Jelezko and J. Wrachtrup, “Single defect centres in diamond: A review,” physica statussolidi (a) 203, 3207–3225 (2006).31T. Lühmann, J. Meijer, and S. Pezzagna, “Charge-assisted engineering of color centers indiamond,” physica status solidi (a) 218, 2000614 (2021).32Z.-C. Ma, N. Gao, S.-H. Cheng, J.-S. Liu, M.-C. Yang, P. Wang, Z.-Y. Feng, Q.-L. Wang,and H.-D. Li, “Wettability and surface energy of hydrogen- and oxygen-terminated dia-mond films,” Chinese Physics Letters 37, 046801 (2020).33F. Fontaine, “Calculation of the hole concentration in boron-doped diamond,” Journal of21applied physics 85, 1409–1422 (1999).34S. Ishii, S. Saiki, S. Onoda, Y. Masuyama, H. Abe, and T. Ohshima, “Ensemble negatively-charged nitrogen-vacancy centers in type-ib diamond created by high fluence electron beamirradiation,” Quantum Beam Science 6, 2 (2022).35C. Shinei, M. Miyakawa, S. Ishii, S. Saiki, S. Onoda, T. Taniguchi, T. Ohshima, andT. Teraji, “Equilibrium charge state of nv centers in diamond,” Applied Physics Letters119, 254001 (2021).36L. Rondin, G. Dantelle, A. Slablab, F. Grosshans, F. Treussart, P. Bergonzo, S. Perruchas,T. Gacoin, M. Chaigneau, H. C. Chang, V. Jacques, and J. F. Roch, “Surface-inducedcharge state conversion of nitrogen-vacancy defects in nanodiamonds,” Physical Review B82, 115449 (2010).37T. Luo, L. Lindner, J. Langer, V. Cimalla, X. Vidal, F. Hahl, C. Schreyvogel, S. Onoda,S. Ishii, T. Ohshima, D. Wang, D. A. Simpson, B. C. Johnson, M. Capelli, R. Blinder,and J. Jeske, “Creation of nitrogen-vacancy centers in chemical vapor deposition diamondfor sensing applications,” New Journal of Physics 24, 033030 (2022).38R. P. Roberts, M. L. Juan, and G. Molina-Terriza, “Spin-dependent charge state inter-conversion of nitrogen vacancy centers in nanodiamonds,” Physical Review B 99, 174307(2019).39M. W. Doherty, J. Michl, F. Dolde, I. Jakobi, P. Neumann, N. B. Manson, andJ. Wrachtrup, “Measuring the defect structure orientation of a single NV- centre in dia-mond,” New Journal of Physics 16, 063067 (2014).40N. Naka, K. Fukai, Y. Handa, and I. Akimoto, “Direct measurement via cyclotron reso-nance of the carrier effective masses in pristine diamond,” Physical Review B 88, 035205(2013).221013101410151016101710181019Density (cm-3)50403020100Depth (nm)HoleNimpNBNV1×1011 2×10115×10111×10121×1012 2×10125×10121×1013cbaH(implanted N)NBNVSurface acceptor materialDiamondSample A Sample BNimp[N     ] =impcm-2HoleFIG. 1. a Schematic diagram of hydrogen-terminated diamond with implanted nitrogen and NVcenters. b Example depth distributions of implanted nitrogen (Nimp), NV centers (NV), back-ground nitrogen (N) and boron (B) assumed in the band-bending calculation, and calculated depthdistribution of holes. The areal density of implanted nitrogen is assumed to be 1 × 1011 cm−2. cSchematic diagram of two samples prepared in this work. Sample A has four sections with nitrogenimplantation fluences of 1×1011, 2×1011, 5×1011, and 1×1012 cm−2. Sample B has four sectionswith nitrogen implantation fluences of 1×1012, 2×1012, 5×1012, and 1×1013 cm−2. The surfacesof the samples are hydrogen-terminated.231086420Energy (eV)2000150010005000Depth (nm) [Nimp] = 1×1011 cm-2 [Nimp] = 7×1012 cm-2EFEVECφ(0) = -3.8 V43210Energy (eV)50403020100Depth (nm) [Nimp] = 1×1011 cm-2 [Nimp] = 7×1012 cm-2EVEVEFφ(0) = -3.8 V1.00.80.60.40.20.0Density (1015 cm-3)50403020100Depth (nm) NV(+) NV(0) NV(-)[Nimp] = 1×1011 cm-2φ(0) = -3.8 V6050403020100Density (1015 cm-3)50403020100Depth (nm) NV(+) NV(0) NV(-)[Nimp] = 7×1012 cm-2φ(0) = -3.8 V1086420Energy (eV)2000150010005000Depth (nm) [Nimp] = 1×1011 cm-2 [Nimp] = 1.5×1012 cm-2EFECEVφ'(0) = 0.317 MV/cm43210Energy (eV)50403020100Depth (nm) [Nimp] = 1×1011 cm-2 [Nimp] = 1.5×1012 cm-2EFEVEVφ'(0) = 0.317 MV/cm1.00.80.60.40.20.0Density (1015 cm-3)50403020100Depth (nm) NV(+) NV(0) NV(-)[Nimp] = 1×1011 cm-2φ'(0) = 0.317 MV/cmφ'(0) = 0.317 MV/cm14121086420Density (1015 cm-3)50403020100Depth (nm) NV(+) NV(0) NV(-)[Nimp] = 1.5×1012 cm-2abcdefgh24FIG. 2. Calculated results for the constant φ(0) boundary condition (φ(0) = −3.8 V; a-d) andconstant φ′(0) boundary condition (φ′(0) = 0.317 MV/cm, corresponding to a negative surfacecharge density of 1 × 1012 cm−2; e-h). a, b Energy-band diagrams for nitrogen implantationfluences [Nimp] of 1 × 1011 and 7 × 1012 cm−2 in a wide depth range (a) and in a narrow rangenear the surface (b). c, d Charge state distribution of NV centers for [Nimp] = 1× 1011 cm−2 (c)and for [Nimp] = 7× 1012 cm−2 (d). e, f Energy-band diagrams for nitrogen implantation fluences[Nimp] of 1× 1011 and 1.5× 1012 cm−2 in a wide depth range (e) and in a narrow range near thesurface (f). g, h Charge state distribution of NV centers for [Nimp] = 1 × 1011 cm−2 (g) and for[Nimp] = 1.5 × 1012 cm−2 (h). EC, conduction band minimum; EV, valence band maximum; andEF, Fermi level.25abcdefgh2.01.51.00.50.0Density (1010 cm-2)2.01.51.00.50.0Nitrogen implantation fluence (1012 cm-2) NV(+) NV(0) NV(-)φ'(0) = 0.317 MV/cmNitrogen implantation fluence (1012 cm-2)1.00.80.60.40.20.0Hole density (1012 cm-2)2.01.51.00.50.0φ'(0) = 0.317 MV/cm0.60.50.40.30.20.10.0Surface electric field (MV/cm)2.01.51.00.50.02.01.51.00.50.0Surface negative charge (1012 cm-2)φ'(0) = 0.317 MV/cmNitrogen implantation fluence (1012 cm-2)43210Surface potential energy (eV)2.01.51.00.50.0φ'(0) = 0.317 MV/cmNitrogen implantation fluence (1012 cm-2)86420Density (1010 cm-2)1086420 NV(+) NV(0) NV(-)φ(0) = -3.8 VNitrogen implantation fluence (1012 cm-2)1.00.80.60.40.20.0Hole density (1012 cm-2)1086420φ(0) = -3.8 VNitrogen implantation fluence (1012 cm-2)3.02.52.01.51.00.50.0Surface electric field (MV/cm)108642086420Surface negative charge (1012 cm-2)φ(0) = -3.8 VNitrogen implantation fluence (1012 cm-2)43210Surface potential energy (eV)1086420φ(0) = -3.8 VNitrogen implantation fluence (1012 cm-2)FIG. 3. Calculated results for the constant φ(0) boundary condition (φ(0) = −3.8 V; a-d) andconstant φ′(0) boundary condition (φ′(0) = 0.317 MV/cm, corresponding to a negative surfacecharge density of 1×1012 cm−2; e-h). The nitrogen-implantation-fluence dependence of the surfacepotential energy (a, e), surface electric field and negative surface charge density (b, f), hole density(c, g), density of the NV+, NV0, and NV− states (d, h).26ab103104105106107PL intensity (cps)1011 1012 1013Nitrogen implantation fluence (cm-2) Sample A, O-terminated Sample B, O-terminated Sample A, H-terminated Sample B, H-terminated0.010.11PL (H-term.) / PL(O-term.)1011 1012 1013Nitrogen implantation fluence (cm-2) Sample A Sample BFIG. 4. a Nitrogen-implantation-fluence dependence of photoluminescence intensity before andafter the hydrogen plasma treatment. The diamond surface before the hydrogen plasma treatmentwas oxygen terminated because of the acid cleaning (Appendix B). The dashed line shows a lineardependence. The intensity for an implantation fluence of ≤1 × 1012 cm−2 after hydrogen plasmatreatment is multiplied by a factor of 1/10 because the excitation laser intensity is 200 µW for theimplantation fluence, while it is 20 µW for higher implantation fluences. The intensities for SampleA and B before the hydrogen plasma treatment are multiplied by a factor of 4 and 20 because theexcitation laser intensities are 5 µW and 1 µW. The reason for the systematic difference in the PLintensity between Sample A and B is unclear, but it may be related to a difference in the qualityof the diamond plates. b Ratio of the PL intensity for the hydrogen-terminated surface to that forthe oxygen-terminated surface plotted as a function of nitrogen implantation fluence.27PL intensity (a.u.)900800700600500Wavelength (nm)1×1013 cm-2 (B)5×1012 cm-2 (B)1×1011 cm-2 (A)2×1011 cm-2 (A)5×1011 cm-2 (A)1×1012 cm-2 (A)1×1012 cm-2 (B)2×1012 cm-2 (B)ca bNV(-)NV(0)1.41.21.00.80.60.40.20.0Conductance (10-5 Ω-1)1011 1012 1013 Sample A Sample BNitrogen implantation fluence (cm-2)1.00.80.60.40.20.0Ratio1011 1012 1013Nitrogen implantation fluence (cm-2) NV(-) NV(0) NV(+)FIG. 5. a PL spectra (brown curves) from regions with different nitrogen implantation fluences inSample A and B. Background spectra measured in non-implanted regions (Fig. S4) are subtracted.The vertical dashed dot (dashed) lines indicate the 575-nm (637-nm) zero phonon line of theNV0 (NV−) centers. The signal level of the spectrum for [Nimp] = 1 × 1011 cm−2 is close to thebackground (Fig. S4) and the large peaks near 575 nm may be due to imperfect backgroundsubtraction. The spectra were fitted with NV0 and NV− reference spectra: the green and bluedashed curves are the contributions from NV0 and NV− centers and the black dashed curve is thesum of them. The green and blue curves in the bottom panel are the NV0 and NV− referencespectra. The gray curve is the spectrum of Sample RINV(0). (See Section S3 of the SupplementaryMaterial.) b Implantation-fluence dependence of the ratio of the charge states (NV+/ NV0/ NV−)estimated from the PL spectra and intensity. Circles and squares represent Samples A and B. cImplantation-fluence dependence of the conductance.280.100.090.080.070.060.050.042.952.902.852.80Frequency (GHz)a b c de f g hPL Intensity (Mcps) 0.080.060.040.022.952.902.852.80Frequency (GHz)0.750.700.650.600.550.502.952.902.852.80Frequency (GHz)2.62.52.42.32.22.952.902.852.80Frequency (GHz)PL Intensity (Mcps) 0.80.70.60.52.952.902.852.80Frequency (GHz)0.220.200.180.162.952.902.852.80Frequency (GHz)1.51.41.31.21.12.952.902.852.80Frequency (GHz)2.62.42.22.01.81.62.952.902.852.80Frequency (GHz)FIG. 6. a-d ODMR spectra for 15 spots in regions with nitrogen implantation fluences of 1× 1011(a), 2 × 1011 (b), 5 × 1011 (c), and 1 × 1012 cm−2 (d) in Sample A. e-h ODMR spectra for 15spots in regions with nitrogen implantation fluences of 1× 1012 (e), 2× 1012 (f), 5× 1012 (g), and1×1013 cm−2 (h) in Sample B. The excitation laser intensity is 20 µW for an implantation fluenceof ≥2× 1012 cm−2 and 200 µW for lower implantation fluences.29e fg hc d0.40.30.20.10.0Electric field (MV/cm)2.01.51.00.50.0Nitrogen implantation fluence (1012 cm-2)φ'(0) = 0.317 MV/cm3.02.52.01.51.00.50.0Electric field (MV/cm)1086420φ(0) = -3.8 VNitrogen implantation fluence (1012 cm-2)2.83542.83522.83502.83482.8346Frequency (GHz) (mS = -1)1011 1012 1013Nitrogen implantation fluence (cm-2) Sample A Sample B2.90942.90922.90902.9088Frequency (GHz) (mS = +1)1011 1012 1013Nitrogen implantation fluence (cm-2) Sample A Sample B0.080.060.040.020.00ODMR contrast (mS = -1)1011 1012 1013Nitrogen implantation fluence (cm-2) Sample A Sample B0.080.060.040.020.00ODMR contrast (mS = +1)1011 1012 1013Nitrogen implantation fluence (cm-2) Sample A Sample Ba b2.83502.83452.83402.83352.83302.8325Frequency (GHz)1.00.80.60.40.20.0Electric field (MV/cm)2.91202.91152.91102.91052.91002.90952.90902.9085Frequency (GHz)1.00.80.60.40.20.0Electric field (MV/cm)30FIG. 7. a,b ODMR contrasts for mS = −1 (a) and mS = +1 (b) as a function of nitrogenimplantation fluence. The contrasts are obtained from Lorentzian fits (Fig. S8) to the ODMRspectra shown in each panel of Fig. 6 and their average over the 15 spectra. The error bars arethe standard deviation of the 15 contrasts obtained from the fits. The contrasts for the spectrawith no dips (spectra that cannot be fitted to Lorentzian) for fluences ≤5 × 1011 cm−2 are setto zero. c,d ODMR frequencies for mS = −1 (c) and mS = +1 (d) as a function of nitrogenimplantation fluence. The frequencies and their error bars are obtained from the Lorentzian fits.e Average electric field at the positions of NV− centers (blue solid line) and electric field at thediamond surface (black dashed line) as a function of nitrogen implantation fluence calculated withthe constant φ(0) boundary condition (φ(0) = −3.8 V). f Average electric field at the positionsof NV− centers (blue solid line) and electric field at the diamond surface (black dashed line) as afunction of nitrogen implantation fluence calculated with the constant φ′(0) boundary condition(φ′(0) = 0.317 MV/cm, corresponding to a negative surface charge density of 1× 1012 cm−2). g,hCalculated electric-field dependence of the ODMR frequencies f− and f+. See Section S5 for thedetails of the calculation.31Supplementary Material for “Surface transfer doping of hydrogen-terminateddiamond probed by shallow nitrogen-vacancy centers”S1. Calculation of band bendingWe calculated the band bending i.e., the dependence of the potential φ(z) on the depthz (z = 0: diamond surface, z≥0: diamond) for cases in which formation of two-dimensionalsubbands due to quantum confinement of holes is considered or neglected. When the quan-tum confinement effect is neglected, only the Poisson equation (S1) shown below is solved.To include the quantum confinement effect, the Poisson and Schrödinger equations (S1 andS22) are solved self-consistently. This paper presents the results of the calculations thatinclude the quantum confinement effect, except for the calculations with the constant φ′(0)boundary condition for a nitrogen implantation fluence larger than 8.8× 1011 cm−2, wherethe Fermi level EF is far above the valence band maximum and the hole density is very low.The Poisson equation is given byd2φ(z)dz2= − eεS[p(z) +NN+(z) +NN+imp(z) +NNV+(z)− n(z)−NB−(z)−NNV−(z)],(S1)where e is the elementary charge and εs is the static dielectric constant of diamond. Eachterm on the right-hand side is explained below. The hole and electron densities, p(z) andn(z), are given by19p(z) = 2(2πkBTh2) 32 [(mLH) 32 +(mHH) 32]F 12(EV(z)− EFkBT)+2(2πmSOkBTh2) 32F 12(EV(z)−∆SO − EFkBT), (S2)n(z) = 12(2πkBTh2) 32 (mLm2T) 12 F 12(EF − EC(z)kBT), (S3)F 12(η) =2√π∫ ∞0duu121 + exp (u− η), (S4)where kB is the Boltzmann constant, T is the absolute temperature, h is the Planck con-stant, and F 12(η) is the Fermi-Dirac integral. The other parameters and values used in the32calculation are shown in Table S1. Note that the valence band maximum EV(z) and con-duction band minimum EC(z) depend on z through the dependence of the potential φ(z)on z.EV(z) = EV(z →∞)− eφ(z), (S5)EC(z) = EV(z) + EG, (S6)where EG is the bandgap. Similarly, all the terms on the right-hand side in Eq. S1 containφ(z). The diamond is assumed to have background nitrogen with a concentration of NN = 5ppb (8.8×1014 cm−3) and background boron with a concentration of NB = 1 ppb (1.76×1014cm−3). The concentrations of positively charged background nitrogen and negatively chargedbackground boron are given byNN+(z) = NN11 + gD exp(EF−ED(z)kBT) , (S7)NB−(z) = NB11 + gA exp(EA(z)−EFkBT) , (S8)gD = 2, (S9)gA = 4 + 2 exp(−∆SOkBT), (S10)ED(z) = EC(z)− ED, (S11)EA(z) = EV(z) + EA, (S12)where gD and gA are the degeneracy factors33, ED and EA are the ionization energy of donors(nitrogen) and acceptors (boron). The Fermi level EF, which is independent of z, is obtainedby solving the charge-neutrality equation for bulk diamond:p(z→∞) +NN+(z→∞)− n(z→∞)−NB−(z→∞) = 0. (S13)The concentration NNimp(z) of implanted nitrogen approximately has a Gaussian distribu-tion:NNimp(z) = nNimp(1−RNV/N) 1√2πσimpexp(−(z − zimp)22σimp2), (S14)33where nNimpis the nitrogen implantation fluence (= [Nimp]), RNV/N is the creation yield ofNV centers from implanted nitrogen atoms, zimp is the mean depth, and σimp is the standarddeviation of the distribution. The creation yield RNV/N is ≈1% for an implantation energyof 10 keV31. We use the values of zimp and σimp obtained from a Gaussian fit to the nitrogendistribution predicted by a SRIM (Stopping and Range of Ions in Matter) simulation12 foran implantation energy of 10 keV. The concentration of ionized implanted nitrogen is givenbyNN+imp(z) = NNimp(z)11 + gD exp(EF−ED(z)kBT) . (S15)The concentration NNV(z) of the NV center is assumed to have the same distribution as theimplanted nitrogen. It is given byNNV(z) = nNimpRNV/N1√2πσimpexp(−(z − zimp)22σimp2). (S16)The concentrations of positively charged, neutral, and negatively charged NV centers aregiven byNNV+(z) = NNV(z)11 + 4 exp(EF−E+/0NV (z)kBT)+ 2 exp(2EF−E+/0NV (z)−E0/−NV (z)kBT) , (S17)NNV0(z) = NNV(z)4 exp(EF−E+/0NV (z)kBT)1 + 4 exp(EF−E+/0NV (z)kBT)+ 2 exp(2EF−E+/0NV (z)−E0/−NV (z)kBT) , (S18)NNV−(z) = NNV(z)2 exp(2EF−E+/0NV (z)−E0/−NV (z)kBT)1 + 4 exp(EF−E+/0NV (z)kBT)+ 2 exp(2EF−E+/0NV (z)−E0/−NV (z)kBT) , (S19)E+/0NV (z) = EV(z) + E+/0NV , (S20)E0/−NV (z) = EV(z) + E0/−NV , (S21)where E+/0NV and E0/−NV are the transition energy levels of NV+/NV0 and NV0/NV−. E+/0NVand E0/−NV are calculated to be 1.1 and 2.7 eV above the valence band maximum14. Thedegeneracy factor of 4 of the NV0 state (in the denominator of the righthand side in Eqs.S17, S18, and S19) comes from the spin and orbital (ex and ey) degrees of freedom. The34degeneracy factor of 2 of the NV− state comes from the orbital (ex and ey) degrees offreedom.The quantum confinement effect of holes is treated by solving the Poisson equation (Eq.S1) and Schrödinger equation,[− h̄22mizd2dz2+ eφ(z)(+∆SO)− Ein]Ψin(z) = 0, (S22)in a self-consistent manner. (∆SO is taken into account only in the calculation for split-offholes.) In this case, the hole density p(z) is given byp(z) =∑i,npin∣∣∣Ψin(z)∣∣∣2 , (S23)pin =mi//kBTπh̄2ln[1 + exp(EF − EinkBT)], (S24)instead of Eq. S2.S2. Applicable boundary condition in our experimentsIn our experiments, the applicable boundary condition at the diamond surface may de-pend on the nitrogen implantation fluence. For example, it is possible that the constant φ(0)boundary condition is applicable to a low implantation fluence where not all of the surfaceacceptors are ionized, whereas the constant φ′(0) boundary condition is applicable to a highimplantation fluence where all of the surface acceptors are ionized. The calculation underthe constant φ′(0) boundary condition with a constant negative surface charge density of1× 1012 cm−2 leads to the result that −eφ(0) is larger than 3.8 eV for implantation fluencesless than 4.7 × 1011 cm−2. In this implantation fluence range, the calculation under theconstant φ(0) boundary condition (−eφ(0) = 3.8 eV) provides a negative surface chargedensity of less than 1×1012 cm−2. Therefore, it is possible that φ(0) is constant (= −3.8 V)for [Nimp]<4.7×1011 cm−2 and φ′(0) is constant (n−SA = 1×1012 cm−2) for [Nimp]>4.7×1011cm−2. As shown in the main text, our experimental results are in better agreement withthe calculation under the constant φ′(0) boundary condition than they are with the calcu-lation under the constant φ(0) boundary condition. However, the constant φ(0) boundarycondition may be appropriate for low implantation fluences ≤2× 1011 cm−2.35S3. NV0 and NV− reference spectraThe reference samples for the NV0 and NV− spectra were prepared by controlling thedensity of donors (nitrogen; P1 center) and acceptors (boron). A NV− reference sample(Sample RNV(−)) was made from a Ib-type HPHT (001) single-crystalline diamond plate(Sumitomo Electric Industries) with a nitrogen concentration of approximately a hundredppm. The diamond plate was irradiated with an electron beam with a fluence of 1018 cm−2and energy of 2 MeV for creating vacancies and annealed in vacuum at 1000˚C for 2 h forforming NV centers. The P1 concentration evaluated by ESR measurements after electronbeam irradiation and before annealing was 134 ppm. The [NV]/[P1] ratio after annealingfor the above condition was estimated to be 1 − 2%. The P1 concentration is sufficientlylarge to make most NV centers be in the negative charge state34. The PL spectrum forthe NV− reference sample was measured with a low excitation power to avoid a photo-induced charge state conversion. NV0 reference samples (Samples RINV(0) and RIINV(0)) wereprepared using two different methods. Sample RINV(0) was made from a IIa-type (001) single-crystalline diamond plate (Element Six) with a relatively low nitrogen concentration of 40ppb (measured by ESR). The isolated nitrogen density was decreased further by convertingnitrogen into a NV center; the diamond plate was irradiated with an electron beam with afluence of 8.5× 1017 cm−2 and energy of 2 MeV and annealed in vacuum at 1000˚C for 2 h.The P1 concentration after the irradiation and annealing was below the detection limit ofthe ESR equipment. The low P1 concentration favors the NV0 state35. Sample RIINV(0) wasmade from a HPHT boron-doped diamond plate with a resistivity of 102 − 103 Ωcm. Thediamond was irradiated with an electron beam with a fluence of 1018 cm−2 and energy of 2MeV and annealed in vacuum at 1000˚C for 2 h.The normalized PL spectra of the NV0 and NV− reference samples are shown in Fig. S5.In a short wavelength range <600 nm, the PL intensity of the NV− reference sample (SampleRNV(−)) is low and indicates that the contribution of NV0 PL is smaller than≈1%. Therefore,we chose the spectrum of Sample RNV(−) as the NV− reference spectrum. The PL spectra ofthe NV0 reference samples prepared with the different methods were in good agreement witheach other. We selected Sample RINV(0), the spectrum of which has a clearer zero phonon line,as the NV0 reference sample. The PL intensities of the NV0 reference sample in a wavelengthrange of 700− 800 nm are nearly the same as 0.4 times the intensities of the NV− reference36spectrum. Therefore, one cannot rule out the possibility that the spectrum of Sample RINV(0)contains PL from NV− centers. We supposed three cases in which 0%, 20% and 40% of thePL of Sample RINV(0) comes from NV− centers. We subtracted the NV− contribution fromthe spectrum of Sample RINV(0) and used it as the NV0 reference spectrum for fitting. (Afterthe subtraction of the NV− contribution, the spectrum is normalized so that the integratedintensity is unchanged.) Figures S6a-c show the fitting results for the three cases. Better fits(for [Nimp] = 1 × 1011 and 5 × 1011 cm−2) are obtained for the ≥20% NV− contribution tothe spectrum of Sample RINV(0). It is also worth noting that the NV0 reference spectrum forthe 20% case is in the best agreement with the spectrum of a single NV0 reported in Ref.36.Figure S6d shows the relative contributions of NV0 and NV− to the PL spectra obtainedby the fitting. Figure S6e shows the NVH/NV+/NV0/NV− relative populations calculatedwith the data shown in Figs. 4b and S6d. (See Section S4 for the calculation.) Figures S6fshows the estimate of NV+/NV0/NV− relative populations. Figures S6d-f show the rangeof uncertainty caused by the uncertainty of the NV− contribution to the PL spectrum ofSample RINV(0). Figures 5a and 5b in the main text shows the results for the case in whichthe NV− contribution to the spectrum of Sample RINV(0) is assumed to be 20%.S4. Analysis of charge states with photoluminescenceWe evaluated the relative population of the charge states (NV+/NV0/NV−) below thehydrogen-terminated surface from the observed PL intensities and spectra by using thefollowing equations. The relative populations of NV+, NV0, and NV− below the oxygen-terminated surface (before hydrogenation), pO+, pO0 , and pO−, followpO+ + pO0 + pO− = 1. (S25)We assume that some of the NV centers are transformed to NVH after hydrogenation. Therelative populations of NVH, NV+, NV0, and NV− below the hydrogen-terminated surface,pHNVH, pH+, pH0 , and pH−, followpHNVH + pH+ + pH0 + pH− = 1. (S26)The ratio of the PL intensity for the hydrogen-terminated surface to that for the oxygen-terminated surface, IHPL/IOPL (Fig. 4b), is given byIHPLIOPL=t0pH0 Γ0 + t−pH−Γ−t0pO0 Γ0 + t−pO−Γ−, (S27)37where Γ0 and Γ− are the photon emission rate of the NV0 and NV− centers, t0 and t− are thetransmittances of the PL signals from NV0 and NV− centers through the 648-nm long-passfilter (used in the PL-intensity measurements). The ratio of the NV0 and NV− contributionsto the PL spectra measured for the hydrogen-terminated surface, cH−/cH0 (Fig. S6d), is givenbycH−cH0=pH−Γ−pH0 Γ0. (S28)From Eqs. S27 and S28, pH0 and pH− can be obtained:pH0 =IHPLIOPL(t0pO0 Γ0 + t−pO−Γ−)1Γ0cH0t0cH0 + t−cH−, (S29)pH− =IHPLIOPL(t0pO0 Γ0 + t−pO−Γ−)1Γ−cH−t0cH0 + t−cH−. (S30)By assuming that pH+ = 0 for a nitrogen implantation fluence of 1013 cm−2 and pHNVH isindependent of nitrogen implantation fluence, one can also obtain pHNVH and pH+ from Eq.S26:pHNVH = 1− pH0 ([Nimp] = 1× 1013cm−2)− pH−([Nimp] = 1× 1013cm−2), (S31)pH+ = 1− pH0 − pH− − pHNVH. (S32)pH0 and pH− were calculated with Eqs. S29 and S30 using the data shown in Figs. 4b andS6d. Here, we assumed that 1/Γ− = 12 ns and 1/Γ0 = 19 ns for high excitation powerconditions37,38. We also assumed that pO+ = 0, pO0 = 0.2, pO− = 0.8 by taking account ofphoto-induced ionization24. The values of pO+, pO0 , and pO− affect the estimate of pHNVH, butdo not affect the final result (Figs. 5b and S6f) on the NV+/NV0/NV− relative populations.The transmittances for the 648-nm long-pass filter were estimated from the NV0 and NV−reference spectra: t− = 0.92 and t0 = 0.55, 0.45, and 0.30 for the 0%, 20%, and 40%cases described in Section S3. pHNVH and pH0 were also obtained with Eqs. S31 and S32.The obtained pHNVH, pH+, pH0 , and pH− are shown in Fig. S6e. Figures 5b and S6f show therelative populations excluding the NVH defects: pH+/(pH+ + pH0 + pH−), pH0 /(pH+ + pH0 + pH−), andpH−/(pH+ + pH0 + pH−).38S5. Calculation of the electric-field-induced shift of the ODMR frequencyWe calculated the electric-field-induced shift of the ODMR frequency by following Ref.39.The spin Hamiltonian of the NV center in the presence of magnetic and electric fields ( ~B,~E) is given byH = (D + kzEz)(Sz2 − 2/3) + γe~S · ~B − kxEx(Sx2 − Sy2) + kyEy(SxSy + SySx), (S33)where ~S are the S = 1 dimensionless electron spin operators, D≈2.87 GHz is the zero-field splitting, γe = geµB/h is the electron gyromagnetic ratio, µB is the Bohr magneton,ge≈2.003 is the electron g-factor, h is the Planck constant, ~B and ~E are magnetic and electricfields, and kz = 3.5 kHz µm V−1 and kx = ky = k⊥ = 170 kHz µm V−1 are the electricsusceptibility parameters. xyz is the coordinate frame defined in Fig. 2 of Ref39, where zis the direction joining nitrogen and vacancy and x is orthogonal to z and contained withinone of the center’s three reflection planes. The ODMR frequencies f± are approximatelyf± = D + kzEz + 3Λ±√R2 − ΛR sinα cos β + Λ2, (S34)where Λ = γe2B⊥2/2D, R =√γe2R2 + k⊥2E⊥2, B⊥ =√Bx2 +By2, E⊥ =√Ex2 + Ey2,tanα = k⊥E⊥/γeBz, β = 2φB+φE, tanφB = By/Bx, tanφE = Ey/Ex. The above expressionfor f± is valid under the conditions, Λ, R << D. We assume that the magnetic and electricfields are parallel to the [001] crystal direction. Therefore, ~B = (√2/3| ~B|, 0, | ~B|/√3) and~E = (√2/3| ~E|, 0, | ~E|/√3). The calculated ODMR frequencies are plotted as a function ofelectric field in Figs. 7g and 7h. Here, D = 2.8705 GHz and | ~B| = 2.29 mT were assumedfor explaining the observed splitting of the ODMR frequencies.39Temperature T 300 KBulk donor (nitrogen) density NN 8.8× 1014 cm−3Bulk acceptor (boron) density NB 1.76× 1014 cm−3Donor (nitrogen) ionization energy ED 1.7 eVAcceptor (boron) ionization energy EA 0.37 eVNV+/NV0 transition level (relative to VBM) E+/0NV 1.1 eVNV0/NV− transition level (relative to VBM) E0/−NV 2.7 eVMean depth of implanted nitrogen zimp 15.1 nmStandard deviation of implanted nitrogen distribution σimp 5.6 nmCreation yield of NV centers from implanted N atoms RNV/N 0.01Bandgap EG 5.47 eVDielectric constant εS/ε0 5.7Spin-orbit splitting energy ∆SO 6 meVEffective mass of heavy hole mHH/m0 0.67Effective mass of light hole mLH/m0 0.26Effective mass of split-off hole mSO/m0 0.375Effective mass of heavy hole along [001] mHHz /m0 0.441Effective mass of light hole along [001] mLHz /m0 0.325Effective mass of split-off hole along [001] mSOz /m0 0.375Effective mass of heavy hole in the (001) plane mHH// /m0 0.288Effective mass of light hole in the (001) plane mLH// /m0 0.536Effective mass of split-off hole in the (001) plane mSO// /m0 0.375Longitudinal effective mass of electron mL/m0 1.56Transverse effective mass of electron mT/m0 0.28Table S1: Parameters used in the calculation. ε0 is the vacuum permittivity. m0 is the rest mass. Theeffective masses are from the experimental results of Ref.40.401086420Energy (eV)2000150010005000Depth (nm)φ(0) = -3.8 V[Nimp] = 1×1011 cm-2EFEVECNV(0/-)NV(+/0)N(+/0)B(0/-)1086420Energy (eV)50403020100Depth (nm)φ(0) = -3.8 V[Nimp] = 1×1011 cm-2EVNV(0/-)EFNV(+/0)ECN(+/0)B(0/-)1013101410151016101710181019Density (cm-3)2000150010005000Depth (nm)N(+)N(0)B(-)B(0)φ(0) = -3.8 V[Nimp] = 1×1011 cm-21013101410151016101710181019Density (cm-3)50403020100Depth (nm)Hole(+)Nimp(+)N(+)B(0)NV(+)φ(0) = -3.8 V[Nimp] = 1×1011 cm-21086420Energy (eV)2000150010005000Depth (nm)φ(0) = -3.8 V[Nimp] = 7×1012 cm-2EFEVECN(+/0)NV(0/-)NV(+/0)B(0/-)1086420Energy (eV)50403020100Depth (nm)φ(0) = -3.8 V[Nimp] = 7×1012 cm-2NV(+/0)EVEFECN(+/0)NV(0/-)B(0/-)1013101410151016101710181019Density (cm-3)2000150010005000Depth (nm)N(0)B(-)N(+)φ(0) = -3.8 V[Nimp] = 7×1012 cm-21013101410151016101710181019Density (cm-3)50403020100Depth (nm)Nimp(+)NV(-)NV(0)NV(+)N(+)B(-)B(0)φ(0) = -3.8 V[Nimp]=7×1012 cm-2abcdefgh41Figure S1: Band diagram, charge transition levels and charge state distribution of nitrogen, boron, andNV centers calculated with the constant φ(0) boundary condition (φ(0) = −3.8 V). a-d Band diagramsand charge transition levels (a,c) and charge state distribution (b,d) for a nitrogen implantation fluence[Nimp] of 1× 1011 cm−2 in a wide depth range (a,b) and in a narrow range near the surface (c,d). e-hBand diagrams and charge transition levels (e,g) and charge state distribution (f,h) for a nitrogenimplantation fluence [Nimp] of 7× 1012 cm−2 in a wide depth range (e,f) and in a narrow range near thesurface (g,h). EC, conduction band minimum; EV, valence band maximum; and EF, Fermi level.abcφ(0) =6543210Density (1010 cm-2)86420Implanted nitrogen density (1012 cm-2) NV(+) NV(0) NV(-)-3.8 V-3.7 V-3.6 Vφ(0) =1.00.80.60.40.20.0Hole density (1012 cm-2)86420Implanted nitrogen density (1012 cm-2)-3.8 V-3.7 V-3.6 Vφ(0) = -1.6 V43210Density (1010 cm-2)43210Implanted nitrogen density (1012 cm-2) NV(+) NV(0) NV(-)Figure S2 Calculated results for the constant φ(0) boundary condition for different values of φ(0). a NV+,NV0, and NV− density as a function of nitrogen implantation fluence for φ(0) = −3.6, −3.7, and −3.8 V.b Hole density as a function of nitrogen implantation fluence for φ(0) = −3.6, −3.7, and −3.8 V. c NV+,NV0, and NV− density as a function of nitrogen implantation fluence for φ(0) = −1.6 V.421086420Energy (eV)2000150010005000Depth (nm)φ'(0) = 0.317 MV/cm[Nimp] = 1×1011 cm-2EFECEVN(+/0)NV(0/-)NV(+/0)B(0/-)1013101410151016101710181019Density (cm-3)2000150010005000Depth (nm)N(+)N(0)B(-)B(0)φ'(0) = 0.317 MV/cm[Nimp] = 1×1011 cm-21086420Energy (eV)50403020100Depth (nm)φ'(0) = 0.317 MV/cm[Nimp] = 1×1011 cm-2EFECEVN(+/0)NV(+/0)NV(0/-)B(0/-)1013101410151016101710181019Density (cm-3)50403020100Depth (nm)Hole(+)Nimp(+)N(+)B(0)NV(+)φ'(0) = 0.317 MV/cm[Nimp] = 1×1011 cm-21086420Energy (eV)2000150010005000Depth (nm)φ'(0) = 0.317 MV/cm[Nimp] = 1.5×1012 cm-2EFECEVN(+/0)NV(0/-)NV(+/0)B(0/-)1013101410151016101710181019Density (cm-3)2000150010005000Depth (nm)N(0)B(-)N(+)φ'(0) = 0.317 MV/cm[Nimp] = 1.5×1012 cm-21086420Energy (eV)50403020100Depth (nm)φ'(0) = 0.317 MV/cm[Nimp] = 1.5×1012 cm-2EFECEVN(+/0)NV(0/-)NV(+/0)B(0/-)1013101410151016101710181019Density (cm-3)50403020100Depth (nm)Nimp(+)N(+)B(-)NV(-)N(0)φ'(0) = 0.317 MV/cm[Nimp] = 1.5×1012 cm-2abcdefgh43Figure S3: Band diagram, charge transition levels and charge state distribution of nitrogen, boron, andNV centers calculated with the constant φ′(0) boundary condition (φ′(0) = 0.317 MV/cm, correspondingto a negative surface charge density of 1× 1012 cm−2). a-d Band diagrams and charge transition levels(a,c) and charge state distribution (b,d) for a nitrogen implantation fluence [Nimp] of 1× 1011 cm−2 in awide depth range (a,b) and in a narrow range near the surface (c,d). e-h Band diagrams and chargetransition levels (e,g) and charge state distribution (f,h) for a nitrogen implantation fluence [Nimp] of1.5× 1012 cm−2 in a wide depth range (e,f) and in a narrow range near the surface (g,h). EC, conductionband minimum; EV, valence band maximum; and EF, Fermi level.103104PL intensity (counts)900800700600500Wavelength (nm) Sample A (background) Sample A  Sample B (background) Sample BabcdefghFigure S4 a Raw data of PL spectra measured in regions with nitrogen implantation fluences of 1× 1011(a), 2× 1011 (b), 5× 1011 (c), and 1× 1012 cm−2 (d) in Sample A and 1× 1012 (e), 2× 1012 (f), 5× 1012(g), and 1× 1013 cm−2 (h) in Sample B. Background spectra measured in non-implanted regions are alsoshown.440.0120.0100.0080.0060.0040.0020.000PL intensity (a.u.)900800700600500Wavelength (nm)NV(-)NV(0)Figure S5 PL spectra of NV0 and NV− reference samples. The blue curve is the spectrum of the NV−reference sample (Sample RNV(−)). The green and brown curves are the spectra of the NV0 referencesamples (green: Sample RINV(0), brown: Sample RIINV(0)). The spectra of the NV0 reference samplespossibly contain the PL from NV− centers. (See Section S3.)PL intensity (a.u.)PL intensity (a.u.)PL intensity (a.u.)900800700600500Wavelength (nm)900800700600500Wavelength (nm)900800700600500Wavelength (nm)1×1013 cm-2 (B)5×1012 cm-2 (B)1×1011 cm-2 (A)2×1011 cm-2 (A)5×1011 cm-2 (A)1×1012 cm-2 (A)1×1012 cm-2 (B)2×1012 cm-2 (B)1×1013 cm-2 (B)5×1012 cm-2 (B)1×1011 cm-2 (A)2×1011 cm-2 (A)5×1011 cm-2 (A)1×1012 cm-2 (A)1×1012 cm-2 (B)2×1012 cm-2 (B)1×1013 cm-2 (B)5×1012 cm-2 (B)1×1011 cm-2 (A)2×1011 cm-2 (A)5×1011 cm-2 (A)1×1012 cm-2 (A)1×1012 cm-2 (B)2×1012 cm-2 (B)1.00.80.60.40.20.0Contribution to PL1011 1012 1013Nitrogen implantation fluence (cm-2) NV(-) NV(0)e fcda bNV(-)NV(0)NV(-)NV(0)NV(-)NV(0)0.80.60.40.20.0Ratio1011 1012 1013Nitrogen implantation fluence (cm-2) NV(-) NV(0) NV(+) NVH1.00.80.60.40.20.0Ratio1011 1012 1013Nitrogen implantation fluence (cm-2) NV(-) NV(0) NV(+)45Figure S6 a-c Fitting of the measured spectra (brown curves) with the NV0 and NV− reference spectra forcases in which 0% (a), 20% (b) or 40% (c) of the PL of Sample RINV(0) comes from NV− centers. (SeeSection S3.) The green and blue dashed curves are the contributions from NV0 and NV− centers and theblack dashed curves are the sum of them. The vertical dashed dot (dashed) lines indicate the 575-nm(637-nm) zero phonon line of the NV0 (NV−) centers. The green and blue curves in the bottom panels arethe NV0 and NV− reference spectra. The gray curve is the spectrum of Sample RINV(0). d Relativecontributions of NV0 and NV− to the PL spectra obtained by the fitting. e NVH/NV+/NV0/NV− relativepopulations calculated with the data shown in Figs. 4b and S6d. (See Section S4 for the calculation.) fNV+/NV0/NV− relative populations. In d-f, symbols with crosses, filled symbols, and empty symbolscorrespond to the 0% (a), 20% (b) and 40% cases (c). Circles and squares represent Samples A and B.PL intensity (Mcps)PL intensity (Mcps)a b c de f g h0.100.080.060.040.020.000.300.250.200.150.100.050.001.00.80.60.40.20.03.02.52.01.51.00.50.03.02.52.01.51.00.50.01.00.80.60.40.20.02.01.51.00.50.03.02.52.01.51.00.50.0Figure S7 a-d Photoluminescence images for nitrogen implantation fluences of 1× 1011 (a), 2× 1011 (b),5× 1011 (c), and 1× 1012 cm−2 (d) in Sample A. e-h Photoluminescence images for nitrogen implantationfluences of 1× 1012 (e), 2× 1012 (f), 5× 1012 (g), and 1× 1013 cm−2 (h) in Sample B. The image sizes are20 µm × 20 µm. The excitation laser intensity is 20 µW for an implantation fluence of ≥2× 1012 cm−2and 200 µW for lower implantation fluences.460.100.080.060.040.020.00PL intensity (Mcps)2.952.902.852.80Frequency (GHz)0.100.090.080.070.060.050.04PL intensity (Mcps)2.952.902.852.80Frequency (GHz)0.750.700.650.600.550.50PL intensity (Mcps)2.952.902.852.80Frequency (GHz)2.62.52.42.32.2PL intensity (Mcps)2.952.902.852.80Frequency (GHz)0.800.750.700.650.600.550.500.45PL intensity (Mcps)2.952.902.852.80Frequency (GHz)0.220.200.180.16PL intensity (Mcps)2.952.902.852.80Frequency (GHz)1.51.41.31.21.1PL intensity (Mcps)2.952.902.852.80Frequency (GHz)2.62.42.22.01.81.6PL intensity (Mcps)2.952.902.852.80Frequency (GHz)acegbdfh47Figure S8: a-d Double Lorentzian fits (lines) to ODMR spectra (gray dots) in the regions of nitrogenimplantation fluences of 1× 1011 (a), 2× 1011 (b), 5× 1011 (c), and 1× 1012 cm−2 (d) in Sample A. e-hDouble Lorentzian fits (lines) to ODMR spectra (gray dots) in the regions of nitrogen implantationfluences of 1× 1012 (e), 2× 1012 (f), 5× 1012 (g), and 1× 1013 cm−2 (h) in Sample B. The ODMR spectraare the same as those shown in Fig. 6. The excitation laser intensity is 20 µW for an implantation fluenceof ≥2× 1012 cm−2 and 200 µW for lower implantation fluences. A linear background is assumed for thefitting.ab3.143.123.103.083.06PL intensity (Mcps)3.002.952.902.852.802.75Frequency (GHz)3.153.103.053.002.952.90PL intensity (Mcps)3.002.952.902.852.802.75Frequency (GHz)Figure S9: ODMR spectra observed for different magnetic field orientations. a Two ODMR dips appear,indicating that the magnetic field applied with a permanent magnet is parallel to the [001] direction ofdiamond. b Eight ODMR dips corresponding to the four axes of NV centers appear. The permanentmagnet direction was tilted from that used for a.48a b c de f g h1.051.000.950.90PL intensity (a.u.)3002001000τ (ns)1.051.000.950.903002001000τ (ns)1.051.000.950.903002001000τ (ns)1.051.000.950.903002001000τ (ns)1.051.000.950.90PL intensity (a.u.)3002001000τ (ns)1.051.000.950.903002001000τ (ns)1.051.000.950.903002001000τ (ns)1.051.000.950.903002001000τ (ns)Figure S10 a-d Rabi oscillations measured in regions with nitrogen implantation fluences of 1× 1011 (a),2× 1011 (b), 5× 1011 (c), and 1× 1012 cm−2 (d) in Sample A. e-h Rabi oscillations in regions withnitrogen implantation fluences of 1× 1012 (e), 2× 1012 (f), 5× 1012 (g), and 1× 1013 cm−2 (h) in SampleB. The excitation laser intensity is 20 µW for an implantation fluence of ≥5× 1012 cm−2 and 200 µW forlower implantation fluences.49cdab1.41.21.00.80.60.40.20.0Conductance (10-5 Ω-1)1011 1012 1013Nitrogen implantation fluence (cm-2) Sample A (1st) Sample B (1st) Sample A (2nd) Sample B (2nd)10-910-810-710-610-5Conductance (Ω-1)1011 1012 1013Nitrogen implantation fluence (cm-2) Sample A (1st) Sample B (1st) Sample A (2nd) Sample B (2nd)3.02.52.01.51.00.50.0PL intensity (Mcps) 1011 1012 1013Nitrogen implantation fluence (cm-2) Sample A (1st) Sample B (1st) Sample A (2nd) Sample B (2nd)103104105106107PL intensity (cps) 1011 1012 1013Nitrogen implantation fluence (cm-2) Sample A (1st) Sample B (1st) Sample A (2nd) Sample B (2nd)Figure S11 a,b Nitrogen-implantation-fluence dependence of PL intensity measured on different dates.The first measurements on Sample A (B) were carried out 2-3 (2-4) days after the hydrogenation. Thesecond measurements were carried out 233-234 (232-233) days after the hydrogenation. c,dNitrogen-implantation-fluence dependence of the conductance measured on different dates. The firstmeasurements on Sample A (B) were carried out 6 (7) days after the hydrogenation. The secondmeasurements were carried out 243 (244) days after the hydrogenation.50