lanczos_arpack¶
full name: tenpy.linalg.lanczos.lanczos_arpack
parent module:
tenpy.linalg.lanczostype: function
-
tenpy.linalg.lanczos.lanczos_arpack(H, psi, options={}, orthogonal_to=[])[source]¶ Use
scipy.sparse.linalg.eigsh()to find the ground state of H.This function has the same call/return structure as
lanczos(), but uses the ARPACK package through the functionsspeigsh()instead of the custom lanczos implementation inLanczosGroundState. This function is mostly intended for debugging, since it requires to convert the vector from np_conservedArrayinto a flat numpy array and back during each matvec-operation!Deprecated since version 0.6.0: Going to remove the orthogonal_to argument. Instead, replace H with OrthogonalNpcLinearOperator(H, orthogonal_to) using the
OrthogonalNpcLinearOperator.- Parameters
H – See
LanczosGroundState. H and psi should have/use labels.psi – See
LanczosGroundState. H and psi should have/use labels.options – See
LanczosGroundState. H and psi should have/use labels.orthogonal_to – See
LanczosGroundState. H and psi should have/use labels.
- Returns
E0 (float) – Ground state energy.
psi0 (
Array) – Ground state vector.