@@ -32,8 +32,8 @@ function InfiniteSum{ITensor}(model::Model, s::CelledVector; kwargs...)
3232end
3333
3434# Get the first site with nontrivial support of the OpSum
35- first_site (opsum:: OpSum ) = minimum (ITensorMPS . sites (opsum))
36- last_site (opsum:: OpSum ) = maximum (ITensorMPS . sites (opsum))
35+ first_site (opsum:: OpSum ) = minimum (ITensors . sites (opsum))
36+ last_site (opsum:: OpSum ) = maximum (ITensors . sites (opsum))
3737
3838function set_site (o:: Op , s:: Int )
3939 return Op (ITensorMPS. which_op (o), s; ITensorMPS. params (o)... )
@@ -66,7 +66,7 @@ function InfiniteSum{MPO}(opsum::OpSum, s::CelledVector)
6666 nrange = 0 # Maximum operator support
6767 opsums = [OpSum () for _ in 1 : n]
6868 for o in ITensorMPS. terms (opsum)
69- js = sort (ITensorMPS . sites (o))
69+ js = sort (ITensors . sites (o))
7070 j1 = first (js)
7171 nrange = max (nrange, last (js) - j1 + 1 )
7272 opsums[j1] += o
@@ -243,7 +243,7 @@ function infinite_terms(opsum::OpSum; kwargs...)
243243 # contains the terms with support starting on that
244244 # site of the unit cell, i.e. `opsum_cell[i]`
245245 # stores all terms starting on site `i`.
246- opsum_cell_dict = groupreduce (minimum ∘ ITensorMPS . sites, + , opsum)
246+ opsum_cell_dict = groupreduce (minimum ∘ ITensors . sites, + , opsum)
247247 nsites = maximum (keys (opsum_cell_dict))
248248 # check that we don't have terms we will ignore
249249 dropped = filter (x -> x <= 0 , keys (opsum_cell_dict))
@@ -299,7 +299,7 @@ function finite_terms(model::Model, n::Int; kwargs...)
299299 _finite_terms = OpSum[]
300300 for j in 1 : n
301301 term_j = _infite_terms[j]
302- filtered_term_j = filter_terms (s -> all (≤ (n), s), term_j; by= ITensorMPS . sites)
302+ filtered_term_j = filter_terms (s -> all (≤ (n), s), term_j; by= ITensors . sites)
303303 push! (_finite_terms, filtered_term_j)
304304 end
305305 return _finite_terms
0 commit comments