Network
The alice.network module provides the core tensor network data structures: MPS, MPO, Network, NormalMPO, and associated functions. These objects are re-exported at the top-level alice namespace.
Classes
Class
Description
Network
Base 1D tensor network chain
MPS
Matrix product state
MPO
Matrix product operator
NormalMPO
Unit-normed MPO with separately tracked scale factor
Functions
Function
Description
init_mps
Construct an initial MPS for DMRG
observe
Compute expectation value ⟨ψ|O|ψ⟩ or thermal average Tr[ρO]/Tr[ρ]
thermal_mpo
Approximate \(e^{-\beta H}\) via Taylor expansion
See Also
Core Concepts — conceptual introduction to MPS and MPO.
Interaction — Interaction dataclasses used together with MPO.
Hamiltonian — assembles an MPO from a list of interactions.
2026-05-25
2026-05-04
GitHub