SyTen

◆ genSpinLattice()

Lattice syten::IPEPS::Lat::U1::genSpinLattice ( int const  width,
int const  depth,
double const  spint = 0.5,
std::vector< char >  site_classes = {} 
)

Generates a uniform Heisenberg spin lattice with U(1)-Sz symmetry.

Parameters
widthunit cell width
depthunit cell depth
spinttotal spin on each site
site_classesclass of each site (tensor to be placed there)

References std::vector< T >::begin(), std::vector< T >::end(), syten::genRepsU1(), syten::Inc, std::iota(), std::vector< T >::size(), and SYTEN_ASSERT_MSG.

Referenced by syten::T3N::Lat::U1::genSpinLattice(), and syten::Pyten::init_ipeps_latgen().

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