From 0c123dc9b59892e1c55830fd8db0173235221a7e Mon Sep 17 00:00:00 2001 From: Amit Rotem <66641519+AmitRotem@users.noreply.github.com> Date: Sun, 24 Dec 2023 10:05:58 +0200 Subject: [PATCH] small fix needs to promote LazySum factors --- src/schroedinger.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/schroedinger.jl b/src/schroedinger.jl index fffc12b1..db497dc2 100644 --- a/src/schroedinger.jl +++ b/src/schroedinger.jl @@ -57,7 +57,7 @@ end function schroedinger_dynamic(tspan, psi0::T, H::AbstractTimeDependentOperator; kwargs...) where {B,Bp,T<:Union{AbstractOperator{B,Bp},StateVector{B}}} tspan, psi0 = _promote_time_and_state(psi0, H, tspan) - Ht = TimeDependentSum(H.coefficients, H.static_op; init_time=zero(promote_type(eltype(tspan), typeof(current_time(H))))) + Ht = TimeDependentSum(H.coefficients, H.static_op.operators; init_time=zero(promote_type(eltype(tspan), typeof(current_time(H))))) schroedinger_dynamic(tspan, psi0, schroedinger_dynamic_function(Ht); kwargs...) end