Generation of phase controlled single photons