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.
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().