Table 1 Comparison of simulative and theoretical solutions of \(4\times 4\) linear system.

From: Improved circuit implementation of the HHL algorithm and its simulations on QISKIT

Algorithm

Solution

Fidelity

Depth

Width

Total quantum gate

Theoretical solution

\(\left(\begin{array}{c}\begin{array}{c}\sqrt{\text{0.}{0455}}\\ \sqrt{\text{0.}{0455}}\end{array}\\ \begin{array}{c}\sqrt{\text{0.}{1818}}\\ \sqrt{\text{0.}{7272}}\end{array}\end{array}\right)\)

1

Generic circuit

\(\left(\begin{array}{c}\begin{array}{c}\sqrt{\text{0.}{0412}}\\ \sqrt{\text{0.}{0450}}\end{array}\\ \begin{array}{c}\sqrt{\text{0.}{2450}}\\ \sqrt{\text{0.}{6687}}\end{array}\end{array}\right)\)

0.993

28

14

39

Improved circuit

\(\left(\begin{array}{c}\begin{array}{c}\sqrt{\text{0.}{0371}}\\ \sqrt{\text{0.}{0358}}\end{array}\\ \begin{array}{c}\sqrt{\text{0.}{1687}}\\ \sqrt{\text{0.}{7583}}\end{array}\end{array}\right)\)

0.998

21

14

28

  1. When using quantum circuits to implement the HHL algorithm to solve the linear equation system, the fidelity of the experimental solution cannot reach 1 due to current technical limitations.