HHL Algorithm

HHL solves linear system , where is and -sparse. It is a quantum algorithm that runs in time assuming , as opposed to classical .

-sparse means each row has at most non-zero entries, is the condition number of , and is the error tolerance.

1. HHL Algorithm

To simplify, assume:

Using qubits, where and :

Where:

Now:

Now, when you apply this on , you get:

This is of the form . Note that by definition of eigenvalues, , so: . It turns out is almost the solution:

If we measure a in the top qubit, using the generalized Born rule, the bottom register is . The probability is:

Since , we have . Hence, .

So, in order to get , we need to repeat the algorithm times. The total time complexity is .

2. Quantum Phase Estimation

is the Quantum Phase Estimation algorithm. It estimates the eigenvalue of a unitary operator given its eigenvector . We can wrte it as:

2.1 Computing Q

Additionally, if is Hermitian (), then is unitary. We can then represent as:

is a series of controlled for :

2.2 Putting it Together

Since and , we have . Hence:

Computing the full circuit, we have:

We can switch between and as they differ only by a global phase.

3. Applications & Caveats

If the eigenvalue does not have bits, it can only be estimated.

The complexity of preparing to additive error takes qubits and time.

However, further work is required to extract useful information. Measuring every entry in takes time, which is worse than classical. Instead, we can measure some property of .

For example, to measure where (genral case Pauli string similar):

  1. Choose s.t. is a string of gates. When , .
  2. Estimate by acting on with and measuring qubits times. If then use Monte Carlo estimator:

To achieve additive error , we need measurements. Hence, the total time complexity is .

For the exam, you should know the application of the gates and quantum phase estimation.

Back to Home