In Exercise V.2.2, I get the same as you for Z0@Z1, and I get the same as you for X0@X1. I take Z0@Z1 and subtract X0@X1. I do not get the same result for H hat. It appears you added the two 4x4 matrices to get your result (instead of subtracting), and I can’t understand why that would be. Maybe something really straightforward? I was hoping it might be a typo in the equation for the Hamiltonian, but I see the same expression appears in the Codercise, so I thought I’d better clarify. Thank you for your assistance!
Hi @Joyce
Thanks for pointing this out. It is definitely a typo.
I guess I can decide wether to change the minus to a plus and leave the rest intact, since later eigenvalues and eigenvectors are computed, or leave the minus and change everything else. I’ll go with the easy solution and change the Hamiltonian to have a plus sign.
Thanks again.
Great, Daniela. One follow-up, then. The Codercise to the left uses the same Hamiltonian. Do you think the code will follow the minus sign version or the plus sign version? Thank you!
that one is consistent, it uses the minus sign.
Thanks!