We consider the problem of Clifford testing, which asks whether a black-box n-qubit unitary is a Clifford unitary or at least ϵ-far from every Clifford unitary. We give the first 4-query Clifford tester, which decides this problem with probability poly(ϵ). This contrasts with the minimum of 6 copies required for the closely-related task of stabilizer testing. We show that our tester is tolerant, by adapting techniques from tolerant stabilizer testing to our setting. In doing so, we settle in the positive a conjecture of Bu, Gu and Jaffe, by proving a polynomial inverse theorem for a non-commutative Gowers 3-uniformity norm. We also consider the restricted setting of single-copy access, where we give an O(n)-query Clifford tester that requires no auxiliary memory qubits or adaptivity. We complement this with a lower bound, proving that any such, potentially adaptive, single-copy algorithm needs at least ω(n1/4) queries. To obtain our results, we leverage the structure of the commutant of the Clifford group, obtaining several technical statements that may be of independent interest.

, , ,
doi.org/10.1145/3798129.3800801
STOC '26 - 58th Annual ACM Symposium on Theory of Computing
creativecommons.org/licenses/by-nc-nd/4.0/
Algorithms and Complexity

Hinsche, M., Bao, Z., van Dordrecht, P., Eisert, J., Briët, J.& Helsen, J. (2026). Clifford testing: Algorithms and lower bounds. Proceedings of the Annual ACM Symposium on Theory of Computing, 869–873.https://doi.org/10.1145/3798129.3800801