mcsolve AttributeError: Can't pickle local object

182 views
Skip to first unread message

wang...@gmail.com

unread,
Feb 16, 2019, 5:52:13 PM2/16/19
to QuTiP: Quantum Toolbox in Python
Hi everyone, I'm writing the following code to setup a time-dependent Hamiltonian. The code can be run properly with mesolve solver. However, when I which to mcsolve solver, it normally shows AttributeError: Can't pickle local object.
Two exceptions are no collapse operator is applied and the for loop only run once, i.e. N=1.

I believe it should work by getting rid of for loop and hard coding all the possibilities. But this will be really annoying. 

anyone knows how to solve this issue? 

Cheers!
mcsolve.png

Paul Nation

unread,
Feb 16, 2019, 5:53:44 PM2/16/19
to qu...@googlegroups.com
You cannot define the functions in a loop. 
--
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+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<mcsolve.png>
Reply all
Reply to author
Forward
0 new messages