SyTen

◆ genParity() [2/2]

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.

Parameters
mpo_basisright (and, if flipped, left) MPO basis
site_basisupper (and, if flipped, lower) MPO basis
symmetrynumber (1-indexed) of the particle number symmetry
labellabel 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::U1::genFermiLattice(), syten::MPS::Lat::U1U1::genKondoModel(), and syten::MPS::Lat::U1U1::gentJ().

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