SyTen

◆ genSU2Parity()

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.

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::Lat::SU2Fermion::genFermiHubbardSU2().

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