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

Quantum Algorithms for Boolean Equation Solving and Quantum Algebraic Attack on Cryptosystems

Yu-Ao Chen, Xiao-Shan Gao

TL;DR

Researchers have developed a quantum algorithm that can solve systems of Boolean equations—an NP-complete problem—with an exponential speedup over classical methods, provided the system's "condition number" is small. By applying this to major cryptosystems like AES and SHA-3, the paper introduces a provocative new security criterion: for a cipher to be quantum-secure, its underlying equations must be mathematically "ill-conditioned."

What Problem Does This Paper Address?

Solving systems of Boolean equations is a cornerstone of theoretical computer science and the "bread and butter" of algebraic cryptanalysis. If you can represent a cipher as a set of equations and solve them efficiently, you’ve broken the code. However, this is an NP-complete problem, meaning classical computers generally take exponential time to solve it as the number of variables grows.

While quantum computers are famous for Shor’s algorithm (which breaks RSA), their impact on "Symmetric" cryptography (like AES) was previously thought to be limited to a quadratic speedup via Grover’s search. This paper explores a different path: Quantum Algebraic Attacks. The authors aim to bridge the gap between quantum linear algebra and hard combinatorial problems.

Methods

The authors propose a quantum algorithm that transforms the hard problem of solving non-linear Boolean equations into a problem of solving a massive, sparse linear system over the complex numbers $\mathbb{C}$.

  1. Macaulay Matrices: They use a classical tool from algebraic geometry called a Macaulay matrix. This matrix represents the relationships between polynomials and their multiples. Solving the linear system associated with this matrix is equivalent to finding the roots of the original Boolean equations.
  2. Modified HHL Algorithm: The core engine is a modified version of the HHL (Harrow-Hassidim-Lloyd) algorithm. HHL is a quantum algorithm that can solve linear systems $Ax = b$ exponentially faster than classical algorithms, but it has strict requirements: the matrix $A$ must be sparse and "well-conditioned."
  3. Handling the "Boolean" Constraint: To ensure the solutions found are actually 0 or 1 (Boolean), the authors cleverly incorporate the field equations $x_i^2 - x_i = 0$ into the system.
  4. Pseudo-solutions to Real Solutions: They provide a mathematical framework to extract actual variable assignments from the quantum state produced by the HHL algorithm, overcoming a common limitation where HHL only provides a "state" rather than readable data.

Datasets

As a theoretical work in cryptanalysis, the "datasets" are the mathematical specifications of world-standard cryptosystems and hard computational problems:

  • Block Ciphers: AES-128, AES-192, and AES-256.
  • Stream Ciphers: Trivium (with varying round counts).
  • Hash Functions: SHA-3 (Keccak-384 and Keccak-512).
  • Computational Problems: 3-SAT, the Subset Sum problem, and the Graph Isomorphism problem.

Key Insights and Ideas

  • The Condition Number is Everything: The "condition number" ($\kappa$) measures how sensitive a mathematical function is to small changes in input. The paper’s biggest insight is that the complexity of solving Boolean equations on a quantum computer is tied directly to $\kappa$. If $\kappa$ grows polynomially with the number of variables, we get an exponential speedup.
  • A New Security Metric: Traditionally, ciphers are designed to resist "linearization" or "differential" attacks. This paper suggests a new design requirement: High Condition Numbers. If a cipher's equations are "well-behaved" (low $\kappa$), it is inherently vulnerable to quantum algebraic attacks.
  • Bridging NP-Complete and Quantum Poly-time: While it doesn't prove $P=NP$ or $BQP=NP$, it identifies a specific subset of NP-complete instances (those with small $\kappa$) that fall into the realm of efficient quantum computation.

Key Results

The authors prove that for a system with $n$ variables, total sparseness $T$, and condition number $\kappa$, a solution can be found with probability $1-\epsilon$ in: $$O((n^{3.5} + T^{3.5})\kappa^2 \log 1/\epsilon)$$

Specific Cryptanalytic Estimates: * Trivium: The attack complexity is estimated at roughly $2^{55.5} c\kappa^2$. For comparison, the brute-force search for Trivium's 80-bit key is $2^{80}$. If $\kappa$ is small, the quantum algebraic attack is significantly faster. * AES-128: Complexity is approximately $2^{69.26} c\kappa^2$. * Keccak-512: Complexity is approximately $2^{73.12} c\kappa^2$.

In all cases, the "security" of these systems now hinges on the unknown value of $\kappa$. If $\kappa$ is large, they remain secure; if it is small, they are effectively broken by large-scale quantum computers.

Limitations and Future Work

  • The "$\kappa$" Mystery: The biggest limitation is that calculating or even estimating the condition number $\kappa$ for a real-world cipher like AES is extremely difficult. The authors acknowledge that estimating these values is "an interesting future work."
  • Hardware Requirements: Like all HHL-based algorithms, this requires a large-scale, fault-tolerant quantum computer with significant "QRAM" (Quantum Random Access Memory) to load the initial states, which does not yet exist.
  • Sparse vs. Dense: The exponential speedup is most pronounced for sparse systems. For "dense" systems (like some Multivariate Public Key Cryptosystems), the speedup is less dramatic, though still polynomial in $n$.

Summary updated

BibTeX
@article{chen2018quantum,
  author = {Yu-Ao Chen and Xiao-Shan Gao},
  title = {{Quantum Algorithms for Boolean Equation Solving and Quantum Algebraic Attack on Cryptosystems}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2018},
  url = {https://openreview.net/forum?id=TWvMf7eFGx3},
}
Figure