SyTen

◆ genSpinLattice()

MPS::Lattice syten::MPS::Lat::U1::genSpinLattice ( Index  length,
SRDef  S 
)

Generates a spin lattice.

Parameters
lengththe number of sites
Slength of the spins on each site
Implemented Single-Site Operators
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().

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