Scientists have realized a photon-photon logic gate via a deterministic interaction with a strongly coupled atom-resonator system.