@@ -162,7 +162,7 @@ H = -Δ/2.0 * sigmax() - ε0/2 * sigmaz()
162162
163163ohmic_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
167167R
168168```
@@ -183,6 +183,8 @@ H = - Δ/2.0 * sigmax() - ϵ0/2.0 * sigmaz()
183183ohmic_spectrum(ω) = (ω == 0.0) ? γ1 : γ1 / 2 * (ω / (2 * π)) * (ω > 0.0)
184184
185185a_ops = ((sigmax(), ohmic_spectrum),)
186+ R = bloch_redfield_tensor(H, a_ops; fock_basis = Val(true))
187+
186188e_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
194196tlist = 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)
196198expt_list = real(sol.expect)
197199
198200# plot the evolution of state on Bloch sphere
0 commit comments