Variational Quantum Dynamics and Imaginary-Time Evolution
Simulating a quantum system means tracking a state as it evolves — under in real time, or the Wick-rotated in imaginary time — and both flows live in a Hilbert space whose dimension doubles with every qubit, so writing the state exactly is hopeless past a few dozen qubits. Variational quantum dynamics makes the problem finite by one act of discipline: it forbids the state to leave a low-dimensional surface, the manifold swept out by a parameterized circuit as its angles vary. The wavefunction is no longer amplitudes but classical numbers, and the dynamics becomes an ODE for how those numbers move. The rule for how they move is a variational principle, and it is pure geometry. The true evolution wants to push the state in some direction — the exact velocity vector — but most of that direction points off the manifold, where the ansatz cannot follow. So you project: keep the part of the exact velocity lying in the manifold's tangent space, discard the rest. The projection is a least-squares fit carried out with the manifold's own ruler, the Fubini–Study metric, and its output is one compact linear system solved every timestep, , in which is the geometry and is the force. For imaginary time the force is minus half the energy gradient, so the flow is steepest descent on the energy — this is how a quantum computer prepares a ground state, and why the method is one of the most-studied primitives on near-term hardware.
- Variational quantum dynamics confines the wavefunction to a -dimensional manifold set by a circuit's angles, turning real-time (Schrödinger) or imaginary-time (Wick-rotated) evolution into a classical equation of motion .
- The geometry is the quantum geometric tensor ; its real part is the Fubini–Study metric (the matrix in the EOM), its imaginary part the Berry curvature.
- Imaginary time makes the force , so the flow is — exactly quantum natural-gradient descent, the way variational imaginary-time evolution (VITE) prepares ground states; and are estimated on hardware (Hadamard-test and parameter-shift circuits) and the small system solved classically each step.
- is generically singular and ill-conditioned, so it must be regularized ( or pseudo-inverse) — naive inversion amplifies shot noise catastrophically.
- Even with perfect circuits, accuracy is capped by the McLachlan residual : the exact velocity that leaks out of the tangent space — the dynamical face of limited expressibility.
- Key idea: replace exact evolution in exponentially large Hilbert space by a flow on a finite-dimensional parameter manifold — project the exact velocity onto the tangent space with the Fubini–Study metric to get , where is the geometry and is the force (the energy gradient for imaginary time, times it for real time).
Replace exact evolution in exponentially large Hilbert space by a flow on a finite-dimensional parameter manifold: project the exact velocity vector onto the tangent space using the Fubini–Study metric, giving , where is the geometry and is the force (energy gradient for imaginary time, times it for real time).
Where this lives today
Variational imaginary-time evolution is one of the most actively benchmarked primitives in near-term quantum computing. McArdle and collaborators demonstrated it for small molecules such as H₂ and LiH, and the related quantum imaginary-time evolution (QITE) of Motta and co-workers — which sidesteps the metric inversion by fitting a local unitary to the McLachlan-equivalent update — has run on trapped-ion and superconducting devices to prepare spin-chain ground states and sample thermal (Gibbs) states . The quantum natural gradient VITE reveals is now a standard optimizer in PennyLane and Qiskit, the metric cached across steps to amortize its cost. Real-time variational dynamics extracts spectral functions by Fourier-transforming dynamical correlators. The open problems connect to the rest of the chapter: the metric costs expectation values per step; the condition number of worsens as circuits deepen; and barren plateaus flatten the force and collapse the metric together, so VITE inherits VQE's trainability wall.
The physical picture
Picture the exact quantum state as a point on the unit sphere of a colossal Hilbert space, moving with a velocity Schrödinger's equation dictates. Your ansatz is a thin curved sheet — the manifold — stitched into that sphere by the circuit, and you are pinned to it. The best you can do is move along the sheet in whatever direction most nearly matches the true velocity, where "most nearly" is measured by the Fubini–Study metric, which reports how distinguishable two nearby states on the sheet are. The variational principle is just least-squares fitting of the on-sheet velocity to the off-sheet target, and its output is the linear system . The first figure is that projection made literal.
Imaginary time turns this geometric fitting into a ground-state algorithm. Real evolution only spins each eigencomponent by a phase ; the Wick rotation converts those phases into real exponentials , so high-energy components decay and, after renormalizing, the state slides downhill toward the ground state. On the manifold that slide is steepest descent — but measured with the metric ruler , not the arbitrary Euclidean ruler of the raw angles, which is why it can outrun a plain optimizer. The second figure shows the descent in the simplest, fully checkable case.
The equation is the quantum sibling of natural-gradient learning, with the Fisher information and the natural gradient. Its one honest weakness is the amber residual in the first figure: the scheme works only insofar as the true velocity nearly lies in the tangent space, and when the state grows entanglement the ansatz cannot represent, that residual is leakage the method can never recover — the dynamical signature of limited expressibility.
The core equations
The starting objects are the state the circuit prepares and the tangent vectors from differentiating it in each angle; these span the tangent space onto which everything is projected.
where: — parameterized gate, typically with Hermitian generator ; — fixed reference, e.g. ; — tangent vector; — the real parameters. Reading: the circuit is a chart, its coordinates, the its tangent basis. The tangent-vector overlaps, with the global-phase direction projected out, define the geometry — one complex Hermitian tensor packaging metric and curvature.
where: — quantum geometric tensor; — Fubini–Study metric (real, symmetric, PSD), a quarter of the quantum Fisher information and the matrix in the EOM; — Berry curvature (antisymmetric). Reading: the subtraction removes the unphysical global-phase direction, since physical states are rays. Imposing McLachlan's principle in real time projects onto the tangent space; the imaginary part of the Hamiltonian element becomes the force.
where: — Fubini–Study metric; — real-time force; — Hamiltonian; — velocity solved each step. Reading: real-time flow conserves energy and rotates the state, so the force is the imaginary part of the Hamiltonian element. Wick-rotating to imaginary time, the exact velocity becomes and the projection keeps its real part — the equation VITE integrates.
where: — imaginary-time force, exactly minus half the energy gradient; — imaginary time, . Reading: the force is the energy gradient, so imaginary-time flow is energy minimization — the bridge to ground states. Solving (4) with makes the natural-gradient structure explicit: the metric preconditions the ordinary energy gradient.
where: — inverse metric, the natural-gradient preconditioner; — Euclidean energy gradient (parameter-shift estimable). Reading: discretized with step , this is . All of this descends from one scalar cost, the squared residual minimized over the velocities (built explicitly in the first derivation). In practice is rank-deficient with smallest eigenvalues at the shot-noise level, so it is never inverted bare; a Tikhonov shift stabilizes the solve at the price of a controlled bias.
where: — regularization strength trading bias against noise; — identity. Reading: as one recovers the ideal EOM but with diverging noise gain; the pseudo-inverse is the limit on the well-conditioned subspace.
The goal is to show that minimizing the McLachlan residual norm over the parameter velocities is not an arbitrary recipe but the unique least-squares projection of the exact imaginary-time velocity onto the tangent space, delivering the linear system with the Fubini–Study metric as its matrix and the energy element as its force. We build the residual, square it, differentiate over the velocities, and read off geometry and force from the surviving terms.
Step 1. Write the residual between the velocity the manifold can supply and the one exact imaginary-time dynamics demands: . Why: the manifold moves only within , while the exact target is ; the residual is the mismatch to minimize.
Step 2. Form the scalar cost , a real quadratic in the velocities. Why: squaring the norm turns "track the true velocity as closely as possible" into a single differentiable objective — the whole content of the variational principle.
Step 3. Impose ; differentiating the real quadratic form gives . Why: this is the least-squares normal equation — the residual is made orthogonal, in the real inner product, to every tangent direction.
Step 4. With the global-phase terms folded in, the first sum is , and the piece cancels against the phase-projection terms of , leaving . Why: the gauge structure removes the normalization piece, so the EOM is coordinate-free. *Verified: when the tangent space contains , choosing drives , and the variational trajectory reproduces exact imaginary-time evolution — confirmed by direct substitution in the single-qubit case below.*
Go deeper · Derivation B · 1 minWhy imaginary time slides downhill in energy
The goal is to prove that the variational imaginary-time trajectory is a genuine descent flow: the energy never increases along it, and the flow halts precisely at a variational stationary point — the same fixed point a converged VQE run reaches. This licenses VITE as a ground-state algorithm rather than a heuristic, and the proof rests only on the positive-semidefiniteness of , so it holds for any ansatz.
Step 1. Differentiate the energy by the chain rule: . Why: the state moves only through its parameters, so all of the energy change is carried by the velocity.
Step 2. Insert the EOM in natural-gradient form, . Why: the imaginary-time force is minus half the energy gradient, preconditioned by the inverse metric.
Step 3. Collect the quadratic form: . Why: , so (on its support) is too, making the form non-negative and the energy derivative non-positive.
Step 4. The flow stops when lies in or vanishes — a stationary point of the variational energy. Why: this is exactly what a VQE optimizer targets, so VITE and VQE share fixed points but reach them along different paths. *Verified: equality holds only at stationarity; away from it the descent is strict, guaranteeing progress toward the best ground-state approximation on the manifold.*
Go deeper · Derivation C · 1 minOne qubit solved in closed form
The goal is a fully checkable instance in which VITE reproduces exact imaginary-time evolution with no residual, so every abstract quantity — the metric , the force , the flow , the long-time limit — is closed form and matches the exact operator . We take with the one-parameter ansatz , a Bloch great circle containing both eigenstates, which guarantees exactness.
Step 1. The tangent vector is , and since the phase term drops, giving . Why: on a great circle the state and its derivative are orthogonal, so the metric is just the squared speed of the tangent vector.
Step 2. The energy is , so and . Why: the two sign flips leave positive — a point where careless bookkeeping goes wrong.
Step 3. Solve : , unstable at (, ) and stable at (, ). Why: the force points the flow toward larger , i.e. toward , the ground state of .
Step 4. The ODE gives ; from () this is the clean law . Normalizing gives — identical. Why: the manifold contains , so the residual is zero and the trajectories coincide term by term. *Verified: , , as , matching normalized exactly; this is the curve plotted in the second figure.*
Limiting cases
Variational dynamics interpolates between exact simulation and a frozen state, depending on how large and well-conditioned the manifold is.
| Case | Result | Meaning |
|---|---|---|
| Full-rank, expressive manifold | The tangent space contains the exact velocity, so the projection is exact, , and the trajectory reproduces true evolution — the single-qubit case above. | |
| Rank-deficient metric | Redundant parameters make singular; the pseudo-inverse or projects onto the well-conditioned subspace at the cost of a controlled bias. | |
| Imaginary-time long-time limit | VITE converges to the best ground-state approximation on the manifold — the same fixed point as a successful VQE run, along the metric-steepest path. | |
| Barren-plateau regime | Exponentially flat landscapes make force and metric exponentially small, so shot noise swamps the system and the dynamics stall just as optimization does. |
Worked examples
1 · Ground state of a qubit by imaginary-time descent (fully worked)
Take and the ansatz from (). Integrate the VITE equation of motion; tabulate the energy, one Euler step, and the long-time limit.
Step 1. From the closed-form derivation, and , so the EOM is , i.e. . With there is nothing to regularize.
Step 2. One explicit Euler step with : at , , so and . The exact law agrees to four decimals, as it must on an exact manifold.
Step 3. Tabulate the energy from : at , ; at , ; at , ; at , — monotone, and within of the ground-state energy by .
Step 4. As , and , so , the exact ground state of . VITE prepares it exactly here because the manifold contains ; the residual is zero at every .
2 · A singular metric and why regularization saves it
Use one qubit with two redundant angles, , generator on both. Show that is singular, then repair the solve with the pseudo-inverse and with Tikhonov regularization.
Step 1. Both gates share generator and commute, so and the tangent vectors are equal: . Each has squared norm and , giving . Its eigenvalues are (along ) and (along ), so . The zero mode changes without moving the state.
Step 2. With , , so — force and true motion live entirely in the well-conditioned eigenspace.
Step 3. The pseudo-inverse is , giving , so — exactly the correct one-parameter flow from Example 1. The pseudo-inverse ignores the zero mode.
Step 4. With Tikhonov instead, has eigenvalues and , condition number — 51 at , diverging as . Since lies in the eigenspace, as , matching the pseudo-inverse with finite noise gain. The physics lives in one eigendirection; regularization inverts without amplifying noise in the empty one.
Physics of the portrait
The equation carries three names because three generations found it from three directions: quantum mechanics needed a way to evolve approximate wavefunctions, and each era's tool — Dirac's action, Frenkel's overlap, McLachlan's residual — turned out to be the same projection wearing different clothes.
Origins · 1 mintime-dependent variational principle and how this was discovered
The idea that an approximate state should evolve by a variational rule is nearly as old as quantum mechanics. Paul Dirac introduced it in 1930, in his note on the Thomas atom, to ground the time-dependent Hartree–Fock equations; Yakov Frenkel, in his 1934 textbook, cast it in the form still quoted today, — the exact velocity projected against every allowed variation. For three decades it powered multiconfigurational methods in chemistry and nuclear physics, but it assumed a holomorphically parameterized state. In 1964 A. D. McLachlan removed that assumption: rather than stationarizing an action he minimized the residual norm over real parameter velocities, a least-squares form that works for any real parameterization and reduces to Dirac–Frenkel when the state is holomorphic — the version that survives on hardware. When Li and Benjamin (2017) and then McArdle, Yuan and collaborators (2019) asked how to run imaginary-time evolution on a NISQ device, McLachlan's residual gave the estimable system — metric by Hadamard tests, force by parameter shifts — and Yuan and co-workers (2019) unified all three principles into one theory of variational quantum simulation, the same object Stokes and collaborators (2020) named the quantum natural gradient. What Dirac wrote for a helium atom is now how a quantum computer chases a ground state.
Going further
Texts. Nielsen & Chuang, Quantum Computation and Quantum Information, Ch. 2–4 (state evolution, dynamics) · Preskill, Lecture Notes on Quantum Computation, Ch. 4–5 · Watrous, The Theory of Quantum Information (distances and channels) · Kitaev, Shen & Vyalyi, Classical and Quantum Computation · Mermin, Quantum Computer Science.
Primary sources. McLachlan, A variational solution of the time-dependent Schrödinger equation, Mol. Phys. 8, 39 (1964) · Li & Benjamin, PRX 7, 021050 (2017) · McArdle et al., Variational ansatz-based quantum simulation of imaginary time evolution, npj Quantum Inf. 5, 75 (2019) · Yuan et al., Theory of variational quantum simulation, Quantum 3, 191 (2019) · Motta et al., Determining eigenstates and thermal states with quantum imaginary time evolution, Nat. Phys. 16, 205 (2020) · Stokes et al., Quantum natural gradient, Quantum 4, 269 (2020).
Provenance. The equations of motion follow the standard McLachlan/Dirac–Frenkel derivations; the geometric tensor and Fubini–Study metric are textbook gauge-invariant objects. A verifier should: (1) re-derive by minimizing ; (2) confirm from Hermiticity of ; (3) check monotone descent from ; (4) verify and against normalized ; (5) confirm has eigenvalues . All numbers are exact algebraic values; no empirical constants are fitted.
Builds on: Variational Quantum Eigensolver · Parameterized Quantum Circuits and Ansatz Design · Parameter-Shift Rules and Quantum Gradients · Cost-Function and Measurement Estimation in Variational Algorithms Leads to: Classical Optimizers for Variational Quantum Algorithms · Barren Plateaus in Variational Landscapes · Strategies to Mitigate Barren Plateaus · Expressibility, Entangling Capability, and Trainability Trade-offs
Ask the tutor: Ask me to walk through the single-qubit VITE flow step by step, or to show exactly how the Fubini–Study metric turns plain gradient descent into the quantum natural gradient.
Imaginary-time evolution is not unitary, so how does a quantum computer implement it?
Correct — is not a gate, and a quantum computer applies only unitaries. The variational trick dodges this: you never apply to the state. You keep the state on a manifold of unitarily preparable circuits and move its classical parameters so the trajectory mimics what would have done — the non-unitary evolution emulated by ordinary unitary circuits with slowly changing angles. The related QITE algorithm emulates it differently, fitting a local unitary at each step to reproduce the update on a bounded correlation length.
How do the McLachlan, Dirac–Frenkel, and TDVP principles relate?
All three project the exact velocity onto the tangent space, and for real parameters they give the identical equation of motion . They part company for complex or holomorphic parameterizations: Dirac–Frenkel imposes on complex-analytic parameters, while McLachlan minimizes the real residual norm over real velocities. The discrepancy lives in how each treats the imaginary part of the geometric tensor. Because NISQ ansätze use real rotation angles, McLachlan's form is the workhorse — the one that reduces cleanly to a measurable linear system.
Is VITE actually better than just running a classical optimizer on VQE?
Sometimes, for a specific reason: VITE is quantum natural-gradient descent, rescaling each step by the inverse metric. On ill-conditioned landscapes, where flat and steep directions coexist and plain gradient descent zig-zags, the preconditioner straightens the path and can converge in far fewer iterations, invariant to how the circuit is parameterized. The catch is cost: each step needs the full metric plus a regularized solve, versus for plain descent. Whether faster convergence pays for pricier steps depends on the problem, conditioning, and shot budget.
Why is the metric A so often singular?
Because parameterized circuits are riddled with redundancy. Two parameters whose generators commute on the same support, a symmetry-locked parameter, or a gate that leaves the state untouched all produce linearly dependent tangent vectors — and linear dependence forces an exact zero eigenvalue of . Even without exact redundancy, deep circuits push many eigenvalues toward the shot-noise floor. So the rank of is usually well below , and every practical implementation solves or uses a truncated pseudo-inverse rather than .
What exactly is the McLachlan residual, and why does it set the error?
It is the vector — the mismatch between the velocity the manifold can supply and the one exact imaginary-time evolution demands. At the optimal , its squared norm is the part of the exact velocity pointing out of the tangent space, which cannot be represented. This is the irreducible error even with perfect circuits — a dynamical measure of limited expressibility. It grows as the true state develops entanglement the circuit cannot reach, which is why variational trajectories eventually drift from exact ones.
Do barren plateaus affect VITE the way they affect VQE?
Yes — VITE does not rescue you from barren plateaus. On an exponentially flat landscape the force entries have variance shrinking like , vanishing into the shot noise, while the metric loses spectral weight with . Both sides of collapse together and the regularized solve returns essentially noise. This is why the topic points forward to barren-plateau mitigation: the preconditioner reshapes the landscape but cannot create signal where the plateau has destroyed it.