Error when use mcsolve

15 views
Skip to first unread message

quans...@gmail.com

unread,
May 1, 2017, 10:29:29 AM5/1/17
to QuTiP: Quantum Toolbox in Python
I have installed the latest Anaconda with 32 bit for windows 7 and update numpy into "1. 12. 1" meanwhile. However there are some error when I use the Monte Carlo solver mcsolve when the c-ops are not none.
Here I choose the example which has been introduced by the guide book, and the codes following

from qutip import *
import numpy as np
times = np.linspace(0.0, 10.0, 200)
psi0 = tensor(fock(2, 0), fock(10, 5))
a = tensor(qeye(2), destroy(10))
sm = tensor(destroy(2), qeye(10))
co =  np.sqrt(0.1) * a
H = 2 * np.pi * a.dag() * a + 2 * np.pi * sm.dag() * sm + 2 * np.pi * 0.25 * (sm * a.dag() + sm.dag() * a)
data = mcsolve(H, psi0, times, [co], [a.dag() * a, sm.dag() * sm])

But, the error reminder

However, when I set the c-ops none, it woks well.
data = mcsolve(H, psi0, times, [], [a.dag() * a, sm.dag() * sm])


Paul Nation

unread,
May 1, 2017, 10:31:22 AM5/1/17
to QuTiP Group
Try the latest 4.2 development version on GitHub.

--
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.
Reply all
Reply to author
Forward
0 new messages