Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
needs to promote LazySum factors
  • Loading branch information
AmitRotem authored Dec 24, 2023
1 parent a3b376b commit 0c123dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/schroedinger.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0c123dc

Please sign in to comment.