An explanation of the sources of error in TDVP
Emu-mps uses a 2nd order 2-site time-dependent variational principle to compute the time evolution of the qubit registers (see here). There are four sources of error inherent in this algorithm (see here)
- effective description of long-range terms in the Hamiltonian
- looping over pairs of qubits
- iterative computation of the 2-site effective evolution
- truncation of the state
Let us briefly explain how each of these terms introduce errors into the simulation, and let us try to estimate their size.
effective description of long-range terms in the Hamiltonian
The rydberg Hamiltonian is long range, so when evolving 2 neighbouring qubits in one of the TDVP steps, it is necessary to approximate terms coupling these two qubits to far away qubits. Specifically, say we are evolving the pair
For example, take the term
looping over pairs of qubits
Even if the Hamiltonian only has nearest-neighbour interactions, so that the above error is
- 3 2-site time evolutions evolving either qubit
or during the left-right sweep - 2 1-site time evolutions evolving either qubit
or during the left-right sweep - the same 5 time evolutions durig the right-left sweep
Similar to how for trotterization
so also, by sweeping left-right and then right-left, the magnitude of this error reduced is reduced from
iterative computation of the 2-site effective evolution
Each 2-site time evolution corresponds to solving a Schroedinger equation for the corresponding subsystem, which is done numerically, and incurs a corresponding numerical error. We solve the Schroedinger equation by using the Lanczos algorithm to exponentiate the effective 2-site Hamiltonian directly. This algorithm computes the vector
truncation of the state
After each 2-site evolution, an SvD is applied to split the vector for the 2-site subsystem back into 2 tensors for the MPS. The behaviour of this truncation is identical to that of general MPS truncation (see here).
As explained there, each truncation finds the smallest MPS whose norm-distance is less than the precision from the original MPS. TDVP sweeps from left two right over neighbouring pairs of qubits, and back. This means that for each timestep, 2*(nqubits-1)
truncations are performed, so by the triangle inequality, TDVP will output a state whose distance is less than 2*(nqubits-1)*precision
from the state TDVP would have output without truncation. Note that the truncation errors will not all point in the same direction, so the actual error will likely be closer to sqrt(2*(nqubits-1))*precision
, similar to the error in a gaussian random walk. The default precision is 1e-5
, meaning that each tdvp step will likely be accurate up to order 1e-4
assuming no more than order 1e2
qubits.
Similarly, when performing multiple TDVP steps, the maximum possible error scales linearly in the number of steps, but the error is more likely to scale as the square root of the number of time steps. Notice that there is a tradeoff when decreasing the value of
When in doubt about the convergence of the algorithm, try to improve the precision of both truncation and the Lanczos algorithm, and also make sure that max_bond_dim
does not truncate the state too agressively. This can be done by tweaking these parameters, and checking whether output observables like the correlation matrix and energy variance change significantly. The effective 2-site Hamiltonian used to evolve each subsystem is constructed in such a way all powers of the Hamiltonian are constants of the motion. This means that any change in the moments of