Calculates the overlap of two states.
References syten::MPS::LBOState::m(), syten::MPS::LBOState::size(), SYTEN_ASSERT, and syten::MPS::LBOState::v().
Referenced by syten::MPS::RandomState::generateSampledState(), normSqd(), syten::MPS::State::truncateVariational(), and variance().