Skip to main content
QUICK REVIEW

[Paper Review] A Hybrid Quantum-Classical CFD Methodology with Benchmark HHL Solutions

Leigh Lapworth|arXiv (Cornell University)|Jun 1, 2022
Quantum Computing Algorithms and ArchitectureComputer Science8 citations
TL;DR

This paper presents a hybrid quantum-classical CFD solver based on the SIMPLE algorithm for 2D lid-driven cavity flow, using the HHL quantum linear solver to accelerate matrix solution. It introduces an efficient method to recompute LCU coefficients for dynamic CFD matrices, demonstrating benchmark HHL solutions and revealing that classical pre-processing time is as critical as quantum runtime for achieving quantum advantage in CFD.

ABSTRACT

There has been significant progress in the development of quantum algorithms for solving linear systems of equations with a growing body of applications to Computational Fluid Dynamics (CFD) and CFD-like problems. This work extends previous work by developing a non-linear hybrid quantum-classical CFD solver and using it to generate fully converged solutions. The hybrid solver uses the SIMPLE CFD algorithm, which is common in many industrial CFD codes, and applies it to the 2-dimensional lid driven cavity test case. A theme of this work is the classical processing time needed to prepare the quantum circuit with a focus on the decomposition of the CFD matrix into a linear combination of unitaries (LCU). CFD meshes with up to 65x65 nodes are considered with the largest producing a LCU containing 32,767 Pauli strings. A new method for rapidly re-computing the coefficients in a LCU is proposed, although this reduces, rather than eliminates, the classical scaling issues. The quantum linear equation solver uses the Harrow, Hassidim, Lloyd (HHL) algorithm via a state-vector emulator. Test matrices are sampled from the classical CFD solver to investigate the solution accuracy that can be achieved with HHL. For the smallest 5x5 and 9x9 CFD meshes, full non-linear hybrid CFD calculations are performed. The impacts of approximating the LCU and the varying the number of ancilla rotations in the eigenvalue inversion circuit are studied. Preliminary timing results indicate that the classical computer preparation time needed for a hybrid solver is just as important to the achievement of quantum advantage in CFD as the time on the quantum computer. The reported HHL solutions and LCU decompositions provide a benchmark for future research. The CFD test matrices used in this study are available upon request.

Motivation & Objective

  • To develop a non-linear hybrid quantum-classical CFD solver using the industrial-standard SIMPLE algorithm for 2D flow problems.
  • To address the computational bottleneck of classical pre-processing in quantum CFD, particularly LCU decomposition for sparse CFD matrices.
  • To provide a reproducible benchmark of HHL solutions and LCU decompositions for future quantum CFD research.
  • To evaluate the impact of LCU approximation and ancilla rotation count on HHL solution accuracy in CFD contexts.
  • To quantify the relative contribution of classical vs. quantum runtime in achieving quantum advantage for CFD applications.

Proposed method

  • Employs the SIMPLE algorithm to linearize the Navier-Stokes equations in a 2D lid-driven cavity test case, enabling iterative non-linear CFD solution with quantum linear solves.
  • Uses a state-vector emulator to simulate the HHL algorithm for solving the linearized system at each SIMPLE iteration.
  • Applies a novel method to rapidly recompute LCU coefficients by exploiting sparsity patterns and Pauli matrix orthogonality, reducing classical pre-processing overhead.
  • Decomposes the CFD matrix into a linear combination of unitaries (LCU) using a cluster-based approach where each cluster shares a common sparsity pattern and unitary coefficients are solved via matrix inversion with $ U^T U = 2^n I $.
  • Leverages the identity $ (U^T U)_{ij} = ext{prod}_k G_H(P_{i,k}, P_{j,k}) $ to show that $ U^T U = 2^n I $, enabling direct coefficient computation via $ \boldsymbol{\alpha} = \frac{1}{2^n} U^T \hat{H} $.
  • Stores LCU entries using 1-byte integers ($ \text{int8}_t $) and sparse indexing per cluster, reducing storage compared to trace-orthogonality methods.

Experimental results

Research questions

  • RQ1How does the accuracy of HHL solutions vary with LCU approximation and the number of ancilla qubits used in eigenvalue inversion?
  • RQ2What is the classical pre-processing cost of generating LCU decompositions for evolving CFD matrices, and how does it scale with mesh size?
  • RQ3Can a hybrid quantum-classical CFD solver achieve fully converged solutions using HHL for linear solves in a non-linear iterative framework?
  • RQ4To what extent does the proposed LCU coefficient re-computation method reduce classical overhead compared to full recomputation?
  • RQ5What is the relative contribution of classical pre-processing time versus quantum runtime in determining the feasibility of quantum advantage for CFD?

Key findings

  • The method successfully performs full non-linear hybrid CFD simulations for $ 5\times5 $ and $ 9\times9 $ meshes using HHL as the linear solver.
  • For a $ 65\times65 $ mesh, the LCU decomposition contains up to 32,767 Pauli strings, demonstrating scalability to large CFD systems.
  • The proposed LCU coefficient re-computation method reduces classical scaling overhead but does not eliminate it, highlighting pre-processing as a critical bottleneck.
  • The classical preparation time for quantum circuit setup is shown to be as important as quantum runtime for achieving quantum advantage in CFD.
  • The use of $ U^T U = 2^n I $ enables exact and efficient coefficient computation via $ \boldsymbol{\alpha} = \frac{1}{2^n} U^T \hat{H} $, with $ \pm1 $ entries stored in 1-byte integers.
  • The study provides a public benchmark of HHL solutions and LCU decompositions for future validation and comparison in quantum CFD research.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.