lanczos_arpack

tenpy.linalg.lanczos.lanczos_arpack(H, psi, lanczos_params={}, 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 functions speigsh() instead of the custom lanczos implementation in LanczosGroundState. This function is mostly intended for debugging, since it requires to convert the vector from np_conserved Array into a flat numpy array and back during each matvec-operation!

Parameters
H, psi, lanczos_params, orthogonal_to :

See LanczosGroundState. H and psi should have/use labels.

Returns
E0float

Ground state energy.

psi0Array

Ground state vector.