Quantum-Classical Hybrid Algorithm for Solving the Learning-With-Errors Problem on NISQ Devices
Muxi Zheng, Jinfeng Zeng, Wentao Yang, Pei-Jie Chang, Quanfeng Lu, Bao Yan, Haoran Zhang, Min Wang, Shijie Wei, Gui-Lu Long
TL;DR
This work addresses the hardness of the LWE-decision problem for post-quantum cryptography by proposing a quantum-classical hybrid (HAWI) that maps LWE to the SVP via an SIS-based lattice reduction and encodes lattice vectors into an Ising Hamiltonian. Short vectors correspond to low-energy eigenstates, enabling extraction on NISQ devices with a theoretical qubit bound of $N \le m(m+1)$ and runtime that hinges on the chosen quantum eigensolver (e.g., QAOA). The authors provide complexity bounds, analyze the potential quantum advantage over classical BKZ, and demonstrate both numerical simulations and a 5-qubit IBM device experiment solving a small 2D-LWE instance, along with heuristic parameter strategies to improve QAOA performance. While the results illustrate feasibility on near-term hardware and offer practical guidance for resource estimation and parameter design, they also acknowledge that large-scale threat to post-quantum cryptography remains uncertain and highlight future directions including alternative quantum solvers and related lattice techniques. Overall, the paper contributes a concrete, resource-bounded quantum framework for lattice-based LWE tasks and lays groundwork for scalable exploration on future quantum devices.
Abstract
The Learning-With-Errors (LWE) problem is a fundamental computational challenge with implications for post-quantum cryptography and computational learning theory. Here we propose a quantum-classical hybrid algorithm with Ising model to address LWE, transforming it into the Shortest Vector Problem and using variable qubits to encode lattice vectors into an Ising Hamiltonian. By identifying low-energy Hamiltonian levels, the solution is extracted, making the method suitable for noisy intermediate-scale quantum devices. The required number of qubits is less than $m(m+1)$, where $m$ is the number of samples. Our heuristic algorithm's time complexity depends on the specific quantum eigensolver used to find low-energy levels, and the performance when using the Quantum Approximate Optimization Algorithm is investigated. We validate the algorithm by solving a $2$-dimensional LWE problem on a $5$-qubit quantum device, demonstrating its potential for solving meaningful LWE instances on near-term quantum devices.
