Error at example code

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

Error at example code

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
Site Admin
Posts: 183
Joined: 21 Jul 2018, 12:52
Location: UC Berkeley

Re: Error at example code

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