Scientists have demonstrated mathematical operations with a quantum gate between two trapped atoms that is mediated by photons.