Skip to content

Commit e4861b5

Browse files
author
cailixun
committed
fix make docs
1 parent cf13437 commit e4861b5

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

docs/src/users_guide/time_evolution/brmesolve.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,13 @@ To illustrate how to calculate the Bloch-Redfield tensor, let's consider a two-l
165165
H = -\frac{1}{2}\Delta\sigma_x - \frac{1}{2}\varepsilon_0\sigma_z
166166
```
167167

168+
```@setup brmesolve
169+
using QuantumToolbox
170+
171+
using CairoMakie
172+
CairoMakie.enable_only_mime!(MIME"image/svg+xml"())
173+
```
174+
168175
```@example brmesolve
169176
Δ = 0.2 * 2π
170177
ε0 = 1.0 * 2π
@@ -178,7 +185,7 @@ function ohmic_spectrum(ω)
178185
elseif ω > 0 # relaxing noise
179186
return γ1 / 2 * ω / (2π)
180187
else
181-
return o
188+
return 0
182189
end
183190
end
184191
@@ -245,7 +252,7 @@ the corresponding master equation can be combined into one by using the function
245252
tuple should be given under `a_ops`.
246253

247254
```@example brmesolve
248-
output = brmesolve(H, psi0, tlist, a_ops=[[sigmax(),ohmic_spectrum]], e_ops=e_ops)
255+
output = brmesolve(H, ψ0, tlist, ((sigmax(),ohmic_spectrum),); e_ops=e_ops)
249256
```
250257

251-
The resulting `output` is of the `struct` [`TimeEvolutionSol`](@ref) like as from [`mesolve`](@ref).
258+
The resulting `output` is of the `struct` [`TimeEvolutionSol`](@ref) as [`mesolve`](@ref).

0 commit comments

Comments
 (0)