@@ -186,26 +186,26 @@ function ITensors.dag(ψ::AbstractInfiniteMPS)
186186 return typeof(ψ)(ψdag, translator(ψ); reverse= ψ. reverse)
187187end
188188
189- ITensors . linkinds(ψ:: AbstractInfiniteMPS , n1n2) = linkinds(ψ, Pair(n1n2... ))
189+ ITensorMPS . linkinds(ψ:: AbstractInfiniteMPS , n1n2) = linkinds(ψ, Pair(n1n2... ))
190190
191- function ITensors . linkinds(ψ:: AbstractInfiniteMPS , n1n2:: Pair{<:Integer,<:Integer} )
191+ function ITensorMPS . linkinds(ψ:: AbstractInfiniteMPS , n1n2:: Pair{<:Integer,<:Integer} )
192192 return commoninds(ψ[n1n2[1 ]], ψ[n1n2[2 ]])
193193end
194194
195- function ITensors . linkind(ψ:: AbstractInfiniteMPS , n1n2:: Pair{<:Integer,<:Integer} )
195+ function ITensorMPS . linkind(ψ:: AbstractInfiniteMPS , n1n2:: Pair{<:Integer,<:Integer} )
196196 return commonind(ψ[n1n2[1 ]], ψ[n1n2[2 ]])
197197end
198198
199- function ITensors . siteind(ψ:: AbstractInfiniteMPS , n:: Integer )
199+ function ITensorMPS . siteind(ψ:: AbstractInfiniteMPS , n:: Integer )
200200 return uniqueind(ψ[n], ψ[n - 1 ], ψ[n + 1 ])
201201end
202202
203- function ITensors . siteinds(ψ:: AbstractInfiniteMPS , n:: Integer )
203+ function ITensorMPS . siteinds(ψ:: AbstractInfiniteMPS , n:: Integer )
204204 return uniqueinds(ψ[n], ψ[n - 1 ], ψ[n + 1 ])
205205end
206206
207207# TODO : return a Dictionary or IndexSetNetwork?
208- function ITensors . siteinds(ψ:: AbstractInfiniteMPS , r:: AbstractRange )
208+ function ITensorMPS . siteinds(ψ:: AbstractInfiniteMPS , r:: AbstractRange )
209209 return [siteind(ψ, n) for n in r]
210210end
211211
@@ -216,9 +216,9 @@ function siterange(ψ::AbstractInfiniteMPS, c::Cell)
216216 return start: stop
217217end
218218
219- ITensors . siteinds(ψ:: AbstractInfiniteMPS , c:: Cell ) = siteinds(ψ, siterange(ψ, c))
219+ ITensorMPS . siteinds(ψ:: AbstractInfiniteMPS , c:: Cell ) = siteinds(ψ, siterange(ψ, c))
220220
221- function ITensors . siteinds(ψ:: AbstractInfiniteMPS )
221+ function ITensorMPS . siteinds(ψ:: AbstractInfiniteMPS )
222222 return CelledVector(siteinds(ψ, Cell(1 )), translator(ψ))
223223end
224224infsiteinds(ψ:: AbstractInfiniteMPS ) = siteinds(ψ)
@@ -238,12 +238,12 @@ end
238238
239239(:: Colon )(n:: Int , f:: typeof (nsites)) = UnitRangeToFunction(n, f)
240240
241- function ITensors . linkinds(f:: typeof (only), ψ:: AbstractInfiniteMPS )
241+ function ITensorMPS . linkinds(f:: typeof (only), ψ:: AbstractInfiniteMPS )
242242 N = nsites(ψ)
243243 return CelledVector([f(commoninds(ψ[n], ψ[n + 1 ])) for n in 1 : N], translator(ψ))
244244end
245245
246- function ITensors . siteinds(f:: typeof (only), ψ:: AbstractInfiniteMPS )
246+ function ITensorMPS . siteinds(f:: typeof (only), ψ:: AbstractInfiniteMPS )
247247 N = nsites(ψ)
248248 return CelledVector([f(uniqueinds(ψ[n], ψ[n - 1 ], ψ[n + 1 ])) for n in 1 : N], translator(ψ))
249249end
0 commit comments