Examples

Toycodes

These toycodes are meant to give you a flavor of the different algorithms, while keeping the codes as readable and simple as possible. The scripts are included in the [TeNPySource] repository in the folder toycodes/, but not part of the basic TeNpy library; the only requirements to run them are Python 3, Numpy, and Scipy.

Python scripts

These example scripts illustrate the very basic interface for calling TeNPy. They are included in the [TeNPySource] repository in the folder examples/, we include them here in the documentation for reference. You need to install TeNPy to call them (see Installation instructions), but you can copy them anywhere before execution. (Some scripts include other files from the same folder, though; copy those as well.)

A bit more elaborate examples from the subfolders in examples/* are included in this list:

YAML config examples

We also have abunch of example config files that can be used for standard simulations, see Simulations.

Jupyter Notebooks

This is a collection of [jupyter] notebooks from the [TeNPyNotebooks] repository. You need to install TeNPy to execute them (see Installation instructions), but you can copy them anywhere before execution. Note that some of them might take a while to run, as they contain more extensive examples.