Skip to content
Current section
The Quantum Computing Enthusiast’s Hub
Saved
All sections

All sections

Saved
Skip Learn navigation
Encyclopedia
Topic

Tensor-network simulation

Classical simulation that represents quantum states or circuits as connected low-rank tensors and contracts the network.

Edition released Coverage: Overview · Technical
On this page

Definition and significance

Tensor networks exploit factorization and limited correlations instead of storing a generic full statevector. A matrix-product state is a common one-dimensional representation; other network geometries and circuit contraction strategies suit different structures. Their efficiency depends on entanglement, bond dimensions and contraction order, not only qubit count.

The method can be exact when sufficiently large tensors are retained, or approximate when small singular values are truncated. A claim of successful simulation should identify which quantity was computed and the approximation error used.

Mechanism and mathematical treatment

Across a bipartition, a pure state has Schmidt form sum_j s_j |u_j>|v_j>, with s_j>=0 and sum_j s_j^2=1. An exact matrix-product representation needs bond dimension at least the Schmidt rank across each cut. Keeping the largest chi terms discards squared weight delta=sum_(j>chi) s_j^2.

The normalized truncated state has squared overlap 1-delta with the original at that truncation step. Subsequent operations and repeated truncations require additional error accounting; adding discarded weights is a conservative bookkeeping strategy in some settings, not a universal exact final error formula.

Fully worked reference example

For |psi>=sqrt(0.9)|00>+sqrt(0.1)|11>, the Schmidt coefficients are sqrt(0.9) and sqrt(0.1). A bond dimension of two represents the state exactly. Truncating to one term and renormalizing gives |00>, with squared overlap 0.9. The discarded weight is 0.1.

For the Bell state the two Schmidt weights are equal, so a rank-one approximation has squared overlap only 1/2. In contrast, a product of 100 independent qubits has bond dimension one even though its dense statevector has 2^100 amplitudes. The representation cost follows correlation structure, not the raw Hilbert-space dimension alone.

Limitations and common misconceptions

Low entanglement across one cut does not guarantee a good representation for every network ordering. Two-dimensional circuits can have costly contractions even when local gates are simple. Approximate observable accuracy should be validated for the intended quantity rather than inferred solely from a visually small discarded weight.

Scientific relationships

Low-rank tensor structure can replace a dense amplitude representation.

Historical source context

Vidal submitted the cited restricted-entanglement simulation paper in January 2003 and revised it in February 2003. It provides a foundational computational connection; tensor methods have a broader history beyond this single paper.

An explicit matrix-product representation of a GHZ state

For four qubits, construct first-site tensors A0(0)=[1/sqrt(2),0] and A0(1)=[0,1/sqrt(2)]. At each of the two middle sites, use A(0)=diag(1,0) and A(1)=diag(0,1). At the last site, use A3(0)=[1,0] transpose and A3(1)=[0,1] transpose. The amplitude of a bit string is the product of its four selected tensors.

For 0000, the product follows the first bond component and yields 1/sqrt(2). For 1111, it follows the second and gives the same amplitude. Any string containing a change from zero to one or one to zero forces multiplication of orthogonal projectors and yields zero. The tensors therefore represent (|0000>+|1111>)/sqrt(2) exactly with bond dimension two.

This representation uses twenty-four scalar slots if every tensor entry is stored densely, compared with sixteen amplitudes in the four-qubit statevector. At this tiny size, the tensor format is not automatically smaller. Extending the same pattern to many qubits uses only linearly many fixed-size tensors, while the dense vector doubles for each additional qubit. Asymptotic savings and finite-size overhead are distinct facts.

Ordering can change the necessary bond dimension

Take two Bell pairs connecting A with C and B with D. In physical order A,B,C,D, the state is (|0000>+|0101>+|1010>+|1111>)/2. Across the cut AB|CD, it has four equal Schmidt coefficients one-half, so an exact matrix-product representation in this order needs bond dimension at least four on that cut.

Reorder the tensor chain as A,C,B,D. The two Bell pairs become adjacent. The cut between the two pairs has Schmidt rank one, and the cuts inside a pair have rank two. The maximum required bond dimension is now two. The physical state has not changed; only the representation order has changed. This is why graph structure and ordering can matter as much as qubit count in tensor simulation.

The reordered representation does not make all gates local in that order. A later interaction between A and D may cross the chain and require a more expensive update or a different contraction strategy. Choosing an order trades the current state's factorization against the circuit's future interactions. An algorithm that continuously reorders tensors must account for those transformations and their cost.

A quantified truncation and its normalized error

Suppose a Schmidt spectrum has squared weights 0.64,0.25,0.09 and 0.02. Keeping the first two terms discards delta=0.11. The retained normalized coefficients are 0.8/sqrt(0.89) and 0.5/sqrt(0.89). The squared overlap with the original state is exactly 0.89. The Euclidean distance between the original state and this normalized truncation is sqrt[2-2sqrt(0.89)], after choosing their common phase consistently.

The fidelity loss delta and the vector distance are different error measures. For small delta, the distance is approximately sqrt(delta), not delta. If many truncations occur, summing their discarded weights is not universally equal to the final infidelity. A safe general route bounds the vector discrepancy from each normalized truncation and propagates it through subsequent unitaries with a triangle inequality.

If truncation step j has vector error eta_j, the total vector discrepancy is at most sum_j eta_j under an otherwise exact unitary sequence. A bounded observable then has error at most 2||O||sum_j eta_j. This can be loose, but it states a valid scope. More specialized tensor algorithms can establish stronger accumulated-error results using canonical forms and additional structure.

Updating a two-site gate

For adjacent sites, contract their two tensors into one object carrying the left bond, two physical indices and right bond. Apply the two-qubit gate to the physical indices. Reshape the result into a matrix with the left bond and first physical index grouped as rows, and the second physical index and right bond grouped as columns. A singular-value decomposition splits it back into two tensors, optionally truncating small singular values.

If the neighboring bond dimensions are at most chi and each physical dimension is two, the reshaped matrix has dimensions at most 2chi by 2chi. Dense singular-value decomposition then has a cubic dependence on chi at this local step, up to implementation constants. The bond can grow after an entangling gate, so repeated updates may become expensive even when each gate acts on only two qubits.

A simulation report should specify maximum bond dimension, truncation policy, ordering and the quantity computed. An accurate local observable can coexist with a less accurate global state, and a low discarded weight at one step does not certify a long calculation by itself. For the explicit GHZ and Bell-pair examples, direct amplitude contraction provides an exact small reference with no truncation.

Sources

  • Guifre Vidal · · Research paper · Publication status unspecified · arXiv · DOI 10.1103/PhysRevLett.91.147902
    Verification scope

    Selected source text checked ·

    Efficient simulation relies on controlled entanglement or bond dimensions; no universal small-memory guarantee.