hey,
I wander whether one has occurred such problem:
I define a initial state:
state=a[1]*b[0]*c[0]*d[0]*1j+a[1]*b[0]*c[0]*d[0] + a[2]*b[1]*c[1]*d[1] # for some reason I have to do such decomposition
datalist=state.as_coefficients_dict()
I can get:
{ FF2[0]*FF3[0]*FF4[0]: 1, FF2[1]*FF3[1]*FF4[1]: 1, I*FF2[0]*FF3[0]*FF4[0]: 1 }
Now the problem is :
Because I is a Imaginary number, it's not a symbol. How can I get something such as { FF2[0]*FF3[0]*FF4[0]: 1, FF2[1]*FF3[1]*FF4[1]: 1, FF2[0]*FF3[0]*FF4[0]: 1j} or { FF2[0]*FF3[0]*FF4[0]: 1+1j, FF2[1]*FF3[1]*FF4[1]: 1 }
Thank you very much!