Abstract
Recently, Chen and Gao proposed a quantum algorithm for solving Boolean polynomial systems by applying a Quantum Linear System (QLS) algorithm, such as HHL, to a Macaulay linear system. The efficiency of this approach is heavily dependent on the condition number of the Macaulay matrix. In this work, we establish a strong lower bound on this condition number as a function of the Hamming weight of the solution. Our analysis shows that in many cases, a Grover-based exhaustive search outperforms the original Chen-Gao algorithm. We further propose an improved "Boolean Macaulay" linear system that reduces the condition number and could offer superpolynomial speedups for solutions with low Hamming weight. Finally, we introduce a solution extraction method based on the quantum coupon collector problem and extend our results to systems over finite fields.
Introduction
Solving systems of multivariate polynomial equations is a fundamental problem in computational complexity, classified as NP-complete. Its difficulty serves as the security foundation for several post-quantum cryptographic (PQC) schemes. As quantum computing matures, researchers are exploring whether quantum algorithms can provide significant speedups over classical methods like Gröbner basis algorithms or exhaustive search.
A notable proposal by Chen and Gao (2017) suggested transforming a Boolean polynomial system into a large linear system using a Macaulay matrix, which could then be solved using the HHL (Harrow-Hassidim-Lloyd) algorithm. While HHL offers an exponential speedup for solving linear systems $Ax=b$, its runtime is proportional to the condition number $\kappa$ of the matrix $A$. If $\kappa$ grows exponentially with the problem size, the quantum advantage is nullified.
The Condition Number Barrier
The primary contribution of this research is a rigorous analysis of the condition number of Macaulay matrices. We demonstrate that the condition number is intrinsically linked to the Hamming weight ($h$) of the solution—the number of non-zero bits.
For the original Macaulay system proposed by Chen and Gao, we prove a lower bound on the condition number of $\Omega((3n)^{h/2})$. Given that many cryptographic applications involve solutions where $h \approx n/2$, this lower bound implies that the algorithm is exponentially slow in practice, often performing worse than a simple Grover-based exhaustive search.
Refined Methods: The Boolean Macaulay System
To address these limitations, we introduce the Boolean Macaulay linear system. By explicitly incorporating the constraint that variables must be Boolean (0 or 1) within the complex field $\mathbb{C}$, we can significantly reduce the size and improve the conditioning of the resulting matrix.
Our refined approach improves the lower bound of the condition number to $\Omega(2^{h/2})$. While still exponential for high-weight solutions, this reduction is substantial. Specifically, we identify a "window for speedup": when the Hamming weight of the solution is logarithmic relative to the number of variables ($h = \Theta(\log n)$), the Boolean Macaulay approach could theoretically provide a superpolynomial speedup over classical brute force.
Solution Extraction and Correctness
Solving the linear system only provides a quantum state representing the solution. Extracting the actual bitstring requires further steps. We propose two key improvements in this area:
- Valiant-Vazirani Hashing: To ensure the system has a unique solution (a requirement for many QLS algorithms), we employ affine hashing. This allows us to isolate a single solution even when multiple exist.
- Quantum Coupon Collector: We reformulate the extraction of the solution as a generalized version of the quantum coupon collector problem. We prove that the solution can be reconstructed using only $O(\log n)$ measurements, leading to a total complexity of $O(n \log n)$ iterations—a significant improvement over the $O(n^2)$ iterations previously assumed.
Comparative Performance
A critical part of this study is the "reality check" against Grover's algorithm. Grover's search provides a quadratic speedup for any unstructured search problem, including polynomial solving. We show that for solutions with Hamming weight $h = \Omega(\sqrt{n})$, Grover's algorithm (or even classical brute force in some regimes) is definitively faster than the HHL-based Macaulay approach.
Conclusion
While the HHL-based Macaulay approach is a mathematically elegant application of quantum linear algebra, its practical utility is constrained by the "curse of the condition number." Our work provides the theoretical tools to bound this complexity and offers a refined Boolean approach that optimizes the matrix structure. While it does not currently threaten general cryptographic systems with high-weight solutions, it identifies specific regimes where quantum speedups are possible and provides a more efficient framework for future quantum algebraic solvers.
Summary updated