mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 11:33:42 +02: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": [
|
"source": [
|
||||||
"vec = matrix_V1V1.GEVP(t0=3, ts=6 ,state=0, sorted_list=None)\n",
|
"vecs = matrix_V1V1.GEVP(t0=3, ts=6, sort=None)\n",
|
||||||
"assert len(vec) == matrix_V1V1.N\n",
|
"assert len(vecs[0]) == matrix_V1V1.N\n",
|
||||||
"print(vec)"
|
"print(vecs[0])"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -202,7 +202,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"source": [
|
"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",
|
"\n",
|
||||||
"# We then solve the GEVP to get eigenvectors corresponding to the ground state.\n",
|
"# We then solve the GEVP to get eigenvectors corresponding to the ground state.\n",
|
||||||
"\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",
|
"\n",
|
||||||
"# Now we project the matrix-correlators to get new correlators belonging to the ground state.\n",
|
"# Now we project the matrix-correlators to get new correlators belonging to the ground state.\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue