Hi everyone I have simple code for time evaluation Hamiltonian.
I need to consider psi0 as
ground state of an operator . for example
H=sigmaz()
psi0=sigmax().groundstate()
taulist = np.linspace(0, 1, 100)
result = mesolve(H, psi0, taulist, [],[])
print(result)
I get following error
"in mesolve
if (not (rho0.isoper or rho0.issuper)) or (rho0.dims[0] != rho0.dims[1]):
AttributeError: 'tuple' object has no attribute 'isoper' "
I have another question
How we can compute amplitude of state in mesolve result . I mean |a(t)|^2 in psi(t).
can you help?