The prosperous development of both hardware and algorithms for quantum computing (QC) potentially prompts a paradigm shift in scientific computing in various fields. As an increasingly active topic in QC, the variational quantum algorithm leads a promising tool for solving partial differential equations on noisy intermediate scale quantum devices. Although a clear perspective on the advantages of QC over classical computing techniques for specific mathematical and physical problems exists, applications of QC in computational fluid dynamics to solve practical flow problems, though promising, are still at the early stage of development. To explore QC in practical simulation of flow problems, this work applies a variational hybrid quantum-classical algorithm, namely the variational quantum linear solver (VQLS), to resolve the heat conduction equation through finite difference discretization of the Laplacian operator. Details of the VQLS implementation are discussed by various test instances of linear systems. The effect of the number of shots on the accuracy is studied, which reveals a logarithmic relationship. Furthermore, the heuristic scaling of the VQLS with the precision ε, the number of qubits n and the condition number k validates its time complexity reported in the literature. In addition, the successful state vector simulations of the heat conduction equation in one and two dimensions demonstrate the validity of the present VQLS-based algorithm by proof-of-concept results. Finally, the heuristic scaling for the heat conduction problem indicates that the time complexity of the present approach is logarithmically dependent on the precision ε and linearly dependent on the number of qubits n.
Read full abstract