Skip to content

Commit f7543ea

Browse files
Format code and add changelog
1 parent 0996550 commit f7543ea

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
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+
- Improve efficiency of `bloch_redfield_tensor` by avoiding unnecessary conversions. ([#509])
11+
1012
## [v0.33.0]
1113
Release date: 2025-07-22
1214

@@ -267,3 +269,4 @@ Release date: 2024-11-13
267269
[#504]: https://github.com/qutip/QuantumToolbox.jl/issues/504
268270
[#506]: https://github.com/qutip/QuantumToolbox.jl/issues/506
269271
[#507]: https://github.com/qutip/QuantumToolbox.jl/issues/507
272+
[#509]: https://github.com/qutip/QuantumToolbox.jl/issues/509

test/core-test/brmesolve.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
A_op = a+a'
66
spectra(x) = (x>0) * 0.5
77
for sec_cutoff in [0, 0.1, 1, 3, -1]
8-
R = bloch_redfield_tensor(H, ((A_op, spectra), ), [a^2], sec_cutoff = sec_cutoff, fock_basis = Val(true))
9-
R_eig, evecs = bloch_redfield_tensor(H, ((A_op, spectra), ), [a^2], sec_cutoff = sec_cutoff, fock_basis = Val(false))
8+
R = bloch_redfield_tensor(H, ((A_op, spectra),), [a^2], sec_cutoff = sec_cutoff, fock_basis = Val(true))
9+
R_eig, evecs =
10+
bloch_redfield_tensor(H, ((A_op, spectra),), [a^2], sec_cutoff = sec_cutoff, fock_basis = Val(false))
1011
@test isa(R, QuantumObject)
1112
@test isa(R_eig, QuantumObject)
1213
@test isa(evecs, QuantumObject)

0 commit comments

Comments
 (0)