Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

6.3 Comparison of finite temperature with projective algorithm

In this example we use the pyALF to read the simulation data of a 4-site ring from the previous run from disk and plot them together. For further details, see Sec. 2.3 of pyALF documentation.


1. Import Simulation class from the py_alf python module, which provides the interface with ALF, as well as numerical and plotting packages:

Checking out branch main
Your branch is up to date with 'origin/main'.
Already on 'main'

2. Create instances of Simulation, specifying the necessary parameters, in particular the Projector to False for finite T and Projector to True for projector

3. Read the simulation data from disk

Where the cell magic %%capture suppresses the output of load_res(dir), which lists the data directories.

4. Plot the internal energies for finite T and projector

<Figure size 640x480 with 1 Axes>