Exact environment checkpointing for memory-limited DMRG and TDVP
Abstract
Finite matrix-product-state sweep algorithms, such as the density-matrix renormalization group (DMRG) and the time-dependent variational principle (TDVP), store one environment tensor per site. At the bond dimensions needed for frustrated and two-dimensional systems this stack, rather than the state itself, exhausts the memory of the device. We adapt checkpointing to these sweeps: every -th environment is kept, with for sites, and the blocks in between are rebuilt when the sweep returns to them. The rebuild repeats the original contractions, so energies and states are reproduced bit for bit when the contractions are deterministic. Environment memory falls by 4.6-10x on cylinders of 96-384 sites. Bond-dimension searches with an implementation that rebuilds checkpoints at each half-sweep give gains of 1.77 for one level and 2.07 for two levels with eight contraction chunks on a single 141 GB GPU, using a 144-site triangular - cylinder and stored baselines with matching chunking. Separate timings with checkpoints retained across half-sweeps give a one-level overhead of 6-15%, depending on the local eigensolver. At the two-level schedule with eight chunks takes 1.42 times the sweep time of the equally chunked stored baseline, or 1.79 times that of the unchunked stored baseline. Simple models of the memory and the run time reproduce the measurements to within a few per cent. Unlike offloading, the method needs no host memory or disk, and the two can be combined. Implementations are provided for ITensorMPS.jl, TeNPy, MPSKit.jl and quimb.
Create a lesson
Metadata
- Categories
- cond-mat.str-el, physics.comp-ph, quant-ph
- Comments
- 13 pages, 6 figures. Code and data: https://github.com/NihalShriv/envcheckpoint (doi:10.5281/zenodo.24193745)
Related papers
A Fractional Chern Semimetal: Exact Wavefunction and Conformal Criticality
Shared title terminologycond-mat.str-elFa-Jie Wang, Yang Qi, Zhi-Da Song
Projecting Fermions into Exact Scar Towers: Local Protection across Phase Transitions
Shared title terminologycond-mat.str-elWenjie Wei, Kun Jiang, Hui-Ke Jin
Exact many-body scars of generic spin models from singlet covers
Shared title terminologycond-mat.str-elCamilla Polvara, William Witczak-Krempa
Nonstandard quantum statistics for strongly correlated systems: Superexclusion in momentum space and comparison with exact results
Shared title terminologycond-mat.str-elPiotr Kuterba, Mateusz Wójcik, Józef Spałek
Exact Fractional Chern Insulators from Hubbard Interactions
Shared title terminologycond-mat.str-elJonah Herzog-Arbeitman, Rui-Heng Liu, Jiangping Hu et al.
Exact Parent Hamiltonians for Partially Magnetized Chiral Spin Liquids
Shared title terminologycond-mat.str-elXin Shen, Guangyue Ji, Jie Wang