The continued usage of np.float yields the following error in the epr_numerical_diaganolization function when later versions (tested on v1.24.2) of Numpy is used.
AttributeError: module 'numpy' has no attribute 'float'.
`np.float` was a deprecated alias for the builtin `float`.
To avoid this error in existing code, use `float` by itself.
Doing this will not modify any behavior and is safe.
If you specifically wanted the numpy scalar type, use `np.float64` here.
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations.
This PR replaces np.float with float to solve this error.
Fixes issue #147
The
epr_numerical_diagonalization
function usesnp.float
which has been deprecated in Numpy.Refer https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
The continued usage of
np.float
yields the following error in theepr_numerical_diaganolization
function when later versions (tested on v1.24.2) of Numpy is used.This PR replaces
np.float
withfloat
to solve this error.