Hi Muir,
I got the same problem today: I was trying to pass an imaginary term into the Hamiltonian (something like an abs(erf(1+1j*t)) etc.).
It first gives me the error with :Cannot assign type 'double complex' to 'double',
then I change all the 1j*t term to complex(0,t), and it gives me this error.
I tried your solution but it is not working though. Will you mind if I ask if you are trying to parse complex term into your Hamiltonian as well when you are calculating the Bloch-Redfield master equation? If so, do you have any tips/tricks for incorporating complex term into the Bloch-redfield master equation ?
Zak