TL;DR
A quantum state of many qubits needs one amplitude for every combination of 0s and 1s, so the list doubles with each qubit. A tensor network stores that list as a chain of small arrays joined by shared indices called bonds. How big the bonds must be depends only on how much entanglement crosses each cut in the chain, and for most physically useful states that is far less than the full list.
Builds on: Tensor Contraction, Singular Value Decomposition (SVD), Quantum Entanglement, Qubit · Leads to: Jordan-Wigner Transformation, the DMRG and matrix product state review
Where it's used
- Ground states of quantum magnets. The lowest-energy state of a one-dimensional chain of spins is the main target of the density matrix renormalization group, or DMRG, a renormalisation-group method that Steven White introduced in 1992. Its output is a matrix product state, a chain of small arrays, and physicists use it to find ground-state energies of chains with hundreds of sites that are far beyond exact diagonalisation.
- Electrons in molecules. Quantum chemists treat the orbitals of a small molecule as the sites of a chain. The chain's bonds then carry the electron correlations, and the same DMRG machinery finds the lowest-energy configuration of the electrons.
- Simulating quantum circuits. A quantum circuit with many gates can be written as a tensor network, and the cost of contracting that network tells you how hard the circuit is to imitate on an ordinary computer. This is one of the main ways researchers judge claims about quantum advantage.
- Compressing neural networks. The same chain format, called a tensor train in machine learning, has been used to replace large weight matrices with products of smaller arrays, trading a little accuracy for many fewer parameters.
How it works
Take the two-qubit Bell state , which is the simplest entangled state. Let , about 0.707.
- Write the amplitudes. The state has four amplitudes, one for each pair of bits: , , and . Check: the squares add to , as they must.
- Put the amplitudes in a grid. Let the first qubit choose the row and the second choose the column. The grid is . This is the same data, now with two indices. Check: the grid has two rows and two columns, one for each value of each qubit.
- Find the singular values. The grid is already diagonal, so its singular value decomposition is trivial. Its two singular values are and . Check: multiplying the three SVD factors gives back the grid.
- Count the nonzero singular values. There are two, so the cut between the two qubits passes two independent pieces of information. Call the number of pieces the bond dimension of the cut. Here it is 2. Check: a product state, with no entanglement, has only one nonzero singular value.
- Split the grid into two small arrays joined by a bond. Put the square root of each singular value into both neighbours. Each small array is the matrix on its diagonal, which is about 0.841 on each diagonal entry. The shared index runs from 1 to 2 and is the bond. Check: multiplying the two arrays gives on the diagonal, which is the original amplitude.
- Truncate. Suppose we allow only bond dimension 1. Keep the largest singular value and drop the other. The discarded singular value is , about 0.707, and the share of the state's weight we keep is . Check: half the weight is lost, so a Bell state cannot be squeezed into a bond of size 1.
- Read the result. The Bell state needs bond dimension 2, and the entanglement across the cut is one bit. The bond holds exactly the information that the two qubits share.
flowchart LR A[Amplitudes of the whole state] --> B[Reshape at one cut into a matrix] B --> C[Singular value decomposition] C --> D[Keep the largest singular values] D --> E[Small arrays joined by a bond]
The math
Let the state of qubits have amplitudes , where each is 0 or 1. A matrix product state writes each amplitude as a product of small matrices,
where each is a matrix whose size is set by the bond indices . The largest bond size is the bond dimension . The ends use a row vector and a column vector, so the product is a single number.
Steps 1 and 2 in symbols: the grid
The amplitudes satisfy , which is the normalisation condition from qubit states. For two qubits, put , with the first qubit's value and the second's. For the Bell state, .
Step 3 in symbols: the singular value decomposition
Any matrix can be written , where and have orthonormal columns, is diagonal, and its entries are the singular values (see Singular Value Decomposition (SVD)). For the Bell state, and . The singular values are the Schmidt coefficients of the state, and the probabilities give the weight of each piece.
Steps 4 and 5 in symbols: splitting the bond
Define and . Then , which is the matrix product and is exactly the contraction pattern from Tensor Contraction. The sum over is over the bond. For the Bell state, , and as required.
Step 6 in symbols: truncation
Keep only the largest singular values. The matrix built from them is the best rank- approximation to , and the squared error in the Frobenius norm is
For the Bell state with , the error is , so the error in the norm is .
The general chain and its size
For qubits and bond dimension , the chain holds about numbers, since each of the small arrays has two slices of size . The full list of amplitudes holds numbers. The chain is smaller whenever exceeds , which for large happens at a modest .
Entanglement and the bond
Across one cut, the entanglement entropy is in bits. Because there are at most singular values, . So a bond dimension can represent entanglement entropy up to bits across that cut, and no more without error. For the Bell state, and bit, the largest value a bond of size 2 allows.
Worked examples
Let the state be on the first qubit and on the second. Find the bond dimension across the cut.
- The amplitudes are , , and the other two are 0, where .
- The grid is , so has rank 1.
- Write with , and . Check: , which is .
- There is one singular value, so the bond dimension is 1. The largest probability is , and the entropy is .
- Conclusion: a product state has no entanglement, and a chain with bond size 1 is exact. It is just a product of two single-qubit arrays.
Use three sites with bond dimension 2. The arrays are: for site 1, the row vectors and . For site 2, the matrices and . For site 3, the column vectors and . Find the amplitude for .
- Multiply the first two arrays: .
- Multiply by the third array: .
- So the unnormalised amplitude is .
- To normalise, compute all eight amplitudes the same way. They are for through . Check: each has a value like the one above, and the list has eight entries.
- The squares sum to , so the norm is .
- The normalised amplitude is , and the probability of measuring is , about 0.444.
Consider the ground state of a chain of spin-1/2 particles with short-range interactions. A full list of amplitudes has entries. Estimate how many numbers a matrix product state needs with bond dimension , and how the count changes when doubles.
- The full state needs amplitudes. This is more than any computer can hold.
- The chain needs about numbers. With and , .
- Multiply: . So the chain holds about numbers, which fits easily in memory.
- The ground states of gapped chains obey an area law: the entanglement across any cut stays bounded as the chain grows, so a fixed can describe a long chain well. This is why the count grows only in proportion to .
- The bond dimension controls accuracy as well as size. Doubling to 128 allows entropy up to bits across each cut, instead of bits.
Try it: with and , how many numbers does the chain hold, and by what factor did it grow from ? Answer: , about . The factor is , because the count scales with , and .
Common mistakes and tradeoffs
- It is tempting to think a tensor network is just a compressed file format. In fact the bond dimension is set by entanglement, so a state with a lot of entanglement across a cut cannot be compressed much across that cut, whatever software you use.
- It is tempting to think a larger bond dimension is always better. In fact it gives a more accurate state but costs more: in typical DMRG calculations the work per sweep grows roughly with , so doubling can make each sweep about eight times slower.
- It is tempting to think a matrix product state is exact for any state. In fact it is exact only when the bond dimension is large enough to hold all the entanglement across every cut. Truncation gives an approximation whose error is the sum of the discarded squared singular values.
- It is tempting to think the chain format works in any dimension. In fact a matrix product state is a one-dimensional chain. A two-dimensional grid of qubits needs a different network, and the contractions become much harder to organise.
When to use it: for one-dimensional systems with short-range interactions, where the ground state has limited entanglement, and for circuits or states whose entanglement grows slowly.
When not to use it: for states with large entanglement across many cuts, such as highly entangled random states, where the bond dimension needed grows exponentially with the size of the system.
Alternatives: exact diagonalisation for very small systems, quantum Monte Carlo when the sign problem is absent, and other tensor networks such as the projected entangled pair state for two-dimensional systems.
History
Physicists were stuck on the fact that exact calculations on many-body quantum systems grow as , which limited them to small chains. In 1992 Steven White introduced the density matrix renormalization group, a numerical method that kept only the most important states at each step and found ground states of one-dimensional chains with high accuracy. It caught on because it worked far better than earlier renormalisation methods on the same systems. In 1995 Stellan Östlund and Stefan Rommer described the chain form of these states, which is now called a matrix product state. Ulrich Schollwöck's review of the method, first posted in 2010, made the connection widely known and set out the tools that use it today.
Recap
- A quantum state of qubits has amplitudes, which quickly becomes too many to store.
- Reshaping the amplitudes at one cut into a matrix and taking its SVD gives the singular values, and their number is the bond dimension of that cut.
- Splitting the singular values across two small arrays joined by a bond gives a chain whose size depends on the bond dimension, not on .
- Truncating to a smaller bond dimension loses exactly the discarded squared singular values.
- Read next: the matrix product state review for the method in full, and Jordan-Wigner Transformation, which maps fermions onto the spin chains these networks handle best.