Dear all,
Two days ago, my code was working fine, but today I tried to run it again and I got the following error message:
File "ss3qubits.py", line 55, in <module>
evals, ekets = HT.eigenstates()
File "/home/leo/anaconda3/lib/python3.7/site-packages/qutip/qobj.py", line 1668, in eigenstates
norms = np.array([ket.norm() for ket in ekets])
File "/home/leo/anaconda3/lib/python3.7/site-packages/qutip/qobj.py", line 1668, in <listcomp>
norms = np.array([ket.norm() for ket in ekets])
AttributeError: 'numpy.ndarray' object has no attribute 'norm'
It seems that the np.array is changing the type of the object and ket is no longer a quantum object, therefore the norm attribute is no longer applicable.
Does anyone know what happened and how to solve this problem completely?
Best,
Leo