Skip to content

Tensor-Network Overview

A tensor network replaces a large array by smaller arrays whose repeated indices are summed. Its computational value depends on two separate questions: whether the state or operator admits small internal dimensions, and whether the chosen contraction can be performed without creating large intermediate arrays. This page makes those questions explicit before an algorithm is selected.

Required background. Tensor products in code fixes index ordering; the Schmidt decomposition supplies the rank criterion for an exact factorization. The physical role of entanglement belongs to tensor-network entanglement.

Physical indices, virtual indices, and storage

Section titled “Physical indices, virtual indices, and storage”

For NN sites of local dimension dd, a state has coefficients Cs1…sNC_{s_1\ldots s_N}. A chain factorization uses

Cs1…sN=∑α1,…,αN−1A1α1[1]s1Aα1α2[2]s2⋯AαN−11[N]sN.C_{s_1\ldots s_N} =\sum_{\alpha_1,\ldots,\alpha_{N-1}} A^{[1]s_1}_{1\alpha_1} A^{[2]s_2}_{\alpha_1\alpha_2} \cdots A^{[N]s_N}_{\alpha_{N-1}1}.

The sjs_j are physical indices and αj\alpha_j are virtual indices. Open boundaries mean D0=DN=1D_0=D_N=1; the exact storage is ∑jdDj−1Dj\sum_j dD_{j-1}D_j. If all internal dimensions are bounded by DD, this is at most NdD2NdD^2, instead of dNd^N. This is a storage bound, not a guarantee that a prescribed error can be reached at fixed DD.

Four MPS tensors with open physical indices and three contracted virtual indices; a cut crosses the middle virtual bond.

Each box is a small array. An open vertical line labels a physical basis index sjs_j; a joined horizontal line means summation over a shared index αj\alpha_j. At the dashed cut, the two halves communicate through only D2D_2 values of α2\alpha_2, so the Schmidt rank cannot exceed D2D_2. The end bonds have dimension one and are omitted.

Repeated SVDs construct such a factorization for every finite state, but generic middle bonds require D∼dN/2D\sim d^{N/2}. Compression is therefore a property of the state and its ordering, not of the notation.

Consider XabYbcZcdX_{ab}Y_{bc}Z_{cd} with dimensions a,c=χa,c=\chi and b,d=db,d=d. Computing (XY)Z(XY)Z costs approximately χ2d+χ2d\chi^2d+\chi^2d, whereas X(YZ)X(YZ) costs approximately χd2+χd2\chi d^2+\chi d^2. When χ≫d\chi\gg d, the latter saves both arithmetic and intermediate memory. This elementary example explains why a drawing of the same network does not specify its runtime.

For an MPS norm, contract a left environment rather than constructing CC:

Lj=∑sj(A[j]sj)†Lj−1A[j]sj,L0=1.L_j=\sum_{s_j}(A^{[j]s_j})^\dagger L_{j-1}A^{[j]s_j}, \qquad L_0=1.

The final scalar is ⟨ψ∣ψ⟩\langle\psi|\psi\rangle. With bounded dimensions, this costs O(NdD3)O(NdD^3). In left-canonical gauge, each intermediate Lj=IL_j=I, providing a useful implementation invariant.

A product state has A[j]s=vjsA^{[j]s}=v_j^s and D=1D=1. A chain of NN qubits therefore requires 2N2N complex numbers before exploiting normalization. For the normalized GHZ state, (∣0⋯0⟩+∣1⋯1⟩)/2(|0\cdots0\rangle+|1\cdots1\rangle)/\sqrt2, D=2D=2 suffices across every internal cut. These examples test very different behavior: both compress well, but GHZ has nonzero long-distance connected correlations.

On four sites, explicitly reconstruct all 1616 coefficients and compare the norm and one-site and two-site expectations with direct dense contractions. To test site ordering, use an asymmetric complex state and deliberately permute two physical axes: site-resolved observables should change while the norm stays fixed. The GHZ state is invariant under site permutations and therefore cannot reveal this mistake by itself.

Use MPS for chain factorizations, MPOs for operator structure, and PEPS when two-dimensional connectivity matters. A circuit contraction can be exact but expensive; an MPS simulation of the same circuit can be cheaper and approximate.

Record the maximum intermediate size, bond dimensions, contraction order, and every truncation. Changes in contraction order should agree to roundoff when no compression occurs. Changes in bond dimension probe representation error. These are different tests.

A normalized state has Schmidt weights 0.8,0.15,0.050.8,0.15,0.05 across one cut. What fidelity is obtained by retaining two terms and renormalizing?

Solution

The retained squared norm is 0.950.95. The overlap with the normalized retained state is 0.95\sqrt{0.95}, so the squared fidelity is 0.950.95. A different tensor gauge cannot improve this rank-two optimum for that cut. Multiple successive cuts require a separate accumulated-error analysis.

  • Orús, Román, “A practical introduction to tensor networks: Matrix product states and projected entangled pair states,” Annals of Physics 349, 117–158 (2014), arXiv:1306.2164 — representations and approximate contractions.
  • Schollwöck, Ulrich, “The density-matrix renormalization group in the age of matrix product states,” Annals of Physics 326, 96–192 (2011), arXiv:1008.3477 — canonical gauges, contractions, and finite-chain algorithms.