Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2024 Sep 10;14(1):20610.
doi: 10.1038/s41598-024-69077-0.

Solving linear systems on quantum hardware with hybrid HHL+

Affiliations

Solving linear systems on quantum hardware with hybrid HHL+

Romina Yalovetzky et al. Sci Rep. .

Abstract

The limited capabilities of current quantum hardware significantly constrain the scale of experimental demonstrations of most quantum algorithmic primitives. This makes it challenging to perform benchmarking of the current hardware using useful quantum algorithms, i.e., application-oriented benchmarking. In particular, the Harrow-Hassidim-Lloyd (HHL) algorithm is a critical quantum linear algebra primitive, but the majority of the components of HHL are far out of the reach of noisy intermediate-scale quantum devices, which has led to the proposal of hybrid classical-quantum variants. The goal of this work is to further bridge the gap between proposed near-term friendly implementations of HHL and the kinds of quantum circuits that can be executed on noisy hardware. Our proposal adds to the existing literature of hybrid quantum algorithms for linear algebra that are more compatible with the current scale of quantum devices. Specifically, we propose two modifications to the Hybrid HHL algorithm proposed by Lee et al., leading to our algorithm Hybrid HHL + + : (1) propose a novel algorithm for determining a scaling factor for the linear system matrix that maximizes the utility of the amount of ancillary qubits allocated to the phase estimation component of HHL, and (2) introduce a heuristic for compressing the HHL circuit. We demonstrate the efficacy of our work by running our modified Hybrid HHL on Quantinuum System Model H-series trapped-ion quantum computers to solve different problem instances of small-scale portfolio optimization problems, leading to the largest experimental demonstrations of HHL for an application to date.

PubMed Disclaimer

Conflict of interest statement

The authors declare no competing interests.

Figures

Figure 1
Figure 1
End-to-End Flow of Hybrid HHL++: highlights the integration of the two proposed modifications, the spectral scaling algorithm (section “Spectral acaling algorithm for optimizing γ”) in Step 1 and the HHL circuit compression (section “Heuristic for compressing HHL circuit”) techniques in Step 3 and Step 4, into the original Hybrid HHL flow.
None
Algorithm 1: Optimize the selection of γ using m-bit estimations of eigenvalues.
None
Algorithm 2: Verify if α is a n-bit overestimation of λmax.
Figure 2
Figure 2
Circuits for estimating the eigenvalues of the unitary operator U to three bits using semiclassical QPE (a) or QPE (b). S is the register that U is applied to, and j is a classical register. H refers to the Hadamard gate and Rk, for k=2,3, are the phase gates.
None
Algorithm 3: Semiclassical Phase Estimation,.
Figure 3
Figure 3
Probability distributions over the four-bit eigenvalue estimates from the semiclassical QPE executions using eiA2πΓ for Γ=50·2-4 (a) and Γ=200 (b). The blue bars represent the experimental results on the trapped-ion device with 2000 shots. The theoretical (classically calculated) eigenvalues are represented with the red dots and the results from the noiseless simulator, Qiskit QASM simulator, are represented with the orange dots. As shown on (b), as the theoretical eigenvalues exceed the values we can encode, the distribution we observed shows that values overflowed.
Figure 4
Figure 4
Probability distributions over the four-bit eigenvalue estimates from the semiclassical QPE run using eiA2πγ for γ=50 (a) and γ=100.The blue bars represent the experimental results on the trapped-ion device - 2000 shots (a), 1000 shots (b). The theoretical (classically calculated) eigenvalues are represented with the red dots and the results from noiseless simulation with the Qiskit QASM simulator are represented with the orange dots.
Figure 5
Figure 5
Fidelity between the output distribution of the semiclassical QPE executed on both the hardware and its emulator with 400 shots and the output distribution obtained in noiseless simulation, respectively, as a function of the portfolio-optimization problem instances. The semiclassical QPE is performed to the unitary corresponding to the optimal scaling parameter obtained with the proposed algorithms using the output of the circuits on the emulator. We utilized this number of shots as it has been seen on the noisy emulator of the hardware that for a higher number, there are no significant changes. It is displayed the median and standard deviation, as error bars, of the bootstrap distributions.
Figure 6
Figure 6
Inner product between the output quantum state of the HHL circuit and the analytical solution loaded as a quantum state for each of the portfolio-optimization problem instances with two assets. This metric quantifies the quality of the solution obtained. It is displayed the inner product corresponding to the execution of the circuits on hardware, its emulator with approximated noise and in noiseless simulation with 1000 shots. We utilized this number of shots as it has been seen on the noisy emulator of the hardware that for a higher number, there are no significant changes. The error bars correspond to the sampling error ϵ corresponding to O(1/ϵ2) shots.
Figure 7
Figure 7
Benchmark metrics as a function of the value of the two-qubit fault probability (“p2”) utilized to simulate the noise in the emulator. Each color plots a different portfolio-optimization problem instance consisting of six assets (8×8 linear systems of equations). The metric in (a) is the fidelity between the output distribution obtained from executing the semiclassical QPE circuit on emulator with the given noise and the distribution obtained in noiseless simulation. The metric in (b) is the inner product between the output quantum state of the HHL circuit executed on the emulator with the given level of noise and the analytical solution loaded as a quantum state.

References

    1. Lee, Y., Joo, J. & Lee, S. Hybrid quantum linear equation algorithm and its experimental test on ibm quantum experience. Sci. Rep.9, 1–12. 10.1038/s41598-019-41324-9 (2019). 10.1038/s41598-019-41324-9 - DOI - PMC - PubMed
    1. Arute, F. et al. Quantum supremacy using a programmable superconducting processor. Nature574, 505–510. 10.1038/s41586-019-1666-5 (2019). 10.1038/s41586-019-1666-5 - DOI - PubMed
    1. Wu, Y. et al. Strong quantum computational advantage using a superconducting quantum processor. Physical Review Letters127, 456. 10.1103/physrevlett.127.180501 (2021).10.1103/physrevlett.127.180501 - DOI - PubMed
    1. Madsen, L. S. et al. Quantum computational advantage with a programmable photonic processor. Nature606, 75–81. 10.1038/s41586-022-04725-x (2022). 10.1038/s41586-022-04725-x - DOI - PMC - PubMed
    1. Lubinski, T. et al. Application-oriented performance benchmarks for quantum computing (2023). arXiv:2110.03137.

LinkOut - more resources