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
. 2019 Mar 18;9(1):4778.
doi: 10.1038/s41598-019-41324-9.

Hybrid quantum linear equation algorithm and its experimental test on IBM Quantum Experience

Affiliations

Hybrid quantum linear equation algorithm and its experimental test on IBM Quantum Experience

Yonghae Lee et al. Sci Rep. .

Abstract

We propose a hybrid quantum algorithm based on the Harrow-Hassidim-Lloyd (HHL) algorithm for solving a system of linear equations. In this paper, we show that our hybrid algorithm can reduce a circuit depth from the original HHL algorithm by means of a classical information feed-forward after the quantum phase estimation algorithm, and the results of the hybrid algorithm are identical to those of the HHL algorithm. In addition, it is experimentally examined with four qubits in the IBM Quantum Experience setups, and the experimental results of our algorithm show higher accurate performance on specific systems of linear equations than that of the HHL algorithm.

PubMed Disclaimer

Conflict of interest statement

The authors declare no competing interests.

Figures

Figure 1
Figure 1
The circuit diagram for the HHL algorithm: the circuit consists of the QPE part, the AQE part and the inverse QPE part. The unitary gate UAˆ=e2πiAˆ is used for controlled-unitary gates between the register R and the input qubit V while the controlled AQE indicates a set of controlled gates between the register R and the ancillary qubit A.
Figure 2
Figure 2
(a) Fidelities between solutions of the linear systems of equations in Eq. (10) and output states obtained from the HHL algorithm with k-qubit register for k = 1, 2, 3. (b) The probability distribution for measurement outcomes: The QPEA with 2-qubit register is performed on Aˆλ and b in Eq. (10). Since the QPEA makes use of 2 qubits as register, its measurement outcomes are two-bit strings b1b2 with b1, b2 ∈ {0, 1}, and Pr(b1b2) denotes the probability that the outcome is b1b2. Details of the probabilities are presented in Eqs (12) and (13).
Figure 3
Figure 3
The circuit diagrams of the original and hybrid HHL algorithms for Aˆλ and b in Eq. (10). (a) The controlled Uλm gate, where UAˆλm=(e2πiAˆλ)m for mZ. (b) The inverse quantum Fourier transform for two qubits. (c) Additional measurement devices to check outputs of the algorithms. In the hybrid HHL algorithm, AQE′ indicates a reduced AQE part (aqua color). The detailed circuit implementations of (a,b), and AQE′ are given in Fig. 4.
Figure 4
Figure 4
The circuit implementations on IBMQX setups: (a) the controlled Uλm gate where UAˆλm=(e2πiAˆλ)m for mZ, (b) the inverse quantum Fourier transform for two qubits, (c) the original AQE part, and (d) the reduced AQE part for the reduced HHL part when λ = 1/4, 2/4. Here, θ3: = θ3−(θ1 + θ2).
Figure 5
Figure 5
Experimental results on IBMQX4: (a) the QPEA with 2-qubit register. (b) the original HHL algorithm and reduced HHL part.
Figure 6
Figure 6
The circuit diagram of the QPEA with n-qubit register: H and FT are the Hadamard gate and the inverse quantum Fourier transform. At the end, every register qubit is measured in observable Z.

References

    1. Shor PW. Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer. SIAM J. on Comput. 1997;26:1484–1509. doi: 10.1137/S0097539795293172. - DOI
    1. Harrow AW, Hassidim A, Lloyd S. Quantum algorithm for linear systems of equations. Phys. Rev. Lett. 2009;103:150502. doi: 10.1103/PhysRevLett.103.150502. - DOI - PubMed
    1. Lloyd, S., Garnerone, S. & Zanardi, P. Quantum algorithms for topological and geometric analysis of data. Nat. Commun. 7, 10138 (2016). - PMC - PubMed
    1. Berry DW. High-order quantum algorithm for solving linear differential equations. J. Phys. A: Math. Theor. 2014;47:105301. doi: 10.1088/1751-8113/47/10/105301. - DOI
    1. Wilde, M. M. Quantum Information Theory (Cambridge University Press, 2013).

LinkOut - more resources