Quantum logic with a single trapped electron