Matrix Product States
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.
Successive SVD construction
Section titled “Successive SVD construction”Take an open chain with , . Reshape the first coefficient array into a matrix with row and column , without permuting physical axes, and compute . Store . Reshape into rows and the remaining physical columns, then repeat. The last residual becomes the final tensor.
At site the array shape is . 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.
Canonical gauges and the center tensor
Section titled “Canonical gauges and the center tensor”The transformation , leaves the state invariant. Avoid explicitly forming poorly conditioned inverses. A QR sweep moves the gauge center stably: reshape the site as , factor it as , store , and multiply into its neighbor.
Left-canonical tensors satisfy
while right-canonical tensors obey . 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.
Compression and a two-qubit example
Section titled “Compression and a two-qubit example”Across a canonical bond, retain the largest singular values and define
For an initially normalized state, . The discarded weight is a squared norm loss, not the norm distance itself.
For , compression to gives , fidelity , and norm distance . The discarded component has amplitude , which is much larger than . 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.
Implementation checks and boundaries
Section titled “Implementation checks and boundaries”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.
Exercises
Section titled “Exercises”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 can change arbitrary local singular values without changing the state.
References
Section titled “References”- 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.