Generating photons for communication in a quantum computing system