Network
The alice.network module provides the core tensor network data structures: Network, MPS, MPO, their infinite counterparts iNetwork, iMPS, and iMPO, 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
iNetwork
Base 1D tensor network unit cell
iMPS
Infinite matrix product state, described by a unit cell
iMPO
Infinite matrix product operator, described by a unit cell
NormalMPO
Unit-normed MPO with separately tracked scale factor
Functions
Function
Description
init_mps
Construct an initial MPS for DMRG
init_imps
Construct an initial unit cell for VUMPS
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-10-28
2026-05-04
GitHub