We consider the design of self-testers for quantum gates. A self-tester for
the gates F_1,...,F_m is a classical procedure that, given any gates
G_1,...,G_m, decides with high probability if each G_i is close to F_i. This
decision has to rely only on measuring in the computational basis the effect of
iterating the gates on the classical states. It turns out that instead of
individual gates, we can only design procedures for families of gates. To
achieve our goal we borrow some elegant ideas of the theory of program testing:
we characterize the gate families by specific properties, we develop a theory
of robustness for them, and show that they lead to self-testers. In particular
we prove that the universal and fault-tolerant set of gates consisting of a
Hadamard gate, a c-NOT gate, and a phase rotation gate of angle pi/4 is
self-testable.Comment: LaTeX2e, 14 pages, no figures, usepackage{a4wide,amssymb,amsmath};
major changes (Feb 2000), results expanded to 2-qubit gates. To appear in
Proceedings of the 32nd Annual ACM Symposium on Theory of Computin