🤖 AI Summary
This work addresses the problem of computing Euler’s totient function φ(N) for an RSA modulus N. We propose the first algorithm that recovers φ(N) exactly in polynomial time using only a single quantum query—namely, the order of a random base modulo N—augmented by O(1) classical arithmetic operations (one gcd, two modular multiplications, and one integer division). Unlike Shor’s algorithm, which requires full period-finding via quantum Fourier transform, our method bypasses quantum Fourier sampling and large-scale quantum circuits entirely. The key insight lies in leveraging number-theoretic properties of modular orders, structural constraints inherent to RSA moduli, and classical backward inference techniques. Our algorithm achieves success probability 1 − O(N⁻¹⁄²). This represents the lightest-weight quantum-assisted approach to RSA private-key recovery known to date, substantially reducing the quantum resource overhead required for practical cryptanalysis.
📝 Abstract
In this paper we give a polynomial time algorithm to compute $varphi(N)$ for an RSA module $N$ using as input the order modulo $N$ of a randomly chosen integer. The algorithm consists only on a computation of a greatest common divisor, two multiplications and a division. The algorithm works with a probability of at least $1-frac{C}{N^{1/2}}$.