Error at example code c_tebd.py

How do I use this algorithm? What does that parameter do?
Post Reply
gunheepark0229
Posts: 9
Joined: 15 May 2020, 10:52

Error at example code c_tebd.py

Post 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.
User avatar
Johannes
Site Admin
Posts: 413
Joined: 21 Jul 2018, 12:52
Location: TU Munich

Re: Error at example code c_tebd.py

Post 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 :?
Post Reply