feat: Exception added if Corr.GEVP is called on single correlator

instead of a correlator matrix.
This commit is contained in:
Fabian Joswig 2022-05-03 10:51:08 +01:00
parent a6deb52a04
commit 77f0fbf699

View file

@ -259,6 +259,10 @@ class Corr:
"Eigenvector" - Use the method described in arXiv:2004.10472 [hep-lat] to find the set of v(t) belonging to the state.
The reference state is identified by its eigenvalue at t=ts
"""
if self.N == 1:
raise Exception("GEVP methods only works on correlator matrices and not single correlators.")
symmetric_corr = self.matrix_symmetric()
if sorted_list is None:
if (ts is None):