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
itensors = [ITensor(model, s, n; kwargs...) for n in1:N] #slightly improved version. Note: the current implementation does not really allow for staggered potentials for example
34
+
returnInfiniteSum{ITensor}(itensors)
35
+
end
36
+
31
37
# MPO building version
32
38
function ITensors.MPO(model::Model, s::CelledVector, n::Int64; kwargs...)
33
39
n1, n2 =1, 2
@@ -39,3 +45,33 @@ end
39
45
function ITensors.ITensor(model::Model, s::CelledVector, n::Int64; kwargs...)
40
46
returnprod(MPO(model, s, n; kwargs...)) #modification to allow for more than two sites per term in the Hamiltonians
0 commit comments