The current main source of errors for photonic quantum logic gates is the imperfections of the single photons. Here, by using high-quality photons from Rydberg atoms, the authors are able to reach 99.7% entangling gate fidelity in a photonic CNOT gate.