QuantestPy / quantestpy

Apache License 2.0
9 stars 3 forks source link

Resolve a warning from numpy #130

Open junnaka51 opened 2 years ago

junnaka51 commented 2 years ago

/mnt/workspace/quantestpy/quantestpy/operator.py:19: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray. m = np.matrix(m) /mnt/workspace/quantestpy/.venv/lib/python3.8/site-packages/numpy/matrixlib/defmatrix.py:69: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray. return matrix(data, dtype=dtype, copy=False)