NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Spending Measurement Shots to Balance Tasks in Multi-Objective Quantum Circuits

A variational quantum circuit is a small, tunable quantum program whose parameters are adjusted by a classical optimizer. Every quantity it reports, whether an energy or a gradient, has to be estimated by running the circuit many times and averaging the outcomes of each run, called a shot. Many useful variational problems optimize several quantities at once. Examples include the ground state and excited states of a physical system, or an energy plus a constraint on the state. In classical deep learning this situation is called multi-task learning. That field has shown that tasks whose gradients differ in size end up fighting each other: the task with the larger gradient takes over the shared parameters and the others are starved. The standard fixes, such as rescaling each task's gradient to a common length or using bargaining-style rules for combining gradients, all assume that each task's gradient is known exactly.

On a quantum computer that assumption fails, and it fails in a specific, predictable way. Each task's gradient arrives with shot noise. The length of a noisy gradient overestimates the true length by an amount set by that noise. So any rule that rescales gradients to equal length will inflate pure noise for exactly the tasks it is trying to rescue. Our proposal turns this weakness into the mechanism. In a quantum circuit, the shot budget is the lever that controls each task's noise. Task balancing should therefore be done by deciding where to spend shots, not only by reweighting gradients after they have been measured. We propose a training procedure built on three pieces. It estimates each task's gradient strength without bias using split-shot estimates. It allocates shots across groups of jointly measurable operators so that every task's gradient direction is known to equal relative precision. It measures all tasks on a single shared circuit, so per-task gradients cost close to nothing extra.

Core Claim

The central observation concerns cost. Classical gradient-balancing methods face a known scaling problem: they need one backward pass per task. That is the reason FAMO: Fast Adaptive Multitask Optimization replaces per-task gradients with a scalar loss history. When all tasks are expectation values of different observables on the same parameterized state, the quantum version of this cost largely disappears.

The reason is that the parameter-shift rule estimates gradients from shifted copies of the same circuit, and these shifted circuits are identical across tasks. Only the measured observables differ. If the Pauli strings of all task Hamiltonians are pooled and then grouped into commuting sets, every shot on a shared group updates every task's gradient estimate at once. Commuting sets here means Pauli products that can be measured together, as in The theory of variational hybrid quantum-classical algorithms. Per-task gradients therefore cost roughly the number of measurement groups in the union of the tasks' Pauli strings, not $T$ times the single-task cost. Once per-task gradients are cheap, the remaining problem is statistical rather than computational.

Let $\hat g_t$ be the shot-based gradient estimate for task $t$, $g_t$ its true value, $N$ the shots spent, and $\Sigma_t$ the single-shot covariance of the estimator. Then

$$\mathbb{E}\,\|\hat g_t\|^2 = \|g_t\|^2 + \frac{\mathrm{tr}(\Sigma_t)}{N}.$$

The extra term is pure noise. It is largest for tasks whose true gradient is small, and these are the tasks that the max-norm rescaling in Dual-balancing for multi-task learning and the direction-normalized aggregation in Monotonic Transformation Invariant Multi-task Learning would amplify. We remove the bias with a split-shot estimator. Two independent halves of the shots give estimates $\hat g_t^{(a)}$ and $\hat g_t^{(b)}$, and their inner product is an unbiased estimate of $\|g_t\|^2$.

We then choose shots per measurement group $k$ to minimize the total relative noise across tasks, $\sum_t \sum_k a_{t,k} / (N_k \|g_t\|^2)$, subject to a budget $\sum_k N_k = B$. Here $a_{t,k}$ is the single-shot variance that group $k$ contributes to task $t$'s gradient. The Lagrange condition gives

$$N_k \propto \sqrt{\sum_t a_{t,k} / \|g_t\|^2}.$$

Groups that inform weak-signal tasks receive more shots. Tasks whose debiased gradient strength falls below a stationarity tolerance are frozen for that step, which prevents the rule from spending unbounded shots on a task that has already converged. The resulting gradients are then combined with an aggregation that normalizes gradient directions.

Why Existing Work Leaves This Open

The measurement-reduction literature supplies our measurement tools, but every method in it targets a single observable. Three works optimize how a single Hamiltonian is measured: GALIC: Hybrid Multi-Qubitwise Pauli Grouping for Quantum Computing Measurement through hardware-aware grouping, Overlapped grouping measurement: A unified framework for measuring quantum states through overlapping groups with variance-optimized sampling, and Active learning for quantum mechanical measurements through sequential allocation. Bayesian Parameter Shift Rules in Variational Quantum Eigensolvers allocates shots adaptively for gradients, but only for a single-objective energy. We reuse their grouping and variance-allocation machinery. What we change is the allocation target: it becomes the relative precision of every task's gradient, not the variance of one scalar.

The multi-objective quantum works motivate the problem but leave balancing untouched. Variational Quantum Multi-Objective Optimization uses derivative-free search over diagonal Hamiltonians with a fixed 128 shots per iteration. Concurrent VQE for Simulating Excited States of the Schwinger Model prepares several eigenstates on one circuit, using ancilla qubits, with static weights and uniform measurement. Quantum Computation of Conical Intersections on a Programmable Superconducting Quantum Processor fixes its state-averaging weights in advance and uses static qubit-wise grouping.

On the classical side, DB-MTL, DiBS-MTL, FAMO, and Revisiting Fairness in Multitask Learning: A Performance-Driven Approach for Variance Reduction supply the balancing rules. All of them assume either exact gradients or minibatch noise that the user cannot control.

One correction to the framing in our own research file matters here. A constant energy offset has zero gradient, so "the ground state has a larger energy, therefore it dominates" is not the right mechanism. The real disparity lies in gradient norms and curvature, which differ between states and between observables. The offset does create a separate problem. FAMO and DB-MTL take logarithms of losses, which presupposes positive losses, but energies are negative and defined only up to an offset. These methods therefore need an arbitrary shift to be applied at all. This is a design constraint we must handle when running them as baselines.

Research Program

The work has three parts.

The first part is analytical. We derive the bias in noisy gradient-norm estimates under the parameter-shift rule. We show how much it distorts max-norm and direction-normalized aggregation as a function of shots and signal strength. We derive the group-level allocation rule above, including how covariances between tasks that share groups enter it. The physics-informed kernel of the Bayesian parameter-shift work is a natural extension for reusing past shots, but we treat it as optional, given that its classical cost grows cubically with the number of past data points.

The second part is the algorithm. It has four components: grouping of the pooled Pauli strings from all tasks, using both qubit-wise and GALIC-style backend-aware groups; split-shot debiased gradient-strength estimates; the allocation rule; and an aggregation rule that normalizes gradient directions. For the aggregation rule we test both DiBS-style bargaining and simple equal-length averaging.

The third part is the regime boundary. We test on problems where tasks do not share a circuit. Examples are state-averaged runs with separately prepared states and multi-Hamiltonian meta-training in the style of Q-MAML: Quantum Model-Agnostic Meta-Learning for Variational Quantum Algorithms. In these problems per-task gradients are genuinely $T$ times more expensive, and we expect FAMO-style scalar methods to win. Locating this crossover is a deliverable, not an afterthought.

The benchmarks are taken from the file. The first is the Schwinger-model concurrent VQE with 2, 4, and 8 eigenstates using 1 to 3 ancillas, which is the clearest case of tasks sharing one circuit. The second is the 14-qubit H₂O Hamiltonian, paired with a penalty observable that enforces particle number or spin, giving an energy-plus-constraint task pair with very different gradient scales. The third is Ising and Heisenberg chains of up to 7 qubits, matching the Bayesian parameter-shift setting. All of these are run in shot-noise simulation, and the GALIC-grouped variants also run under a depolarizing noise model. Metrics are total shots needed to reach a target error on every task: chemical accuracy, about $1.6\times10^{-3}$ Hartree, for the molecular task, and a fixed energy error per eigenstate for the spin and Schwinger tasks. We also report worst-task error at a fixed budget, eigenstate fidelity for the Schwinger tasks, and constraint violation for the penalty pair.

Baselines

The naive reference point is uniform weights with uniform shots per measurement group. This is the static protocol used by concurrent VQE and by the conical-intersection work. It is run with the same pooled grouping, total shot budget, and optimizer as our method. Our method beats it if it reaches target accuracy on all tasks with substantially fewer total shots, and we pre-register a factor of two as the threshold for a meaningful result.

The strongest simple competitor is unitary scalarization with tuned static weights and the best single-objective shot allocation. Concretely, that means the plain weighted sum of task losses defended in In Defense of the Unitary Scalarization for Deep Multi-Task Learning, with its weights grid-searched, and its shots allocated by variance-optimized sampling on the combined observable in the style of overlapped grouping. The weight search's shots are counted against its budget, because tuning is not free on hardware. Overlapped grouping's own reported result is an estimation error of 0.129 on 14-qubit H₂O at 1000 samples, against 0.257 for derandomized classical shadows (Overlapped grouping measurement). We will first reproduce this single-observable error to validate our measurement pipeline. On the gradient side, the Bayesian parameter-shift method reports an order-of-magnitude reduction in cumulative shots over fixed-shot gradient descent on spin chains, but only for a single objective. We run its shot-allocation rule on the scalarized loss as a second strong baseline.

FAMO is the strongest existing balancing method under a tight budget. It needs only the scalar task losses, which are measured anyway, so it adds almost no extra measurement. We run it with losses shifted by a known lower bound, and we report sensitivity to that shift.

DB-MTL and DiBS-MTL are run on naive, non-debiased shot gradients with uniform allocation. This isolates the failure our analysis predicts. DiBS-MTL's reported robustness, 85 to 92% success on Meta-World MT10 under transformed rewards against about 30% for FAMO and Nash-MTL, was obtained with classical minibatch gradients. We found no reported result on Lacuna for any multi-task balancing method on a variational quantum benchmark.

Ablations remove one ingredient at a time: debiasing (allocation kept, naive norms), allocation (debiased norms with uniform shots), and pooled grouping (each task grouped and measured separately). The last ablation measures how much of the gain comes from shared measurements alone.

Why not just…?

Why not just use the plain sum of losses with hand-tuned weights? On the shared-circuit benchmarks, tuned static weights are the most likely competitor to match us, because a well-chosen constant can absorb a fixed scale gap. Static weights cannot follow gradient norms as they drift during training, which is what the trajectory comparisons in FAMO and DB-MTL show for classical tasks. Static weights also do nothing about allocation: the weak-signal task still receives too few shots. The baseline above charges the weight search to its shot budget, so the experiment settles the question directly. If the tuned weights match our method at equal total shots, we will report that the gain comes only from allocation.

Why not just use FAMO, which needs no per-task gradients at all? This is a real threat, and we treat it as one. Our argument against FAMO holds only where per-task gradients are cheap, that is, when tasks share a circuit and groups. FAMO also depends on how the energy offset is chosen, because it works with logarithms of losses. The regime-boundary experiments exist to find where FAMO wins. If FAMO matches us on concurrent-VQE Schwinger tasks, then the debiased-balancing half of our claim fails and only the allocation half survives. In that case we would pair FAMO's weights with our shot-allocation rule.

Why not just apply single-objective adaptive shot allocation, such as GradCoRe or active learning, to the combined loss? These methods minimize the variance of one scalar. A combined loss is dominated by the large-gradient task, so its variance is lowest when shots go to that task's groups. That is the starvation pattern carried over into measurement. Running Bayesian parameter-shift allocation on the scalarized loss, and reporting worst-task error rather than average error, will show whether this happens.

Why not just take more shots everywhere? Uniform scaling multiplies cost on every group, including groups that only inform tasks which are already well resolved. On hardware, gate noise also sets an error floor that extra shots cannot lower, as GALIC's analysis of noise in measurement circuits indicates. The uniform baseline at several budget levels shows the shots-to-accuracy curve directly.

Decisive Checks

Three outcomes would decide the proposal.

The first is a direct check of the debiasing argument. On the 4- and 8-eigenstate Schwinger tasks, DiBS-style aggregation with naive norms should lose fidelity on the highest excited state as shots per step fall, and the debiased version should not. If both degrade together, the bias argument is wrong in practice.

The second is shot efficiency. On H₂O with the penalty observable, the full method should reach chemical accuracy and near-zero constraint violation with fewer total shots than both tuned static weights and FAMO.

The third is the crossover. On separately prepared multi-state and multi-Hamiltonian tasks, the advantage should shrink or reverse in favor of FAMO. Observing that reversal would confirm that the gain comes from shared measurement, not from an added layer of tuning.