SDef syten::MPS::overlap | ( | State const & | b, |
State const & | a, | ||
std::array< Index, 2 > | lhs, | ||
Index const | to | ||
) |
Returns overlap but performs swap operation on blocks beforehand.
b | the first state, to be complex-conjugated. |
a | the second state, not complex-conjugate. |
lhs | All the sites which are swapped on the r.h.s. |
to | Where sites are swapped to. |
References std::array< T >::begin(), std::array< T >::end(), std::endl(), syten::genIONode(), syten::MPS::State::lIdx, syten::logGI(), syten::MPS::State::maybeCache(), syten::progress(), syten::MPS::State::rIdx, syten::MPS::State::size(), std::sort(), SYTEN_ASSERT, and syten::MPS::State::uIdx.