Qutip pay its most computing time in call integrator of scipy module. The function scipy.integrate._ode.run() take most calculation.
Considering my limited knowledge of python, this problem is very difficult for me. Are there some master-hand can help me?
your sincerely
Hanqing
uTiP: Quantum Toolbox in Python Copyright (c) 2011 and later. A. J. Pitchford, P. D. Nation, R. J. Johansson, A. Grimsmo, and C. Granade QuTiP Version: 4.2.0 Numpy Version: 1.13.3 Scipy Version: 1.0.0 Cython Version: 0.27.2 Matplotlib Version: 2.0.2 Python Version: 3.5.2 Number of CPUs: 16 BLAS Info: OPENBLAS OPENMP Installed: False INTEL MKL Ext: False Platform Info: Linux (x86_64) Installation path: /usr/local/lib/python3.5/site-packages/qutip
%%timeN = 40a_1 = destroy(N)a_2 = destroy(N)a_1 = tensor(a_1,qeye(N))a_2 = tensor(qeye(N),a_2)H = a_1.dag() * a_1 + 2 * a_2.dag() * a_2+ 0.1 * (a_1.dag() * a_2 + a_2.dag() * a_1)psi0 = tensor(basis(N,3),basis(N,1))kappa = 0.2a_ops = [ [a_1 + a_1.dag(), '{kappa} * exp(-t) * (w >= 0)'.format(kappa=kappa)]]tlist = np.linspace(0,1,10)cProfile.run('out = brmesolve(H, psi0, tlist, a_ops, e_ops=[a_1.dag() * a_1, a_2.dag() *a_2])','cprofile40.log')actual_answer = 9.0 * np.exp(-kappa * (1.0 - np.exp(-tlist)))
--
You received this message because you are subscribed to the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qutip/olXNyh20mxA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qutip+un...@googlegroups.com.