Executing a logical quantum circuit fault-tolerantly incurs a large spacetime overhead. Recent work has proposed and investigated phantom codes, defined by the property that every in-block logical $\mathrm{CNOT}$ circuit can be implemented with a physical permutation, a property that has the potential to greatly reduce the depth of compiled circuits. Here we show that phantomness comes at the cost of low encoding rate. Specifically, we prove that any binary phantom code encoding $k$ logical qubits into $n$ physical qubits with distance $d\geq 2$ obeys the bound $k\leq \log_2(n+1)$ for all $k\neq 4$. For $k=4$ we explicitly construct a nonstabiliser $(\!(8, 2^4, 2)\!)$ phantom code that violates the bound and has a transversal non-Clifford gate. We further show that, within the class of nontrivial CSS phantom codes with $k\neq 4$, there is a unique family of codes saturating this bound. In addition, we prove that this logarithmic ceiling cannot be circumvented by permitting additional local unitary gates, or by making use of subsystem codes: any subspace or subsystem code admitting a $\mathrm{SWAP}$-transversal implementation of every logical $\mathrm{CNOT}$ circuit is constrained to satisfy the same bound. These bounds follow from a general theorem relating the length of a quantum code to the structure of its automorphism group, a result which may find applications beyond phantom codes.
Chutes and Ladders: Dynamical Automorphisms via the ZX-Calculus
Institute for Quantum Computing, University of Waterloo(滑铁卢大学量子计算研究所);Department of Pure Mathematics, University of Waterloo(滑铁卢大学纯数学系);Perimeter Institute for Theoretical Physics(理论物理珀金斯研究所);Department of Physics and Astronomy, University of Waterloo(滑铁卢大学物理与天文学系);Department of Physics, California Institute of Technology(加州理工学院物理系);Centre Inria de Paris(巴黎Inria中心);Joint Center for Quantum Information and Computer Science, NIST/University of Maryland(美国国家标准与技术研究院/马里兰大学联合量子信息与计算机科学中心)