mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 06:40:24 +01:00
docs: GEVP example updated to new syntax.
This commit is contained in:
parent
c00c21ee86
commit
cfc21a2a5e
1 changed files with 5 additions and 5 deletions
|
@ -168,9 +168,9 @@
|
|||
}
|
||||
],
|
||||
"source": [
|
||||
"vec = matrix_V1V1.GEVP(t0=3, ts=6 ,state=0, sorted_list=None)\n",
|
||||
"assert len(vec) == matrix_V1V1.N\n",
|
||||
"print(vec)"
|
||||
"vecs = matrix_V1V1.GEVP(t0=3, ts=6, sort=None)\n",
|
||||
"assert len(vecs[0]) == matrix_V1V1.N\n",
|
||||
"print(vecs[0])"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -202,7 +202,7 @@
|
|||
}
|
||||
],
|
||||
"source": [
|
||||
"matrix_V1V1.projected(vec).m_eff().show(comp=single_smearing.m_eff(), auto_gamma=True)"
|
||||
"matrix_V1V1.projected(vecs[0]).m_eff().show(comp=single_smearing.m_eff(), auto_gamma=True)"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -266,7 +266,7 @@
|
|||
"\n",
|
||||
"# We then solve the GEVP to get eigenvectors corresponding to the ground state.\n",
|
||||
"\n",
|
||||
"vec_ground = matrix_VnVn.GEVP(t0=3, ts=6, state=0, sorted_list=None)\n",
|
||||
"vec_ground = matrix_VnVn.GEVP(t0=3, ts=6, sort=None)[0]\n",
|
||||
"\n",
|
||||
"# Now we project the matrix-correlators to get new correlators belonging to the ground state.\n",
|
||||
"\n",
|
||||
|
|
Loading…
Add table
Reference in a new issue