Skip to content

Commit 99b93ec

Browse files
Update docs
1 parent bc76e9f commit 99b93ec

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/src/users_guide/time_evolution/brmesolve.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ H = -Δ/2.0 * sigmax() - ε0/2 * sigmaz()
162162
163163
ohmic_spectrum(ω) = (ω == 0.0) ? γ1 : γ1 / 2 * (ω / (2 * π)) * (ω > 0.0)
164164
165-
R, U = bloch_redfield_tensor(H, [(sigmax(), ohmic_spectrum)])
165+
R, U = bloch_redfield_tensor(H, ((sigmax(), ohmic_spectrum), ))
166166
167167
R
168168
```
@@ -183,6 +183,8 @@ H = - Δ/2.0 * sigmax() - ϵ0/2.0 * sigmaz()
183183
ohmic_spectrum(ω) = (ω == 0.0) ? γ1 : γ1 / 2 * (ω / (2 * π)) * (ω > 0.0)
184184
185185
a_ops = ((sigmax(), ohmic_spectrum),)
186+
R = bloch_redfield_tensor(H, a_ops; fock_basis = Val(true))
187+
186188
e_ops = [sigmax(), sigmay(), sigmaz()]
187189
188190
# same initial random ket state in QuTiP doc
@@ -192,7 +194,7 @@ e_ops = [sigmax(), sigmay(), sigmaz()]
192194
])
193195
194196
tlist = LinRange(0, 15.0, 1000)
195-
sol = brmesolve(H, ψ0, tlist, a_ops, e_ops=e_ops)
197+
sol = mesolve(R, ψ0, tlist, e_ops=e_ops)
196198
expt_list = real(sol.expect)
197199
198200
# plot the evolution of state on Bloch sphere

0 commit comments

Comments
 (0)