Single-atom gating of quantum-state superpositions