Skip to content

Examples

This section provides complete, working code examples demonstrating Alice's main features.

How Examples Work

Code blocks marked with exec="1" run during the documentation build and their output is shown inline. This means the results you see are always up to date with the current version of Alice.

Blocks without exec are displayed as-is and are intended to be copied and run locally.

Sections

DMRG

Complete ground-state calculations with the three update schemes.

AutoMPO from TOML

  • AutoMPO from TOML — loading TOML configs and calling build_interaction; multiple model variants.

Extensions

How to extend Alice with custom physics.