SyTen

◆ genParity() [1/2]

Tensor< 4 > syten::MPS::Lat::genParity ( Basis const &  mpo_basis,
Basis const &  site_basis 
)

Generates a parity tensor \( p \) with diagonal entries 1 for states with even fermion number and -1 for states with odd fermion number.

Requires correct labelling of the sectors as fermionic using Fermionic.

References syten::MPS::genMPOId(), syten::minus_on_swap(), syten::MPS::Operator::rIdx, and syten::MPS::Operator::uIdx.

+ Here is the call graph for this function: