joselado / dmrgpy

DMRGPy is a Python library to compute quasi-one-dimensional spin chains and fermionic systems using matrix product states with DMRG as implemented in ITensor. Most of the computations can be performed both with DMRG and exact diagonalization for small systems, which allows one to benchmark the results.
GNU General Public License v3.0
87 stars 20 forks source link

Spectrum with ED #12

Closed Vald20 closed 2 years ago

Vald20 commented 2 years ago

Hello Joselado!! Can I get the full spectrum of a given Hamiltonian using "Dmrgpy" with ED mode?

joselado commented 2 years ago

Hi Vald20,

thank you for your message. With ED you can certainly compute the whole spectra for small system sizes. You just have to write sc.get_excited(n=None,mode="ED") where "sc" is your many-body object (a spin chain for example)

Best regards, Jose