Trainability Probes for Quantum Initializers on Drifting Task Streams

Variational quantum algorithms tune the angles of a small quantum circuit with a classical optimizer to find, for example, the lowest energy of a molecule or spin chain. Their main failure mode is the barren plateau: for most starting angles the slope of the objective is exponentially small in the number of qubits, so the optimizer cannot tell which way is downhill. A learned starting point helps. A classical network that reads a description of the problem and outputs good initial angles can place the circuit where slopes are large. That works when every problem comes from one fixed family. In practice the problems arrive as a stream that changes over time. Coupling constants drift across a phase transition, a molecule's geometry is scanned, and hardware noise grows between calibrations. A starting point that was good yesterday can land in a flat region today.

We propose to make the quantum circuit report directly whether a proposed starting point is still trainable. Before committing optimization budget, a cheap probe measures how much the gradient varies in a small neighborhood of each candidate starting point. The probe picks the best candidate, and it raises an alarm when all candidates have gone flat. The alarm triggers a safe restart and a burst of plasticity in the initializer network. The central claim is that, for streams of quantum tasks, the useful definition of "this task is out of distribution for my initializer" is not distance in problem-description space. It is a measurable drop in local gradient variance. This signal also catches hidden drift, such as rising hardware noise, that the problem description never shows.

Core Claim and What Is New

Three pieces of prior work set up the gap. Q-MAML trains a classical network to map Hamiltonian coefficients to circuit initializations and observes that its outputs sit in regions of moderate, non-vanishing gradient norm. It assumes a stationary task distribution, and the network is frozen after training. That paper motivates this proposal: it shows learned initialization helps but gives no way to know when it has stopped helping. CL-QAS handles sequential quantum tasks with elastic weight consolidation and a reinforcement-learning architecture search. It avoids plateaus by forcing inputs into a low-rank tensor-train subspace. It has no drift detector, and its search loop is expensive per transition. When Does Adaptation Win? gives a scaling law for few-step meta-adaptation in quantum control under the Polyak-Łojasiewicz (PL) condition, which says the squared gradient norm is at least proportional to the remaining loss gap. It also uses a 3–5 step probe to predict adaptation budget. The authors flag two open problems: drift within an episode, and the fact that barren plateaus drive the PL constant toward zero.

Our contribution differs from all three. We do not constrain the circuit to be plateau-free everywhere, as CL-QAS does, and we do not assume a fixed task family, as Q-MAML does. Instead we test trainability locally at each candidate starting point and use that test as the drift signal for a continual initializer. The analytical counterpart is a local version of the scaling law. If the PL condition holds with constant $\mu_{\text{loc}}$ on a ball of radius $r$ around the start $\theta_0$, the standard gradient-descent argument behind the law in When Does Adaptation Win? gives, while iterates stay in the ball,

$$G_K \ge A\,(1 - e^{-\beta K}), \qquad \beta \approx 2\eta\,\mu_{\text{loc}},$$

Here $G_K$ is the energy improvement after $K$ adaptation steps, $A$ is the initial gap to the local optimum, and $\eta$ is the step size. We will test empirically whether the probe's variance estimate tracks $\mu_{\text{loc}}$ well enough to predict $G_K$. This would show whether meta-adaptation can keep curvature along the task path even when the global landscape is flat.

Research Program

The system has three parts. The first is a Q-MAML-style initializer network that maps a Hamiltonian descriptor to angles. It is updated online with a first-order rule: after $K$ adaptation steps, it is pulled toward the adapted angles. It also keeps a small replay buffer of (descriptor, adapted angles) pairs, so that regimes the stream returns to are not forgotten.

The second part is the trainability probe. For each candidate start, the probe draws $m$ small Gaussian perturbations and evaluates parameter-shift gradients on a random subset of $p$ angles. It reports the empirical variance $\hat v$ together with the energy. The candidates are the initializer's output, the previous task's adapted angles (warm start), and a safe default.

Is the probe affordable on hardware? Resolving an exponentially small variance would cost exponentially many shots. The probe never needs to do that. It only tests whether $\hat v$ exceeds a threshold $\tau$, and that one-sided test costs a number of shots that scales roughly like $1/\tau$ times a logarithmic confidence factor. This is the usual sample cost of distinguishing a mean from zero at resolution $\tau$, so it is polynomial whenever $\tau$ is set polynomially.

The third part is the response rule. The candidate with the best combined probe score is selected. If no candidate clears $\tau$, a trainability changepoint is declared. The circuit then restarts from a small-angle Gaussian initialization, following Zhang et al., or from an identity-block initialization, following Wossnig et al.. At the same time, the initializer's learning rate is relaunched and then decayed, borrowing the plasticity reset of DCML.

Two other works supply the change-detection framing we build on. LEEDS detects task switches from loss spikes and energy-based OOD scores. Continuous Meta-Learning without Tasks uses Bayesian run-length changepoint detection. We replace their input- and loss-based statistics with a landscape statistic. The reason is that for Hamiltonian streams the task boundary is often known, since the descriptor changes, while the thing that matters is whether the change broke the initializer.

The analysis has three threads. We will measure the exact gradient variance in simulation alongside the probe estimate, to calibrate detection quality. We will fit the local scaling law across qubit counts. And we will characterize when warm start, the learned initializer, and restart each win.

Baselines

The do-nothing reference is uniform random initialization in $[0, 2\pi]$ for every task. It is expected to plateau, and Zhang et al. report that it stalls at error $10^{-1}$ on LiH while their Gaussian scheme reaches $10^{-4}$.

The static-heuristic baselines are Gaussian initialization with variance $O(1/L)$ and identity-block initialization, both run fresh per task. They are the strongest problem-agnostic defenses in the file.

The naive continual baseline is warm start from the previous task's adapted angles. On smoothly drifting streams it is probably the most dangerous competitor.

The learned baselines are three versions of Q-MAML. The first is trained on the first regime and then frozen. The second is trained offline on the union of all regimes; it is a non-causal upper reference for a stationary learner. The third is a continual Q-MAML that uses LEEDS-style energy-spike detection with a DCML learning-rate relaunch. This last one is the strongest existing combination, and it isolates whether a landscape probe beats a loss-based detector.

We also include an EWC-regularized initializer in the spirit of CL-QAS, without the architecture search, to test whether consolidation over-constrains the initializer. A gradient-free baseline uses Natural Evolutionary Strategies (Anand and Degroote).

Three ablations isolate the key ingredient. The first turns the probe off, so the method always uses the initializer. The second uses the probe only as an alarm, without choosing among candidates. The third replaces the gradient-variance probe with a descriptor-distance OOD score.

All methods share the same circuits, the same streams, and the same total shot budget per task, with the probe's shots charged to our method. Each method gets an equal hyperparameter search of 20 configurations on a held-out validation stream.

No reported result found on Lacuna for any streaming-Hamiltonian VQE benchmark. Q-MAML reports only convergence curves, so all baseline numbers here will be produced by us under one protocol. Beating the strongest baseline means two things. First, a statistically significant reduction, over 10 seeds, in stream-averaged shots to reach a fixed energy error, with no loss of final error. Second, a clear gain on segments with abrupt or hidden drift, without losing to warm start on smooth segments.

Why not just…?

Why not just warm-start from the last solution? When the Hamiltonian drifts smoothly, the previous optimum sits near the new one, inside a curved basin. Warm start may then match or beat everything else, which is a real threat. It should fail in two situations. One is crossing a phase transition, where the old ground state is a poor and possibly flat start for the new Hamiltonian. The other is a jump back to a distant earlier regime. Our streams contain smooth, abrupt, and revisiting segments, and we report results per segment type. If warm start wins on every segment type, the probe's value reduces to choosing warm start, and we will say so.

Why not just restart from Gaussian or identity-block initialization every time? These restarts are trainable but uninformed. Q-MAML's figures show learned initialization converging faster than Gaussian, uniform, zero, and $\pi$ starts on the stationary task family. The identity-block start is unentangled, which Wossnig et al. note makes highly entangled targets harder to reach. Our method uses these restarts as its fallback, so the comparison measures directly how much informed starting saves when it is still valid.

Why not just detect drift from energy spikes, as LEEDS does? The energy jumps every time the Hamiltonian changes, whether or not the initializer is still useful. A rise in hidden noise lowers the measured gradient signal without a clean energy signature, because noise flattens the landscape at every starting angle (Noise-Induced Barren Plateaus). The LEEDS-plus-DCML baseline and the descriptor-distance ablation test exactly this. If either matches the probe on hidden-noise segments, the claim that a landscape signal is necessary fails.

Why not just train one static initializer on a broad distribution? That requires knowing the future regimes in advance. The union-trained Q-MAML is our non-causal reference. A causal method that comes close to it is the goal. A causal method that falls short of the first-regime-only learner is a failure.

Why not do it all classically, given that trainability may imply classical simulability? Cerezo et al. argue that circuits provably free of plateaus are often classically simulable, and our experiments are classical simulations. We do not claim quantum advantage. The question we study is how to allocate a fixed quantum shot budget across a drifting stream. That question arises for any variational workload on hardware, whether or not the circuits involved could also be simulated classically.

Proposed Experiments

The streams are built from benchmarks in the file. The first is the Heisenberg XYZ chain with couplings $(J_x, J_y, J_z)$, following Q-MAML, at 10, 12, 14, and 20 qubits. It is driven along sinusoidal, sawtooth, and piecewise-jump schedules borrowed from the TRIO drift designs. The second is the transverse-field Ising model swept through its critical field, using the model from the DPQC work. The third is a LiH bond-length scan with a target error of $10^{-4}$, following Zhang et al..

Hidden drift is added as a depolarizing rate that rises between unannounced recalibrations. Noisy density-matrix simulation is limited to about 12 qubits. Larger systems run noiseless with shot noise only.

The metrics are cumulative circuit evaluations to reach the target error, energy error after a fixed $K$-step budget, forgetting on revisited regimes, and the cost of the probe itself. For the detector we report precision and recall against ground-truth trainability changes, defined from exact gradient variance. The closest existing detector numbers are LEEDS's above-96% precision and above-99% recall on Tiered-ImageNet and Synbols. That is a different domain, so it serves only as a reference.

Three decisive checks will settle the claim. First, the probe-only ablation must beat descriptor-distance and energy-spike detection on hidden-noise segments. Second, probe variance must predict the measured $G_K$ across qubit counts better than the global PL assumption does. Third, the full method must not lose to warm start on smooth segments while clearly beating it on abrupt and revisiting ones.

If the local scaling law fits well (for example $R^2$ near the 0.98 reported in When Does Adaptation Win?) only above $\tau$ and collapses below it, that answers the file's second gap. It would show that meta-adaptation gain is governed by local curvature at the chosen start, not by the flatness of the global landscape.