Tensor< 4 > syten::MPS::Lat::genParity | ( | Basis const & | mpo_basis, |
Basis const & | site_basis, | ||
Index const | symmetry, | ||
Index const | label | ||
) |
Generates a parity tensor \( p \) 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::QcLatticeGenerator::construct_su2u1(), syten::MPS::ChemHelper::createLeftSSO(), syten::MPS::Lat::U1U1::genFermiBoseLattice(), syten::MPS::Lat::U1U1::genFermiHubbardAngularMomentum(), syten::MPS::Lat::SU2U1Z::genFermiHubbardKNS(), syten::MPS::Lat::U1U1Z::genFermiHubbardKNS(), syten::MPS::Lat::U1U1::genKondoModel(), syten::MPS::Lat::U1U1::gentJ(), and syten::MPS::Lat::SU2U1::gentJHardCoreBoson().