Open nikita-astronaut opened 1 month ago
Very strange, thanks for the report. If I downgrade to Julia 1.6 and ITensors.jl v0.2.11 (before the existence of ITensorMPS.jl) that example code works, I guess something happened between then and now that broke that code.
EDIT: It looks like it was already broken back in ITensors.jl v0.3.68 (with the same error message).
It looks like this PR broke that code: https://github.com/ITensor/ITensors.jl/pull/919.
The issue is that this line is converting the OpSum
of the Hamiltonian into an ITensor, which requires inserting identity operators when terms are not overlapping. We were doing that properly before https://github.com/ITensor/ITensors.jl/pull/919, but I guess that was causing some trouble for automatic differentiation libraries so I simplified that conversion code, but I simplified it too much and it no longer inserts identities properly.
Anyway, that code is pretty experimental so shouldn't really be relied on, I would recommend this tutorial: https://itensor.github.io/ITensors.jl/dev/tutorials/MPSTimeEvolution.html for a more reliable (but more manual) approach.
I'm going to delete that example for now to not cause confusion and keep this issue open as a reminder to fix it.
Dear ITensors developers, I hope you are doing well!
I ran into an issue with one of the examples
trotter_suzuki_decomposition.py
.Do you have an idea what could have gone wrong? Using the CUDA.jl backend. Thank you very much!