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.
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.
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
Proof
Group the left-orthogonal tensors into one isometry from the left bond to the physical legs , and the right-orthogonal ones into an isometry from to . Then 𝟙𝟙, where is read as a vector. Isometries preserve inner products, 𝟙 and 𝟙, so for any other block with the same and ,
𝟙𝟙
The global problem is therefore the matrix problem: find the matrix of rank at most (rank = bond dimension of the middle bond) closest to in Frobenius norm. By the Eckart-Young theorem (3) the answer is the truncated SVD, with squared error . Normalization of means , so this is .
Intuition: why the gauge matters
The SVD of ranks directions by their weight as seen from the block. If the rest of the chain is not isometric, the environment stretches some directions and squeezes others, and the block’s singular values no longer say how much each direction contributes to . In mixed canonical form the environment is a perfect mirror, the singular values of are the Schmidt values of the whole state, and “drop the smallest” is exactly right. This is the first item of the What breaks box in Module 2.
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 .
Proof
First order. Expand both exponentials to second order:
𝟙
The exponential of is 𝟙𝟙. Matching the terms gives . This is the first terms of the Baker-Campbell-Hausdorff (BCH) series. The two operators and therefore differ by .
Second order, why there is no term. Write with . The product is a palindrome, so 𝟙. Hence and (for small , where the logarithm is unique) : is an odd function of . All even coefficients vanish, in particular . The first-order coefficient is by expanding to first order.
The coefficient. Apply the two-term BCH formula twice, first to and then to the result times , keeping terms to third order; the second-order commutators cancel (as they must) and the third-order ones combine into the coefficient stated. We verified the coefficient numerically for random matrices: the remainder scales as .
Operator norms. For a Hermitian and real time both sides are unitary. If and are close to the identity, , so a difference in the exponents gives a difference in the operators.
Intuition: the commutator is the only enemy
If the splitting is exact. The error is driven by how much the two layers fail to commute, and only through nested commutators, which are local: lives on three sites. So the error per bond does not grow with , and the operator-norm error of one step grows only linearly with . Symmetrizing removes the leading commutator because a palindromic product looks the same when we run it backwards in time, so its error cannot contain a term that is even in .
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 .
Proof
Telescope: , which one checks by expanding (neighbouring terms cancel). Unitaries have operator norm one, so each term has norm at most , and there are terms.
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.
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/2dt/2dtdtdt/2dt/2odd / even (Strang)fwdbackstaircase, all gates dt/2Figure 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.
For : apply to sites , split with a truncated SVD, keep the centre on , and add the discarded weight to a running sum.
For : the same, leaving the centre on .
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 .
Proof
One truncation of a normalized state , done in canonical form, removes a component of squared norm orthogonal to the kept part, by Proposition 3.1 and . Write with . Renormalizing the kept part gives , and
using ; for small the left side is . Now let be the distance between the exact and the truncated run after the -th gate. The exact run applies a unitary gate ; the truncated run applies the same and then truncates. By the triangle inequality and unitarity,
(gates without truncation add nothing). Summing from gives the bound.
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 :
Proof sketch
has the form with Hermitian, so it is Hermitian and positive definite; its logarithm is real-analytic in , and Theorem 3.1 with gives (the odd powers of in the exponent become even powers in ). Repeated application of a positive operator followed by normalization is the power method; it converges to the eigenvector of the largest eigenvalue of , i.e. the ground state of . First-order perturbation theory in gives , a state error of order . Insert this into : the cross terms vanish because is orthogonal to the correction, and what is left is the squared correction weighted by , which is the stated term.
Intuition: the energy is stationary
The ground state minimizes . Near a minimum a function is flat, so moving the state by changes the energy only by . Here , hence an energy bias . Observables other than the energy do not enjoy this protection and carry the full error.
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 ).
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,
Proof sketch
Expand the Heisenberg operator in nested commutators, with . A commutator with only picks up the bond terms that overlap the support of , so each application of enlarges the support by at most one site on each side. The first terms are therefore supported away from and commute with , and
An operator on consecutive sites overlaps at most bonds, so one commutator multiplies its norm by at most . After commutators the support has at most sites, hence . The cancels the one in the series, and the sum is at most , which for is exponentially small in . This shows the mechanism (only terms of order can reach distance ) but only for short times. The original proof (5) controls the commutator with a differential inequality instead of a power series and obtains the bound for all ; see (6,7) for modern versions.
Intuition: a speed limit for quantum information
Outside the cone nothing measurable at can depend on what happened at , up to exponentially small tails. For the TFIM the cone is set by the fastest quasiparticle. Its dispersion is , whose maximal slope is . A quench emits pairs of quasiparticles with opposite momenta from every site; two sites at distance become correlated when a pair emitted halfway between them reaches both, at .
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.
tcutsites, quench at t = 0pair stays on one sidepair stays on one sideFigure 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 .
Proof
In mixed canonical form with the centre next to bond , the Schmidt decomposition across bond has at most terms. The entropy of a probability distribution on at most outcomes is maximal for the uniform distribution, where it equals . The converse is the contrapositive: with fewer than Schmidt values the entropy cannot reach .
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.
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 .
quantity
value
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).
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.