Overview
A state of qubits has amplitudes, but the states that arise as ground states of local Hamiltonians, or early in a shallow circuit, are far from generic. A tensor network writes such a state, or a circuit, or an operator, as a collection of small tensors joined along shared indices; the full object is recovered by summing over the shared indices, which is called contracting the network. The size of the shared indices, the bond dimension, limits how much entanglement the network can carry across any cut, and it controls the cost.
The one-dimensional case is understood rigorously: matrix product states represent every state exactly with bond dimension equal to the largest Schmidt rank, truncation errors are controlled by discarded Schmidt weights, and ground states of gapped chains obey an area law that makes them efficiently representable. This is the foundation of the density-matrix renormalisation group (White), the most accurate numerical method for one-dimensional quantum systems. In two dimensions, projected entangled pair states are the natural generalisation, but contracting them exactly is #P-complete. For circuits, the cost of exact contraction is governed by the treewidth of the circuit graph.
In quantum computing tensor networks play three roles: they are the main classical competitor that every claim of quantum advantage must beat, they are a tool for decoding error-correcting codes, and they describe resource states for measurement-based computation.
Intuition
Cut a chain of qubits into a left and a right part. However complicated the state is, the Schmidt decomposition says that only numbers, the Schmidt coefficients, describe how the two parts are correlated, and is at most the dimension of the smaller side. A matrix product state stores, at every cut, a -dimensional "channel" through which the two sides talk. If the state never needs more than channels at any cut, the description costs about numbers instead of .
Ground states of gapped local Hamiltonians are exactly such states in one dimension: correlations die off over a fixed length, so only the region near the cut is entangled across it, and the needed does not grow with the chain. Random states and long-time dynamics are the opposite: their entanglement grows with the size of the smaller side (a volume law), and must grow exponentially.
The same picture explains when circuits are easy to simulate. Every two-qubit gate across a cut can multiply the Schmidt rank there by at most four, because a two-qubit operator is a sum of at most four products of single-qubit operators. Shallow or one-dimensional circuits therefore stay cheap; deep circuits on two-dimensional grids do not.
Prerequisites
The Schmidt rank and entanglement entropy of bipartite pure states; the singular value decomposition; the circuit model. The lesson Multiple qubits and entanglement covers the first two.
Mathematical Definitions
Let be positive integers with . An open-boundary matrix product state on sites is a vector
where the product of matrices is a matrix, read as a number. The index joining to is the -th bond (or virtual index); is its dimension and is the bond dimension of the representation. The description uses complex numbers instead of .
With periodic boundary conditions all may exceed one, , and the amplitude is .
The representation is not unique: replacing and for any invertible leaves unchanged. A site tensor is left-canonical if and right-canonical if . In a mixed canonical form around bond , with tensors left-canonical to its left and right-canonical to its right and a diagonal matrix placed on the bond, the diagonal entries of are the Schmidt coefficients of for the cut between sites and .
Matrix product states on infinite chains were studied as finitely correlated states by Fannes, Nachtergaele and Werner; finite-chain MPS underlie the density-matrix renormalization group, and their use for simulating slightly entangled quantum computations is due to Vidal. Reviews: Schollwöck, Orús. In numerical analysis the same format is called a tensor train.
- Finite chain of sites, each with local Hilbert space and computational basis .
Let be a finite graph and an integer. Attach to each edge an index , and to each vertex a tensor with one physical index and one virtual index for every edge incident to . The projected entangled pair state (PEPS) defined by these tensors is
and is its bond dimension. When is a path the definition reduces to an open-boundary matrix product state. The name describes an equivalent construction: place a maximally entangled pair of -level systems on every edge and apply at each vertex a linear map from the -dimensional space of its virtual systems to .
For a region , the Schmidt rank of across and its complement is at most , where counts edges with one end in ; so the entanglement entropy of a PEPS is at most . PEPS on two-dimensional lattices were introduced by Verstraete and Cirac; their evaluation is computationally hard in general (Schuch, Wolf, Verstraete and Cirac).
- Finite graph with a local Hilbert space at every vertex.
Two further families should be named. A matrix product operator writes an operator on sites in the same form, with operator-valued matrices; nearest-neighbour Hamiltonians have matrix product operators of bond dimension independent of , which is how DMRG handles them. The multi-scale entanglement renormalisation ansatz (MERA) of Vidal arranges unitaries and isometries in a hierarchy of length scales; its structure is suited to critical systems, whose entropy grows logarithmically.
For this becomes . For a semi-infinite chain with the interval at the open end the coefficient halves: , because the interval has only one boundary point inside the system. These forms were derived by Calabrese and Cardy.
Use. For an MPS the entropy across a bond is at most , so an exact description of a critical ground state needs a bond dimension that grows at least polynomially in the block length; this is why critical chains are harder for DMRG than gapped ones (compare the area law) but remain tractable. Fitting against the chord length is a standard way to read off the central charge from numerical data.
- Ground state of a one-dimensional system whose low-energy theory is a conformal field theory with central charge ; is the lattice spacing (ultraviolet cutoff) and is a non-universal constant.
- Interval of sites in a periodic chain of sites; entropy in natural-log units (nats).
- Derived in field theory; leading behaviour for , not a lattice-exact identity.
Theorems
Let be nonzero, and for let be its Schmidt rank across the bipartition of sites and . Then:
- has an open-boundary matrix product state representation with bond dimensions for every , whose first site tensors are left-canonical;
- every open-boundary matrix product state representation of has for every .
Consequently the smallest bond dimension of an exact representation is , which is at most because ; and if is the entanglement entropy across cut (logarithm base 2), then . The construction by successive Schmidt decompositions is due to Vidal; see also section 4 of Schollwöck.
- Finite chain of sites with local dimension ; open boundary conditions.
- Exact equality of vectors (no truncation).
Proof · Proof of the exact matrix product state representation
For a vector on sites write for the matrix with entries . The Schmidt rank across cut is the rank of .
Lower bound. Take any representation with bond dimensions and fix . Splitting the matrix product at bond ,
So is a sum of rank-one matrices and .
Upper bound. We build the tensors from left to right. Set , a matrix, and . At step we hold a matrix of size , with rows indexed by pairs . Take a compact singular value decomposition , where has orthonormal columns. Define
and let be the matrix reshaped to by splitting its column index into . After step , is a column; set . Unwinding the reshapes shows that the matrix product reproduces every amplitude, since each step only factors . Orthonormality of the columns of is exactly the left-canonical condition .
It remains to show . Let be the matrix . By construction , and has orthonormal columns: , and after reordering rows, a product of two matrices with orthonormal columns. Multiplying by a matrix with orthonormal columns preserves rank, so .
The bound is the size of . If is a unit vector with squared Schmidt coefficients at cut , then because the uniform distribution maximises Shannon entropy on outcomes. The singular value decomposition facts used are in chapter 7 of Horn and Johnson.
For a unit vector on sites and a cut , let be the squared Schmidt coefficients across the cut after site , and define the discarded weight
Let be the output of the left-to-right successive singular value decomposition that keeps only the largest singular values at every step. Then is a matrix product state of bond dimension at most , and
Conversely, every matrix product state of bond dimension at most satisfies . So the truncated state is optimal up to a factor of at most in squared error.
The upper bound is the error bound of the tensor-train SVD algorithm in Oseledets; Verstraete and Cirac proved a bound of the same form, a constant times the sum of discarded weights, and used it to show that states with slowly growing Rényi entropies have efficient MPS approximations. The lower bound is the Eckart–Young theorem applied at the worst cut.
- Unit vector , open boundary conditions, Euclidean (2-) norm on vectors.
- The truncation is the left-to-right successive SVD that keeps the largest singular values at each step; the output is not renormalised.
Proof · Proof of the matrix product state truncation bound
Work with a general tensor with indices of dimensions (the first may differ from the others) and Frobenius norm , which is the vector norm. Let be the unfolding with rows and columns , and let . For a unit state these are the discarded weights of the theorem, because the singular values of are the Schmidt coefficients.
Two facts. (i) Eckart–Young: if holds the leading left singular vectors of a matrix and , then , and no matrix of rank at most is closer to (Eckart and Young). (ii) If then for every , a standard singular value inequality (Horn and Johnson).
Claim. The truncated successive SVD applied to returns , a chain of tensors with bond dimensions at most , with .
Induction on . For nothing is truncated, , and the sum is empty. For , let be the matrix () of leading left singular vectors of and . Define the tensor , with indices , ; it has indices. The algorithm keeps as the first site tensor and recurses on , producing , and outputs (contraction over ). Then
The two terms are orthogonal in the Frobenius inner product, because for any , as . Since has orthonormal columns, . With fact (i),
by the induction hypothesis applied to (its cuts are numbered so that cut of separates from the rest). Finally, the unfolding of at cut is with , so by fact (ii) every singular value, and hence the tail sum, is no larger than for : . This proves the claim, and applying it to gives the upper bound. Each kept has at most columns, so every bond dimension is at most .
Lower bound. If is a matrix product state of bond dimension at most , its unfolding has rank at most for every (lower-bound half of the exact representation theorem). Since the vector norm equals the Frobenius norm of any unfolding, fact (i) gives for every .
The inductive argument is the one used for the tensor-train SVD in Oseledets, written here in the notation of quantum states.
Under the assumptions above, let be the ground state and a block at one end of the chain, so that is the entropy across the cut after site . Then
a constant depending only on the local dimension, the interaction range and the ratio , and not on or the size of (Hastings). For a block in the interior of the chain, subadditivity applied to its two complementary pieces gives at most . Hastings also showed that such ground states are well approximated by matrix product states; his explicit bound on is finite but grows rapidly as the gap closes, that is, with the correlation length.
Landau, Vazirani and Vidick turned this into an algorithm: for the same class of Hamiltonians, a randomized procedure running in time polynomial in outputs a matrix product state of polynomial bond dimension that approximates to inverse polynomial accuracy.
The name refers to the boundary of : in one dimension the boundary of a block is a bounded number of bonds, so the bound is "boundary size times a constant". The review by Eisert, Cramer and Plenio surveys area laws in other settings, where the corresponding statements are mostly unproved or false in general.
- Chain of sites with local dimension ; Hamiltonian with each acting on a bounded number of consecutive sites and .
- Unique ground state separated from the rest of the spectrum by a gap that does not close as grows.
- Does not cover gapless (critical) chains or degenerate ground spaces as stated, nor any lattice of dimension two or more.
Schuch, Wolf, Verstraete and Cirac proved:
- classically simulating projected entangled pair states, in the sense of computing their local expectation values exactly, is -complete;
- contracting a general tensor network is -complete;
- a device able to create arbitrary PEPS could solve -complete problems.
The proofs use a correspondence between PEPS and postselected quantum circuits: a two-dimensional network can encode a quantum circuit together with postselection on measurement outcomes, and postselected quantum computation has the power of . The same paper notes that PEPS which approximate ground states of gapped Hamiltonians are easier to create than arbitrary PEPS, so the hardness is a worst-case statement about the whole class.
- Exact evaluation (of amplitudes, norms or local expectation values) for PEPS on two-dimensional lattices given as part of the input; worst case over instances.
- Says nothing about approximate contraction to bounded error, or about PEPS that approximate ground states of gapped Hamiltonians.
Let be a quantum circuit with gates whose underlying graph has treewidth . Then can be simulated by a deterministic classical algorithm in time
which is polynomial in when (Markov and Shi). The algorithm views the circuit as a tensor network and contracts it in an order derived from a tree decomposition; the cost of the best contraction order is exponential in the treewidth of the line graph of , which is within constant factors of the treewidth of for bounded-degree graphs.
Two consequences stated by the authors: circuits of depth whose gates act only on nearby qubits have logarithmic treewidth and are classically simulable; and a one-way (measurement-based) computation on a graph state of treewidth can be simulated by a randomized algorithm in time .
- Circuits of gates, each acting on a bounded number of qubits; the underlying graph has a vertex per gate (and per input and output) and an edge per wire segment.
- The simulation computes output amplitudes or probabilities to within numerical precision; treewidth is of the circuit's graph, not of any qubit layout.
Worked Examples
GHZ and W states have bond dimension 2
For , take (a row), for , and . The product is when all are equal and otherwise. Every cut has Schmidt rank 2, so by the exact representation theorem is optimal.
For the W state , use the same matrices at every site, and , with boundary row on the left and column on the right, and an overall factor . A product of these matrices is nonzero in the entry only if exactly one appears, because is the only way from the first to the second virtual state and . Again , although the W state cannot be converted into the GHZ state by local operations.
When does exact MPS simulation of a circuit run out of memory?
Take qubits on a line and a brickwork circuit of arbitrary two-qubit gates: odd layers act on pairs and even layers on . The middle cut, between qubits 25 and 26, is crossed by a gate in every odd layer, so after layers by gates. Each gate is a sum of at most four product operators, so it multiplies the Schmidt rank by at most 4, and the rank is also at most . Hence at that cut, and the other cuts obey the same or a smaller bound. Storing at most complex numbers at 16 bytes each needs at most bytes:
| depth | gates across the cut | bound on | memory bound |
|---|---|---|---|
| 4 | 2 | 16 | bytes (0.4 MB) |
| 8 | 4 | 256 | bytes (105 MB) |
| 12 | 6 | 4096 | bytes (27 GB) |
| 16 | 8 | 65 536 | bytes (6.9 TB) |
| 25 | 13 | (cap) | bytes |
These are upper bounds: gates of operator Schmidt rank two, such as CNOT, at most double the rank, and particular circuits can generate less entanglement. Beyond a depth in the low teens exact storage is out of reach and the simulation has to truncate, at which point the truncation bound and the discarded weight of every step, not the bond dimension, measure its accuracy. On a two-dimensional grid the number of gates across a cut grows with the side length of the grid as well as the depth, which is why MPS methods are a poor fit there.
Algorithms and Implementations
DMRG. The density-matrix renormalisation group (White) minimises the energy over matrix product states of fixed bond dimension by sweeping along the chain and solving, at each site or pair of sites, a small eigenvalue problem for the local tensor with all others fixed. In the single-site form no local update raises the energy; the method is variational but can stall in local minima, and its convergence is usually checked by the energy variance and the discarded weight. The reformulation in MPS language is reviewed by Schollwöck. Its provable cousin is the polynomial-time algorithm of Landau, Vazirani and Vidick.
Input. An MPS ; a sequence of two-site unitaries , each acting on a pair ; a maximum bond dimension (or a tolerance on discarded weight). For time evolution under , the gates come from a product formula, for example repeated times; terms within each product commute.
Procedure, for each gate on sites :
- Move the canonical centre to bond (QR or SVD sweeps; no change to the state).
- Contract , the bond matrix and into a two-site tensor and apply , giving , a matrix.
- Compute the SVD . Keep the largest singular values; their discarded squared sum, divided by , is the discarded weight of this step.
- Reshape and into the new and .
The cost per gate is dominated by the SVD, operations, so a full sweep costs . The procedure is due to Vidal for circuits and Vidal for one-dimensional time evolution; a modern account is section 7 of Schollwöck.
Error accounting. Let be the exact result of applying and the TEBD state. Step applies the unitary and then the truncation, whose error in the canonical form is by the Eckart–Young theorem. Since unitaries preserve norms and truncation never increases the norm,
For time evolution add the product-formula error of the gate sequence. Both budgets should be reported: a bond dimension alone says nothing about accuracy.
- Chain of sites of local dimension ; gates (or Trotter factors) act on nearest-neighbour pairs.
- The MPS is kept in mixed canonical form around the bond being updated, so that local singular values are global Schmidt coefficients.
Contracting general networks. For a circuit or a two-dimensional network, exact contraction is a sequence of pairwise tensor contractions, and its cost depends dramatically on the order. Finding a good order is itself a hard optimisation; Gray and Kourtis describe hyper-optimised heuristics for it. Approximate methods for PEPS (boundary MPS, corner transfer matrices, tensor renormalisation) truncate along the way and have no general error guarantee.
Applications
- Classical baselines for quantum experiments. Google's random circuit sampling experiment on 53 qubits (Arute et al.) was later matched by a tensor-network sampling computation (Pan, Chen and Zhang). The 127-qubit kicked-Ising experiment of Kim et al., which used error mitigation, was simulated by Tindall et al. with a tensor network matched to the device lattice and contracted by belief propagation; they report results more accurate than the processor's. See quantum advantage.
- Decoding. Maximum-likelihood decoding of planar codes reduces to contracting a two-dimensional network; see the tensor-network decoder and Ferris and Poulin for codes built from tensor networks.
- Measurement-based computation. Graph states such as the cluster state are PEPS of bond dimension 2; by the treewidth theorem, one-way computation on a resource of logarithmic treewidth is classically simulable.
Computational Complexity
In one dimension, gapped ground states can be found in polynomial time (Landau, Vazirani and Vidick); without the gap assumption no such guarantee is available, and estimating ground energies of general local Hamiltonians is the QMA-complete local Hamiltonian problem. In two dimensions, exact PEPS contraction is #P-complete. For circuits, exact simulation costs for treewidth .
Limitations and Common Pitfalls
- Reporting without an error. A bond dimension says nothing about accuracy. Report the discarded weight per step, its sum, or an energy variance.
- Carrying the 1D argument to 2D. In two or more dimensions an area law, even where it holds, does not by itself imply that a small PEPS describes the state, and area laws for general gapped two-dimensional ground states are not proved; the survey by Eisert, Cramer and Plenio discusses what is known.
- Treating "PEPS is efficient" as "PEPS is computable". PEPS are compact descriptions whose exact evaluation is #P-complete; practical 2D results rest on approximate contraction with no worst-case error control.
- Area law versus gap. The one-dimensional area law needs a uniform spectral gap. Critical chains have logarithmically growing entropy, so must grow polynomially with the block size.
- Treating a classical-hardness claim as permanent. Classical simulation methods improve; a claim that a device is beyond classical reach is a statement about the best method tried, its compute budget and its date.
- Normalisation after truncation. The truncated state has norm below one; renormalising it is fine, but the error bound refers to the unnormalised vector.
Related Research
Orús and Schollwöck are the standard introductions. Verstraete and Cirac relate Rényi entropies with index below one to the existence of efficient MPS approximations. Tensor networks for diagrammatic reasoning about qubit circuits are formalised by the ZX calculus.