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 Nov 7;9(1):16251.
doi: 10.1038/s41598-019-52275-6.

Hybrid classical-quantum linear solver using Noisy Intermediate-Scale Quantum machines

Affiliations

Hybrid classical-quantum linear solver using Noisy Intermediate-Scale Quantum machines

Chih-Chieh Chen et al. Sci Rep. .

Abstract

We propose a realistic hybrid classical-quantum linear solver to solve systems of linear equations of a specific type, and demonstrate its feasibility with Qiskit on IBM Q systems. This algorithm makes use of quantum random walk that runs in [Formula: see text](N log(N)) time on a quantum circuit made of [Formula: see text](log(N)) qubits. The input and output are classical data, and so can be easily accessed. It is robust against noise, and ready for implementation in applications such as machine learning.

PubMed Disclaimer

Conflict of interest statement

The authors declare no competing interests.

Figures

Figure 1
Figure 1
(a) Quantum (or classical) random walk on an undirected N=4 graph. The transition probability of going from node I to node J or vice versa is equal to PI,J, these elements forming a 4×4 matrix. (b) The four nodes on this Hamming cube are labeled by integers (0,1,2,3); they are encoded as four different states |00, |01, |10, |11, respectively.
Figure 2
Figure 2
Discrete-time coined quantum walk circuit for the 4×4 transition matrix given in Eq. (10). Qubits j0 and j1 are state register qubits to represent the four-node graph in Fig. 1, first set as 0 before initialization, while the qubit j2 is the coin register qubit. The measured registers c0 and c1 are fed back to initialize the next iteration. The classical-step is repeated c times to obtain the Neumann expansion up to order c.
Figure 3
Figure 3
Relative errors ε=|xIexactxI|/|xIexact| as a function of the sampling number ns for N=256 and N=1024 matrices. The relevant parameters and estimated errors for these two matrices can be found in Table 1. Black solid lines represent the 1/ns error reduction expected for Monte Carlo calculations. (Upper figure) Red dashed line and green dash-dotted line are the results computed by the QASM simulator. (Lower figure) Blue dash-dotted line and red dotted line are data for the same matrices computed by the IBM Q 20 Tokyo machine or Poughkeepsie machine. Cyan and magenta horizontal dashed lines depict the estimated errors.
Figure 4
Figure 4
Relative errors ε=|xIexactxI|/|xIexact| as a function of the sampling number ns for N=64 and N=128 matrices, obtained by performing two quantum walk evolutions, U2. Black solid lines represent the 1/ns error reduction expected for Monte Carlo calculations. Red dashed line and blue dotted line are the results computed by the QASM simulator.

References

    1. Nielsen MA, Chuang IL. Quantum Computation and Quantum Information: 10th Anniversary Edition. 10th edn. New York, NY, USA: Cambridge University Press; 2011.
    1. Golub GH, Van Loan CF. Matrix Computations (3rd Ed.) Baltimore, MD, USA: Johns Hopkins University Press; 1996.
    1. Saad Y. Iterative Methods for Sparse Linear Systems. 2nd edn. Philadelphia, PA, USA: Society for Industrial and Applied Mathematics; 2003.
    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. Clader BD, Jacobs BC, Sprouse CR. Preconditioned quantum linear system algorithm. Phys. Rev. Lett. 2013;110:250504. doi: 10.1103/PhysRevLett.110.250504. - DOI - PubMed