API Reference¶
Welcome to the Alice API Reference. All public classes and functions are documented here, organized by conceptual topic. For specific 1D algorithms, see the Algorithms tab.
Network¶
Matrix product states and operators, finite and infinite, with their initializers and measurement.
| Symbol | Description |
|---|---|
| Network | Base tensor network chain |
| MPS | Matrix product state |
| MPO | Matrix product operator |
| iNetwork | Base tensor network unit cell |
| iMPS | Infinite matrix product state |
| iMPO | Infinite matrix product operator |
| NormalMPO | Unit-normed MPO with a separately tracked scale |
| init_mps | Construct an initial MPS |
| init_imps | Construct an initial unit cell |
| observe | Compute expectation values |
| thermal_mpo | Approximate \(e^{-\beta H}\) via Taylor expansion |
Interaction¶
Interaction term dataclasses and the TOML-driven builder.
| Symbol | Description |
|---|---|
| Interaction | Base interaction term |
| Interaction1Site | On-site interaction |
| Interaction2Site | Two-site interaction |
| InteractionNSite | N-site interaction over a contiguous window |
| build_interaction | Build interactions from TOML config |
Geometry¶
Lattice geometry builders and traversal-order generators.
| Symbol | Description |
|---|---|
| Geometry | Resolved lattice geometry struct |
| build_geometry | Construct a Geometry from a config dict |
| build_intrcmap | Generate the interaction map from a Geometry |
| intrcmap_1dchain | Interaction map for 1D chains |
| intrcmap_square | Interaction map for 2D square lattices |
| intrcmap_kagome | Interaction map for kagome lattices |
Local Space¶
Physical Hilbert space builders for bosonic and fermionic sites.
| Symbol | Description |
|---|---|
| build_bosonic | Spin-s site with MPO operator templates |
| build_fermionic | Spinless-fermion site with JW templates |
| build_conductor | Spinful-fermion (Band) site |
Hamiltonian¶
MPO Hamiltonian assembly and built-in physics models.
| Symbol | Description |
|---|---|
| build_hamiltonian | Assemble Hamiltonian MPO from interactions |
| build_ihamiltonian | Assemble Hamiltonian iMPO over a unit cell |
| build_heisenberg | Heisenberg spin model |
| build_free_fermion | Spinless free-fermion (tight-binding) model |
| build_hubbard | Hubbard model |
Logging¶
| Symbol | Description |
|---|---|
| configure_logging | Set up Alice's logging scheme |
Quick Links by Task¶
I want to...¶
Run DMRG on a spin chain → build_interaction, build_hamiltonian, dmrg.run
Run VUMPS on an infinite chain → build_interaction, build_ihamiltonian, init_imps, vumps.run
Evolve a state in real time → build_interaction, build_hamiltonian, tdvp.run
Run XTRG at finite temperature → build_interaction, build_hamiltonian, xtrg.run
Define a model from a TOML file → build_interaction — see AutoMPO from TOML
Use a 2D square lattice geometry → intrcmap_square, build_geometry
Define a custom geometry → build_geometry — see Custom geometry
Build a custom local space → build_bosonic / build_fermionic / build_conductor — see Custom local space
Compute an expectation value → observe
Save and reload a tensor network → Network.serialize / deserialize
Configure logging and diagnostics → configure_logging
See complete working examples → Examples