Controlled-NOT gate based on the Rydberg states of surface electrons