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

Installation&general question #1

Closed IvanDudinets closed 4 years ago

IvanDudinets commented 4 years ago

Hello, Could you please answer my question: Is it true that 'dmrgpy' can carry out any calculation that Itensor can do? So, can one use it in research problems?

Could you also help to install the 'dmrgpy'? I use Windows10 and installed Itensor via Cygwin64. In Anaconda Prompt I typed git clone https://github.com/joselado/dmrgpy What should I do next?

Thank you.

IvanDudinets commented 4 years ago

After git clone I wrote in Anaconda Prompt set DMRGROOT="C:/Users/(...)/dmrgpy/src", and got the error ImportError: cannot import name 'spinchain' from 'dmrgpy' (unknown location)

doomspec commented 4 years ago

Me too. ImportError: cannot import name 'spinchain' Though it seems like dmrgpy can be imported.

joselado commented 4 years ago

Thanks for your message. Unfortunately I think that in the current form the library does not work in Windows. The easiest way to use it would be to install a virtual machine with Linux on it. The library uses some of the functionalities of ITensor, and in its current form can be used to study quasi 1D fermionic and spin systems.

IvanDudinets commented 4 years ago

Thank you for your quick reply. As I mentioned "I use Windows10 and installed Itensor via Cygwin64." i.e. I make use of "a virtual machine with Linux on it". The DMRGPY is not still working.

joselado commented 4 years ago

Hi Chapa1.

Unfortunately I have no experience with Cygwin64, but I think that it would be easier to run if you install a full virtual machine, for instance with Virtual Box, and in Virtual Box you install a (for example) Ubuntu image. In this way, the code should work.