Skip to content
QFT.org

Search QFT.org

Enter a word or phrase.

    You can also browse the main navigation and chapter contents.

    Tensor Renormalization of Path Integrals

    A lattice partition function is a sum over exponentially many configurations. Local interactions let us rewrite that sum as a network of small tensors. The rewrite is exact; the approximation enters when growing tensor indices are compressed during contraction.

    We will derive the tensor network of the square-lattice Ising model, contract a periodic 4×44\times4 system by directional tensor blocking, and compare with two independent exact finite-volume calculations. The example shows why a small local singular-value tail is useful information but is not a certified error bar on the partition function.

    Preparation: Singular-value decomposition and the distinction between a state and its contraction from Matrix Product States and Entanglement. The present tensors encode classical Boltzmann weights, not a quantum-state wavefunction.

    Turn an interaction into a shared bond index

    Take spins σi=±1\sigma_i=\pm1 with partition function

    Z(K)=∑{σ}exp⁡(K∑⟨ij⟩σiσj),K=JT≥0.Z(K)=\sum_{\{\sigma\}} \exp\left(K\sum_{\langle ij\rangle}\sigma_i\sigma_j\right), \qquad K=\frac JT\ge0.

    Each undirected nearest-neighbor edge is counted once. On our periodic 4×44\times4 square there are 16 spins and 32 edges.

    Factor the two-spin weight as

    eKσσ′=∑a=01WσaWσ′a,Wσ0=cosh⁡K,Wσ1=σsinh⁡K.\begin{aligned} e^{K\sigma\sigma'} &=\sum_{a=0}^1W_{\sigma a}W_{\sigma'a},\\ W_{\sigma0}&=\sqrt{\cosh K}, \qquad W_{\sigma1}=\sigma\sqrt{\sinh K}. \end{aligned}

    The identity follows from eKσσ′=cosh⁡K+σσ′sinh⁡Ke^{K\sigma\sigma'}=\cosh K+\sigma\sigma'\sinh K. It introduces a two-valued auxiliary index on every edge. Sum over the physical spin at a vertex to obtain

    Tlrud=∑σ=±1WσlWσrWσuWσd.T_{lrud} =\sum_{\sigma=\pm1} W_{\sigma l}W_{\sigma r}W_{\sigma u}W_{\sigma d}.

    The labels l,r,u,dl,r,u,d refer to left, right, up and down bonds. Contract matching bond indices between neighboring vertices. Expanding the edge sums reverses the factorization and returns ZZ exactly.

    Writing n=l+r+u+dn=l+r+u+d gives a particularly transparent form:

    Tlrud={2(cosh⁡K)2(tanh⁡K)n/2,n even,0,n odd.T_{lrud}= \begin{cases} 2(\cosh K)^2(\tanh K)^{n/2},&n\text{ even},\\ 0,&n\text{ odd}. \end{cases}

    An index value one can be viewed as an occupied edge. Only configurations with even degree at every vertex survive. Thus the auxiliary expansion organizes the partition function as closed graphs; on a torus, winding graphs must be retained too. It is not legitimate to replace them all by boundaries of contractible plaquettes.

    At K=0K=0, only T0000=2T_{0000}=2 remains and Z=216Z=2^{16}. This simple limit checks both the local factor of two and the absence of an extra edge normalization. The same local construction appears in Xie et al., §II.A, Eqs. (2)–(4), PDF p.2.

    Exact blocking increases the bond dimension

    Contract two neighboring tensors vertically:

    M(l1l2),(r1r2),u,d=∑iTl1r1ui Tl2r2id.M_{(l_1l_2),(r_1r_2),u,d} =\sum_i T_{l_1r_1ui}\,T_{l_2r_2id}.

    The vertical bond between them has disappeared, but each horizontal index is now a pair. If it previously had dimension bb, its new dimension is b2b^2. Without compression, repeated blocking merely reorganizes the original sum and eventually becomes expensive.

    The higher-order tensor renormalization group, or HOTRG, compresses these paired indices. It alternates vertical and horizontal fusions. This is a directional higher-order-SVD construction, not the original honeycomb splitting of Levin–Nave TRG. Their shared idea is to replace a growing intermediate tensor by a controlled low-rank approximation; their geometric steps differ. See Levin and Nave, PDF pp.1–2 for the original factorization and Xie et al., Eqs. (5)–(12), PDF pp.2–3 for the directional algorithm used here.

    To select a left paired-bond basis, flatten MM into the matrix

    Mi,(j,u,d)L=Mijud.\mathsf M^{L}_{i,(j,u,d)}=M_{ijud}.

    Its singular-value decomposition is ML=ULSLVL†\mathsf M^L=U_L S_LV_L^\dagger. A second unfolding puts the right paired index in the row position and gives UR,SRU_R,S_R. For a target dimension χ\chi, define their one-leg discarded squared norms

    εL=∑α>χ(sαL)2,εR=∑α>χ(sαR)2.\varepsilon_L=\sum_{\alpha>\chi}(s^L_\alpha)^2, \qquad \varepsilon_R=\sum_{\alpha>\chi}(s^R_\alpha)^2.

    Our real-tensor prescription chooses the first χ\chi columns of whichever isometry has the smaller discarded norm; exact ties choose the left one. Use the same matrix UU on the left and right paired indices:

    Tabud′=∑ijUiaMijudUjb,UTU=Iχ.T'_{abud}=\sum_{ij}U_{ia}M_{ijud}U_{jb}, \qquad U^{\mathsf T}U=I_\chi.

    An adjacent right bond and left bond share one basis. Contracting their compressed indices inserts P=UUTP=UU^{\mathsf T} into the original paired-bond space. At full dimension, P=IP=I and the step is an exact basis change. At smaller dimension it is a projection, so the equality of partition functions has become an approximation.

    The selected one-leg residual equals its SVD tail in the Frobenius norm. The actual two-leg reconstruction error

    ∥M−UT′UT∥F\left\|M-U T' U^{\mathsf T}\right\|_F

    is a different quantity: the notation here applies UU on the two paired indices, leaving u,du,d untouched. The companion records both. Neither is the error in the complete tensor-network contraction.

    Normalization factors belong to the partition function

    Repeated products can make tensor entries very large or small. Divide each intermediate tensor by a positive scale sns_n, such as its largest absolute entry. If NnN_n identical tensors remain at that stage, retain the contribution Nnlog⁡snN_n\log s_n.

    For four alternating blocking steps on the 4×44\times4 torus, the site counts are

    16⟶8⟶4⟶2⟶1.16\longrightarrow8\longrightarrow4\longrightarrow2\longrightarrow1.

    Once one tensor remains, both pairs of periodic bonds close on that tensor:

    log⁡ZHOTRG=∑nNnlog⁡sn+log⁡(∑i,jT^iijj final).\log Z_{\rm HOTRG} =\sum_n N_n\log s_n +\log\left(\sum_{i,j}\widehat T^{\,\rm final}_{iijj}\right).

    The sum includes the initial tensor normalization if one was applied. Forgetting these factors may leave reasonable-looking normalized tensors while giving a completely incorrect free energy.

    The untruncated final paired dimensions in this small example are at most 16. Therefore χ=16\chi=16 is sufficient to preserve every paired-bond basis through all four steps. With χ=16\chi=16, this finite network gives an exact reference for the truncated contractions.

    Compare with the finite system actually being contracted

    The fixed numerical couplings are

    K=0,0.2,Kc=12log⁡(1+2),0.6,K=0,\quad0.2,\quad K_c=\frac12\log(1+\sqrt2),\quad0.6,

    and χ=1,2,4,8,16\chi=1,2,4,8,16. The symbol KcK_c labels the infinite-square-lattice critical coupling, used here as a demanding test point. A finite 4×44\times4 partition function is analytic and does not itself have a phase transition.

    One reference explicitly sums all 216=65 5362^{16}=65\,536 spin configurations. A second uses a 16×1616\times16 row-spin transfer matrix. For row configurations s,ts,t, define h(s)=∑x=03sxsx+1h(s)=\sum_{x=0}^3s_xs_{x+1} with periodic xx, and

    Vs,t=exp⁡[K(∑xsxtx+h(s)+h(t)2)].\mathsf V_{s,t} =\exp\left[ K\left(\sum_xs_xt_x+\frac{h(s)+h(t)}2\right) \right].

    Then Z=tr⁡V4Z=\operatorname{tr}\mathsf V^4. The half horizontal energies ensure that every row's internal bonds are counted once when the four transfer factors are multiplied. This provides an independent check of the tensor network's topology and normalization.

    At KcK_c, the signed errors are:

    Retained dimension χ\chilog⁡ZHOTRG−log⁡Zexact\log Z_{\rm HOTRG}-\log Z_{\rm exact}
    1−1.16709708
    2−0.01759148
    4−0.01020624
    8−0.00186004
    16Within floating-point precision

    The errors are not guaranteed to have that sign. At K=0.2K=0.2 the sequence is

    −0.03286282,+0.00992415,−0.00568408,−0.00002231,O(10−14).-0.03286282,\quad +0.00992415,\quad -0.00568408,\quad -0.00002231,\quad O(10^{-14}).

    The χ=2\chi=2 approximation lies above the exact log⁡Z\log Z, while neighboring cutoffs lie below. Increasing the retained dimension improves this finite example overall, but it does not create a variational upper or lower bound on log⁡Z\log Z.

    Signed errors in log partition function versus retained HOTRG dimension for three couplings. One weak-coupling point crosses above zero; full dimension sixteen agrees with the exact finite torus.

    All curves refer to the same periodic 4×44\times4 lattice. The vertical scale is symmetric logarithmic away from a small linear region around zero. The sign-changing weak-coupling error is retained. Agreement at χ=16\chi=16 follows from full paired-bond retention for this particular network.

    The companion tensor_blocking.py retains the full scan and stage diagnostics. Its controls include the exact edge factorization, a four-spin closed-loop identity, isometry normalization, the one-leg SVD residual, the separate two-leg residual, and agreement with both exact references. An anisotropic check interchanges Kx=0.2,Ky=0.6K_x=0.2,K_y=0.6 and Kx=0.6,Ky=0.2K_x=0.6,K_y=0.2, and compares scaled with unscaled contractions. Full-rank results agree with direct spin sums to about 2×10−142\times10^{-14} in log⁡Z\log Z.

    A local truncation error needs an environment

    Suppose only one local tensor is changed, while the rest of the network is contracted exactly into its environment EE. Then

    δZ=⟨E,δM⟩F,∣δZ∣≤∥E∥F∥δM∥F.\delta Z=\langle E,\delta M\rangle_F, \qquad |\delta Z|\le\|E\|_F\|\delta M\|_F.

    The SVD controls the second factor for a specified unfolding. It does not determine the first factor. A small relative Frobenius error in MM can therefore have a different importance for a particular partition function or observable.

    Repeated truncations also change the environments used by later steps. The final error is not simply the sum of the displayed discarded fractions. Environment-aware algorithms address that problem by incorporating more of the surrounding contraction; Xie et al., opening of §II.B, PDF p.3 explicitly distinguishes HOTRG's local criterion from its environment-based extension. We do not implement that extension here.

    An observable requires its own insertion tensor or a controlled derivative of the partition function. Accuracy of log⁡Z\log Z alone does not prove accuracy of a small connected correlator. The next page's PEPS example studies such contraction errors with a fixed quantum state.

    Numerical coarse-graining and physical renormalization

    These steps reduce the number of tensors while attempting to preserve their contraction.

    Ordinary TRG can retain short-distance correlations through repeated blocking. Tensor network renormalization, usually abbreviated TNR, adds disentanglers and suitable isometries to remove such correlations. A unitary pair uu†=Iuu^\dagger=I is an exact insertion; an isometric projector vv†vv^\dagger onto a smaller space is approximate. Their different roles are explained in Evenbly and Vidal, PDF pp.1–2. Our calculation uses HOTRG.

    Quantum Euclidean path integrals can also become tensor networks, for example through an imaginary-time product formula. In that application the time-step approximation, local Hilbert-space cutoff and tensor-bond truncation are separate. Improving the contraction does not automatically remove the other regulators. Likewise, rewriting a theory with complex weights avoids sampling a positive probability distribution, but does not eliminate possible numerical cancellations.

    Summary

    The Ising edge factorization gives an exact local tensor representation. Blocking remains exact until a smaller paired-bond space is selected. The finite-torus comparison verifies normalization and contraction while exposing the limits of local SVD diagnostics: they are neither partition-function error bars nor a universal physical RG construction.

    Exercises

    1. Close the smallest loop

    Consider four spins on one square with only its four perimeter edges. Derive

    Z□=16cosh⁡4K (1+tanh⁡4K)Z_\square=16\cosh^4K\,(1+\tanh^4K)

    by expanding the edge weights. Check both K=0K=0 and the leading K→∞K\to\infty behavior.

    Solution

    Write each edge weight as cosh⁡K(1+σiσjtanh⁡K)\cosh K(1+\sigma_i\sigma_j\tanh K). A term in the product survives the spin sums only if every spin occurs an even number of times. On this four-edge graph the surviving subsets are the empty graph and the full perimeter.

    Each surviving spin sum is 24=162^4=16, yielding the displayed result. At K=0K=0, it is 16 as required for four independent spins. At large positive KK, cosh⁡4K∼e4K/16\cosh^4K\sim e^{4K}/16 and tanh⁡4K→1\tanh^4K\to1, so Z□∼2e4KZ_\square\sim2e^{4K}. The factor two counts the two aligned configurations, each with four satisfied edges.

    This graph is an open four-spin patch, not a periodic 2×22\times2 lattice with two directional bonds between certain neighboring sites. The edge set must be specified before comparing formulas.

    2. What does an SVD tail bound?

    Let M=U diag⁡(sj)V†M=U\,\operatorname{diag}(s_j)V^\dagger, with decreasing nonnegative singular values, and let MχM_\chi retain the first χ\chi. Derive its Frobenius error and a bound on the change of a contraction with a fixed exact environment. Explain what is missing if only a local discarded fraction is reported for a multi-step tensor calculation.

    Solution

    Unitary invariance of the Frobenius norm gives

    ∥M−Mχ∥F2=∑j>χsj2.\|M-M_\chi\|_F^2=\sum_{j>\chi}s_j^2.

    The truncated SVD minimizes this error among rank-χ\chi matrices for the specified unfolding. If Z=⟨E,M⟩FZ=\langle E,M\rangle_F with fixed exact EE, then Cauchy–Schwarz gives

    ∣Z−Zχ∣≤∥E∥F∑j>χsj2.|Z-Z_\chi| \le\|E\|_F\sqrt{\sum_{j>\chi}s_j^2}.

    A local discarded fraction divides the squared tail by ∥M∥F2\|M\|_F^2. It contains neither ∥E∥F\|E\|_F nor the normalization by ∣Z∣|Z| needed for a relative partition error. It also describes one matrix projection, not automatically a simultaneous projection on two tensor legs.

    In a multi-step calculation several tensors and their environments have changed. A global error estimate requires those propagated effects or an independent convergence comparison. The local fractions alone do not supply a certified bound on log⁡Z\log Z or a normalized observable.

    References

    • G. Evenbly and G. Vidal, “Tensor Network Renormalization,” arXiv:1412.0732v3, PDF, pp.1–2: short-range correlations, disentanglers and projectors. No TNR implementation is claimed in the example.
    • M. Levin and C. P. Nave, “Tensor renormalization group approach to 2D classical lattice models,” arXiv:cond-mat/0611687v2, PDF, pp.1–2: tensor networks and SVD-based coarse-graining.
    • Z. Y. Xie, J. Chen, M. P. Qin, J. W. Zhu, L. P. Yang and T. Xiang, “Coarse graining tensor renormalization by the higher-order singular value decomposition,” arXiv:1201.1144v4, PDF, §II.A, Eqs. (1)–(12), and opening of §II.B: the implemented directional construction and its local-environment distinction.

    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.