Tensor< 4 > syten::MPS::Lat::genSU2Parity | ( | Basis const & | mpo_basis, |
Basis const & | site_basis, | ||
Index const | symmetry, | ||
Index const | label | ||
) |
Generates a parity tensor \( p \) with only SU(2) symmetry, with diagonal entries 1 for states with even fermion number and -1 for states with odd fermion number.
mpo_basis | right (and, if flipped, left) MPO basis |
site_basis | upper (and, if flipped, lower) MPO basis |
symmetry | number (1-indexed) of the particle number symmetry |
label | label index (0-indexed) within the symmetry |
References syten::MPS::genMPOId(), syten::Tensor< rank >::reduce(), and syten::MPS::Operator::uIdx.
Referenced by syten::MPS::Lat::SU2Fermion::genFermiHubbardSU2().