Quantum transduction of optical photons from a superconducting qubit