Skip to content

Improved quantum algorithm for factoring integers with Jacobi symbol

Priyanka Mukhopadhyay, Patrick Rall, Elisa B. Marty, Hari Krovi

quant-ph

Abstract

Integer factorization is a central example of the computational advantage offered by quantum algorithms. This motivates the study of opportunities for resource reduction in structured factoring problems that retain a demanding classical computational task. One such problem is the square-free decomposition of integers, which has received much attention in computational number theory and cryptography literature. Building on earlier works by Li et al. (2012) and Kahanamoku-Meyer et al. (2025) we have designed an improved factoring algorithm with half as many qubits and half as many Toffoli gates. Central to these factoring algorithms is a Jacobi symbol computation procedure. In order to reduce the qubit and gate-count of the Jacobi symbol computing algorithm we have developed a pre-processing procedure using the recently developed non-restoring division algorithm of Mukhopadhyay et al. (2026). For the classical post-processing in the factoring algorithm, we give an explicit reconstruction algorithm using LLL lattice reduction based simultaneous Diophantine approximation, followed by gcd normalization. This reduces the qubit and gate-count per iteration of the quantum circuit. Based on a simple analysis of fault-tolerant superconducting architectures, we expect quantum advantage for factoring numbers with about 960 bits and a square-free part of up to 320 bits: existing classical methods may take several years while quantum architectures need under an hour to under a day and about 1900 logical qubits. We have also probed heuristics that reduce the Toffoli and qubit count by about 40% and 50%, respectively.

Create a lesson

Metadata

Categories
quant-ph, cs.CR
Comments
Initial upload. 76 pages, 14 figures