Hi all,
Unless I'm missing something, a hermitian operator H and exp(-iH) have the same eigenvectors. So, the eigenvectors of H and exp(-iH) should have inner products of either 0 or 1. However, the code below yields a different result
Full code:
Relevant excerpt:
...
jx = qutip.jmat(N,'x')
H0 = jx * jx
H0_expi = (-(1j) * (H0)).expm()
_, estates_H0 = H0.eigenstates()
_, estates_expi = H0_expi.eigenstates()
identity = [[np.abs(state.overlap(U0state)) for state in estates_H0] for U0state in estates_expi]
...
This code, executed in jupyter, yields some values between 0 and 1.
Is there something wrong with matrix exponentiation, or is my reasoning wrong?
Thanks and Regards,
AR