ITensors.jl icon indicating copy to clipboard operation
ITensors.jl copied to clipboard

[ITensors] [ENHANCEMENT] contract() with specified output index ordering

Open amilsted opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe.

Currently, to get a contraction output with a specified index ordering, one can use something like ITensors.contract!(ITensor(k, i), randomITensor(i, j), randomITensor(j, k)).

Describe the solution you'd like

It would be nice to have an option like ITensors.contract(randomITensor(i, j), randomITensor(j, k); output_order=(k, i)).

amilsted avatar Nov 07 '22 19:11 amilsted