In the function
setindex!(ψ::Union{MPS, MPO}, A::ITensor, r::UnitRange{Int};
orthocenter::Int = last(r), perm = nothing, kwargs…)
replacesites!([…])
replacesites([…])
defined here, replacesites!
is mentioned as an alias for it but this has been deprecated, and ITensors.replace_siteinds!
has been marked as substitute. Apart from the fact that this function is defined in ITensorMPS
and not ITensors
, this function only changes the indexes, so it is completely different from replacesites!
. It seems there is something missing but I’m not sure what exactly.
- Should people use
setindex!
directly and no substitute is present forreplacesites!
? Then this should be changed? - Was a substitute set to be created but somehow that changed mid work?
- Should that method
siteindex!
for some reason be avoided and something else should be used instead?