|
157 | 157 | e_ops::Union{Nothing,AbstractVector,Tuple} = nothing, |
158 | 158 | params = NullParameters(), |
159 | 159 | rng::AbstractRNG = default_rng(), |
160 | | - ntraj::Int = 1, |
| 160 | + ntraj::Int = 500, |
161 | 161 | ensemble_method = EnsembleThreads(), |
162 | 162 | prob_func::Union{Function, Nothing} = nothing, |
163 | 163 | output_func::Union{Tuple,Nothing} = nothing, |
@@ -196,7 +196,7 @@ Above, ``\hat{C}_i`` represent the collapse operators related to pure dissipatio |
196 | 196 | - `e_ops`: List of operators for which to calculate expectation values. It can be either a `Vector` or a `Tuple`. |
197 | 197 | - `params`: `NullParameters` of parameters to pass to the solver. |
198 | 198 | - `rng`: Random number generator for reproducibility. |
199 | | -- `ntraj`: Number of trajectories to use. |
| 199 | +- `ntraj`: Number of trajectories to use. Default is `500`. |
200 | 200 | - `ensemble_method`: Ensemble method to use. Default to `EnsembleThreads()`. |
201 | 201 | - `prob_func`: Function to use for generating the SDEProblem. |
202 | 202 | - `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. |
@@ -224,7 +224,7 @@ function smesolveEnsembleProblem( |
224 | 224 | e_ops::Union{Nothing,AbstractVector,Tuple} = nothing, |
225 | 225 | params = NullParameters(), |
226 | 226 | rng::AbstractRNG = default_rng(), |
227 | | - ntraj::Int = 1, |
| 227 | + ntraj::Int = 500, |
228 | 228 | ensemble_method = EnsembleThreads(), |
229 | 229 | prob_func::Union{Function,Nothing} = nothing, |
230 | 230 | output_func::Union{Tuple,Nothing} = nothing, |
|
281 | 281 | e_ops::Union{Nothing,AbstractVector,Tuple} = nothing, |
282 | 282 | params = NullParameters(), |
283 | 283 | rng::AbstractRNG = default_rng(), |
284 | | - ntraj::Int = 1, |
| 284 | + ntraj::Int = 500, |
285 | 285 | ensemble_method = EnsembleThreads(), |
286 | 286 | prob_func::Union{Function, Nothing} = nothing, |
287 | 287 | output_func::Union{Tuple,Nothing} = nothing, |
@@ -321,7 +321,7 @@ Above, ``\hat{C}_i`` represent the collapse operators related to pure dissipatio |
321 | 321 | - `e_ops`: List of operators for which to calculate expectation values. It can be either a `Vector` or a `Tuple`. |
322 | 322 | - `params`: `NullParameters` of parameters to pass to the solver. |
323 | 323 | - `rng`: Random number generator for reproducibility. |
324 | | -- `ntraj`: Number of trajectories to use. |
| 324 | +- `ntraj`: Number of trajectories to use. Default is `500`. |
325 | 325 | - `ensemble_method`: Ensemble method to use. Default to `EnsembleThreads()`. |
326 | 326 | - `prob_func`: Function to use for generating the SDEProblem. |
327 | 327 | - `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. |
@@ -350,7 +350,7 @@ function smesolve( |
350 | 350 | e_ops::Union{Nothing,AbstractVector,Tuple} = nothing, |
351 | 351 | params = NullParameters(), |
352 | 352 | rng::AbstractRNG = default_rng(), |
353 | | - ntraj::Int = 1, |
| 353 | + ntraj::Int = 500, |
354 | 354 | ensemble_method = EnsembleThreads(), |
355 | 355 | prob_func::Union{Function,Nothing} = nothing, |
356 | 356 | output_func::Union{Tuple,Nothing} = nothing, |
|
382 | 382 | function smesolve( |
383 | 383 | ens_prob::TimeEvolutionProblem, |
384 | 384 | alg::StochasticDiffEqAlgorithm = SRA1(), |
385 | | - ntraj::Int = 1, |
| 385 | + ntraj::Int = 500, |
386 | 386 | ensemble_method = EnsembleThreads(), |
387 | 387 | ) |
388 | 388 | sol = _ensemble_dispatch_solve(ens_prob, alg, ensemble_method, ntraj) |
|
0 commit comments