Reshuffling Hamiltonian Terms in Variational Quantum Training: When Order Helps and When a Plateau Makes It Irrelevant

A variational quantum eigensolver trains a small quantum circuit so that it prepares the lowest-energy state of a physical system, such as a molecule or a chain of magnetic spins. The energy being minimized is a sum of many simple pieces called Pauli terms, and each training step usually measures only a random handful of them. In classical deep learning, how such random pieces are chosen matters a great deal. Drawing them independently each step, "with replacement," leaves a permanent noise floor. Shuffling them once per epoch and visiting each exactly once, known as random reshuffling, makes the per-step errors largely cancel over the epoch. Quantum training has mostly used independent draws, and it also faces a separate problem, the barren plateau. On a barren plateau the landscape is so flat that gradients shrink exponentially with the number of qubits, the quantum analogue of bits.

This note argues that these two phenomena should be separated, not blended. Reshuffling can only cancel the noise that comes from which terms happen to be sampled. It does nothing about a landscape that is flat in every term. We propose to measure, during training, how much of the gradient noise comes from term selection and how much from finite measurement shots. We predict that reshuffling gives large savings in measurements exactly when individual terms have large gradients that nearly cancel, and none on a true barren plateau. We also test a second, more speculative mechanism: that the extra noise of independent sampling pushes parameters away from a good initialization and into a plateau during training.

Core Claim

Write the energy as $C(\theta)=\frac{1}{M}\sum_{m=1}^{M} f_m(\theta)$. Here $\theta$ holds the circuit's rotation angles, and $f_m = M c_m\langle P_m\rangle_\theta$ is the rescaled expectation of the $m$-th group of simultaneously measurable Pauli terms, with coefficient $c_m$. A single-step gradient estimate built from a few groups has two independent error sources. The first is a selection variance, $\sigma_{\text{sel}}^2(\theta)=\frac{1}{M}\sum_m\|\nabla f_m(\theta)-\nabla C(\theta)\|^2$, which comes from choosing which groups to measure. The second is a shot variance $\sigma_{\text{shot}}^2 \propto 1/S$, which comes from spending $S$ measurement repetitions per group.

The classical theory of reshuffling says what to expect. Random Reshuffling: Simple Analysis with Vast Improvements shows that reshuffling replaces the with-replacement noise floor by a "shuffling variance" that shrinks with the step size. Closing the convergence gap of SGD without replacement shows that this cancellation is complete for quadratics and only partial when the curvature changes within an epoch. Both results concern only the selection part of the noise. The shot part is fresh, independent noise at every step, and no ordering removes it.

Our central, falsifiable claim is that the shot savings from reshuffling over Pauli groups are governed by the ratio $\rho(\theta)=\sigma_{\text{sel}}^2/\sigma_{\text{shot}}^2$ measured along the training path. There are two contrasting regimes, which we call cancellation plateaus and barren plateaus.

A cancellation plateau arises near a good solution of a local Hamiltonian. There the total gradient goes to zero while individual term gradients stay of order one. This is the classical "$\sigma_*$ at the optimum" regime, so $\rho$ is large and reshuffling should win clearly.

A barren plateau arises with a deep, randomly initialized circuit. There every term's gradient concentrates at zero together, so $\rho$ is small and reshuffling should be indistinguishable from independent sampling. The light-cone analysis in Tight and Efficient Gradient Bounds for Parameterized Quantum Circuits gives the reason terms behave differently. It shows that local terms keep usable gradients while global terms vanish, so in mixed Hamiltonians the selection variance is dominated by the local terms that still carry signal.

The secondary claim concerns training dynamics. Independent sampling behaves like a random walk in parameter space. At a fixed step size, the distance of the parameters from their initial values should therefore grow faster than under reshuffling. After an initialization that avoids plateaus, this extra spread could carry the circuit into the high-entanglement region where gradients vanish. We treat this as a hypothesis to be killed or confirmed, not as a premise.

Relation to Prior Work

Two lines of quantum work supply the setting and motivate the gap.

The first line changes where training starts. Identity-block initialization in An initialization strategy for addressing barren plateaus in parametrized quantum circuits makes the circuit start as the identity. Small-variance Gaussian angles in Escaping from the Barren Plateau via Gaussian Initializations in Deep Variational Quantum Circuits keep the circuit close to its starting point. Both methods act only at step zero, and neither asks how the stochastic optimizer behaves afterward. We keep their initializations fixed and vary only the sampler.

The second line changes the optimizer. WSBD: Freezing-Based Optimizer for Quantum Neural Networks freezes parameters with low gradient-importance scores, and Natural evolutionary strategies for variational quantum computation replaces gradients with population search over random parameter subsets. Neither orders Hamiltonian terms without replacement, and neither separates selection noise from shot noise.

On the classical side, the unified permutation analysis in A Unified Analysis of Stochastic Gradient Descent with Arbitrary Data Permutations and Beyond supplies the method. We reuse its "order error," the drift of partial gradient sums away from the true gradient, as a measured diagnostic. We also reuse its greedy balanced-ordering variant as a stronger ordering baseline.

Provable Benefit of Random Permutations over Uniform Sampling in Stochastic Coordinate Descent extends the permutation advantage to cycling over parameters. We use it only for an ablation over gate angles, since its proofs cover quadratics with constant curvature, not trigonometric circuit landscapes.

One paper constrains rather than motivates. Does provable absence of barren plateaus imply classical simulability? argues that architectures provably free of plateaus tend to be classically simulable. Our proposal does not claim to escape that dilemma. A sampler cannot create gradient signal that the circuit does not have. Our prediction of no benefit on true barren plateaus is consistent with that paper, not in tension with it.

Research Program

We will build a shot-accounted training loop for the variational eigensolver. The loop groups Pauli terms into simultaneously measurable sets, estimates gradients by the parameter-shift rule (evaluating each angle at two shifted values), and charges every circuit repetition against a global budget. Within this loop, four ways of choosing groups are interchangeable: independent draws weighted by coefficient size, one shuffle reused every epoch, a fresh shuffle every epoch, and greedy balanced ordering.

At checkpoints along each run we take a separate, large-shot estimate of every group's gradient. From it we compute $\sigma_{\text{sel}}^2$, the shot variance, $\rho$, the order error, and the norm of the full gradient. We also log the distance of the parameters from their initial values and the across-restart gradient variance, the standard barren-plateau signature.

On the analysis side, we will derive a bound for reshuffled training on functions of the form $a\cos(\theta_k-\phi)+b$ in each coordinate, the shape a single-angle slice of a circuit energy takes. The bound will carry an additive shot term. Its goal is to show that the reshuffling advantage scales with $\rho$ and vanishes when all term gradients are exponentially small. It builds on the drift argument of the gap-closing paper, but the curvature is now bounded by the trigonometric structure rather than assumed constant.

Baselines

The naive reference point is coefficient-weighted independent sampling of groups with a tuned constant step size. This matches how stochastic eigensolvers are typically run. It is the default a practitioner would reach for, so any claimed saving must be measured against it at equal total shots.

The strongest competitor on this question is the full-sum estimator. It measures every group at every step, spreading the same per-step shot count across all groups. It has no selection noise at all, so if reshuffling cannot beat it, reshuffling is pointless. It is run with the same total shot budget, the same parameter-shift gradients, the same Adam or plain-gradient optimizer, and a step-size grid of the same size. Beating it means reaching a target energy error, chemical accuracy on LiH or a fixed relative error on spin chains, with at least 30% fewer total shots, measured as a median over at least 20 seeds.

The strongest existing optimizer from the file is WSBD, the freezing method of WSBD: Freezing-Based Optimizer for Quantum Neural Networks. It reports converging "63.9% faster than Adam on average" on the 4-qubit transverse-field Ising model at 1–3 layers. We rerun WSBD in our shot-accounted loop on that exact setting, reproducing its Adam comparison first as a sanity check. We then add reshuffling on top of it, because freezing chooses parameters and reshuffling chooses terms, so the two methods compose.

For initialization, Escaping from the Barren Plateau via Gaussian Initializations in Deep Variational Quantum Circuits reports that Gaussian initialization reaches an error of $10^{-4}$ on LiH, while uniform initialization stays at $10^{-1}$. We adopt Gaussian initialization for all samplers, so the sampler is the only variable. We found no reported result on Lacuna for random reshuffling over Hamiltonian terms, nor for shots-to-accuracy of any sampler on these benchmarks.

Two ablations isolate the key ingredient. The first compares one fixed shuffle with a fresh shuffle each epoch; if the two tie, the benefit comes from covering every group once, not from randomness. The second applies the same shuffling logic to gate angles rather than Pauli groups, following the coordinate-permutation paper. It tests whether ordering helps on the parameter axis, the term axis, or both.

Why not just…?

Why not just measure the whole Hamiltonian every step? This is the most serious threat. When the number of groups $M$ is small, as for the 4-qubit Ising model, the full-sum estimator probably matches reshuffling, since both touch every group per epoch and the full sum takes no drift. Our prediction is that reshuffling wins only when $M$ is large relative to the per-step budget. It therefore should matter for the 12-qubit LiH and 14-qubit N₂ Hamiltonians used in Mitigating barren plateaus of variational quantum eigensolvers. There, a full sum forces very few shots per group, so that estimator is limited by shot noise. The shots-to-accuracy curves across system sizes settle this directly. If the full sum ties everywhere, we will report the reshuffling claim as refuted.

Why not just use a good initialization and ordinary independent sampling? The initialization papers show that step-zero plateaus can be avoided. They say nothing about measurement cost later in training, which is where our cancellation-plateau regime lives, near the optimum. The distance-from-initialization and gradient-variance logs also test whether the sampler influences any later collapse into a plateau. If those curves overlap for both samplers, the secondary claim fails and initialization alone suffices for that purpose.

Why not just go gradient-free? Natural evolutionary strategies for variational quantum computation itself reports two drawbacks: sensitivity to hyperparameters, and slower convergence than gradient descent wherever gradients are non-vanishing. Non-vanishing gradients are exactly the regime in which we predict reshuffling pays off. We include separable evolutionary search as an additional comparison on LiH under the same shot budget.

Why not just importance-sample terms by coefficient? Weighting by $|c_m|$ is already our naive baseline. Weighting reduces variance but keeps the with-replacement noise floor, so it answers a different question than ordering does. Combining the two methods, weighted reshuffling, is one of the tested arms.

Proposed Experiments

The main experiment covers the 4-qubit transverse-field Ising model from the WSBD study, the 1D Heisenberg chain at 7 qubits with identity blocks and at 15 qubits with Gaussian initialization as in the two initialization papers, and LiH and N₂ with the benchmark settings of the efficient-ansatz paper. Each benchmark is run under every sampler with equal total shots. We report shots to target error, final energy error at a fixed budget, and all diagnostics.

The first decisive check is a regression of the log shot-savings ratio (reshuffling versus independent sampling) on the median $\rho$ along the path, pooled across benchmarks, depths, and step sizes. The core claim predicts a positive slope, with savings near zero when $\rho<1$.

The second check is a deliberate barren-plateau control. We use deep, uniformly initialized circuits with a global observable, where the light-cone results predict that all term gradients vanish. We predict no difference among the samplers there; a clear reshuffling win in this setting would contradict our mechanism and demand a new explanation.

The third check targets dynamically induced plateaus. We start from Gaussian initialization at a fixed step size and compare parameter spread and across-restart gradient variance over training for independent sampling versus reshuffling on the 15-qubit Heisenberg chain. Both claims are only worth publishing if the full-sum estimator is beaten on the larger molecules. That comparison is the result we will lead with, whichever way it falls.