Diamond's unique physical properties make it a versatile material for a wide range of nonlinear and quantum photonic technologies. However, unlocking diamond's full potential as a nonlinear photonic material with nonzero second-order susceptibility, χ^{(2)}≠0, requires symmetry breaking. In this Letter, we use a nanoscale cavity to demonstrate second-harmonic generation (SHG) in diamond, and demonstrate, for the first time, that the magnitude of diamond's effective χ^{(2)} strongly depends on the electronic configuration of defects in the diamond crystal, such as nitrogen-vacancy centers. The modification of χ^{(2)} arises from photoionization from the negative to neutral charge state, and is manifested by quenching of SHG upon green illumination. Toggling the green illumination allows for optical switching of the device's χ^{(2)}. Optical control of χ^{(2)} by defect engineering opens the door for second-order nonlinear processes in diamond.
Single-crystal diamond nanocavities have tremendous potential for use in quantum and nonlinear optical technologies. The ability to precisely control their resonant frequencies is essential for many applications, and in situ tuning is particularly desirable. In this work, we demonstrate deterministic resonance tuning of a diamond nanocavity. We observed a photorefractive effect in concert with the generation of third-harmonic light within the device. This effect blue-shifted the cavity resonance frequency by 20.2 (2) GHz, exceeding the cavity linewidth. The shift corresponded to a fractional change in refractive index of −1.05(1)×10 −4 , and its relaxation occurred over several tens of hours. Although photorefraction is a second-order nonlinear effect and has previously not been observed in diamond owing to its vanishing χ(2) , the observed behavior is consistent with the generation of non-zero χ(2) by electric fields from charged crystal defects. In addition to allowing tuning of diamond cavities for resonant nonlinear and quantum photonics applications, this observation could enable the realization of diamond frequency converters and electro-optical modulators that rely on second-order nonlinearity.