1. A method for performing a single-qubit gate on the state of a data qubit, the method comprising: setting an ancillary qubit to a predetermined initial state &verbar;I>; coupling said data qubit and said ancillary qubit for a first period of time; and measuring a state of said ancillary qubit.