Hi every one,
I'm a beginner in python programing and I am trying to solve Lindblad master equation for a system with 4-bosonic mode.
But when I want to extract final density matrix from "qutip.mesolve" function, I'm facing with an error like that:
#system's Dynamics****************************************
rho_0=tensor(coherent_dm(N1,5),thermal_dm(N2,nm),ket2dm(basis(N3,0)),ket2dm(basis(N4,0)));
times=np.linspace(0,T,20);
result=mesolve(H,rho_0,times,c_ops,[])
rho_f=result[-1]
--------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-7-00ea0a0c3630> in <module>()
3 times=np.linspace(0,10,20);
4 result=mesolve(H,rho_0,times,c_ops,[])
----> 5 rho_f=result[-1]
AttributeError: Result instance has no attribute '__getitem__'
and the only code that read the "rho_f=result[-1]" for me without above error is "odesolve".
I'd wonder if any body help me to solve my problem.