SyTen

◆ Lattice() [2/3]

syten::MPS::Lattice::Lattice ( std::string const &  description_,
std::vector< Index > const &  siteType_,
std::vector< Basis > const &  typeBasis_,
Basis const &  vac_ 
)

Standard constructor for nonuniform lattices.

Parameters
siteType_vector of integers 0[, 1[, 2]]. siteType_[i] == j means that site i is of type j
typeBasis_vector of bases. typeBasis_[j] = x means that sites of type j have local basis x
description_free-form string describing the lattice
vac_vacuum basis for states and operators built on the lattice

The resulting lattice has one global operator, the identity MPO I and no single-site operators.

References syten::MPS::genMPOId(), globalOperators, syten::MPS::Operator::is_sso, length, std::make_pair(), siteBasis(), and vac.

+ Here is the call graph for this function: