SyTen

◆ overlap() [2/5]

SDef syten::MPS::overlap ( Operator const &  b,
Operator const &  a 
)

Returns the overlap of two operators \( \hat A \) and \( \hat B \), equivalent to \(\mathrm{tr}\left(\hat A^\dagger B\right) \).

References syten::MPS::Operator::dIdx, syten::MPS::Operator::lIdx, syten::MPS::Operator::rIdx, std::vector< T >::size(), SYTEN_ASSERT_DEBUG, and syten::MPS::Operator::uIdx.

+ Here is the call graph for this function: