Hello,
I think I ran into a problem in the function mesolve. I have the following script for the simple case of a single qubit driven with dissipation. No matter what driving amplitude or detuning I choose, the system always ends up in the 50% population state. If I remove dissipation I obtain what I would expect which is an average steady-state population that depends on driving amplitude, detuning of driving and qubit dissipation. I have tried all possible ways in which to write the time-dependent Hamiltonian with the same result. Here is the code, with the result for the used parameters, which shows that something is odd since starting from the ground state with driving amplitude set to 0, I end up at 50%... any feedback will be much appreciated!
from qutip import *
from scipy import *
from pylab import *
#Define input parameters
eps = 0
delta = 24
w = 28
A = 0
wq = sqrt(delta ** 2 + eps ** 2)
#State vectors in diagonal basis
grd = basis(2,0)
exc = basis(2,1)
#Initial state: ground state of the full Hamiltonian in the non-diagonal basis
grdf = sqrt((wq + eps)/(2 * wq)) * grd - sqrt((wq - eps)/(2 * wq)) * exc
psi0f = grdf
#Definition of qubit operators
sx = sigmax()
sz = sigmaz()
sm = destroy(2)
#Collapse operators
cf_ops = []
gamma = 0.1
cf_ops.append(sqrt(gamma) * sm)
gamma2 = gamma/2
cf_ops.append(sqrt(gamma2) * sz)
#Time vector
t = linspace(0, 50, 100)
#Define final state projector
sigma_ggf = grdf * grdf.dag()
#System Hamiltonian
H0f = -delta/2 * sx - eps/2 * sz
H1f = -sz
Hf = [H0f, [H1f, 'A * cos(w * t)']]
#Parameter values of driving
Hargs = {'w': w, 'A': A}
output = mesolve(Hf, psi0f, t, cf_ops, [sigma_ggf], args = Hargs)
plot(t, output.expect[0])
show()

Thanks!
Pol