Integer Factorization via Tensor Network Schnorr's Sieving
Marco Tesoro, Ilaria Siloi, Daniel Jaschke, Giuseppe Magnifico, Simone Montangero
TL;DR
This work presents Tensor Network Schnorr’s Sieving (TNSS), a classical yet quantum-inspired approach that recasts RSA factorization as a lattice Closest Vector Problem and uses tree tensor networks to efficiently sample low-energy lattice configurations. By encoding rounding choices in a spin-glass Hamiltonian and employing TTN-based variational optimization plus OPES sampling, TNSS extracts smooth-relations and constructs a congruence $X^2 \equiv Y^2 \pmod{N}$ to factor $N$. In numerical experiments, TNSS factors random RSA semiprimes up to 100 bits (and explores up to 130-bit keys) with resources that appear polynomial in the key length within the simulated regime, though the dominant classical steps still outpace current cryptanalytic capabilities for large keys. The results suggest a promising classical, quantum-inspired framework for lattice-based cryptographic problems and underscore the urgency of post-quantum cryptography while illustrating limitations and scaling behaviors of the proposed method.
Abstract
Classical public-key cryptography standards rely on the Rivest-Shamir-Adleman (RSA) encryption protocol. The security of this protocol is based on the exponential computational complexity of the most efficient classical algorithms for factoring large semiprime numbers into their two prime components. Here, we address RSA factorization building on Schnorr's mathematical framework where factorization translates into a combinatorial optimization problem. We solve the optimization task via tensor network methods, a quantum-inspired classical numerical technique. This tensor network Schnorr's sieving algorithm displays numerical evidence of polynomial scaling of resources with the bit-length of the semiprime. We factorize RSA numbers up to 100 bits and assess how computational resources scale through numerical simulations up to 130 bits, encoding the optimization problem in quantum systems with up to 256 qubits. Only the high-order polynomial scaling of the required resources limits the factorization of larger numbers. Although these results do not currently undermine the security of the present communication infrastructure, they strongly highlight the urgency of implementing post-quantum cryptography or quantum key distribution.
