Classical Simulability of Quantum Circuits with Shallow Magic Depth
Yifan Zhang, Yuxuan Zhang
TL;DR
This work investigates the classical simulability of quantum circuits that concentrate non-Clifford gates into a shallow magic depth, focusing on three tasks: amplitude estimation, sampling, and Pauli observable evaluation. It shows a nuanced landscape: amplitudes and sampling at multiplicative error for TD1 circuits are GapP-hard under plausible assumptions, while Pauli observables are efficiently computable in TD1 due to CH$_3$ structure; adding a single extra magic layer or switching to $T^{1/2}$ gates triggers a sharp transition to GapP-hardness for Pauli observables. When additive error $1/ ext{poly}(n)$ is allowed, a polynomial-time classical algorithm exists for amplitudes, Pauli observables, and marginal sampling from $ ext{log}(n)$ qubits for diagonal magic-depth-one circuits, illustrating a regime where classical simulation is feasible. A path-integral technique is presented for circuits with more than one magic layer, offering sub-exponential scaling in the number of magic layers. Overall, the results highlight the critical role of magic depth in determining classical simulability and offer practical algorithms for specific regimes, thereby delineating the boundary between classical simulability and quantum advantage in shallow-magic circuits.
Abstract
Quantum magic is a necessary resource for quantum computers to be not efficiently simulable by classical computers. Previous results have linked the amount of quantum magic, characterized by the number of $T$ gates or stabilizer rank, to classical simulability. However, the effect of the distribution of quantum magic on the hardness of simulating a quantum circuit remains open. In this work, we investigate the classical simulability of quantum circuits with alternating Clifford and $T$ layers across three tasks: amplitude estimation, sampling, and evaluating Pauli observables. In the case where all $T$ gates are distributed in a single layer, performing amplitude estimation and sampling to multiplicative error are already classically intractable under reasonable assumptions, but Pauli observables are easy to evaluate. Surprisingly, with the addition of just one $T$ gate layer or merely replacing all $T$ gates with $T^{\frac{1}{2}}$, the Pauli evaluation task reveals a sharp complexity transition from P to GapP-complete. Nevertheless, when the precision requirement is relaxed to 1/poly($n$) additive error, we are able to give a polynomial time classical algorithm to compute amplitudes, Pauli observable, and sampling from $\log(n)$ sized marginal distribution for any magic-depth-one circuit that is decomposable into a product of diagonal gates. Our research provides new techniques to simulate highly magical circuits while shedding light on their complexity and their significant dependence on the magic depth.
