docs: GEVP example updated to new syntax.

This commit is contained in:
Fabian Joswig 2022-05-16 12:05:33 +01:00
parent c00c21ee86
commit cfc21a2a5e

View file

@ -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",