SyTen

◆ genSwap()

Tensor< 4 > syten::genSwap ( Basis const &  firstBasis,
Basis const &  secondBasis 
)

Constructs a fermionic swap gate of two bases.

The resulting tensor has legs fB, sB, fB.flipped and sB.flipped and is the identity up to factors of ±1. Requires fermionic sectors in firstBasis and secondBasis to be marked properly and both bases to have the same direction.

fB sB
| |
[ 1 2 ]
[ swap ]
[ 3 4 ]
| |
fB.f sB.f
T swap(T... args)

References syten::Basis::dir, syten::Basis::flipped(), genFuse(), genSplit(), Inc, minus_on_swap(), and SYTEN_ASSERT_MSG.

Referenced by syten::IPEPS::barTensor(), and syten::IPEPS::mult().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: