You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[From the forum here ]
The following OpSum appears to break the code due to a single Op not being wrapped into a sum
function ITensorInfiniteMPS.unit_cell_terms(::Model"bad")
opsum =OpSum()
opsum +=0.5, "Z",1
opsum +=0.4, "Z",2# the problem
opsum +=-1, "X",1,"X",2return opsum
endinitstate(n) =isodd(n) ?"Up":"Dn"
s =infsiteinds("S=1/2", N; conserve_qns =false, initstate)
model =Model("bad")
# Form the Hamiltonian
H =InfiniteSum{MPO}(model, s;)
with the error MethodError: no method matching translatecell(::ITensorInfiniteMPS.var”#_shift_cell#176"{Int64}, ::Scaled{ComplexF64, Prod{Op}}, ::Int64) "
What's happening is that there's only one term in the second "translate" term
For this to be a legal unit cell, I'd expect the user to include"X",2,"X",3 (otherwise its a trivial uniform product state I suppose).
Not sure if its possible to catch this and write a more helpful message, etc
The text was updated successfully, but these errors were encountered:
Sorry for the absurdly long delay of response.
This package is in a bit of hiatus as I am (and others also) waiting for the rewriting of the core of ITensors before putting back more work into it.
You are correct, of course, the error message should be improved.
[From the forum here ]
The following OpSum appears to break the code due to a single Op not being wrapped into a
sum
with the error
MethodError: no method matching translatecell(::ITensorInfiniteMPS.var”#_shift_cell#176"{Int64}, ::Scaled{ComplexF64, Prod{Op}}, ::Int64) "
What's happening is that there's only one term in the second "translate" term
For this to be a legal unit cell, I'd expect the user to include
"X",2,"X",3
(otherwise its a trivial uniform product state I suppose).Not sure if its possible to catch this and write a more helpful message, etc
The text was updated successfully, but these errors were encountered: