A device comprising a single photon generator and a waveguide, wherein a single photon generated by the single photon generator is coupled to the waveguide.