I want to extract the HHL solution from the StateVector.

I am doing this on a $4\times4$ matrix. For a $2$ by $2$ the solution is available in the StateVector $8$, $9$. However for a $4$ by $4$ matrix in which cell do I find the solution. Is there a way to find out ?

Here the solution state diagram

  • $\begingroup$ The solution is stored in qubits where right side of the linear system was at the beginning of the algorithm. $\endgroup$ Commented Apr 1, 2022 at 5:23


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.