Tensor.to_numpy
- Tensor.to_numpy(basis=None, copy=True)[source]
Get representation of tensor as a NumPy ndarray.
- Parameters
basis (NBasis | None) – Basis used for the representation. Default: None, which uses the current basis.
copy (bool) – If True, a copy is created of the NumPy data. Default: True.
- Returns
NumPy array representation of the tensor in the specified basis.
- Return type
np.ndarray