Open
Description
The onehot
function currently outputs a dense tensor which is not very efficient to contract. Ideally, this function would output an ITensor with sparse storage.
It seems like there is not yet an NDTensor TensorStorage type which implements a sparse array though I see that there is movement in overhauling the TensorStorage system (#1250).