You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The groundstate() function seems to have a bug in the current version of dev.major.
When calling groundstate() on any Qobj, an error occurs.
Code to Reproduce the Bug
from qutip import destroy
H = destroy(2).dag() * destroy(2)
H.groundstate()
Code Output
File "/home/chris/git/qutip-dev-major/qutip/core/qobj.py", line 1632, in groundstate
grndvec = Qobj(evecs[0], dims=new_dims)
TypeError: 'qutip.core.data.dense.Dense' object is not subscriptable
Bug Description
The
groundstate()
function seems to have a bug in the current version ofdev.major
.When calling
groundstate()
on any Qobj, an error occurs.Code to Reproduce the Bug
Code Output
Expected Behaviour
The groundstate of H should be returned.
Your Environment
Additional Context
No response
The text was updated successfully, but these errors were encountered: