Page 1 of 1

Error at example code c_tebd.py

Posted: 17 May 2020, 15:49
by gunheepark0229
At the function example_TEBD_gs_tf_ising_infinite, the energy per site is calculated as

E = np.sum(M.bond_energies(psi))

I think you missed 1/2 here.
It can be clearly seen at the final results on the relative error.

Re: Error at example code c_tebd.py

Posted: 18 May 2020, 05:15
by Johannes
Thanks for pointing it out, I've updated it on the master branch.
Unfortunately, it didn't make it into the release of v0.6.0 any more, which I packed last Friday :?