Ah! this question is related to the answer I just gave you in the other post.
You are doing the right thing when it comes to calling cost_hf
. The thing that is missing is defining the vector params
appropriately. Also, recall that the VQE function should return two things, updated params
and energy
.
I hope this helps.