Skip to content

A matrix product state (MPS) stores a chain wavefunction as a product of site tensors. A reliable implementation must maintain both physical index order and a useful gauge: canonical gauges make the norm metric local and give singular values a direct truncation meaning. The many-body introduction explains the physical representation; here we construct, contract, and compress its arrays.

Required background. Schmidt decomposition and tensor products in code supply SVD and reshape conventions.

Take an open chain with Cs1…sNC_{s_1\ldots s_N}, sj=0,…,dj−1s_j=0,\ldots,d_j-1. Reshape the first coefficient array into a matrix with row s1s_1 and column (s2,…,sN)(s_2,\ldots,s_N), without permuting physical axes, and compute C=UΣV†C=U\Sigma V^\dagger. Store A1α[1]s1=Us1αA^{[1]s_1}_{1\alpha}=U_{s_1\alpha}. Reshape ΣV†\Sigma V^\dagger into rows (α,s2)(\alpha,s_2) and the remaining physical columns, then repeat. The last residual becomes the final tensor.

At site jj the array shape is (Dj−1,dj,Dj)(D_{j-1},d_j,D_j). A reconstruction test must compare coefficients in the same lexicographic order as the input. An SVD can return different phases and bases in degenerate singular spaces; reconstructed states and observables, rather than individual tensor entries, are the invariants.

The transformation A[j]s↦A[j]sXA^{[j]s}\mapsto A^{[j]s}X, A[j+1]s↦X−1A[j+1]sA^{[j+1]s}\mapsto X^{-1}A^{[j+1]s} leaves the state invariant. Avoid explicitly forming poorly conditioned inverses. A QR sweep moves the gauge center stably: reshape the site as (Dj−1dj)×Dj(D_{j-1}d_j)\times D_j, factor it as QRQR, store QQ, and multiply RR into its neighbor.

Left-canonical tensors satisfy

∑s(A[j]s)†A[j]s=I,\sum_s (A^{[j]s})^\dagger A^{[j]s}=I,

while right-canonical tensors obey ∑sA[j]s(A[j]s)†=I\sum_s A^{[j]s}(A^{[j]s})^\dagger=I. With left and right blocks orthonormal, the Frobenius norm of the remaining center tensor equals the wavefunction norm. Outside this gauge, a local tensor norm has no such interpretation.

Across a canonical bond, retain the largest χ\chi singular values λa\lambda_a and define

ϵ=∑a>χλa2,∣ψ~⟩=∑a≤χλa∣LaRa⟩1−ϵ.\epsilon=\sum_{a>\chi}\lambda_a^2, \qquad \lvert\widetilde\psi\rangle= \frac{\sum_{a\leq\chi}\lambda_a|L_aR_a\rangle} {\sqrt{1-\epsilon}}.

For an initially normalized state, ∣⟨ψ∣ψ~⟩∣2=1−ϵ|\langle\psi|\widetilde\psi\rangle|^2=1-\epsilon. The discarded weight is a squared norm loss, not the norm distance itself.

For ∣ψ⟩=0.9∣00⟩+0.1∣11⟩|\psi\rangle=\sqrt{0.9}|00\rangle+\sqrt{0.1}|11\rangle, compression to χ=1\chi=1 gives ∣00⟩|00\rangle, fidelity 0.90.9, and norm distance 2−20.9\sqrt{2-2\sqrt{0.9}}. The discarded component has amplitude 0.1\sqrt{0.1}, which is much larger than 0.10.1. This distinction matters when estimating observable errors.

Sequential truncations are each optimal for the current cut but do not generally yield the globally optimal fixed-bond MPS. A later variational compression can improve the result. See error analysis before summing discarded weights.

Check left/right isometry residuals, the independently contracted norm, reconstruction on short chains, and expectations before and after moving the gauge center. Test complex tensors so that an accidental transpose in place of a conjugate transpose cannot pass unnoticed.

Periodic MPS replace boundary vectors by a trace, but the finite open-chain canonical identities do not transfer unchanged. Cutting a ring changes the effective entanglement crossing that cut; periodic algorithms can therefore need larger bonds and more expensive environments.

Why can one not read the Schmidt spectrum from an arbitrary site’s SVD?

Solution

The remaining tensor network supplies nontrivial left and right Gram matrices. A plain Euclidean SVD of the local array ignores those metrics. Bring both surrounding blocks into orthonormal gauges first; the center-bond SVD then computes the physical Schmidt coefficients. A gauge transformation with a badly scaled XX can change arbitrary local singular values without changing the state.

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