Quantum Approximate Optimization for Hard Problems in Linear Algebra

Ajinkya Borle, Vincent E. Elfving, Samuel J. Lomonaco

Abstract

This paper investigates the application of the Quantum Approximate Optimization Algorithm (QAOA) to Binary Linear Least Squares (BLLS), an NP-hard problem central to Non-negative Binary Matrix Factorization (NBMF). Using IBM Q hardware and simulators, the study evaluates the performance of QAOA against classical heuristics like Simulated Annealing. Results indicate that while QAOA outperforms random sampling, current hardware noise and connectivity constraints limit its efficacy at low circuit depths ($p \le 3$) for larger problem instances, where classical methods still maintain an edge.

Introduction

Linear algebra serves as the foundation for modern data science, yet many of its variants are computationally intractable. This research focuses on Binary Linear Least Squares (BLLS): given a matrix $A$ and a vector $b$, the goal is to find a binary vector $x \in \{0, 1\}^n$ that minimizes $\|Ax - b\|$. BLLS is a critical component of Non-negative Binary Matrix Factorization (NBMF), used for pattern recognition in high-dimensional data.

While traditional quantum algorithms like HHL target linear systems, they require fault-tolerant hardware and store solutions in quantum amplitudes, making extraction difficult. This paper explores a "NISQ-friendly" alternative using QAOA, treating the quantum computer as a sampler to produce candidate bitstrings directly.

Methodology

The authors employ a variational approach to map the BLLS problem into a Quadratic Unconstrained Binary Optimization (QUBO) form, which is subsequently converted into an Ising Hamiltonian. This allows the problem to be represented as a system of interacting quantum spins (qubits).

To optimize the quantum circuit parameters $(\beta, \gamma)$, the authors use Implicit Filtering (ImFil), a classical black-box optimizer designed to handle the noisy objective functions characteristic of current quantum hardware. The algorithm was tested on noiseless statevector simulators, noisy simulators, and two 5-qubit IBM Q physical processors (ibmq_london and ibmq_athens).

Experimental Results

The performance was benchmarked using synthetic datasets with problem sizes ranging from $n=3$ to $n=10$ variables.

Convergence and Noise

As shown in Figure 1, the optimization process reveals a clear distinction between simulation and physical hardware. While noiseless simulators converge effectively toward the ground state energy ($E_{gs}$), real quantum processing units (QPUs) experience significant noise. This noise "damps" the probability distribution, making the optimal solution less prominent than in ideal conditions.

Figure 1: Convergence of the cost function $C(\gamma, \beta)$ over iterations for various simulators and physical QPUs compared to the ground state energy $E_{gs}$.

Scaling and Performance

The study found that the relative error $\epsilon_r$ grows polynomially with the problem size $n$. Figure 2 illustrates this scaling across different circuit depths ($p$). While increasing $p$ generally improves the success probability, the "connectivity tax"—the need for SWAP gates to handle fully connected BLLS problems on restricted hardware topologies—increases circuit depth and error rates.

Figure 2: Relative error $\epsilon_r$ as a function of problem size $n$ for circuit depths $p=1, 2, 3$.

Key findings include:

  • QAOA vs. Random Sampling: QAOA significantly outperforms naive random sampling across all tested sizes.
  • Classical Comparison: For $n > 8$, classical Simulated Annealing (SA) outperformed QAOA at depth $p=3$. This suggests that higher circuit depths (potentially $p \ge 6$) may be required to achieve a true quantum advantage for these dense linear algebra problems.

Conclusion

The research demonstrates the feasibility of using QAOA as a sampler for hard linear algebra problems. However, the primary bottlenecks remain hardware noise and limited qubit connectivity. Future work will focus on implementing error mitigation techniques and exploring hardware-efficient ansätze that minimize the need for SWAP gates, potentially allowing QAOA to serve as a viable subroutine in larger machine learning pipelines like NBMF.

Summary updated

BibTeX
@inproceedings{borle2021quantum,
  author = {Ajinkya Borle and Vincent E. Elfving and Samuel J. Lomonaco},
  title = {{Quantum Approximate Optimization for Hard Problems in Linear Algebra}},
  booktitle = {SciPost},
  year = {2021},
  doi = {10.21468/scipostphyscore.4.4.031},
}
Figure