Sign outOpen workspaceSign in

MethodLayer 1

Forward (explicit) Euler

First-order explicit stepping, uk+1=(I+hA)uk+hbku_{k+1} = (I + hA)u_k + h b_k, assembled into a banded all-at-once linear system. Liu et al. use it inside the Carleman route because its structure is simple enough to bound explicitly.

Takes

The generator A(t)A(t), the interval [0,T][0,T], an error tolerance ε\varepsilon, and a target algebraic form.

Returns

The discrete object, its truncation-error bound, and its conditioning bound.

Same contract as the slot it fills.

This one, drawn

From Linear ODE system to Linear system Ax = b

A circle is an object you are holding. This method is drawn heavier, opened into its own steps; the other lines between the same two ends are the alternatives recorded for the same slot. Circles are named on hover, and each one is a link.

Nothing drawn here has a recorded way through it that this figure leaves shut. See it on the map

What it fills

  • Choose a time discretization or propagator approximation

    Reduce continuous evolution over [0,T][0,T] to a finite algebraic object — a banded linear system, a product of step propagators, or a spectral coefficient system — with a stated truncation error. When a linear system is formed, a conditioning bound is stated with it.

When it applies

Explicit, and therefore conditionally stable: a stiff generator forces a small step hh and hence many steps, inflating the dimension of the assembled system. First-order local accuracy is what leaves the surrounding algorithm with 1/ε1/\varepsilon rather than log(1/ε)\log(1/\varepsilon) precision dependence, because the number of steps needed to reach accuracy ε\varepsilon is fixed by the order of the local truncation error. Liu et al. bound the condition number of the resulting Carleman plus forward-Euler system; the constant is in the paper and is not quoted here.

Requires

Every step this method names moves its route along, so there is nothing it needs alongside them.

Example

Nothing in Liu, Kolden, Krovi, Loureiro, Trivisa and Childs (arXiv:2011.03185) assembles the banded all-at-once system of Eq. (3.8) or hands it to a solver, and no quantum linear system algorithm is executed anywhere in it. Its one piece of numerical work is Figure 1 of Section 6, which the paper itself names "Integration of the forced viscous Burgers equation using Carleman linearization on a classical computer".

given  A, b, u_0, step size h, horizon T,  m = T/h steps

# explicit: each step's recurrence is evaluated, never solved
#     u_{k+1} = (I + hA) u_k + h b_k

assemble the banded all-at-once system over all m steps:
    row 0    :  u_0                        = u_0        # the initial condition
    row k+1  :  u_{k+1} - (I + hA) u_k     = h b_k      # one row per step

# conditionally stable: a stiff generator forces a small h and hence many
# steps, and m is the dimension the assembled system inherits

hand the assembled system to the layer below

Cost, as the source states it

No standalone cost is stated for the Euler step itself — Liu et al.'s accounting is end-to-end for the Carleman route, and is quoted on that route's card. The discretization enters their bill as the m=T/hm = T/h time steps of the assembled system and the condition-number upper bound they prove for it, whose constant this record deliberately leaves untranscribed (see conditions).

Implementations

  • Banded all-at-once Euler system for the Carleman route

    The encoding the paper's algorithm actually solves, and the one this record describes. The problem it starts from is Problem 1: an nn-dimensional quadratic ODE du/dt=F2u2+F1u+F0(t)du/dt = F_2 u^{\otimes 2} + F_1 u + F_0(t) with F2F_2, F1F_1, F0F_0 ss-sparse, F1F_1 diagonalizable with Re(λn)Re(λ1)<0\mathrm{Re}(\lambda_n) \le \cdots \le \mathrm{Re}(\lambda_1) < 0, and the goal of producing a quantum state proportional to u(T)u(T) within a prescribed ε\varepsilon. Carleman linearization truncated at level NN turns that into the linear ODE (3.1) of dimension Δ=n+n2++nN=O(nN)\Delta = n + n^2 + \cdots + n^N = O(n^N), and this entry is how that linear ODE becomes one linear system rather than a march.

    The interval [0,T][0,T] is divided into m=T/hm = T/h time steps and the forward Euler method is applied to the Carleman system, yk+1=[I+A(kh)h]yk+b(kh)y^{k+1} = [I + A(kh)h]y^k + b(kh) with y0=yin=y^(0)y^0 = y_{in} = \hat{y}(0), and all yky^k are then held equal for kk beyond mm for a sufficiently large integer pp of padding steps. That gives the (m+p+1)Δ×(m+p+1)Δ(m+p+1)\Delta \times (m+p+1)\Delta system LY=BL|Y\rangle = |B\rangle with L=k=0m+pkkIk=1mkk1[I+A((k1)h)h]k=m+1m+pkk1IL = \sum_{k=0}^{m+p}|k\rangle\langle k| \otimes I - \sum_{k=1}^{m}|k\rangle\langle k-1| \otimes [I + A((k-1)h)h] - \sum_{k=m+1}^{m+p}|k\rangle\langle k-1| \otimes I, which the paper notes is lower triangular, and B|B\rangle assembled from yin0yin\lVert y_{in} \rVert |0\rangle \otimes |y_{in}\rangle and the terms b((k1)h)kb((k1)h)\lVert b((k-1)h) \rVert |k\rangle \otimes |b((k-1)h)\rangle with a normalizing factor BmB_m. The step is not free: (4.46) fixes hmin{1/(NF1),2(Re(λ1)F2F0)/(N(Re(λ1)2(F2+F0)2+F12))}h \le \min\{1/(N\lVert F_1 \rVert),\, 2(|\mathrm{Re}(\lambda_1)| - \lVert F_2 \rVert - \lVert F_0 \rVert)/(N(|\mathrm{Re}(\lambda_1)|^2 - (\lVert F_2 \rVert + \lVert F_0 \rVert)^2 + \lVert F_1 \rVert^2))\}, or h1/(NF1)h \le 1/(N\lVert F_1 \rVert) when the eigenvalues of F1F_1 are all real, and the discussion says the point of that choice is to ensure I+Ah1\lVert I + Ah \rVert \le 1. Under it Lemma 3 bounds the global Euler error by y^(T)ym3N2.5Th[(F2+F1+F0)2+F0]\lVert \hat{y}(T) - y^m \rVert \le 3N^{2.5}Th[(\lVert F_2 \rVert + \lVert F_1 \rVert + \lVert F_0 \rVert)^2 + \lVert F_0' \rVert], linear in TT rather than the eLTe^{LT} a general Lipschitz argument would give.

    No dataset. The inputs are the ones Problem 1 assumes: the values Re(λ1)\mathrm{Re}(\lambda_1), F2\lVert F_2 \rVert, F1\lVert F_1 \rVert, F0(t)\lVert F_0(t) \rVert, F0\lVert F_0 \rVert, F0\lVert F_0' \rVert and uin\lVert u_{in} \rVert taken as known, the sparse-access oracles OF2O_{F_2}, OF1O_{F_1}, OF0O_{F_0} giving locations and values of nonzero entries for any specified row, column and time, and the oracle OxO_x mapping 000|00\ldots 0\rangle to a state proportional to uinu_{in}. Lemma 5 charges the preparation of B|B\rangle at O(N)O(N) queries to OxO_x and O(m)O(m) queries to OF0O_{F_0}.

    None: the paper states no execution of this construction. What it establishes for it is proved rather than measured, namely the global Euler error bound of Lemma 3, an upper bound on the condition number of LL whose constant this record deliberately leaves untranscribed, a lower bound on the success probability of the final measurement over the padding outcomes, and the end-to-end complexity quoted on the Carleman route's card. The paper's only computation is the classical Burgers experiment, which is the other entry here and does not assemble this system.

  • Classical forward-Euler marching of the truncated Carleman system for Burgers

    The computation behind Figure 1, and the only one in the paper. Its question is not about the discretization at all: the formal analysis needs R<1R < 1, and the discretized Burgers instance has R=43.59R = 43.59, so the experiment asks whether the classical Carleman method converges anyway on a PDE that violates the hypothesis. The paper's own words for it are "we find in one numerical experiment that our proposed approach remains valid for larger RR".

    The forced viscous Burgers equation (6.9) is semi-discretized by central differences on nx=16n_x = 16 points, tui=ν(ui+12ui+ui1)/Δx2(ui+12ui12)/(4Δx)+fi\partial_t u_i = \nu(u_{i+1} - 2u_i + u_{i-1})/\Delta x^2 - (u_{i+1}^2 - u_{i-1}^2)/(4\Delta x) + f_i with Δx=L0/(nx1)\Delta x = L_0/(n_x - 1), which is of the quadratic form (2.1) and so generates the Carleman system (3.2). That linear system is then integrated with the forward Euler method over nt=4000n_t = 4000 temporal intervals, at Carleman truncation levels up to N=4N = 4. A second arm integrates the same semi-discrete equation (6.10) directly with the forward Euler method, without Carleman linearization, and serves as the comparison. Both arms run on a classical computer, and the all-at-once system LY=BL|Y\rangle = |B\rangle is never formed: this is step-by-step marching, not the encoding of the other entry.

    Nothing from outside the paper. The initial condition is the closed form u(x,0)=U0sin(2πx/L0)u(x,0) = U_0\sin(2\pi x/L_0) on x[L0/2,L0/2]x \in [-L_0/2, L_0/2] with Dirichlet conditions u(L0/2,0)=u(L0/2,0)=0u(-L_0/2,0) = u(L_0/2,0) = 0, and the forcing is the closed form f(x,t)=U0exp((xL0/4)2/(2(L0/32)2))cos(2πt)f(x,t) = U_0\exp(-(x - L_0/4)^2/(2(L_0/32)^2))\cos(2\pi t), a localized off-centre Gaussian with sinusoidal time dependence. The paper's footnote records that this forcing "does not satisfy the general conditions for efficient implementation of our algorithm since it is not sparse". The viscosity is set only through Re=U0L0/ν=20\mathrm{Re} = U_0L_0/\nu = 20; U0U_0 and L0L_0 are never given numerically, and the derived convergence parameter is R=43.59R = 43.59.

    The figure caption names the artefact: "source code available at https://github.com/hermankolden/CarlemanBurgers".

    Reported graphically. The top panel shows the initial condition and the solution at a third of the nonlinear time, Tnl/3=L0/(3U0)T_{nl}/3 = L_0/(3U_0); the bottom panels show the l2l2 norm of the absolute error between the Carleman solutions at truncation levels NN and the direct forward-Euler integration, and the convergence of the corresponding time-maximum error. The finding is that the time-maximum error decreases exponentially as NN is incremented, up to N=4N = 4, even though R44R \approx 44 violates the R<1R < 1 the algorithm's analysis requires, which the paper calls surprising and reads as evidence that "some property of equation (6.9) makes it more amenable to Carleman linearization than our current analysis predicts". It is a classical computation throughout: no quantum device, no simulator and no quantum linear system algorithm is involved, and no error is reported for the Euler discretization itself, which is identical in both compared arms.

What it needs

Nothing below this — it bottoms out here.

Other ways to fill the same slot

Different approaches

  • Backward (implicit) Euler

    First-order implicit stepping: each step solves (IhA)uk+1=uk+hbk+1(I - hA)u_{k+1} = u_k + h b_{k+1}. AA-stability is the classical reason to prefer it for stiff generators, since it removes the explicit method's step-size restriction.

  • Trapezoidal rule (Crank-Nicolson)

    Second-order implicit stepping that averages the generator at the two ends of each step, and is AA-stable. As a rational approximation of ehAe^{hA} it is the (1,1)(1,1) diagonal Padé approximant.

  • Truncated Taylor series of the propagator

    Rather than approximating the derivative, approximate the propagator ehAe^{hA} itself by kk Taylor terms and encode those terms as extra rows of a sparse linear system. Truncation error falls factorially in kk, so accuracy is bought by adding rows rather than by shrinking hh and lengthening the system.

  • Truncated Dyson series of the propagator

    Truncate the Dyson series — the expansion that stands in for the propagator once the generator varies with time — and encode its terms as rows of a system of linear equations. This is what extends the all-at-once approach to genuinely time-dependent generators; solving the system those rows make up is the layer below.

  • Chebyshev pseudospectral collocation

    A **global** discretization, and the only one on this slot. Write each component of the solution as a truncated Chebyshev series xi(t)=k=0nci,kTk(t)x_i(t) = \sum_{k=0}^{n} c_{i,k}T_k(t) with the coefficients undetermined, then fix them by demanding that the differential equation hold exactly at the n+1n+1 Chebyshev-Gauss-Lobatto nodes tl=cos(lπ/n)t_l = \cos(l\pi/n). What comes out is one linear system in the coefficients. Childs and Liu put the difference from every stepping scheme plainly: "instead of locally approximating the ODE at discretized times, these linear equations use the behavior of the differential equations at the n+1n+1 times {tl}\{t_l\} to capture their behavior over the entire interval [1,1][-1,1]".

In the Atlas

No record in the Atlas covers this yet. The catalogue is circuits and primitives; this part of the literature is not in it.

Sources