ITensor / ITensorNetworks.jl

A package with general tools for working with higher-dimensional tensor networks based on ITensor.
MIT License
51 stars 12 forks source link

[BUG] Possible missing copy in `default_inserter` #189

Closed emstoudenmire closed 3 weeks ago

emstoudenmire commented 3 weeks ago

In src/solvers/insert/insert.jl, should the variable state be copied at the beginning of the default_inserter function? Later in that function, there are lines modifying state such as state[v] = phi.

mtfishman commented 3 weeks ago

Good catch, agreed it looks like state should be copied at the beginning of default_inserter.