qiskit-textbook
qiskit-textbook copied to clipboard
[4.1.2] Simulating Molecules using VQE
Describe the issue
I do not think what we are presenting as the Manhattan distance here is correct. We have used
print("Output Error (Manhattan Distance):", ret[1])
to print the Manhattan distance while ret[1]
is the value of objective function.
Describe what you expect to see
By calculating the Manhattan distance using
scipy.spatial.distance.cityblock(target_distr, output_distr)
we get a different answer.