Block-encoding dense and full-rank kernels using hierarchical matrices: applications in quantum numerical linear algebra

Quynh T. Nguyen, Bobak T. Kiani, Seth Lloyd

Quantum computing offers the potential for exponential speedups in solving linear systems of equations. However, a significant limitation of existing quantum algorithms is their reliance on matrix sparsity. In many real-world applications—such as gravitational simulations, electromagnetic scattering, and fluid dynamics—the governing matrices are dense and full-rank. This paper by Nguyen, Kiani, and Lloyd from MIT introduces a novel framework to overcome this bottleneck by leveraging the hierarchical structure of kernel matrices.

The Challenge of Dense Matrices in Quantum Computing

In quantum numerical linear algebra, a matrix $A$ is typically accessed via a block-encoding, where $A$ is embedded within a larger unitary operator $U$. The efficiency of this process is governed by the normalization factor ($\alpha$). For a sparse matrix, $\alpha$ is relatively small. However, for a dense $N \times N$ matrix, a naive encoding leads to $\alpha \approx N$. Since the success probability of quantum measurements scales with $1/\alpha^2$, a large $\alpha$ effectively eliminates the exponential speedup, causing the runtime to scale linearly with the system size $N$.

Kernel matrices, which arise from the discretization of continuous functions (e.g., $1/r$ potentials), are inherently dense and full-rank. This makes them unsuitable for standard sparse-matrix quantum algorithms.

Hierarchical Matrix Decomposition and Quantum Innovation

The authors propose using Hierarchical Matrices ($\mathcal{H}$-matrices) to exploit the underlying structure of these dense kernels. While the matrix is globally dense, "far-field" interactions—represented by blocks far from the diagonal—can be approximated as low-rank.

The method involves a recursive decomposition of the kernel matrix into $O(\log N)$ levels. Each level consists of a "block-sparse" matrix where the blocks represent interactions at different scales.

Hierarchical decomposition of a kernel matrix $K$ into a sum of block-sparse matrices at different levels.

By combining this classical $\mathcal{H}$-matrix technique with the quantum Linear Combination of Unitaries (LCU) framework, the authors can block-encode the full dense matrix. Crucially, for many physically relevant kernels, the normalization factor $\alpha$ remains polylogarithmic in $N$, preserving the exponential quantum advantage.

Key Results and Complexity Analysis

The proposed algorithm achieves a near-optimal runtime for solving linear systems involving decaying kernels. Specifically, the complexity scales as $O(\kappa \text{ polylog}(N/\epsilon))$, where $\kappa$ is the condition number and $\epsilon$ is the target precision.

Comparison of complexity for forward and inversion tasks across different classical and quantum algorithms.

As shown in the table above, this approach significantly outperforms previous quantum methods. While standard sparse algorithms scale as $O(N)$ for dense matrices and QRAM-based methods scale as $O(\sqrt{N})$, the $\mathcal{H}$-matrix approach achieves $O(\text{polylog } N)$ scaling. This represents a true exponential speedup for dense kernel matrices.

Applications and Future Directions

The framework is highly versatile. Beyond solving $Ax=b$, the block-encoding can be used with the Quantum Singular Value Transform (QSVT) for tasks like computing matrix powers or exponentials. The authors demonstrate its utility in calculating N-body potentials in $O(\text{polylog } N)$ time, a task that requires $O(N)$ time classically even with the best Fast Multipole Methods.

Future work may involve extending these techniques to $\mathcal{H}^2$-matrices, which utilize nested bases for even greater efficiency, and developing adaptive meshing strategies for non-uniformly distributed data points. While the algorithm currently requires fault-tolerant quantum hardware, it provides a critical bridge for applying quantum computing to large-scale physical simulations.

Summary updated

BibTeX
@article{nguyen2022block,
  author = {Quynh T. Nguyen and Bobak T. Kiani and Seth Lloyd},
  title = {{Block-encoding dense and full-rank kernels using hierarchical matrices: applications in quantum numerical linear algebra}},
  journal = {Quantum},
  year = {2022},
  doi = {10.22331/q-2022-12-13-876},
}
Figure