TensorNetwork icon indicating copy to clipboard operation
TensorNetwork copied to clipboard

Make Node a subclass of Tensor?

Open repst opened this issue 4 years ago • 5 comments

Having not followed the recent PRs, our group became aware of the new Tensor class with the release of 0.4.2. We found that tensornetwork.ncon, tensornetwork.conj and tensornetwork.node now take Tensor objects and throw errors when passed Node objects. If Node inherited from Tensor they could share such functionality. I think of a node as a tensor with extra ability to connect to other nodes.

What do you think of this solution rather than wrapping Node around Tensor as discussed in #848?

repst avatar Oct 26 '20 21:10 repst