
Hi, I’m not sure how I should fix this. Can anyone give me a hint?
Congratulations @Mayu
Thanks, @CatalinaAlbornoz !
Hi can someone point out where I’m losing the algebra?, I think there is something wrong with the algebra or a typo, since:
(1-λ)(λ**2+2λ+1)=0 (1-λ)(λ+1)(λ+1)=0 thus λ=1, λ=-1 with a multiplicity of 2.
Hi!
Thanks for pointing this out. There are definitely several things wrong with that algebra, my apologies.
To begin with, we should end with a fourth-degree polynomial haha where did that go? and get four roots, either degenerate or not.
The final results are correct, the roots are 2, -2, and 0 (multiplicity 2), but the procedure is wrong.
I will redo the calculations and fix this mistake. But you should also try it, just start from the determinant of the 4x4 matrix and see what you get.
Thanks!
We get the following eigenvalues = {-2,0,0,2}.
yes, that’s correct. The codebook theory has been fixed as well.
Thanks for pointing this out.
Good day, @daniela.murcillo can you please if possible explain why the following code doesn’t if I define params as a global variable?. Instead it chunks out:<Error: run_vqe() missing 1 required positional argument: ‘params’./>
While for when params is local in run_vqe() its all fine in the codebook?
Hi,
could you please post your code as code so I can play with it. It is easier for me that way.
In addition, recall what the instructions say about not needing to define the cost and the optimizer functions again, you can just call them. Just so the code is much simpler. You can also call the function build_hamiltonian() that was just implemented above.
Thanks.