Calculates the norm of a state.
References syten::abs(), syten::STensorImpl::imag(), overlap(), syten::real(), SYTEN_ASSERT_DEBUG, and SYTEN_ZNORM_THRESHOLD.
Referenced by syten::MPS::RDMs::OrbRDM::checkValidity(), error_estimate_2svariance(), norm(), and orthogonalise_variational().