You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just found your Ising model blog, which is very good and helped me a lot. However, I think the return energy/4 in function def calcEnergy(config) should be divided by 2 because every link between sites is summed 2 times, not four.
The text was updated successfully, but these errors were encountered:
WhymustIhaveaname
changed the title
return energy/4. or `return energy/4. or return energy/2. when calculating energy of Ising model?
Sep 22, 2021
@WhymustIhaveaname thanks very much for your interest and suggesting a fix. I agree with you that the factor should be 2 instead of 4. I have now fixed the factor.
I just found your Ising model blog, which is very good and helped me a lot. However, I think the
return energy/4
in functiondef calcEnergy(config)
should be divided by 2 because every link between sites is summed 2 times, not four.The text was updated successfully, but these errors were encountered: