Let be a target unitary on a data register. A repeat-until-success (RUS) circuit for is a unitary circuit on the data register and ancilla qubits, followed by a measurement of the ancillas in the computational basis, such that for every data state
where each is unitary, does not depend on , the set of success outcomes has (up to a global phase) for , and for every failure outcome the operator belongs to a class whose inverse is cheap (in the Clifford+T setting, a Clifford gate). On failure, is applied and the circuit is run again. The number of attempts is geometric with success probability , so the expected cost is the cost of one attempt divided by , and the output is exactly whenever the procedure halts.
RUS circuits over Clifford+T were introduced for single-qubit synthesis by Paetznick and Svore and synthesised efficiently for arbitrary single-qubit targets by Bocharov, Roetteler and Svore. Because the number of attempts is random, an RUS gate has a variable duration, which a fault-tolerant schedule must accommodate.