Skip to content
QFT.org

Search QFT.org

Enter a word or phrase.

    You can also browse the main navigation and chapter contents.

    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 AjsA_j^s at each site and endpoint bond dimensions one. For a Hermitian Hamiltonian HH, minimize the Rayleigh quotient

    E[A]=⟨ψ[A]∣H∣ψ[A]⟩⟨ψ[A]∣ψ[A]⟩.(1)E[A]=\frac{\langle\psi[A]|H|\psi[A]\rangle} {\langle\psi[A]|\psi[A]\rangle}. \tag{1}

    The coefficients of ∣ψ[A]⟩|\psi[A]\rangle contain products of tensors, so this is not a single linear eigenproblem in all entries of AA. Hold every tensor except the center CαsβC_{\alpha s\beta} fixed. Flatten its entries into a vector cc. The fixed left and right blocks define a linear embedding BB into the physical Hilbert space:

    ∣ψ⟩=Bc,Heff=B†HB,Neff=B†B.(2)|\psi\rangle=Bc, \qquad H_{\mathrm{eff}}=B^\dagger H B, \qquad N_{\mathrm{eff}}=B^\dagger B. \tag{2}

    Varying c†(Heff−ENeff)cc^\dagger(H_{\mathrm{eff}}-E N_{\mathrm{eff}})c gives

    Heffc=ENeffc.(3)H_{\mathrm{eff}}c=E N_{\mathrm{eff}}c. \tag{3}

    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, B†B=IB^\dagger B=I, and

    Heffc=Ec.(4)H_{\mathrm{eff}}c=Ec. \tag{4}

    An iterative Hermitian eigensolver needs only the action of HeffH_{\mathrm{eff}} 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,

    H=W0W1⋯WN−1.(5)H=\mathsf W_0\mathsf W_1\cdots\mathsf W_{N-1}. \tag{5}

    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 Wjst(w,v)W_j^{st}(w,v) have output physical index ss and input tt. The left Hamiltonian environment obeys

    Lj+1(c,v,d)=∑a,b,w,s,tLj(a,w,b)(Ajs)ac∗Wjst(w,v)(Ajt)bd,(6)L_{j+1}(c,v,d)= \sum_{a,b,w,s,t}L_j(a,w,b) (A_j^s)_{ac}^{*}W_j^{st}(w,v)(A_j^t)_{bd}, \tag{6}

    starting from L0=1L_0=1. The right environment is its corresponding contraction from the opposite endpoint. With both environments fixed, the one-site effective action is

    (HeffC)asc=∑b,d,w,v,tLj(a,w,b)Wjst(w,v)Rj+1(c,v,d)Cbtd.(7)(H_{\mathrm{eff}}C)_{asc} =\sum_{b,d,w,v,t} L_j(a,w,b)W_j^{st}(w,v)R_{j+1}(c,v,d)C_{btd}. \tag{7}

    For two active sites, insert two neighboring WW tensors and a center Θastc\Theta_{a s t c}. 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 B†HBB^\dagger H B 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

    Θastc=∑b(Ajs)ab(Aj+1t)bc,(8)\Theta_{a s t c}=\sum_b(A_j^s)_{ab}(A_{j+1}^t)_{bc}, \tag{8}

    then groups (a,s)(a,s) and (t,c)(t,c) into matrix indices and takes an SVD. Keeping the largest χ\chi 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 [qj,pk]=iδjk[q_j,p_k]=i\delta_{jk} with qj=a ϕjq_j=\sqrt a\,\phi_j in one spatial dimension, and

    H=∑j=0N−1[pj22+m2qj22+λqj424a]+∑j=0N−2(qj+1−qj)22a2.(9)H=\sum_{j=0}^{N-1} \left[\frac{p_j^2}{2}+\frac{m^2q_j^2}{2}+\frac{\lambda q_j^4}{24a}\right] +\sum_{j=0}^{N-2}\frac{(q_{j+1}-q_j)^2}{2a^2}. \tag{9}

    We use N=4N=4, a=1a=1, m2=0.25m^2=0.25, λ=0.2\lambda=0.2. The chain is open and has exactly three derivative bonds. This is a bare finite lattice Hamiltonian with a λ/4!\lambda/4! interaction, not the normal-ordered continuum-circle Hamiltonian of Hamiltonian truncation.

    Choose frequency ωb=1\omega_b=1 oscillator states ∣s⟩|s\rangle and retain s=0,…,d−1s=0,\ldots,d-1. This is a local physical cutoff. Define the projected matrices

    Q=PdqPd,Q2=Pdq2Pd,Q4=Pdq4Pd,P2=Pdp2Pd.(10)Q=P_d q P_d, \qquad Q_2=P_dq^2P_d, \qquad Q_4=P_dq^4P_d, \qquad P_2=P_dp^2P_d. \tag{10}

    Their construction must allow intermediate states outside the retained space before projecting. In particular,

    Q2−Q2=d2ωb∣d−1⟩⟨d−1∣.(11)Q_2-Q^2=\frac{d}{2\omega_b}|d-1\rangle\langle d-1|. \tag{11}

    Using Q2Q^2 instead of Q2Q_2 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

    Hd=∑jhj−1a2∑j=0N−2QjQj+1,hj=P22+m2+zj/a22Q2+λ24aQ4,(12)H_d=\sum_j h_j-\frac1{a^2}\sum_{j=0}^{N-2}Q_jQ_{j+1}, \qquad h_j=\frac{P_2}{2}+\frac{m^2+z_j/a^2}{2}Q_2+\frac{\lambda}{24a}Q_4, \tag{12}

    where zj=1z_j=1 at the endpoints and zj=2z_j=2 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

    Wj=(I00Q00hj−Q/a2I),(13)\mathsf W_j= \begin{pmatrix} I&0&0\\ Q&0&0\\ h_j&-Q/a^2&I \end{pmatrix}, \tag{13}

    with only the last row retained on the first site and only the first column on the last. A path can insert one hjh_j, or insert −Q/a2-Q/a^2 followed immediately by QQ, with identities elsewhere. These are precisely the terms of Eq. (12). Direct multiplication is compared with an independently assembled Kronecker Hamiltonian.

    Changing dd changes the physical projected Hilbert space. Changing χ\chi changes the variational representation within it. Since the local oscillator frequency is fixed, the dd spaces are nested and their exact sector-ground Ritz energies cannot increase as dd 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,

    PqjP−1=−qj,PpjP−1=−pj,P∣s0⋯sN−1⟩=(−1)∑jsj∣s0⋯sN−1⟩.(14)\mathcal P q_j\mathcal P^{-1}=-q_j, \qquad \mathcal P p_j\mathcal P^{-1}=-p_j, \qquad \mathcal P|s_0\cdots s_{N-1}\rangle=(-1)^{\sum_j s_j}|s_0\cdots s_{N-1}\rangle. \tag{14}

    Let a virtual bond carry a cumulative label cj∈{0,1}c_j\in\{0,1\}. Nonzero tensor entries satisfy

    (Ajs)cjα, cj+1β≠0⟹cj+1=cj+s(mod2).(15)(A_j^{s})_{c_j\alpha,\,c_{j+1}\beta}\ne0 \quad\Longrightarrow\quad c_{j+1}=c_j+s\pmod2. \tag{15}

    The labels may have degeneracy indices α,β\alpha,\beta. Fix c0=0c_0=0 and cN=pc_N=p. Summing the selection rule over sites proves that every physical coefficient has total parity pp, irrespective of the remaining tensor entries. Choose p=0p=0 for the even ground state and p=1p=1 for the lowest odd state.

    The local eigensolve is explicitly restricted to allowed entries. For a two-site SVD, the intermediate row label is cj+sc_j+s and the column label is cj+2+tc_{j+2}+t, both modulo two. Decompose equal-label blocks separately, then retain the globally largest χ\chi singular values across both blocks. Thus χ\chi 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 Z2\mathbb Z_2 symmetry construction, not the local Gauss constraint of the separate Schwinger tensor example.

    Write the independently targeted energy errors as

    EeMPS=Ee(d)+δe,EoMPS=Eo(d)+δo,δe,δo≥0.E_{\mathrm e}^{\mathrm{MPS}}=E_{\mathrm e}^{(d)}+\delta_{\mathrm e}, \qquad E_{\mathrm o}^{\mathrm{MPS}}=E_{\mathrm o}^{(d)}+\delta_{\mathrm o}, \qquad \delta_{\mathrm e},\delta_{\mathrm o}\geq0.

    Then

    ΔMPS−Δd=δo−δe.(16)\Delta_{\mathrm{MPS}}-\Delta_d=\delta_{\mathrm o}-\delta_{\mathrm e}. \tag{16}

    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 d=4,6,8d=4,6,8 and χ=2,4,8\chi=2,4,8, 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 10−1010^{-10}, with at least three two-site sweeps. The local eigensolver tolerance is 10−1010^{-10}. All retained stages meet the specified energy criterion; the histories, actual residuals and cutoffs are saved.

    At fixed d=8d=8, the results are:

    Global bond capEven energyLowest odd energyOdd gapEven energy excessOdd energy excess
    22.456005352.456005353.065828353.065828350.609823010.609823011.46×10−21.46\times10^{-2}7.66×10−27.66\times10^{-2}
    42.441572642.441572642.990678132.990678130.549105490.549105491.25×10−41.25\times10^{-4}1.49×10−31.49\times10^{-3}
    82.441447662.441447662.989189512.989189510.547741850.547741852.30×10−72.30\times10^{-7}6.78×10−76.78\times10^{-7}
    Exact at d=8d=82.441447432.441447432.989188832.989188830.547741400.547741400000

    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 χ\chi.

    For ground-state observables, compare

    C03=⟨q0q3⟩,q2‾=14∑j⟨qj2⟩.C_{03}=\langle q_0q_3\rangle, \qquad \overline{q^2}=\frac14\sum_j\langle q_j^2\rangle.

    The d=8d=8 exact values are C03=0.0647504663C_{03}=0.0647504663 and q2‾=0.5080568181\overline{q^2}=0.5080568181. Their signed DMRG errors are:

    Global bond capError in end correlationError in mean square
    2−2.88×10−2-2.88\times10^{-2}−2.59×10−2-2.59\times10^{-2}
    4−5.76×10−3-5.76\times10^{-3}−3.77×10−4-3.77\times10^{-4}
    8−1.59×10−5-1.59\times10^{-5}−1.09×10−6-1.09\times10^{-6}

    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 dd while comparing χ=8\chi=8 against each finite-dd exact gap:

    Local dimensionGap from DMRG at χ=8\chi=8Exact finite-dd gap
    40.558433650.558433650.558433540.55843354
    60.548271860.548271860.548271570.54827157
    80.547741850.547741850.547741400.54774140
    10—0.547719710.54771971
    12—0.547718910.54771891

    The d=8→12d=8\to12 exact-gap change is about 2.25×10−52.25\times10^{-5}, much larger than the d=8,χ=8d=8,\chi=8 gap's remaining difference from its own reference. The change from d=10d=10 to 12 is about 8.0×10−78.0\times10^{-7}. These are observed cutoff sensitivities, not a rigorous bound on the infinite-dd limit. The corresponding exact mean square changes from 0.50805681810.5080568181 at d=8d=8 to 0.50804952560.5080495256 at d=12d=12, another error that increasing χ\chi alone cannot repair.

    The figure makes the two comparisons separately: bond convergence at fixed local dimension, followed by local-dimension sensitivity.

    Even and odd energy errors shrink with bond dimension, while the gap still shifts when the local oscillator basis is enlarged

    Four open scalar sites with a=1a=1, m2=0.25m^2=0.25, λ=0.2\lambda=0.2 and oscillator reference frequency one. Left: separate variational sector-energy excesses at fixed d=8d=8. Right: the odd gap versus local dimension; the χ=8\chi=8 results closely follow the finite-dd exact gaps but retain their local-cutoff drift. The largest matrices contain 12412^4 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 8×10−158\times10^{-15}.

    The largest observed local eigensolve residual is about 3.1×10−103.1\times10^{-10}. However, after a full sweep the environments have changed. The largest final one-site projected residual, evaluated again without optimization, is about 1.1×10−51.1\times10^{-5}. 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

    Var⁡ψ(H)=⟨H2⟩−⟨H⟩2=∥(H−⟨H⟩)∣ψ⟩∥2(17)\operatorname{Var}_\psi(H) =\langle H^2\rangle-\langle H\rangle^2 =\|(H-\langle H\rangle)|\psi\rangle\|^2 \tag{17}

    is also retained. It probes whether the finite MPS is close to an eigenstate of the full finite-dd Hamiltonian, rather than just stationary within its restricted tensor directions. Zero variance would not identify which eigenstate. A finite-χ\chi variational optimum can have nonzero physical variance even when every local projected problem is stationary.

    All selected alternative starts agree in energy within 2×10−152\times10^{-15}. The one-site energy increases are at rounding scale, below 1.1×10−141.1\times10^{-14}; 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 λ=0\lambda=0, the open derivative matrix has normal-mode frequencies

    ωℓ=m2+4a2sin⁡2 ⁣(πℓ2N),ℓ=0,…,N−1.(18)\omega_\ell=\sqrt{m^2+\frac4{a^2}\sin^2\!\left(\frac{\pi\ell}{2N}\right)}, \qquad \ell=0,\ldots,N-1. \tag{18}

    For our parameters, the untruncated harmonic ground energy is 1+21+\sqrt2 and its gap is m=0.5m=0.5. Exact finite-basis gaps at d=4,6,8,10,12d=4,6,8,10,12 are respectively 0.509504680.50950468, 0.500380040.50038004, 0.500013970.50001397, 0.500000490.50000049 and 0.500000020.50000002. 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 λ=0\lambda=0, 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,

    Hopen=p02+p122+m22(q02+q12)+(q1−q0)22a2.H_{\mathrm{open}}=\frac{p_0^2+p_1^2}{2} +\frac{m^2}{2}(q_0^2+q_1^2) +\frac{(q_1-q_0)^2}{2a^2}.

    Its onsite derivative coefficient is 1/(2a2)1/(2a^2) at each site, so z0=z1=1z_0=z_1=1, and its cross term is −q0q1/a2-q_0q_1/a^2. Use canonical coordinates q±=(q0±q1)/2q_\pm=(q_0\pm q_1)/\sqrt2 and the corresponding p±p_\pm. Then

    Hopen=p+2+m2q+22+p−2+(m2+2/a2)q−22.H_{\mathrm{open}}= \frac{p_+^2+m^2q_+^2}{2} +\frac{p_-^2+(m^2+2/a^2)q_-^2}{2}.

    Thus ω+=m\omega_+=m, ω−=m2+2/a2\omega_-=\sqrt{m^2+2/a^2}, and

    E0open=12(m+m2+2/a2).E_0^{\mathrm{open}}=\frac12\left(m+\sqrt{m^2+2/a^2}\right).

    The stated periodic convention includes (q1−q0)2/(2a2)(q_1-q_0)^2/(2a^2) and (q0−q1)2/(2a2)(q_0-q_1)^2/(2a^2). These are two links connecting the same pair, so the derivative potential doubles. The antisymmetric frequency becomes m2+4/a2\sqrt{m^2+4/a^2}, while the uniform frequency remains mm. The periodic cross term is −2q0q1/a2-2q_0q_1/a^2 and each onsite derivative coefficient is 1/a21/a^2.

    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 h=diag⁡(1,3)h=\operatorname{diag}(1,3), but describe its states using the nonorthonormal embedding B=diag⁡(1,2)B=\operatorname{diag}(1,2). Find HeffH_{\mathrm{eff}} and NeffN_{\mathrm{eff}}, solve the correct local variational problem, and show how a further invertible basis change affects it.

    Solution

    The physical state is ∣ψ⟩=Bc|\psi\rangle=Bc, so

    Heff=B†hB=(10012),Neff=B†B=(1004).H_{\mathrm{eff}}=B^\dagger h B=\begin{pmatrix}1&0\\0&12\end{pmatrix}, \qquad N_{\mathrm{eff}}=B^\dagger B=\begin{pmatrix}1&0\\0&4\end{pmatrix}.

    The normalized energy is

    E(c)=∣c1∣2+12∣c2∣2∣c1∣2+4∣c2∣2.E(c)=\frac{|c_1|^2+12|c_2|^2}{|c_1|^2+4|c_2|^2}.

    The generalized characteristic equation is

    det⁡(Heff−ENeff)=(1−E)(12−4E)=0,\det(H_{\mathrm{eff}}-E N_{\mathrm{eff}})=(1-E)(12-4E)=0,

    giving energies 1 and 3, as required by the physical Hamiltonian. An ordinary eigenproblem for HeffH_{\mathrm{eff}} would instead produce 1 and 12; its second value depends on the arbitrary normalization of the second basis vector.

    Under B↦BSB\mapsto BS, with invertible SS, the two matrices change by congruence:

    Heff↦S†HeffS,Neff↦S†NeffS.H_{\mathrm{eff}}\mapsto S^\dagger H_{\mathrm{eff}}S, \qquad N_{\mathrm{eff}}\mapsto S^\dagger N_{\mathrm{eff}}S.

    The determinant of their difference gains only the nonzero factor ∣det⁡S∣2|\det S|^2, 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

    1. 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.