I'm trying to figure out how the HHL algorithm works from reading Dervovic's paper and IBM's tutorial.
Dervovic shows the following HHL circuit in Fig 5:
whereas IBM uses:
I want to clarify the IBM circuit.
- The $\vert{0}\rangle$ is the ancilla register (stores eigenvalues of $A^{-1}$ after doing $R$ rotation), $\vert{0}\rangle$ with $n_l$ corresponds to the clock register (stores eigenvalues of $A$), and $\vert{0}\rangle$ with $n_b$ corresponds to the input register (stores solution $x$). Is this correct?
- What is the purpose of the $\vert{0}\rangle$ register with $n_a$? It doesn't seem to be referenced in the IBM text.