Skip to content

Commit 6b43885

Browse files
Make changelog and add tests
1 parent bf07897 commit 6b43885

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased](https://github.com/qutip/QuantumToolbox.jl/tree/main)
99

10+
- Return `sesolve` when `mesolve` allows it. ([#455])
11+
1012
## [v0.30.1]
1113
Release date: 2025-04-24
1214

@@ -212,3 +214,4 @@ Release date: 2024-11-13
212214
[#448]: https://github.com/qutip/QuantumToolbox.jl/issues/448
213215
[#450]: https://github.com/qutip/QuantumToolbox.jl/issues/450
214216
[#453]: https://github.com/qutip/QuantumToolbox.jl/issues/453
217+
[#455]: https://github.com/qutip/QuantumToolbox.jl/issues/455

test/core-test/time_evolution.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@
112112
sol_me = mesolve(prob_me)
113113
sol_me2 = mesolve(H, ψ0, tlist, c_ops, progress_bar = Val(false))
114114
sol_me3 = mesolve(H, ψ0, tlist, c_ops, e_ops = e_ops, saveat = saveat, progress_bar = Val(false))
115+
sol_me4 = mesolve(H, ψ0, tlist, progress_bar = Val(false))
115116
prob_mc = mcsolveProblem(H, ψ0, tlist, c_ops, e_ops = e_ops, progress_bar = Val(false))
116117
sol_mc = mcsolve(H, ψ0, tlist, c_ops, e_ops = e_ops, progress_bar = Val(false))
117118
sol_mc2 = mcsolve(
@@ -198,6 +199,7 @@
198199
sol_sme_string = sprint((t, s) -> show(t, "text/plain", s), sol_sme)
199200
@test prob_me.prob.f.f isa MatrixOperator
200201
@test prob_mc.prob.f.f isa MatrixOperator
202+
@test isket(sol_me4.states[1])
201203
@test sum(abs, sol_mc.expect .- sol_me.expect) / length(tlist) < 0.1
202204
@test sum(abs, sol_mc2.expect .- sol_me.expect) / length(tlist) < 0.1
203205
@test sum(abs, vec(expect_mc_states_mean) .- vec(sol_me.expect[1, saveat_idxs])) / length(tlist) < 0.1

0 commit comments

Comments
 (0)