Using the codeΒΆ

The requirements are:

Download the code using the Download ZIP button on github, or run the following command from a terminal:

$ wget -O sophisticated-dmrg-master.zip https://github.com/simple-dmrg/sophisticated-dmrg/archive/master.zip

Within a terminal, execute the following to unpack the code:

$ unzip sophisticated-dmrg-master.zip
$ cd sophisticated-dmrg-master/

Once the relevant software is installed, each program is contained entirely in a single file. The first program, for instance, can be run by issuing:

$ python sophisticated_dmrg.py

Note

If you see an error that looks like this:

SyntaxError: future feature print_function is not defined

then you are using a version of Python below 2.6. Although it would be best to upgrade, it may be possible to make the code work on Python versions below 2.6 without much trouble.