MPS::Lattice syten::MPS::Lat::U1::genSpinLattice | ( | Index | length, |
SRDef | S | ||
) |
Generates a spin lattice.
length | the number of sites |
S | length of the spins on each site |
sp
and sm
for the spin ladder operators \(S^+, S^-\) as well as sz
for \( S^z\). References syten::Tensor< rank >::add(), syten::MPS::genMPOId(), syten::genRepsU1(), syten::genRepU1(), syten::Inc, std::move(), syten::Tensor< rank >::push_back(), syten::sqrt(), and syten::to_string_rd().
Referenced by syten::Pyten::init_mp_latgen().