Goal

After this module you can evolve a matrix product state in real or imaginary time with TEBD, derive where its two errors (Trotter splitting and truncation) come from and how they scale, and predict when a real-time simulation will stop being accurate.

Notebooks

Module 2 gave us matrix product states and two tools for working with them: we can move the orthogonality centre along the chain with QR and LQ steps, and we can cut a bond with a truncated SVD whose error is the discarded weight, which is the best possible cut when the centre sits at that bond. This module adds one more ingredient, applying a gate to two neighbouring sites, and turns the three into an algorithm for the question that every quantum simulation eventually asks: given and a Hamiltonian , what is ?

The algorithm is called time-evolving block decimation (TEBD) and goes back to Vidal (1,2). The idea fits in one sentence. A nearest-neighbour Hamiltonian is a sum of two-site terms; we cannot exponentiate the sum, but we can exponentiate every term, so we approximate by a product of two-site gates and apply them one at a time, truncating after each gate.

That sentence hides two approximations, and most of this module is about them. Replacing the exponential of a sum by a product of exponentials is the Trotter error; it depends on the time step and has nothing to do with tensor networks. Truncating after every gate is the truncation error; it depends on the bond dimension and on how much entanglement the evolution creates. We will derive how each one scales, measure both, and keep them apart.

We use TEBD in two ways. In imaginary time, filters out everything but the ground state, which gives a simple ground-state method that we check against exact diagonalization. In real time, we follow a global quench and watch the two facts that limit every MPS simulation of dynamics: correlations spread inside a light cone, and entanglement grows linearly in time.

Applying gates to an MPS

A one-site gate acting on site is the easy case. We contract it into the physical leg of , and the result is again a three-leg tensor with the same bond dimensions. Nothing is truncated, and if is unitary the canonical form is untouched.

A two-site gate on sites is where the work is. We combine it with the truncated SVD of Module 2; Figure 3.1 draws the three steps. First we contract the two site tensors over their shared bond into a block with legs . Then we apply the gate to the two physical legs,

Finally we reshape into a matrix and take its SVD, . The middle bond now has up to singular values. An entangling gate generally makes them all non-zero, so if we kept them all, the bond dimension would double with every layer of gates. We keep the largest and drop the rest.

AC B G 1. gate on the pair theta' 2. merge SVD U s V D D drop sk for k > D 3. split, keep D
Figure 3.1. One two-site gate update. The MPS sits on top with its physical legs pointing down, so the gate hangs below the pair. The orthogonality centre (gold) is inside the pair; after the split it moves to the side we absorb s into.

How much did we throw away? The natural measure, Definition 3.1, is the fraction of the block’s squared norm that sat in the dropped singular values.

Definition 3.1 (Discarded weight).

Let be the singular values of the gated block across the bond being cut. Keeping the largest, the discarded weight of this truncation is

In code, svd_trunc (TensorKit) returns , so we square it and divide by .

The discarded weight is a local number, computed from one . It only means something for the whole state if the truncation of is also the best truncation of . This is where the canonical form enters.

Proposition 3.1 (Optimal truncation in mixed canonical form).

Let be normalized and in mixed canonical form with its centre inside the block (sites and ): all tensors left of are left-orthogonal and all tensors right of are right-orthogonal. Among all states that differ from only in the block and have bond dimension at most between and , the truncated SVD gives the closest one in 2-norm, and the distance is

Cost. For , contracting the two site tensors into costs and applying the gate costs . The SVD of the matrix costs and dominates. A full sweep over the chain is .

Splitting the Hamiltonian into bonds

TEBD needs the Hamiltonian as a sum of two-site pieces, . For the TFIM, , the coupling is already on a bond. The field sits on a site, so we share it between the two bonds that touch that site, and give the full field to the single bond at each end:

Every site then appears with total weight one, and exactly (the notebooks check this to machine precision). Other splittings are allowed; this one is symmetric and keeps all bond terms of the bulk identical.

Neighbouring bond terms do not commute: and both act on site 2. Bond terms two apart do commute, because they act on disjoint sites. This suggests grouping the bonds into two layers,

with exactly (and likewise for ), because the factors commute. Each layer is a row of non-overlapping two-site gates, the familiar brickwork of Figure 3.3 (left).

Suzuki-Trotter splitting and its error

We want and can only compute and . Here for real time and for imaginary time. Two classic products are (4)

is the first-order (Lie-Trotter) step and the second-order (Strang) step. How wrong are they?

Theorem 3.1 (Local Trotter error).

For bounded and small , the two products of satisfy

Consequently the one-step errors are and .

One step is not the whole story. To reach time we take steps, and Proposition 3.2 shows that the errors add up.

Proposition 3.2 (Global Trotter error).

Let and let be a unitary approximation with . Then after steps

So the first-order step has a global error and the second-order step .

Figure 3.2 measures both statements with dense matrices at . The local errors have slopes 2 and 3 on the log-log plot, and the global errors have slopes 1 and 2, as predicted. At and the notebook prints a state error of for and for . The second-order step costs essentially the same as the first-order one (the two half-steps of consecutive steps merge into one), so there is no reason to use first order.

Trotter error of the TFIM at N = 8, J = g = 1, from the start state with all spins up, computed with dense matrices. Left: the one-step error in operator norm. Right: the state error after evolving to T = 1. Dotted lines are guides with the predicted slopes. First order loses one power of the time step between local and global error, second order is two powers better.
Figure 3.2. Trotter error of the TFIM at N = 8, J = g = 1, from the start state with all spins up, computed with dense matrices. Left: the one-step error in operator norm. Right: the state error after evolving to T = 1. Dotted lines are guides with the predicted slopes. First order loses one power of the time step between local and global error, second order is two powers better.

Higher orders. Suzuki’s fractal construction combines five second-order steps with fractions of , where , so that the third-order error cancels too (4). The result is a fourth-order step with a global error , at five times the cost. The quimb notebook measures slope for this composition.

The TEBD algorithm

The brickwork of Figure 3.3 (left) is natural when the state is stored in Vidal’s form, where all gates of one layer can be applied independently (1). With the mixed canonical form of Module 2 we have a better option: order the gates so that the orthogonality centre is always inside the gate we apply.

dt/2 dt/2 dt dt dt/2 dt/2 odd / even (Strang) fwd back staircase, all gates dt/2
Figure 3.3. Two orderings of one second-order step on five sites; the MPS sits on top and time runs downward. Left: the odd layer at half step, the even layer at full step, the odd layer again. Right: the staircase sweeps half-step gates from bond 1 to bond N-1 and back. The gold site marks the orthogonality centre at the start; in the staircase it rides inside every gate, so no extra canonicalization is needed.

The staircase applies the half-step gates in the order and then :

(the rightmost factor acts first). This is a palindrome, so the argument in the proof of Theorem 3.1 applies unchanged: it is a second-order step, with a different error constant than Strang. Figure 3.2 does not show it, but the notebooks do: at its global error is against for Strang, with the same slope 2. Its advantage is algorithmic. During the forward sweep the centre sits on site when we apply , and apply_gate2 leaves it on site , exactly where the next gate needs it. The backward sweep brings it home. Every truncation is therefore optimal in the sense of Proposition 3.1, at no extra cost. Example 3.1 spells out the loop, and Remark 3.1 explains why a cheaper-looking one-directional sweep is no saving.

Remark 3.1 (First-order sweeps compose into second order).

A single forward sweep is a first-order step (the notebooks measure global slope ). It leaves the centre on site , so a natural next step is the backward sweep . But the pair of them is exactly the staircase with step . Alternating the direction of first-order sweeps silently gives second-order accuracy.

Example 3.1 (One TEBD step).

Input: an MPS with its centre on site 1, half-step gates , a maximal bond dimension and a tolerance.

  1. For : apply to sites , split with a truncated SVD, keep the centre on , and add the discarded weight to a running sum.
  2. For : the same, leaving the centre on .
  3. Divide the centre tensor by its norm.

These are trotter_step! (Julia) and trotter_step (Python), Hands-on 3.2. With nothing is truncated and one step reproduces the dense product to machine precision (the notebooks print at or below ).

Bookkeeping the truncation error. The Trotter error is controlled by . The truncation error is controlled by and is measured by the discarded weights; Example 3.2 below compares both against exact dynamics. The next statement is what makes the discarded weights useful.

Proposition 3.3 (Truncation errors add up at most linearly).

Run real-time TEBD with truncations in total, with discarded weights , renormalizing after each one. Let be the result of applying the same Trotter gates without truncation. Then

where is the truncated run. The proof gives the slightly sharper , which is close to for small .

This is a worst-case bound. In practice the truncation errors point in unrelated directions and the fidelity behaves like . Module 6 derives that estimate for circuits, where it is used to predict the fidelity of an MPS simulation of a quantum computer. Either way, the running sum that our trotter_step returns is a cheap, honest warning light.

Imaginary time: projecting onto the ground state

Replace by . The propagator becomes , and expanding a start state in eigenstates ,

After renormalization, shows that every excited component decays like , so the state converges to as long as . The energy error is quadratic in the excited amplitudes, so it decays like , where is the gap to the lowest excited state with .

That last clause matters in practice. We start from , which is even under the parity . commutes with and with every bond gate, so odd-parity eigenstates never appear and the relevant gap is the one to the first even excited state. At , , ED gives , and the notebooks fit a decay rate of against the predicted (the fit window still contains a little of the faster-decaying higher states, which steepens it).

The imaginary-time gates are not unitary, but nothing else changes: the same trotter_step applies them, truncates and renormalizes. We use a schedule of decreasing steps, for 100, 150 and 150 steps. Large steps make fast progress and small steps remove the Trotter bias. How large is that bias?

Proposition 3.4 (Trotter bias of imaginary-time TEBD).

For real the second-order step is Hermitian and positive, with

Repeated steps (without truncation) converge to the ground state of . Its distance to the true ground state is , but its energy error is :

The notebooks confirm both orders. Running each to convergence at with no truncation, the energy bias is , , and for (observed order ), while the state error is , , , (observed order ).

Imaginary-time TEBD for the critical TFIM (J = g = 1) from the product state with all spins along +X. Left: the energy error versus imaginary time at N = 8 for three bond dimensions, with the step size reduced at the dotted lines (0.1, then 0.01, then 0.001); each curve falls at the rate set by the gap and then sits on a plateau set by either the Trotter bias or the bond dimension. Right: the final error versus D at N = 8 (against exact diagonalization) and N = 32 (against the free-fermion solution).
Figure 3.4. Imaginary-time TEBD for the critical TFIM (J = g = 1) from the product state with all spins along +X. Left: the energy error versus imaginary time at N = 8 for three bond dimensions, with the step size reduced at the dotted lines (0.1, then 0.01, then 0.001); each curve falls at the rate set by the gap and then sits on a plateau set by either the Trotter bias or the bond dimension. Right: the final error versus D at N = 8 (against exact diagonalization) and N = 32 (against the free-fermion solution).

Figure 3.4 shows the whole story at once. At the error stalls at , the best a MPS can do. At (no truncation at ) the curve falls at the gap rate, then waits on the plateau at , the bias of Proposition 3.4, until the step is reduced at . At ED is no longer possible but the free-fermion energy is exact, and there matters much more: the error is , and for .

Real time: light cones and entanglement growth

Now the gates are unitary and we follow the actual dynamics. The protocol is a global quench: prepare (all spins up along , one of the two ground states at ), switch on the field at , and evolve. The initial state is a product state with zero entanglement and zero correlations. What happens next is controlled by how fast information can move.

Theorem 3.2 (Lieb-Robinson bound).

Let with . There are constants , depending only on , such that for operators and acting on single sites a distance apart,

Figure 3.6(a) shows the connected correlation between the centre site and site , at and . At it vanishes for all . Then a sharp front moves out along ; behind the front the correlation rises steeply and is largest at short distance (at it is at , at , and between and , not monotonically, for to ; the notebook prints ), while more than one site ahead of it the correlation stays below and falls off rapidly.

The same quasiparticle pairs carry entanglement. A pair whose two members sit on opposite sides of a cut entangles the two halves, and the number of such pairs grows linearly in time as long as the cut is far from the ends. This picture is due to Calabrese and Cardy (8): at time the pairs that straddle the cut are those emitted within of it, as drawn in Figure 3.5.

t cut sites, quench at t = 0 pair stays on one side pair stays on one side
Figure 3.5. The quasiparticle picture of entanglement growth after a global quench. Every site emits pairs that fly apart at speed v (solid lines, shown up to time t). Only pairs emitted within vt of the cut (the top edge of the shaded wedge) have one member on each side at time t; that interval has width 2vt, so the entanglement across the cut grows linearly in t.

Linear growth of is the central obstruction for real-time MPS methods, because of a one-line bound.

Proposition 3.5 (Entanglement caps the bond dimension).

An MPS with bond dimension on bond has entanglement entropy across that bond (the entropy bound of Module 2, restated here). Conversely, to represent a state with accurately one needs at least .

Put Proposition 3.5 together with the light cone of Theorem 3.2. If , then the required bond dimension grows like , exponentially in time, and the cost per step grows like . TEBD for a global quench is therefore accurate only up to a time that grows logarithmically with the resources. Figure 3.6(b) and (c) show this at . All curves follow the same line until they bend over below (dotted), and at that moment the cumulative discarded weight in panel (c) shoots up. The growth rate of the converged run is between and , and the notebooks print for . Letting adapt instead (keep all singular values above ), the bond dimension needed is at : exponential growth in practice.

Global quench of the TFIM from the state with all spins up, J = g = 1, N = 24, dt = 0.05. (a) Connected Z-Z correlation between the centre site and a site at distance r, on a log scale, at D = 32; the dashed line is the light cone r = 4t. (b) Entanglement entropy of the centre bond for four bond dimensions; dotted lines mark ln D in the same colours (ln 64 = 4.16 is the top line, far above where the D = 64 run ends). (c) The cumulative discarded weight of the same runs. A run is trustworthy until its entropy approaches ln D, which is also when its discarded weight takes off.
Figure 3.6. Global quench of the TFIM from the state with all spins up, J = g = 1, N = 24, dt = 0.05. (a) Connected Z-Z correlation between the centre site and a site at distance r, on a log scale, at D = 32; the dashed line is the light cone r = 4t. (b) Entanglement entropy of the centre bond for four bond dimensions; dotted lines mark ln D in the same colours (ln 64 = 4.16 is the top line, far above where the D = 64 run ends). (c) The cumulative discarded weight of the same runs. A run is trustworthy until its entropy approaches ln D, which is also when its discarded weight takes off.
Example 3.2 (Checking real-time TEBD against exact dynamics).

At we can compare with computed from a full diagonalization. With , (no truncation) and , the largest deviation of any from the exact value is , consistent with a second-order global error . For instance from TEBD versus exactly. The Julia and Python notebooks agree to all printed digits, and quimb’s TEBD, which uses the odd/even ordering, has a largest deviation of at the same step.

Worked example: the ground state at N = 8

Here are the numbers of Section 4 of the notebooks, all for the TFIM at , staircase steps, the schedule , and start state .

quantityvalue
ED ground-state energy (equal to the free-fermion value)
TEBD energy at , so
total discarded weight at (nothing truncated)
for , , ,

Two observations. First, and give the same error, so what remains is not a truncation error. It is the bias left over from the stage: the later stages last only and , which is not long enough to relax it completely (the steep tail of the curve in Figure 3.4 is that relaxation in progress). Second, is a product state, the mean-field answer, and is wrong by almost two units of energy; a single extra Schmidt value per bond already gains a factor of 360.

Warning

  • Long times after a quench. The entanglement grows linearly and the required exponentially (Proposition 3.5). Watch ; once it approaches the observables are no longer reliable, whatever is.
  • Imaginary time at a critical point. The convergence rate is the gap, and at criticality the gap closes like . We need , so the number of steps grows like , and small is needed to keep the bias down.
  • Truncating without the centre. If the centre is not inside the gate, the local singular values are not Schmidt values and the truncation is not optimal. The staircase avoids this by construction; the odd/even brickwork needs an extra QR between gates.
  • Long-range terms. A gate on sites and has to be brought together with SWAP gates or replaced by an MPO-based method (9).
  • Library conventions. quimb’s ham_1d_ising uses spin operators , its entropies are in bits, TEBD.err is an a-priori Trotter estimate rather than a measured error, and in quimb 1.15 order=4 converges with slope 2 (the quimb notebook measures it and builds a correct fourth-order step).

Why it matters

TEBD is the simplest algorithm that makes a tensor network do something: it turns the static MPS of Module 2 into a simulator of quantum dynamics, and its error budget (Trotter plus discarded weight) is the template for every later method. The same gate-and-truncate loop is how an MPS simulates a quantum circuit in Module 6. Its limitations point to the next module: imaginary-time TEBD reaches the ground state slowly and with a bias, because it never asks for the best MPS directly. Module 4 does exactly that with DMRG, which optimizes the tensors variationally and converges in a few sweeps with no time step at all.

Further reading

  • Vidal’s two papers introduce TEBD, first as a simulation method for slightly entangled quantum computations and then for one-dimensional many-body dynamics (1,2).
  • Suzuki’s general theory of product formulas, including the fractal construction of higher orders (4).
  • The review of Paeckel et al. compares TEBD with the other MPS time-evolution methods (TDVP, MPO-based, Krylov) and discusses their errors in detail (9); Schollwöck’s review covers TEBD in the MPS language we use (10).
  • Lieb and Robinson’s finite group velocity (5), and the quasiparticle picture of entanglement growth after a quench (8).
  • For area laws and the entanglement of ground states versus quenched states, see the colloquium of Eisert, Cramer and Plenio (7).

Homework

The problems for this module are in Homework 3.

1.
Vidal G. Efficient classical simulation of slightly entangled quantum computations. Physical Review Letters. 2003;91(14):147902.
2.
Vidal G. Efficient simulation of one-dimensional quantum many-body systems. Physical Review Letters. 2004;93(4):040502.
3.
Eckart C, Young G. The approximation of one matrix by another of lower rank. Psychometrika. 1936;1(3):211–8.
4.
Suzuki M. General theory of fractal path integrals with applications to many-body theories and statistical physics. Journal of Mathematical Physics. 1991;32(2):400–7.
5.
Lieb EH, Robinson DW. The finite group velocity of quantum spin systems. Communications in Mathematical Physics. 1972;28(3):251–7.
6.
Hastings MB. An area law for one-dimensional quantum systems. Journal of Statistical Mechanics: Theory and Experiment. 2007;2007(08):P08024.
7.
Eisert J, Cramer M, Plenio MB. Colloquium: Area laws for the entanglement entropy. Reviews of Modern Physics. 2010;82(1):277–306.
8.
Calabrese P, Cardy J. Evolution of entanglement entropy in one-dimensional systems. Journal of Statistical Mechanics: Theory and Experiment. 2005;2005(04):P04010.
9.
Paeckel S, Köhler T, Swoboda A, Manmana SR, Schollwöck U, Hubig C. Time-evolution methods for matrix-product states. Annals of Physics. 2019;411:167998.
10.
Schollwöck U. The density-matrix renormalization group in the age of matrix product states. Annals of Physics. 2011;326(1):96–192.