Skip to content

Commit 77126ef

Browse files
committed
Fix more namespace issues
1 parent 0a26a76 commit 77126ef

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/models/models.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,16 @@ first_site(opsum::OpSum) = minimum(ITensors.sites(opsum))
3636
last_site(opsum::OpSum) = maximum(ITensors.sites(opsum))
3737

3838
function set_site(o::Op, s::Int)
39-
return Op(ITensorMPS.which_op(o), s; ITensorMPS.params(o)...)
39+
return Op(ITensors.which_op(o), s; ITensors.params(o)...)
4040
end
4141

4242
function shift_site(o::Op, shift::Int)
43-
return set_site(o, ITensorMPS.site(o) + shift)
43+
return set_site(o, ITensors.site(o) + shift)
4444
end
4545

4646
function shift_sites(term::Scaled{C,Prod{Op}}, shift::Int) where {C}
47-
shifted_term = ITensorMPS.coefficient(term)
48-
for o in ITensorMPS.terms(term)
47+
shifted_term = ITensors.coefficient(term)
48+
for o in ITensors.terms(term)
4949
shifted_term *= shift_site(o, shift)
5050
end
5151
return shifted_term
@@ -55,7 +55,7 @@ end
5555
# By default, it shifts
5656
function shift_sites(opsum::OpSum, shift::Int)
5757
shifted_opsum = OpSum()
58-
for o in ITensorMPS.terms(opsum)
58+
for o in ITensors.terms(opsum)
5959
shifted_opsum += shift_sites(o, shift)
6060
end
6161
return shifted_opsum
@@ -65,7 +65,7 @@ function InfiniteSum{MPO}(opsum::OpSum, s::CelledVector)
6565
n = cell_length(s)
6666
nrange = 0 # Maximum operator support
6767
opsums = [OpSum() for _ in 1:n]
68-
for o in ITensorMPS.terms(opsum)
68+
for o in ITensors.terms(opsum)
6969
js = sort(ITensors.sites(o))
7070
j1 = first(js)
7171
nrange = max(nrange, last(js) - j1 + 1)
@@ -286,7 +286,7 @@ end
286286

287287
function filter_terms(f, opsum::OpSum; by=identity)
288288
filtered_opsum = OpSum()
289-
for t in ITensorMPS.terms(opsum)
289+
for t in ITensors.terms(opsum)
290290
if f(by(t))
291291
filtered_opsum += t
292292
end

0 commit comments

Comments
 (0)