HHL Algorithm
HHL solves linear system
-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:
is non-singular Hermitian matrix ( ). is the eigenstate of with eigenvalue . are the eigenvalues of . Hence, . has -bit fixed point repr: , where . - The input vector
s.t. .
Using
Where:
- Quantum Phase Estimation
. - Conditional Rotation
.
Now:
Now, when you apply this on
This is of the form
If we measure a
Since
So, in order to get
2. Quantum Phase Estimation
2.1 Computing Q
Additionally, if
2.2 Putting it Together
Since
and , we have . Hence:
Computing the full circuit, we have:
We can switch between
3. Applications & Caveats
If the eigenvalue does not have
The complexity of preparing
However, further work is required to extract useful information. Measuring every entry in
For example, to measure
- Choose
s.t. is a string of gates. When , . - Estimate
by acting on with and measuring qubits times. If then use Monte Carlo estimator:
To achieve additive error
For the exam, you should know the application of the gates and quantum phase estimation.