From f56dd19c93ad56784f71e293c7ee500f856c4b98 Mon Sep 17 00:00:00 2001 From: Tim Pokart Date: Fri, 15 Nov 2024 14:08:42 +0100 Subject: [PATCH] Replaced occurances of `promote_itensor_eltype` by `scalartype` --- src/mps.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mps.jl b/src/mps.jl index 32a16f2..de71318 100644 --- a/src/mps.jl +++ b/src/mps.jl @@ -655,7 +655,7 @@ function sample(rng::AbstractRNG, m::MPS) error("sample: MPS is not normalized, norm=$(norm(m[1]))") end - ElT = promote_itensor_eltype(m) + ElT = scalartype(m) result = zeros(Int, N) A = m[1] @@ -751,7 +751,7 @@ function correlation_matrix( end_site = last(sites) N = length(psi) - ElT = promote_itensor_eltype(psi) + ElT = scalartype(psi) s = siteinds(psi) Op1 = _Op1 #make copies into which we can insert "F" string operators, and then restore. @@ -985,7 +985,7 @@ updens, dndens = expect(psi, "Nup", "Ndn") # pass more than one operator function expect(psi::MPS, ops; sites=1:length(psi), site_range=nothing) psi = copy(psi) N = length(psi) - ElT = promote_itensor_eltype(psi) + ElT = scalartype(psi) s = siteinds(psi) if !isnothing(site_range)