Skip to content

Commit c204b89

Browse files
Make changelog and format code
1 parent e720c9f commit c204b89

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
## [Unreleased](https://github.com/qutip/QuantumToolbox.jl/tree/main)
99

1010
- Introduce new methods of `sesolve_map` and `mesolve_map` for advanced usage. Users can now customize their own `iter`ator structure, `prob_func` and `output_func`. ([#565])
11+
- Use `ProgressMeter.jl` for progress bar rather than our in-house implementation. ([#569])
1112

1213
## [v0.37.0]
1314
Release date: 2025-10-12
@@ -339,3 +340,4 @@ Release date: 2024-11-13
339340
[#555]: https://github.com/qutip/QuantumToolbox.jl/issues/555
340341
[#557]: https://github.com/qutip/QuantumToolbox.jl/issues/557
341342
[#565]: https://github.com/qutip/QuantumToolbox.jl/issues/565
343+
[#569]: https://github.com/qutip/QuantumToolbox.jl/issues/569

src/time_evolution/callback_helpers/callback_helpers.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ end
5757
function _generate_save_callback(e_ops, tlist, progress_bar, method)
5858
e_ops_data = e_ops isa Nothing ? nothing : _get_e_ops_data(e_ops, method)
5959

60-
progr = getVal(progress_bar) ? Progress(length(tlist), showspeed=true, enabled = getVal(progress_bar)) : nothing
60+
progr = getVal(progress_bar) ? Progress(length(tlist), showspeed = true, enabled = getVal(progress_bar)) : nothing
6161

6262
expvals = e_ops isa Nothing ? nothing : Array{ComplexF64}(undef, length(e_ops), length(tlist))
6363

@@ -69,7 +69,7 @@ function _generate_stochastic_save_callback(e_ops, sc_ops, tlist, store_measurem
6969
e_ops_data = e_ops isa Nothing ? nothing : _get_e_ops_data(e_ops, method)
7070
m_ops_data = _get_m_ops_data(sc_ops, method)
7171

72-
progr = getVal(progress_bar) ? Progress(length(tlist), showspeed=true, enabled = getVal(progress_bar)) : nothing
72+
progr = getVal(progress_bar) ? Progress(length(tlist), showspeed = true, enabled = getVal(progress_bar)) : nothing
7373

7474
expvals = e_ops isa Nothing ? nothing : Array{ComplexF64}(undef, length(e_ops), length(tlist))
7575
m_expvals = getVal(store_measurement) ? Array{Float64}(undef, length(sc_ops), length(tlist) - 1) : nothing

src/time_evolution/ssesolve.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function ssesolveProblem(
103103

104104
ψ0 = to_dense(_complex_float_type(ψ0), get_data(ψ0))
105105

106-
progr = Progress(length(tlist), showspeed=true, enabled = getVal(progress_bar))
106+
progr = Progress(length(tlist), showspeed = true, enabled = getVal(progress_bar))
107107

108108
sc_ops_evo_data = Tuple(map(get_data QobjEvo, sc_ops_list))
109109

src/time_evolution/time_evolution.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ function _ensemble_dispatch_output_func(
376376
output_func,
377377
) where {ET<:Union{EnsembleSerial,EnsembleThreads}}
378378
if getVal(progress_bar)
379-
progr = Progress(ntraj, showspeed=true, enabled = getVal(progress_bar))
379+
progr = Progress(ntraj, showspeed = true, enabled = getVal(progress_bar))
380380
f = (sol, i) -> _ensemble_output_func_progress(sol, i, progr, output_func)
381381
return (f, progr, nothing)
382382
else
@@ -390,7 +390,7 @@ function _ensemble_dispatch_output_func(
390390
output_func,
391391
) where {ET<:Union{EnsembleSplitThreads,EnsembleDistributed}}
392392
if getVal(progress_bar)
393-
progr = Progress(ntraj, showspeed=true, enabled = getVal(progress_bar))
393+
progr = Progress(ntraj, showspeed = true, enabled = getVal(progress_bar))
394394
progr_channel::RemoteChannel{Channel{Bool}} = RemoteChannel(() -> Channel{Bool}(1))
395395

396396
f = (sol, i) -> _ensemble_output_func_distributed(sol, i, progr_channel, output_func)

0 commit comments

Comments
 (0)