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

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

$ unzip
$ 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


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.