English

Codes and Protocols for Distilling $T$, controlled-$S$, and Toffoli Gates

Quantum Physics 2018-06-21 v3

Abstract

We present several different codes and protocols to distill TT, controlled-SS, and Toffoli (or CCZCCZ) gates. One construction is based on codes that generalize the triorthogonal codes, allowing any of these gates to be induced at the logical level by transversal TT. We present a randomized construction of generalized triorthogonal codes obtaining an asymptotic distillation efficiency γ1\gamma\rightarrow 1. We also present a Reed-Muller based construction of these codes which obtains a worse γ\gamma but performs well at small sizes. Additionally, we present protocols based on checking the stabilizers of CCZCCZ magic states at the logical level by transversal gates applied to codes; these protocols generalize the protocols of 1703.07847. Several examples, including a Reed-Muller code for TT-to-Toffoli distillation, punctured Reed-Muller codes for TT-gate distillation, and some of the check based protocols, require a lower ratio of input gates to output gates than other known protocols at the given order of error correction for the given code size. In particular, we find a 512512 T-gate to 1010 Toffoli gate code with distance 88 as well as triorthogonal codes with parameters [[887,137,5]],[[912,112,6]],[[937,87,7]][[887,137,5]],[[912,112,6]],[[937,87,7]] with very low prefactors in front of the leading order error terms in those codes.

Cite

@article{arxiv.1709.02832,
  title  = {Codes and Protocols for Distilling $T$, controlled-$S$, and Toffoli Gates},
  author = {Jeongwan Haah and Matthew B. Hastings},
  journal= {arXiv preprint arXiv:1709.02832},
  year   = {2018}
}

Comments

28 pages. (v2) fixed a part of the proof on random triorthogonal codes, added comments on Clifford circuits for Reed-Muller states (v3) minor change

R2 v1 2026-06-22T21:37:38.054Z