Single photons and entangled photons from a quantum dot