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
you get a np.ndarray rather than a cp.ndarray. This does not seem to be the case for other backends that do not have np.ndarray as native arrays, e.g. PyTorchBackend or Tensorflowbackend.
I was wondering what was the reason behind this, because this makes some things in qiboteam/qibo#1548 more annoying, requiring for you to explicitely cast to cupy arrays when needed.
The text was updated successfully, but these errors were encountered:
While working on qiboteam/qibo#1548 I noticed that if you try to get the matrices from the
CupyBackend
, namely:you get a
np.ndarray
rather than acp.ndarray
. This does not seem to be the case for other backends that do not havenp.ndarray
as native arrays, e.g.PyTorchBackend
orTensorflowbackend
.I was wondering what was the reason behind this, because this makes some things in qiboteam/qibo#1548 more annoying, requiring for you to explicitely cast to cupy arrays when needed.
The text was updated successfully, but these errors were encountered: