Single-photon sources are critical for quantum communication protocols. At the nanoscale, materials like diamond with nitrogen-vacancy centers can emit single photons on demand. These sources are used in quantum key distribution (QKD) to ensure secure communication channels that are theoretically immune to eavesdropping.