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
83 stars 20 forks source link

import errors #11

Closed 000sadaf closed 2 years ago

000sadaf commented 2 years ago

hello, after installation of dmrgpy , i ran one of the given codes ( ground state energy of 1d heisenberg hamiltonian ) in examples . but there is always some import error regrding numpy and different libraries. i also ran some other given codes but still got the 'import errors'. why it is not working.

Thanks best sadaf

joselado commented 2 years ago

Dear sadaf,

thank you for your message. Probably that error is coming from the fact that some required Python libraries are not installed in your python distribution. A simple way of getting all the dependencies is by installing Anaconda Python, which contains numpy and other libraries required. https://www.anaconda.com/products/individual

Once you have all the dependencies installed, the code should halt due to those import errors.

Best regards, Jose

000sadaf commented 2 years ago

Hi, There is no instructions for install the library through anaconda. Do I follow the same command which written for linux terminal in anaconda prompt.?

Best Sadaf

joselado commented 2 years ago

Dear Sadaf,

yes, the code is installed in the same way with Python Anaconda.

Best regards, Jose