- Home
- Library
- Lattice and Hamiltonian Field Theory
- Tensor Networks for Fields and Gauge Theories
- Ground States with DMRG
Ground States with DMRG
How can we find a field-theory ground state without first constructing its full wavefunction? A matrix product state supplies a restricted variational family. DMRG turns that family into an algorithm: optimize one or two neighboring tensors while contracting the rest into environments, move the active region, and repeat.
The local problem is linear even though the complete optimization is nonlinear. That distinction explains both DMRG's efficiency and its limitations. A well-solved local eigenproblem need not be the global minimum over MPS, and a converged bond dimension need not remove the field's local Hilbert-space cutoff. We will separate these errors on an open scalar chain, including an explicit odd-parity target for its first excitation.
The variational problem and its norm metric
Use the open MPS representation, with a tensor at each site and endpoint bond dimensions one. For a Hermitian Hamiltonian , minimize the Rayleigh quotient
The coefficients of contain products of tensors, so this is not a single linear eigenproblem in all entries of . Hold every tensor except the center fixed. Flatten its entries into a vector . The fixed left and right blocks define a linear embedding into the physical Hilbert space:
Varying gives
The norm matrix is not optional. Arbitrary tensor gauges produce nonorthonormal block bases, and treating Eq. (3) as an ordinary eigenproblem would change the variational problem. Put the tensors to the left into left-canonical form and those to the right into right-canonical form. Their block states are then orthonormal, , and
An iterative Hermitian eigensolver needs only the action of on a center tensor, not a stored dense matrix. Schollwöck derives the general norm metric and its canonical reduction in §6.3, Eqs. (202)–(211). [1]
The restricted variational minimum is an upper bound to the exact ground energy in the chosen physical Hilbert space. A local optimization algorithm may stop above that minimum. Both statements refer to the Hamiltonian actually supplied, including its local basis, spatial regulator and boundary conditions.
Environments and the Hamiltonian as an MPO
A matrix product operator (MPO) writes a Hamiltonian as a product of operator-valued matrices,
Each matrix entry acts on a different physical site; matrix multiplication therefore generates sums of tensor products. The auxiliary MPO index records which term is being assembled. It is independent of the MPS bond index. Ref. [1], §6.1, Eqs. (182)–(185), constructs this bookkeeping explicitly.
In components, let have output physical index and input . The left Hamiltonian environment obeys
starting from . The right environment is its corresponding contraction from the opposite endpoint. With both environments fixed, the one-site effective action is
For two active sites, insert two neighboring tensors and a center . Contracting from the center through the environments avoids constructing the full physical vector. The implementation keeps an explicit efficient contraction order; its result is checked against obtained by an independent small-chain physical embedding.
One-site sweeps and two-site growth
An open-chain sweep maintains the canonical center while moving it across the chain. At a one-site step, solve Eq. (4), reshape the lowest vector into the optimized tensor, and factor it by QR. Leave the isometric factor behind and absorb the remaining factor into the next tensor. Reverse the construction on a sweep to the left.
With fixed neighboring bond spaces, the old center vector is an admissible candidate. An exact lowest local solve therefore cannot increase the energy. A QR gauge move does not change the state, so an untruncated one-site sweep has the same variational monotonicity, up to numerical tolerances. This is not a proof that the final MPS is the global optimum.
A one-site algorithm cannot generally discover a missing bond space or alter a fixed symmetry-sector allocation. A two-site update first optimizes the enlarged center
then groups and into matrix indices and takes an SVD. Keeping the largest singular values splits the center back into two tensors and permits the intermediate bond to grow. The SVD step introduces a norm approximation after the energy minimization; it can increase the energy. Consequently, the monotonicity argument for an untruncated one-site step does not apply to a complete two-site update.
Our calculation uses two-site sweeps to establish the bond spaces, followed by one-site sweeps with charge-preserving QR moves. This is a genuine variational MPS calculation. Exact diagonalization enters only afterward as a small-system comparison; compressing its eigenvector is the different example on the MPS page. The discussion near the end of §6.3 and in §6.4 of Ref. [1] explains both sector trapping and the distinction between these algorithms.
The open scalar chain and its local cutoff
Take canonical with in one spatial dimension, and
We use , , , . The chain is open and has exactly three derivative bonds. This is a bare finite lattice Hamiltonian with a interaction, not the normal-ordered continuum-circle Hamiltonian of Hamiltonian truncation.
Choose frequency oscillator states and retain . This is a local physical cutoff. Define the projected matrices
Their construction must allow intermediate states outside the retained space before projecting. In particular,
Using instead of would silently change the Hamiltonian at the cutoff. The same warning applies to the quartic and kinetic powers.
Expanding the derivative term in Eq. (9) gives
where at the endpoints and inside. All onsite quadratic coefficients in this example are positive. The endpoint derivative contributions are part of the Hamiltonian, not optional boundary corrections.
An exact bond-three MPO is
with only the last row retained on the first site and only the first column on the last. A path can insert one , or insert followed immediately by , with identities elsewhere. These are precisely the terms of Eq. (12). Direct multiplication is compared with an independently assembled Kronecker Hamiltonian.
Changing changes the physical projected Hilbert space. Changing changes the variational representation within it. Since the local oscillator frequency is fixed, the spaces are nested and their exact sector-ground Ritz energies cannot increase as grows. Neither this fact nor bond-space nesting gives monotonicity of an energy difference extracted as a gap.
Target the odd state by a selection rule
The scalar symmetry is global field parity,
Let a virtual bond carry a cumulative label . Nonzero tensor entries satisfy
The labels may have degeneracy indices . Fix and . Summing the selection rule over sites proves that every physical coefficient has total parity , irrespective of the remaining tensor entries. Choose for the even ground state and for the lowest odd state.
The local eigensolve is explicitly restricted to allowed entries. For a two-site SVD, the intermediate row label is and the column label is , both modulo two. Decompose equal-label blocks separately, then retain the globally largest singular values across both blocks. Thus is a total dimension, not a dimension available independently in every sector. The number retained in each sector can change during a two-site update.
This procedure supplies exact parity orthogonality without an approximate ground-state penalty. It is a global symmetry construction, not the local Gauss constraint of the separate Schwinger tensor example.
Write the independently targeted energy errors as
Then
The gap has neither a fixed error sign nor a variational upper-bound property. In the retained finite matrices, diagonalizing both sectors also verifies that the lowest odd level lies below the next even level, so it is the first excitation. We do not assume this ordering for every coupling or truncation.
Separate bond errors from field-cutoff errors
The fixed calculation uses and , targeting both parities. Even runs start from the oscillator-vacuum product. Odd runs start with one oscillator quantum at the left endpoint; selected repeats place it at the right endpoint. A separate even repeat starts with two quanta at the left endpoint. These alternative initial states test reproducibility within the stated calculation.
Each stage has a maximum of 24 full sweeps and stops when the absolute sweep-energy change is below , with at least three two-site sweeps. The local eigensolver tolerance is . All retained stages meet the specified energy criterion; the histories, actual residuals and cutoffs are saved.
At fixed , the results are:
| Global bond cap | Even energy | Lowest odd energy | Odd gap | Even energy excess | Odd energy excess |
|---|---|---|---|---|---|
| 2 | |||||
| 4 | |||||
| 8 | |||||
| Exact at |
Here “exact” means sparse diagonalization of the same finite matrix, with checked numerical residuals. It does not mean the untruncated field theory. Both targeted energies approach their sector references closely, but the odd energy is harder to approximate at small .
For ground-state observables, compare
The exact values are and . Their signed DMRG errors are:
| Global bond cap | Error in end correlation | Error in mean square |
|---|---|---|
| 2 | ||
| 4 | ||
| 8 |
The variational objective is energy. A lower energy than an SVD-compressed reference does not guarantee a more accurate end correlation at the same bond cap. Observable comparisons are therefore retained independently.
Now increase while comparing against each finite- exact gap:
| Local dimension | Gap from DMRG at | Exact finite- gap |
|---|---|---|
| 4 | ||
| 6 | ||
| 8 | ||
| 10 | — | |
| 12 | — |
The exact-gap change is about , much larger than the gap's remaining difference from its own reference. The change from to 12 is about . These are observed cutoff sensitivities, not a rigorous bound on the infinite- limit. The corresponding exact mean square changes from at to at , another error that increasing alone cannot repair.
The figure makes the two comparisons separately: bond convergence at fixed local dimension, followed by local-dimension sensitivity.
Four open scalar sites with , , and oscillator reference frequency one. Left: separate variational sector-energy excesses at fixed . Right: the odd gap versus local dimension; the results closely follow the finite- exact gaps but retain their local-cutoff drift. The largest matrices contain basis states. No spatial or infinite-volume extrapolation is performed.
Diagnostics that answer different questions
The companion checks the tensor representation and the physical model independently. The MPO equals a separate Kronecker assembly; its local effective action agrees with an explicit orthonormal physical embedding. Parity-forbidden coefficients remain exactly zero in the representation. Tensor and dense observable contractions agree, and the finite-MPS energy agrees with the independent physical Hamiltonian expectation to within .
The largest observed local eigensolve residual is about . However, after a full sweep the environments have changed. The largest final one-site projected residual, evaluated again without optimization, is about . These are different diagnostics. An energy-change stopping test must not be advertised as convergence of every gradient component to the eigensolver tolerance.
The physical variance
is also retained. It probes whether the finite MPS is close to an eigenstate of the full finite- Hamiltonian, rather than just stationary within its restricted tensor directions. Zero variance would not identify which eigenstate. A finite- variational optimum can have nonzero physical variance even when every local projected problem is stationary.
All selected alternative starts agree in energy within . The one-site energy increases are at rounding scale, below ; two-site truncations are not subjected to a false monotonicity requirement. Discarded weights describe the local SVD and are reported alongside, not substituted for, final observable errors.
There is an additional independent physical control. At , the open derivative matrix has normal-mode frequencies
For our parameters, the untruncated harmonic ground energy is and its gap is . Exact finite-basis gaps at are respectively , , , and . The ground energy and covariance are checked against the same normal modes. This verifies the open-boundary derivative coefficients and local-power projection without using an interacting DMRG result as its own reference.
Summary
A useful DMRG result combines a Hamiltonian with declared local and spatial regulators, an explicit target sector, and evidence that the observables are stable under the numerical approximations that matter. Here the checks isolate those ingredients in a finite model. Longer chains, continuum limits and gauge theories require their own comparisons; the same tensor machinery does not supply those limits automatically.
Exercises
Count the bonds before borrowing a Hamiltonian
For two open scalar sites with , derive the normal modes and the ground energy. Compare with a periodic two-site lattice defined by summing one forward derivative bond from each site. Explain why the same two-site helper cannot represent both geometries.
Solution
The open Hamiltonian contains one bond,
Its onsite derivative coefficient is at each site, so , and its cross term is . Use canonical coordinates and the corresponding . Then
Thus , , and
The stated periodic convention includes and . These are two links connecting the same pair, so the derivative potential doubles. The antisymmetric frequency becomes , while the uniform frequency remains . The periodic cross term is and each onsite derivative coefficient is .
Both conventions are consistent when their geometry is declared. Reusing the periodic helper for an open chain would change the model, not merely its representation.
Why the local norm matrix cannot be dropped
Let the physical Hamiltonian be , but describe its states using the nonorthonormal embedding . Find and , solve the correct local variational problem, and show how a further invertible basis change affects it.
Solution
The physical state is , so
The normalized energy is
The generalized characteristic equation is
giving energies 1 and 3, as required by the physical Hamiltonian. An ordinary eigenproblem for would instead produce 1 and 12; its second value depends on the arbitrary normalization of the second basis vector.
Under , with invertible , the two matrices change by congruence:
The determinant of their difference gains only the nonzero factor , leaving the generalized eigenvalues unchanged. Canonical block bases set the norm metric to the identity on the retained support. They justify the ordinary local eigenproblem instead of merely making an unjustified approximation numerically convenient.
References
- U. Schollwöck, “The density-matrix renormalization group in the age of matrix product states,” Annals of Physics 326, 96–192 (2011), doi:10.1016/j.aop.2010.09.012, arXiv:1008.3477v2. See §§6.1–6.4, especially Eqs. (182)–(185), (202)–(211), and the discussion of sector trapping before §6.4.
The original reproducible calculation is documented in examples/lattice-hamiltonian/tensor-networks/README.md. The pure dmrg.py optimizer uses local MPO environments; dmrg_checks.py supplies the independent diagonalization, physical observables and selected output. plot_dmrg.py redraws the retained data without optimization.
Scrollable formula. Use Left and Right arrow keys to reveal hidden content.
Scrollable table. Use Left and Right arrow keys to reveal hidden columns.
Scrollable figure. Use Left and Right arrow keys to reveal hidden content.