manipulation and detection of single photons