Skip to content

Commit 3694b2c

Browse files
author
cailixun
committed
ending code example
1 parent 617d03b commit 3694b2c

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

docs/src/users_guide/time_evolution/brmesolve.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ One advantage of this approach is that the dissipation processes and rates are o
1414
On the downside, it does not intrinsically guarantee that the resulting master equation unconditionally preserves the physical properties of the density matrix (because it is a perturbative method).
1515
The Bloch-Redfield master equation must therefore be used with care, and the assumptions made in the derivation must be honored.
1616
(The Lindblad master equation is in a sense more robust -- it always results in a physical density matrix -- although some collapse operators might not be physically justified).
17-
For a full derivation of the Bloch Redfield master equation, see e.g. [C. Cohen-Tannoudji, 1992]() or [H.-P. Breuer, 2002]().
17+
For a full derivation of the Bloch Redfield master equation, see e.g. [Cohen_Tannoudji_atomphoton](@citet) or [breuer2002](@citet).
1818
Here we present only a brief version of the derivation, with the intention of introducing the notation and how it relates to the implementation in `QuantumToolbox.jl`.
1919

2020

@@ -237,3 +237,15 @@ add_vectors!(sphere, [Δ, 0, ϵ0] / √(Δ^2 + ϵ0^2))
237237
fig, _ = render(sphere)
238238
fig
239239
```
240+
241+
The two steps of calculating the Bloch-Redfield tensor and evolving according to
242+
the corresponding master equation can be combined into one by using the function
243+
[`brmesolve`](@ref), in addition to the same arguments as [`mesolve`](@ref) and
244+
[`mcsolve`](@ref), the nested list of operator-spectrum
245+
tuple should be given under `a_ops`.
246+
247+
```@example brmesolve
248+
output = brmesolve(H, psi0, tlist, a_ops=[[sigmax(),ohmic_spectrum]], e_ops=e_ops)
249+
```
250+
251+
The resulting `output` is of the `struct` [`TimeEvolutionSol`](@ref) like as from [`mesolve`](@ref).

0 commit comments

Comments
 (0)