diff --git a/src/operators/multipliedoperator.jl b/src/operators/multipliedoperator.jl index d4220206..42ad81ac 100644 --- a/src/operators/multipliedoperator.jl +++ b/src/operators/multipliedoperator.jl @@ -63,4 +63,6 @@ Base.:*(x::MultipliedOperator, v) = x(v); # don't know a better place to put this # environment for MultipliedOperator -environments(st,x::MultipliedOperator,args...;kwargs...) = environments(st,x.op,args...;kwargs...) +function environments(st, x::MultipliedOperator, args...; kwargs...) + return environments(st, x.op, args...; kwargs...) +end diff --git a/test/algorithms.jl b/test/algorithms.jl index a25d7190..04df376f 100644 --- a/test/algorithms.jl +++ b/test/algorithms.jl @@ -147,9 +147,9 @@ end alg = TDVP() # with regular MPOHamiltonian - H0left = simpleH; - H0middle = repeat( simpleH, 20); - H0right = simpleH; + H0left = simpleH + H0middle = repeat(simpleH, 20) + H0right = simpleH Ψ = InfiniteMPS([ℂ^2], [ℂ^20]) Ψwindow = WindowMPS(Ψ, 20) diff --git a/test/states.jl b/test/states.jl index 3d9e857e..4daf8d6b 100644 --- a/test/states.jl +++ b/test/states.jl @@ -219,7 +219,7 @@ end period = rand(1:4) Ψ = InfiniteMPS(fill(d, period), fill(D, period)) - Ψwindow = WindowMPS(rand, ComplexF64, rand(5:10), d, D, Ψ, Ψ); # version that does not copy + Ψwindow = WindowMPS(rand, ComplexF64, rand(5:10), d, D, Ψ, Ψ) # version that does not copy @test Ψwindow.left_gs === Ψwindow.right_gs # the same reference Ψwindow_copied = copy(Ψwindow)