Skip to main content

Module tensor_network

Module tensor_network 

Source
Expand description

Tensor network methods: MPS, MPO and DMRG-lite

Implements Matrix Product States (MPS) for compact representation of 1D quantum states, Matrix Product Operators (MPO) for Hamiltonians, SVD-based bond compression, and a two-site DMRG sweep for ground-state energy estimation.

Structs§

MPS
Matrix Product State (MPS) representation.
Tensor
A general dense tensor with arbitrary shape.

Functions§

dmrg_two_site_sweep
Run a DMRG two-site sweep to find the ground state energy.
ising_1d_mpo
Construct the MPO for the 1D transverse Ising Hamiltonian: H = -J Σ_i Z_i Z_{i+1} - h Σ_i X_i
mpo_apply
Apply an MPO to an MPS and return the resulting MPS.
svd_compress_bond
SVD-compress a bond between two tensors.