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.