docs: examples for the gevp moved from correlator example to independent

file. Docstring of Corr.smearing added.
This commit is contained in:
Fabian Joswig 2022-01-28 15:54:08 +00:00
parent c11410da5e
commit fbb98e05f6
3 changed files with 391 additions and 603 deletions

File diff suppressed because one or more lines are too long

335
examples/06_gevp.ipynb Normal file

File diff suppressed because one or more lines are too long

View file

@ -177,8 +177,16 @@ class Corr:
def sum(self):
return np.sqrt(self.N) * self.projected(np.ones(self.N))
# For purposes of debugging and verification, one might want to see a single smearing level. smearing will return a Corr at the specified i,j. where both are integers 0<=i,j<N.
def smearing(self, i, j):
"""Picks the element [i,j] from every matrix and returns a correlator containing one Obs per timeslice.
Parameters
----------
i : int
First index to be picked.
j : int
Second index to be picked.
"""
if self.N == 1:
raise Exception("Trying to pick smearing from projected Corr")
newcontent = [None if(item is None) else item[i, j] for item in self.content]