New algorithm may factor 960-bit numbers in under a day

Priyanka Mukhopadhyay of IBM Research and colleagues have designed a new factoring algorithm capable of factoring 960-bit numbers in under a day. This represents a substantial speedup over existing classical methods, which could require years to complete the same task. The algorithm achieves this by halving both the qubit and Toffoli gate count needed for factoring, requiring approximately 1900 logical qubits. Researchers anticipate quantum advantage for numbers up to 960 bits, with a square-free part of up to 320 bits, building on previous work by Li et al. (2012) and Kahanamoku-Meyer et al. (2025).

Quantum Factoring and Square-Free Decomposition

The recently developed non-restoring division algorithm from Mukhopadhyay et al. enables a pre-processing procedure that reduces qubit and gate counts within a new factoring algorithm. This algorithm builds on earlier quantum approaches for square-free decomposition of integers, a problem central to both computational number theory and cryptography, and specifically references work by Li et al. (2012) and Kahanamoku-Meyer et al. (2025). The core of the improvement lies in a refined Jacobi symbol computation procedure, critical to these factoring algorithms, and the reduction in required computational resources.

Classical post-processing within the factoring algorithm now uses an explicit reconstruction algorithm based on LLL lattice reduction and simultaneous Diophantine approximation, followed by gcd normalization. This technique minimizes qubit and gate-count demands during each iteration of the quantum circuit, further enhancing efficiency.

The algorithm’s design acknowledges that factoring algorithms benefit from focusing on structured problems that maintain a challenging classical computational task while allowing for smaller resource requirements. The square-free decomposition of an integer, defined as recovering unique integers An and B such that N = A²B and B is square-free, is a prime example of this approach. The potential for quantum advantage is particularly notable when factoring numbers with approximately 960 bits and a square-free component of up to 320 bits.

Existing classical methods may require several years to complete this task, whereas the new quantum architecture is projected to require under an hour to under a day, using around 1900 logical qubits. “When N = P2Q for distinct primes P and Q, recovering B = Q gives the complete factorization,” the paper states, highlighting how successfully finding the square-free part of a number can dramatically simplify the overall factoring process. The work demonstrates a commitment to optimizing quantum resource usage, specifically qubit count, which remains a significant cost metric in the field.

Jacobi Symbol Computation Drives Factoring Efficiency

The efficiency of factoring algorithms benefits from a new pre-processing procedure that reduces the complexity of Jacobi symbol computation, a critical step in integer factorization. This advancement, building on work from Li et al. (2012) and Kahanamoku-Meyer et al. (2025), focuses on minimizing qubit and gate counts, resources that remain paramount in the development of practical quantum computers. The approach centers on a modification to how the Jacobi symbol, a key element in number theory, is calculated, streamlining the process for structured inputs.

The team’s work extends beyond the Jacobi symbol itself, incorporating heuristics to further optimize the factoring process. “Our emphasis is on reducing the costs relevant to qubit-constrained fault-tolerant computation,” the paper states, highlighting the practical focus of the work.

Non-Restoring Division Algorithm Reduces Qubit Count

This improvement stems from a refined Jacobi symbol computation procedure, central to the factoring process and a new pre-processing step using the non-restoring division algorithm developed by Mukhopadhyay et al. The algorithm’s efficiency is not merely theoretical; it directly addresses the practical limitations of qubit availability in fault-tolerant quantum computing. Heuristics incorporated into the algorithm further reduce computational load, decreasing the Toffoli and qubit count by approximately 40 and 50 percent, respectively. The team’s approach focuses on minimizing the costs associated with qubit-constrained fault-tolerant computation, a critical consideration for near-term quantum devices.

LLL Reduction and Classical Post-Processing

The factoring algorithm detailed by Mukhopadhyay and colleagues at IBM Research and Elisa B. The team’s work builds upon previous factoring algorithms, achieving a reduction in resource demands while maintaining a demanding classical computational task. An explicit reconstruction algorithm uses LLL lattice reduction to optimize the classical post-processing stage, reducing the qubit and gate-count per iteration of the quantum circuit.

Resource Estimates for 960-Bit Factorization

Detailed resource estimates for this approach, labeled circuit 1, indicate a qubit count of k + 2ℓ + 3, where k represents the dividend’s bit size and ℓ the divisor’s, with two ancilla qubits restored to their initial state and ℓ qubits dedicated to storing the divisor. Further optimization comes from variations within the NON-RES-DIV circuits themselves. The team developed two variants, circuit 1 and circuit 3, each prioritizing different resource reductions.

Circuit 1, implemented with a specific QRC adder and COMP-N-SUB circuit-I, aims to minimize both Toffoli and qubit counts. Resource estimates for circuit 1 show a Toffoli gate count of 5kℓ + 5k + 4ℓ-5 and a T-count of 14kℓ + 3(7k + 6ℓ)-4. Conversely, circuit 3, using a modified QRC adder and COMP-N-SUB circuit-III, prioritizes minimizing the T-count, accepting a potential increase in qubit usage to achieve this goal.

The resource estimates for the NON-RES-DIV-clodd algorithm, the odd-divisor optimized version, build upon these foundations. The detailed resource accounting for these circuits, along with implementing circuit descriptions, are available in the appendices of their work.

This speedup is particularly relevant given the reliance of many cryptographic systems on the difficulty of integer factorization. The team’s work builds upon the foundations laid by Li et al. and Kahanamoku-Meyer et al., demonstrating a clear path toward more efficient quantum factoring.

👉 More information
🗞 Improved quantum algorithm for factoring integers with Jacobi symbol
✍️ Priyanka Mukhopadhyay, Patrick Rall and Hari Krovi (IBM Research, Cambridge MA, USA); Elisa B. Marty (IBM Research, Zurich, Switzerland)
🧠 ArXiv: https://arxiv.org/abs/2612.06046v1

Stay current

See today’s quantum computing news on Quantum Zeitgeist for the latest breakthroughs in qubits, hardware, algorithms, and industry deals.

Avatar of Muhammad Rohail T.

Latest Posts by Muhammad Rohail T.: