MPS::Lattice syten::MPS::Lat::Nil::genSpinLattice | ( | Index | length, |
SRDef | s | ||
) |
Spin lattice with no symmetries.
length | length of the chain |
s | spin size \( s' \) |
sz
, sx
, sy
to measure spin in the corresponding direction and sp
/sm
as spin ladder operators. References syten::abs(), syten::Tensor< rank >::add(), syten::MPS::genMPOId(), syten::genRepNil(), syten::Inc, syten::makeZero(), syten::Tensor< rank >::push_back(), std::round(), syten::sqrt(), SYTEN_EC_COMPLEX_SCALAR_REQUIRED, SYTEN_EXIT, and syten::to_string_rd().
Referenced by syten::Pyten::init_mp_latgen().