insertSwap()
function which inserts a swap gate on two tensor legs.
More...
Namespaces | |
namespace | syten |
Syten namespace. | |
Functions | |
template<Rank rank> | |
Tensor< rank > | syten::insertSwap (Tensor< rank > in, Index const a, Index const b, bool const conjugate=false) |
Inserts a swap gate on the two specified tensor legs, which need to point in the same direction. More... | |
insertSwap()
function which inserts a swap gate on two tensor legs.