You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
) where {T_state<:Union{QuantumObject,ADOs}} =HEOMsolve_map(M, [ρ0], tlist; kwargs...)
447
+
448
+
# this method is for advanced usage
449
+
# User can define their own iterator structure, prob_func and output_func
450
+
# - `prob_func`: Function to use for generating the ODEProblem.
451
+
# - `output_func`: a `Tuple` containing the `Function` to use for generating the output of a single trajectory, the (optional) `ProgressBar` object, and the (optional) `RemoteChannel` object.
452
+
#
453
+
# Return: An array of TimeEvolutionSol objects with the size same as the given iter.
454
+
functionHEOMsolve_map(
455
+
prob::TimeEvolutionProblem{<:ODEProblem},
456
+
iter::AbstractArray,
457
+
alg::OrdinaryDiffEqAlgorithm=DP5(),
458
+
ensemblealg::EnsembleAlgorithm=EnsembleThreads();
459
+
prob_func::Union{Function,Nothing}=nothing,
460
+
output_func::Union{Tuple,Nothing}=nothing,
461
+
progress_bar::Union{Val,Bool}=Val(true),
462
+
)
463
+
# generate ensemble problem
464
+
ntraj =length(iter)
465
+
_prob_func =isnothing(prob_func) ? (prob, i, repeat) ->_se_me_map_prob_func(prob, i, repeat, iter) : prob_func
0 commit comments