MethodLayer 1
Trapezoidal rule (Crank-Nicolson)
Second-order implicit stepping that averages the generator at the two ends of each step, and is -stable. As a rational approximation of it is the diagonal Padé approximant.
The generator , the interval , an error tolerance , and a target algebraic form.
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 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
Second order at the same stability class as backward Euler, so it is more accurate at equal step size, but the implicit solve does not disappear on a quantum computer — it is the layer below, and what this one hands down to it is the assembled system. Second order buys a larger at the same accuracy, so written out step by step the loop turns fewer times than backward Euler's; it is the same loop, one linear solve per turn with the previous turn's state as its right-hand side. Being A-stable removes the step-size restriction, not the repetition. Second order still leaves a polynomial dependence on ; only propagator-series or spectral discretizations reach . Dong, Li and Xue encode diagonal Padé approximations of the matrix exponential into a large, block-sparse linear system solved via a quantum linear system algorithm, but state no complexity for the case specifically.
Requires
Every step this method names moves its route along, so there is nothing it needs alongside them.
Example
Crank-Nicolson is the (1,1) member of the family Dong, Li and Xue (arXiv:2504.06948) do encode, but k = 1 is the one order their results never reach: Theorem 3.6 is stated for k ≥ 3, Table 1 begins at k = 5, and every experiment in Section 5.2 runs at k = 9 or higher. The words Crank-Nicolson and trapezoidal appear nowhere in the paper.
given A, b, u_0, step size h, horizon T
for k = 0 ... T/h - 1:
# the generator averaged at the two ends of the step
# one linear solve per turn, the previous turn's state as its right-hand side
solve (I - (h/2)A) u_{k+1} = (I + (h/2)A) u_k + (h/2)(b_k + b_{k+1})
return u_{T/h}
# second order at backward Euler's stability class, so a larger h at the same
# accuracy and fewer turns of this loop -- the same loop, not a shorter one.
# A-stability removes the step-size restriction, not the repetition.Cost, as the source states it
Dong, Li and Xue's complexity theorems require diagonal Padé order , and Crank–Nicolson is the approximant — so no verified source states its end-to-end cost, and the field says so. What second order buys — a larger , hence fewer turns of the same solve-per-step loop — is an accuracy statement, recorded in conditions, not a stated complexity.
Implementations
The same sentence as `backward-euler`'s: Dong, Li and Xue analyse and implement only diagonal Pade approximants, and Crank-Nicolson is the case, which their complexity theorems exclude by requiring . Their four numerical experiments run order nine or an order chosen to meet a precision — never this one.
What it needs
Nothing below this — it bottoms out here.
Other ways to fill the same slot
Different approaches
- Forward (explicit) Euler
First-order explicit stepping, , 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.
- Backward (implicit) Euler
First-order implicit stepping: each step solves . -stability is the classical reason to prefer it for stiff generators, since it removes the explicit method's step-size restriction.
- Truncated Taylor series of the propagator
Rather than approximating the derivative, approximate the propagator itself by Taylor terms and encode those terms as extra rows of a sparse linear system. Truncation error falls factorially in , so accuracy is bought by adding rows rather than by shrinking 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 with the coefficients undetermined, then fix them by demanding that the differential equation hold exactly at the Chebyshev-Gauss-Lobatto nodes . 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 times to capture their behavior over the entire interval ".
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.