arXiv:2609.37636quant-phSep 2026

Manuscript Offprint

arXiv:2609.37636

Resonance Breaking in Noisy Shor's Algorithm

Zhengwei Liu

Abstract

We argue that the exponential quantum advantage in Shor’s algorithm is broken under one-layer depolarizing noise of arbitrary small error rate, by analyzing a resonance breaking phenomenon in noisy quantum circuits. First, we express the distribution of measurements on n-qubit strings as the superposition of the 4n4^n wave functions in the Pauli path integral. In the noiseless case, the bit-strings achieving resonant peaks guaranteed a constant rate of successful measurements to factor a large number. Secondly, when the middle layer of the quantum circuit has independent depolarizing noise of rate λ\lambda, for any Hamming weight dd, we obtain corresponding measurement rate bounded by 2(1−λ)d2(1-\lambda)^d for higher frequency terms and by O(nd)/2n/2O(n^d)/2^{n/2} for low frequency terms. The rate approaches to zero as nn and dd approaches to infinity. Resonance breaking destroys the exponential quantum advantage. Furthermore, we design a classical factoring algorithm in polynomial time O(nd)O(n^d) to substitute the low frequency contribution.

1 Introduction

Shor's factoring algorithm sparked widespread interest in quantum computing. By establishing polynomial-time integer factorization on an ideal quantum computer [1], it offered a concrete prospect of an exponential computational advantage for a problem of direct cryptographic significance [2]. Realizing this advantage in practice has become a major goal of quantum computing research [3–7]. Shor's algorithm relies on quantum amplitudes adding constructively to produce peaks in the measurement distribution that encode the order. Noise can disrupt the relative phases of these amplitudes, weakening their constructive interference, and reducing the probability of obtaining outcomes near the peaks. Recently, Cai proved that random angular errors in Fourier gates can make the probability of useful order-finding results negligible, preventing efficient factorization even when noise strength decreases with input size [8]. Early studies investigated how decoherence and dissipation affect the performance of Shor's algorithm [9–11].

Inspired by the Quon classical simulation framework, where the number of remaining “Magic holes” governs the cost of its classical simulation algorithm [12], we observed that quantum advantage comes from composing different types of quantum circuits, such as Clifford circuits [13] or matchgate circuits [14, 15]. In contrast, if the composition boundary of different types of circuits has noise, then the noise can severely degrade the exponential quantum advantage of the quantum circuit.

We analyze this phenomenon in Shor’s algorithm to factor a large number N for a given number a with order rmod  Nr \mod N. More precisely, we apply independent single-qubit depolarizing noise of rate λ\lambda to the n-qubit control register between modular exponentiation and the inverse Fourier transform, with all other operations ideal. First, we present the resonance effect of exponentially many wave functions in the Pauli path integral [16–22] for Shor’s quantum circuit. The probability of measuring a bit-string x is

Pλ(x)=2−2n∑0≤u,v<2n;r∣u−v(1−λ)h(u,v)ωx(u−v),(1)P_{\lambda}(x)=2^{-2n}\sum_{\substack{0\leq u,v<2^{n};r|u-v}}(1-\lambda)^{h(u,v)}\omega^{x(u-v)}, \tag{1}

*Email: liuzhengwei@mail.tsinghua.edu.cn where ω=e2πi2n\omega = e^{\frac{2\pi i}{2^n}} and h(u,v)h(u, v) is the Hamming distance between the binary expansions of uu and vv. For the case without noise, namely λ=0\lambda = 0, the 4n4^n phases ωx(u−v)\omega^{x(u-v)}, for 0≤u,v<2n0 \leq u, v < 2^n, achieves resonance peaks at xx in the following set

Er:={x∈{0,…,2n−1}|∃k∈{0,…,r−1},∣x2n−kr∣≤12n+1}.(2)\mathcal{E}_{r}:=\left\{x\in\{0,\ldots,2^{n}-1\}\middle|\exists k\in\{0,\ldots,r-1\},\left|\frac{x}{2^{n}}-\frac{k}{r}\right|\leq\frac{1}{2^{n+1}}\right\}. \tag{2}

Then applying the continued fraction theorem to such x2n\frac{x}{2^n} one can find the order rr and then a non-trivial factor of the large number NN. The successful measurement rate is guaranteed by the crucial lower bound

∑x∈ErP0(x)≥4π2−O(1N).(3)\sum_{x\in\mathcal{E}_{r}}P_{0}(x)\geq\frac{4}{\pi^{2}}-O(\frac{1}{N}). \tag{3}

Secondly, we show that the resonance breaks when the noise rate λ>0\lambda > 0. For any Hamming weight dd, the high frequency terms h(u,v)≥dh(u, v) \geq d will diminish exponentially proportion to (1−λ)d(1 - \lambda)^d, and the low frequency terms have a bound O(nd)/2n/2O(n^d)/2^{n/2}.

∑x∈ErPλ(x)≤O(nd)2n/2+2(1−λ)d.(4)\sum_{x\in\mathcal{E}_{r}}P_{\lambda}(x)\leq\frac{O(n^{d})}{2^{n/2}}+2(1-\lambda)^{d}. \tag{4}

As n→∞n \to \infty and d→∞d \to \infty, it approaches to zero. The successful measurement rate is no longer guaranteed. The resonance breaking phenomenon destroys the exponential quantum advantage.

For a fixed nn, we further present a classical algorithm in polynomial time O(nd)O(n^{d}) to substitute the low frequency contributions. To keep the same exponential factor (1−λ)d(1-\lambda)^{d}, when the noise rate λ\lambda decreases, the degree dd increases. Quantum error correction [23–25] may help improve performance, and the threshold theorem allows arbitrarily small logical error rates below the threshold under suitable noise assumptions [26–28], achieving this suppression requires additional physical qubits and repeated correction operations [29–31]. In practice, the polynomial degree may grow too high to be achieved by a classical computer, while reducing the noisy rate using quantum error corrections on a quantum computer remains challenging as well [32].

We hope that our analysis of the frequency decomposition of resonant wave functions in the Pauli path integral will shed light on the theoretical understanding of exponential quantum advantage in quantum circuits. The resonance breaking phenomenon allows us to analyze a polynomial time classical simulation to a single noisy circuit, instead of the average behavior of random noisy circuits. Resonance seems essential to achieve a reasonable measurement rate, as every path only contributes to an exponentially small rate in the path integral. The higher frequency contribution may be compressed exponentially by noise and the lower frequency contribution may be substituted by a corresponding classical algorithm in polynomial time.