These problems practise the error analysis of TEBD: Trotter splitting (Problem 3.2), the imaginary-time bias (Problem 3.3) and the truncation budget (Problem 3.4). The last two, Problem 3.5 and Problem 3.6, go with Hands-on 3.4 and 3.5 in the notebooks.
Problem 3.1 (Warm-up: bonds, gates and costs).
- Check that the bond Hamiltonians of eq. (3.2) in the notes sum to the TFIM Hamiltonian for
. - How many two-site gates does one staircase step eq. (3.4) of the notes apply on
sites? How many does one Strang step apply, if we merge the last half-step of one step with the first half-step of the next? - A two-site gate is applied to a block with singular values (after the gate) proportional to
, and we keep . What is the discarded weight , and what is the distance before renormalization?
Solution
- For
: and . Their sum is . The site in the middle receives half of its field from each bond, and the end sites receive their full field from their only bond. - The staircase applies
gates forward and backward, in total. The two middle gates can be merged into one, and so can the last of a step with the first of the next, which leaves about gates per step in a long run. A Strang step has odd and even gates per layer. With merging, each step costs one odd layer and one even layer, so gates. The staircase costs about twice as much per step but needs no extra canonicalization between gates. - The squared values are
, with sum . Then . If the state is normalized (rescale so the squares sum to one), the distance before renormalization is by Proposition 3.1.
Problem 3.2 (Why symmetric steps are second order).
- Show that
Strang steps equal . Conclude that over many steps the second-order method costs the same as the first-order one. - Let
be a forward first-order sweep ( acts first) and the same product in reverse order. Show that is the staircase step with time step , and hence that alternating forward and backward first-order sweeps is a second-order method. - Use the BCH expansion of Theorem 3.1 to show that
, and that the terms cancel in .
Solution
- Write
. Between consecutive steps two half-steps meet, and because commutes with itself. This happens times and gives the stated product. It contains factors , factors and two half-steps, so for large it has the same number of layers as . The extra accuracy is free. The price is only that a measurement in the middle of the run has to “close” the step with a half layer. . The staircase with step uses the gates in exactly this order, eq. (3.4) of the notes. The staircase is a palindrome, so by the argument in the proof of Theorem 3.1 its logarithm is odd in and its local error is . A pair of sweeps covers time with second-order accuracy. - Apply the first-order BCH formula
repeatedly. Each new factor multiplies on the left a product whose exponent is . To second order the new commutator is , because only the neighbouring term fails to commute. Summing gives with . Reversing the order of the factors flips every commutator, so . Combining the two with BCH once more gives .
Problem 3.3 (The imaginary-time energy bias in a two-level model).Proposition 3.4 says that imaginary-time TEBD with step
converges to a state that is away from the ground state, but whose energy is only too high. Check this in the smallest example. Let with and with real .
- Find the ground state
of to leading order in . - Compute the state error
and the energy error to leading order, and compare with the general formula of Proposition 3.4. - The notebooks measure energy biases
and at and for the TFIM at . What order does that imply? Which local observable would you expect to show the slower convergence?
Solution
with . The ground state satisfies , so . This is exactly the first-order perturbative correction with . - The state error is
, order . The energy is , order . The general formula gives , the same. The mechanism is visible here: the state moves linearly in , but the energy depends on because is a minimum. - The order is
. Any observable that does not commute with is not protected by stationarity, for example or , and should converge like . The same holds for the overlap with the exact ground state: the notebooks measure state errors with order .
Problem 3.4 (A truncation budget).
- Explain why, in Proposition 3.3, the bound grows like
while the fidelity estimate involves . Under what assumption on the discarded pieces is the second one the right estimate? - In a run with
, and , how many truncations does staircase TEBD perform? If every one of them discards the same weight , what keeps the estimated infidelity below , and what does the worst-case bound guarantee for that ? - The notebooks report a cumulative discarded weight of
at and at for this run. What do you conclude about each run?
Solution
- Each truncation moves the state by a vector of length about
. If all those vectors pointed the same way, the lengths would add, which is the triangle-inequality bound (up to the factor ). The fidelity estimate assumes instead that each truncation removes a piece orthogonal to everything removed before. Then the kept weight is multiplied by at each step, and the squared lengths add. This is the typical situation, because the discarded Schmidt directions at different bonds and times are essentially unrelated. - There are
steps and gates per step, so truncations (fewer, about , if the merged gates are counted once). With equal weights requires . The worst-case bound for that is , which guarantees nothing. This is why one monitors in practice and checks convergence in rather than relying on the rigorous bound. - At
the estimated infidelity is , so the run is converged in and the only remaining error is the Trotter error. At the cumulative weight is of order one: the state has lost most of its fidelity with the exact Trotter evolution, and its entanglement curve in Figure 3.6 is only a lower bound on the true one. Local observables can survive somewhat longer than the fidelity, but nothing is guaranteed.
Problem 3.5 (Hands-on 3.4: how far can we go?).Use your
tebd_evolve!(Julia) ortebd_evolve(Python) from Hands-on 3.4 for the quench of the notes,, , from all spins up.
- The notebooks measure a growth rate
for the centre bond. Use Proposition 3.5 to estimate the time at which a run with bond dimension must fail, for . How does scale with , and how does the cost of reaching a given time scale with ? - Run the four bond dimensions to
and record for each the time at which deviates from the curve by more than . Compare with your estimate. Why is the estimate too optimistic? - Repeat the
run with . Does change? What does this tell you about which of the two errors limits the run?
Solution
with , and the run must fail by the time reaches , so . This gives for (the actual curves start with a short transient, so these numbers are rough). Since , doubling the reachable time requires squaring , and the cost per step grows like , exponentially in the target time. - Running this gives deviation times
, and for , all well before the estimates , and ; the curve then saturates at , below . The estimate assumes that an MPS can follow the exact state until its Schmidt spectrum is perfectly flat. In reality the spectrum has a tail, and truncation starts to bite as soon as the -th Schmidt value is no longer negligible, long before the kept ones are equal. The adaptive run in the notebooks makes the same point: keeping all Schmidt values above needs at , where and . - No. With
the curve still leaves the converged one at , and changes only from to . Halving reduces the Trotter error by a factor of four, but the failure is a truncation error, set by and the entanglement, not by the time step. Note that the cumulative discarded weight drops from to even though there are twice as many truncations: each step adds less entanglement, so each truncation removes less. is a diagnostic of a particular run, not a physical quantity, and it is most useful for comparing runs with the same .
Problem 3.6 (Hands-on 3.5: two second-order steps).Hands-on 3.5 measures local and global Trotter errors at
for four orderings. At and the notebooks find global errors (Strang) and (staircase), both with slope .
- Predict both errors at
and check with your trotter_errors.- Using your answer to Problem 3.1, which of the two orderings reaches an error of
at with fewer gates? - The first-order sweep has a measured global slope of
rather than , fitted over the five steps at . Why is this consistent with a first-order method? What slope would you measure if the implementation alternated the sweep direction from step to step?
Solution
- A global slope of 2 means the error scales by
when is halved, so about for Strang and for the staircase. - Error
gives , so (Strang, steps) and (staircase, steps). With gates per Strang step and about gates per staircase step this is about against gates, so Strang wins by about a factor of two in gate count. The staircase wins when the extra canonicalization that the brickwork needs between gates costs more than the extra gates. In the mixed canonical form the brickwork needs a QR sweep to move the centre between the gates of a layer, so in practice the two are closer than the gate count suggests. - The global error is
. At the coarse end of the fit ( ) the second term is not negligible, so a straight-line fit over the whole range picks up a little of its slope; restricting the fit to the smallest steps brings the slope towards one. Alternating the direction makes each pair of steps the staircase with step (Problem 3.2, part 2), so the measured slope would be two.