cuQuantum icon indicating copy to clipboard operation
cuQuantum copied to clipboard

Functions for arithmetic operations of two tensor networks

Open hanfluid opened this issue 1 year ago • 3 comments

Does cuQuantum include efficient functions for implementing arithmetic operations, i.e., addition and subtraction, on two tensor networks?

hanfluid avatar Feb 12 '24 20:02 hanfluid

What do you mean exactly? Addition and subtraction of entire tensor networks or something else?

DmitryLyakh avatar Feb 12 '24 21:02 DmitryLyakh

For instance, to compute the elementwise sum of a and b, using mps_a and mps_b, where a and b represent two state vectors approximated by the Matrix Product States mps_a and mps_b, respectively.

hanfluid avatar Feb 12 '24 23:02 hanfluid

If you want to (add/subtract/sum elementwise) of one tensor, you can use the cuTENSOR library. cuQuantum performs contraction of a tensor network. if you want to add/subtract a tensor network (more than one tensor) then you might want to do it one by one using the cuTENSOR. Currently cuQuantum doesn't offer such unitary operation on a network.

haidarazzam avatar Feb 13 '24 15:02 haidarazzam