Closed hcut closed 1 year ago
Dear quantum-magnet,
thanks for your message .The line "return abs(sc.vev(sc.Sz[0]))" would return the magnetization of the system, so that the function would compute the magnetization instead of the gap. That is the reason why the result is different. I added a comment in the example to clarify this point. If you want to compute the gap, you can just remove "return abs(sc.vev(sc.Sz[0]))"
Best regards, Jose
Thanks, for your timely reply and clarification.
In the following your code for calculation of energy gap of 1D Transverse Ising model, Could you please tell/explain me the purpose of line No. 17:
return abs(sc.vev(sc.Sz[0]))
? Result is different when I don't use this line.Thanks and Regards