Multi-qubit Toffoli with exponentially fewer T gates
Abstract
Prior work of Beverland et al. has shown that any exact Clifford+ implementation of the -qubit Toffoli gate must use at least gates. Here we show how to get away with exponentially fewer gates, at the cost of incurring a tiny error that can be neglected in most practical situations. More precisely, the -qubit Toffoli gate can be implemented to within error in the diamond distance by a randomly chosen Clifford+ circuit with at most gates. We also give a matching lower bound that establishes optimality, and we show that any purely unitary implementation achieving even constant error must use gates. We also extend our sampling technique to implement other Boolean functions. Finally, we describe upper and lower bounds on the -count of Boolean functions in terms of non-adaptive parity decision tree complexity and its randomized analogue.
Keywords
Cite
@article{arxiv.2510.07223,
title = {Multi-qubit Toffoli with exponentially fewer T gates},
author = {David Gosset and Robin Kothari and Chenyi Zhang},
journal= {arXiv preprint arXiv:2510.07223},
year = {2025}
}