Hello,
The following code causes a problem on my machine (Ubuntu 14.04 x64, Python 3.4.0, QuTiP 3.1.0, Cython 0.20.1, gcc 4.8.2):
import qutip as q
# H = [[q.sigmax(), '1j * ( asdf + 0.0 )']] # Always works
H = [[q.sigmax(), '1j * ( 0.0 + asdf )']] # Doesn't work
args = {'asdf':1.0}
q.mesolve(H, q.basis(2,0), [0,1], [], [], args=args)
I receive a gcc error within the autogenerated c file:
/home/vlad/.pyxbld/temp.linux-x86_64-3.4/pyrex/rhs74610.c:807:24: error: two or more data types in declaration specifiers
typedef npy_double _Complex __pyx_t_npy_double_complex;
I have found the following discussion about a seemingly related issue:
http://comments.gmane.org/gmane.comp.python.cython.user/10659which implies that the problem may lie in QuTiP, though I'm not brave enough to dig into the source myself.
Has anyone dealt with this issue before? I can work around it for the example above, but I'm working on code that auto-generates the time-dependence strings, in which I'd need to add special cases to manually avoid this error.
Thanks for making a wonderful package!
Vlad