NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Fast Quantum Algorithm for Solving Multivariate Quadratic Equations

Jean-Charles Faugère, Kelsey Horan, Delaram Kahrobaei, Marc Kaplan, Elham Kashefi, Ludovic PerretarXiv 2017

Abstract

This paper presents a novel quantum algorithm, QuantumBooleanSolve, designed to solve systems of Boolean multivariate quadratic (MQ2) equations. By integrating Grover’s search with advanced Gröbner basis techniques, the algorithm achieves a complexity of $O(2^{0.462n})$, effectively surpassing the standard $O(2^{n/2})$ Grover bound. This result has significant implications for the security assessments of multivariate-based post-quantum cryptographic systems.

Introduction

The advent of quantum computing poses a significant threat to current cryptographic standards. Multivariate cryptography, which relies on the hardness of solving systems of multivariate quadratic equations (the MQ2 problem), is a leading candidate for post-quantum security. While classically NP-hard, the MQ2 problem has traditionally been considered resistant to quantum attacks beyond the generic quadratic speedup offered by Grover’s algorithm. This research investigates whether the inherent algebraic structure of these equations can be exploited to achieve a more substantial quantum speedup.

Methods

The proposed algorithm, QuantumBooleanSolve, is a quantum adaptation of the state-of-the-art classical BooleanSolve hybrid algorithm. It employs a multi-faceted strategy:

  1. Hybridization: The $n$ variables are partitioned into two sets. The algorithm performs an exhaustive search over a subset of $k$ variables while solving the remaining system algebraically.
  2. Quantum Search: Grover’s algorithm (specifically amplitude amplification) replaces the classical search over the $k$-variable subset to find the correct partial assignment.
  3. Quantum Oracle Design: The core innovation lies in the quantum oracle, which performs a consistency check using Macaulay matrices. This involves implementing sparse linear system solvers as reversible quantum circuits using Toffoli and CNOT gates.
  4. Gröbner Basis Integration: The algorithm utilizes the "witness degree" from algebraic geometry to determine the necessary dimensions of the Macaulay matrix for reliable solution verification.

Key Insights and Ideas

  • Surpassing the Grover Barrier: By embedding sophisticated algebraic solvers within a quantum search framework, the algorithm achieves a complexity lower than the $O(2^{0.5n})$ limit of generic Grover search.
  • Reversible Linear Algebra Efficiency: The study demonstrates that the $O(n^3)$ gate complexity required for sparse matrix-vector multiplication in algebraic solvers is feasible for implementation in reversible quantum circuits.
  • Security Re-evaluation: The findings necessitate a revision of security parameters for multivariate cryptosystems. For instance, a system with 256 variables, previously estimated at 128-bit quantum security, is shown to provide approximately 118 bits under this new attack.

Key Results

The research establishes new upper bounds for the quantum complexity of solving MQ2 systems where the number of equations $m$ equals the number of variables $n$. The deterministic variant achieves $O(2^{0.47n})$ quantum gates, while the probabilistic (Las-Vegas) variant reaches $O(2^{0.462n})$.

Quantum security levels and associated variable counts for the proposed algorithm.

As shown in the table above, the scaling of variables $n$ relative to desired quantum security levels highlights the increased efficiency of this approach. The $O(n^3)$ column quantifies the resource requirements for the oracle's algebraic consistency checks, which remain manageable even at high security levels.

Limitations and Future Work

The current complexity analysis assumes "semi-regular" polynomial systems, which are typical for random instances but may not apply to all structured systems used in cryptography. Furthermore, while the algorithm beats the Grover barrier, it has not yet achieved a full quadratic speedup over the most advanced classical hybrid algorithms (which would ideally reach $O(2^{0.396n})$). Future research will focus on closing this gap and considering the practical overhead of fault-tolerant quantum hardware.

Summary updated

BibTeX
@misc{faugere2017fast,
  author = {Jean-Charles Faugère and Kelsey Horan and Delaram Kahrobaei and Marc Kaplan and Elham Kashefi and Ludovic Perret},
  title = {{Fast Quantum Algorithm for Solving Multivariate Quadratic Equations}},
  year = {2017},
  eprint = {1712.07211},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1712.07211},
}
Figure