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.
width | unit cell width |
depth | unit cell depth |
spint | total spin on each site |
site_classes | class 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().