Commit a334de16 authored by Bas Nijholt's avatar Bas Nijholt Committed by Joseph Weston

use the shift-inverse method for finding sparse eigenvalues in tutorial

parent 4076779d
......@@ -71,7 +71,7 @@
ham_mat = syst.hamiltonian_submatrix(args=[B], sparse=True)
# we only calculate the 15 lowest eigenvalues
ev = sla.eigsh(ham_mat, k=15, which='SM', return_eigenvectors=False)
ev = sla.eigsh(ham_mat, k=15, sigma=0, return_eigenvectors=False)
energies.append(ev)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment