| void syten::MPS::Lattice::add | ( | std::string const & | id, |
| std::string const & | desc, | ||
| Tensor< 4 > const & | leftI, | ||
| Tensor< 4 > const & | op, | ||
| Tensor< 4 > const & | rightI, | ||
| bool const | overwrite = false |
||
| ) |
Add a single-site operator, valid only for uniform lattices.
| id | key used in siteOperators, e.g. ch or sz |
| desc | free-form string describing the operator |
| leftI | identity tensor used to the left of the site on which the operator acts |
| op | operator tensor used on the site on which the operator acts |
| rightI | identity tensor used to the right of the site on which the operator acts |
| overwrite | set to true if you want to overwrite an existing operator |
References syten::RepRegister::id(), isUniform(), std::make_pair(), std::move(), siteOperators, and SYTEN_ASSERT_DEBUG.
Here is the call graph for this function: