Skip to content

Menu

WorksPhysics and Astronomy

From optimization to construction: Expanding quantum measurement designs

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_pef4p2cm. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

Estimating molecular energies on quantum computers requires repeated measurements of many Pauli terms, making sampling a major resource cost. Measurement design chooses which compatible terms are measured together and allocates a finite shot budget among bases to minimize the variance of an energy estimator. We introduce variance-guided measurement group construction (VGMC), which reduces variance beyond optimization on existing measurement bases by changing which Hamiltonian terms share measurement shots. After including every Hamiltonian term measurable in each existing basis, we jointly optimize estimator coefficients and shot allocations to separate inefficient use of these measurements from limitations of their measurement combinations. We compare a candidate's benefit with the cost of withdrawing shots from existing bases, and use the resulting scores to guide greedy construction of qubit-wise commuting groups followed by joint re-optimization. With exact covariances, VGMC outperformed the state-of-the-art measurement design methods across the molecular benchmarks where it introduced additional measurement bases, achieving variance reductions of 18.19%-23.38%. The gains persisted with approximate covariances, and simulations with finite shots indicated lower estimated shot requirements near chemical accuracy. These results show that optimizing how measurements are combined can also guide which terms are measured together, offering a route to reducing the sampling overhead of variational quantum simulation while retaining local measurements on current and near-term devices.

Introduction

In the variational quantum eigensolver (VQE) for molecular electronic structure [1, 2], repeated energy estimates guide classical optimization of a trial state’s parameters [3, 4, 5, 6]. A fermion-to-qubit mapping expresses the Hamiltonian as a weighted sum of Pauli operators [7, 8], whose expectation values are estimated from repeated cycles of state preparation and measurement, or shots. The total time spent on state preparation, basis rotations and readout across the many shots required for a precise energy estimate can make energy measurement a practical bottleneck [9, 10, 11]. Reducing the variance of an energy estimator improves precision at a fixed shot budget or reduces the shots needed for a prescribed statistical precision [12]. The measurement design problem is therefore to choose measurement bases and allocate a finite shot budget among them so as to minimize the variance of an energy estimator.

Grouping compatible Pauli terms for simultaneous measurement was an early focus of measurement design for VQE [13]. A commonly used criterion for such compatibility is qubit-wise commutativity (QWC), which permits simultaneous measurement using only local basis rotations but restricts which terms can be grouped together. Relaxing this criterion to fully commuting (FC) allows more terms to share a measurement basis and can reduce the number of bases, but generally requires entangling basis changes that increase circuit depth and exposure to gate errors [14, 15]. Methods that account for gate errors and connectivity [16], limit diagonalization depth [17], or adapt diagonalization circuits to hardware connectivity [18] address this tradeoff. We therefore restrict the measurement design to QWC groups to retain local basis rotations. Within this class, randomized or derandomized designs select Pauli bases directly [19, 20, 21, 22], while grouping methods organize compatible Hamiltonian terms. Graph coloring seeks small group counts, and sorted insertion (SI) builds compatible groups in decreasing order of Hamiltonian coefficient magnitude. The selected groups also affect subsequent estimator optimization. SI incorporating covariance information produced initial disjoint groups that yielded lower estimator variances after iterative coefficient splitting (ICS) in molecular tests with FC measurements [23].

Overlapped grouping allows the same Pauli operator to be estimated from several measurement bases [24], and an overlapped extension of SI inserts previously assigned terms into other compatible groups. Each shared term then has several sample means available for estimating its expectation. Its fixed Hamiltonian coefficient can be split across those sample means, provided that the assigned coefficients sum to the original coefficient. These estimator coefficients determine how the measurements are combined while preserving an unbiased energy estimate.

Each group’s contribution to the estimator variance is the variance of its weighted sum of Pauli measurement results from a single shot, divided by its shot count. The estimator coefficients determine the variance of each weighted sum through both individual variances and covariances among the measured terms. Changing the coefficient split therefore changes the best shot allocation, while the best split depends on the precision supplied by each group’s shot count. Joint optimization minimizes variance over these coupled choices at a fixed total budget. For fixed coefficients, optimal shot allocation is proproportional to the standard deviations of these weighted sums. Coefficient splitting and ICS use this freedom to improve the estimator [25]. Post-hoc repacking makes further use of existing measurement results by including Hamiltonian terms measurable in the selected bases but omitted from the original groups [26]. Ad-hoc repacking prioritizes insertions using coefficient magnitudes and counts of the groups containing each term, with its result on strict variance reduction established under a model that assumes zero covariances [26].

Completing each selected basis with all measurable Hamiltonian terms and jointly optimizing coefficients and shots exhausts the estimation freedom on those bases. Additional bases can make other combinations measurable together, creating new options for coefficient assignment. Their value depends on the whole estimator because, at a fixed budget, shots assigned to a new basis are withdrawn from the existing ones. We therefore ask whether the optimized estimator can determine when transferring a small fraction of shots to a candidate basis would reduce variance. If so, this information could guide the construction of additional bases by identifying compatible term combinations that make more effective use of the shot budget.

To address this question, we develop variance-guided measurement group construction (VGMC) to connect estimator optimization with measurement group construction. Within multiresponse cc-optimal design, we eliminate estimator coefficients and optimize the shot fractions for the current groups. For a fixed positive-definite covariance model, the optimality conditions yield a candidate score. Comparing this score with the current objective value determines whether transferring shots from existing groups to the candidate can improve the current design. The score increments guide greedy QWC group construction, and joint reoptimization updates the estimator used in subsequent searches. Continuous optimization thus supplies information for choosing additional measurement combinations.

The molecular comparisons show variance reductions beyond the jointly optimized initial designs. Comparisons with random construction at matched addition counts support the value of selection guided by the estimator. The gains also persisted with approximate covariances from configuration interaction with singles and doubles (CISD) and with finite, integer shot allocations. These findings establish that an optimized design can supply guidance for improving the measurement combinations themselves, offering a route to reducing the sampling overhead of variational quantum algorithms while retaining local measurements.

Section II defines the estimation problem, and Section III develops coefficient assignment, shot allocation, and candidate scoring. Section IV presents group construction and its stopping conditions. Section V evaluates molecular performance, matched count controls, CISD-based design, and finite shot energy estimation. Section VI discusses the implications and remaining limitations.

Problem formulation

Measurement groups and estimators

We consider energy estimation at a fixed step of VQE. Independent preparations of a state ρ\rho of NqN_q qubits are used to estimate Eρ=Tr⁡(ρH)E_\rho=\operatorname{Tr}(\rho H) for the Hamiltonian

H=c0I+∑j=1NPcjPj.(1)H=c_0 I+\sum_{j=1}^{N_P}c_jP_j. \tag*{(1)}

After repeated operators have been combined, the PjP_j are distinct nonidentity Pauli operators with known nonzero real coefficients cjc_j, while the real identity coefficient c0c_0 requires no measurement. Here NPN_P is the number of retained terms, H,ρ,Pj∈C2Nq×2NqH,\rho,P_j\in\mathbb{C}^{2^{N_q}\times2^{N_q}}, and I=I2NqI=I_{2^{N_q}} is the identity on the qubit Hilbert space. Throughout, IdI_d denotes the d×dd\times d identity matrix and vectors are column vectors. The state is held fixed throughout the measurement design problem.

Although a local Pauli basis specifies an X, Y, or Z measurement on each qubit, current quantum processors typically provide native readout only in the computational (Z) basis, with X and Y measurements implemented by local basis rotations prior to readout. Each output bit is mapped to the eigenvalue of the selected Pauli observable, with 0 corresponding to +1 and 1 to −1, so one shot yields a vector of measured single-qubit Pauli eigenvalues in {±1}Nq\{\pm1\}^{N_q} [20]. The measurement outcome of a compatible Pauli operator is the product of these eigenvalues over its nonidentity factors. For each selected basis, we include every compatible Hamiltonian term in its group. The basis defines the measurement, and the group records the terms available for coefficient assignment. Let G={G1,…,GL}\mathcal{G}=\{G_1,\ldots,G_L\} denote the LL groups, with Gα⊆{1,…,NP}G_\alpha\subseteq\{1,\ldots,N_P\} for α=1,…,L\alpha=1,\ldots,L and every term covered at least once.

In a disjoint grouping, each term contributes through one measurement batch with coefficient cjc_j. Overlap allows its expectation to be estimated from several batches. Following coefficient splitting [25], we assign a real coefficient xαjx_{\alpha j} to operator PjP_j in each group GαG_\alpha with j∈Gαj\in G_\alpha. For the sample mean ρ^αj\hat{\rho}_{\alpha j} obtained from mα>0m_\alpha>0 shots, the estimator and coefficient condition are

E^=c0+∑α:mα>0∑j∈Gαxαjρ^αj,∑α:j∈Gαxαj=cj.(2)\hat{E}=c_0+\sum_{\alpha:m_\alpha>0}\sum_{j\in G_\alpha}x_{\alpha j}\hat{\rho}_{\alpha j},\qquad\sum_{\alpha:j\in G_\alpha}x_{\alpha j}=c_j. \tag*{(2)}

The coefficient condition preserves the Hamiltonian expectation for arbitrary Pauli expectations. A group receiving no shots has zero assigned coefficients. We optimize over this family of linear unbiased estimators formed from Hamiltonian terms.

Write c=(c1,…,cNP)T∈RNPc=(c_1,\ldots,c_{N_P})^T\in\mathbb{R}^{N_P} and let dα=∣Gα∣d_\alpha=|G_\alpha|. Collect each group’s coefficients into xα∈Rdαx_\alpha\in\mathbb{R}^{d_\alpha}, using a fixed ordering within each group for all its vectors and matrices. The stacked vector x=(x1T,…,xLT)T∈RNxx = (x_1^T,\ldots,x_L^T)^T \in\mathbb{R}^{N_x} has Nx=∑αdαN_x = \sum_\alpha d_\alpha entries. We use Sα∈{0,1}dα×NPS_\alpha\in\{0,1\}^{d_\alpha\times N_P} to select the entries indexed by GαG_\alpha from a vector whose components follow the ordering P1,…,PNPP_1,\ldots,P_{N_P}. The coefficient condition then becomes

∑αSαTxα=c.(3)\sum_\alpha S_\alpha^T x_\alpha= c. \tag*{(3)}

The transpose places the local coefficients in an NPN_P-dimensional vector whose entries follow the order P1,…,PNPP_1,\ldots,P_{N_P}, so Eq. (3) enforces the coefficient condition for every term.

Estimator variance and optimization

Within group GαG_\alpha, the covariance matrix Γαtrue∈Rdα×dα\Gamma_\alpha^{\mathrm{true}} \in\mathbb{R}^{d_\alpha\times d_\alpha} has entries (Γαtrue)ij=Tr⁡(ρPiPj)−Tr⁡(ρPi)Tr⁡(ρPj)(\Gamma_\alpha^{\mathrm{true}})_{ij} = \operatorname{Tr}(\rho P_iP_j) - \operatorname{Tr}(\rho P_i)\operatorname{Tr}(\rho P_j) for i,j∈Gαi,j \in G_\alpha, in the group’s fixed ordering. The variance per shot of the weighted outcome is xαTΓαtruexαx_\alpha^T\Gamma_\alpha^{\mathrm{true}}x_\alpha, and its sample mean has this variance divided by mαm_\alpha. Batches measured in different bases are independent even when their groups share an operator, because they use different state preparations.

For a total of MM shots with equal cost per shot, write aα=mα/Ma_\alpha= m_\alpha/M and collect these fractions into a=(a1,…,aL)T∈RLa = (a_1,\ldots,a_L)^T \in\mathbb{R}^L. The variance of the energy estimator is

Var⁡(E^)=1M∑α:aα>0xαTΓαtruexαaα.(4)\operatorname{Var}(\hat{E}) = \frac{1}{M}\sum_{\alpha:a_\alpha>0}\frac{x_\alpha^T\Gamma_\alpha^{\mathrm{true}}x_\alpha}{a_\alpha}. \tag*{(4)}

Coefficient assignment and shot allocation are therefore coupled. The coefficients determine each group’s variance, while its shot count determines the precision with which those coefficients contribute to the energy estimate. Covariances enter through products of the assigned coefficients, so their effect depends on both signs and magnitudes.

For measurement design, use fixed positive-definite matrices Γα∈Rdα×dα\Gamma_\alpha\in\mathbb{R}^{d_\alpha\times d_\alpha}, obtained from exact or approximate covariance information. We write Γα≻0\Gamma_\alpha\succ0 for positive definiteness and Γα⪰0\Gamma_\alpha\succeq0 for positive semidefiniteness. We relax the shot fractions to the closed simplex ΔL={a∈RL:aα≥0, ∑α=1Laα=1}\Delta_L = \{a \in\mathbb{R}^L : a_\alpha\ge0,\ \sum_{\alpha=1}^L a_\alpha= 1\}. When aα=0a_\alpha= 0, the contribution of group GαG_\alpha to the objective is zero if xα=0x_\alpha= 0 and infinite otherwise, as formalized in Appendix A 1. The joint optimization problem is

ΦG∗=min⁡a∈ΔL,∑αSαTxα=cΨ(x,a),Ψ(x,a)=∑α:aα>0xαTΓαxαaα.(5)\Phi_{\mathcal{G}}^* = \min_{\substack{a \in\Delta_L,\, \sum_\alpha S_\alpha^T x_\alpha= c}} \Psi(x,a), \qquad\Psi(x,a) = \sum_{\alpha:a_\alpha>0}\frac{x_\alpha^T\Gamma_\alpha x_\alpha}{a_\alpha}. \tag*{(5)}

The model predicts estimator variance Ψ(x,a)/M\Psi(x,a)/M. When its covariances match those of the measured state, Ψ(x,a)=MVar⁡(E^)\Psi(x,a) = M\operatorname{Var}(\hat{E}). Here ΦG∗\Phi_{\mathcal{G}}^* is the scalar minimum of Ψ\Psi over both coefficient assignments and shot fractions for the fixed group set G\mathcal{G}. We write (x∗,a∗)(x^*,a^*) for a minimizing pair. Holding the covariance model fixed while enlarging the group set isolates the improvement available from additional measurement choices after optimizing all coefficients and shot fractions.

Optimization and group evaluation

The joint problem in Eq. (5) of Section IIB couples the estimator coefficients xx and shot fractions aa for a fixed group set and covariance model. It is a special case of multipresponse cc-optimal design, which chooses measurements to minimize the variance of a specified linear combination of quantities estimated jointly [27]. Here the linear combination is the energy expectation, with coefficients cc. We derive two equivalent formulations by eliminating one set of variables at a time. Eliminating the shot fractions gives a second-order cone program (SOCP) in the coefficients. Eliminating the coefficients gives an optimization over shot fractions in which every allocation uses its optimal estimator. The derivative of the reduced allocation objective provides the scores used to evaluate additional measurement groups.

SOCP

A second-order cone program minimizes a linear objective subject to linear equalities and constraints that bound Euclidean norms of affine vector expressions by scalar affine expressions [28]. An affine expression is a linear expression plus a constant. For a positive integer dd, a scalar τ∈R\tau\in\mathbb{R}, and a column vector z∈Rdz \in\mathbb{R}^d, the standard second-order cone is

Qd+1={(τ,z)∈R×Rd:∥z∥2≤τ}.(6)\mathcal{Q}_{d+1} = \{(\tau,z) \in\mathbb{R} \times\mathbb{R}^d : \lVert z\rVert_2 \le\tau\}. \tag*{(6)}

Thus, a constraint of the form (τ,z)∈Qd+1(\tau,z) \in\mathcal{Q}_{d+1} bounds the Euclidean norm of a vector by a scalar and implies τ≥0\tau\ge0. Here ∥z∥2=(zTz)1/2\lVert z\rVert_2 = (z^Tz)^{1/2}. To put Eq. (5) into this form, we first optimize the shot fractions for each feasible coefficient assignment.

Let Γα1/2∈Rdα×dα\Gamma_\alpha^{1/2} \in\mathbb{R}^{d_\alpha\times d_\alpha} be the symmetric positive-definite square root of Γα\Gamma_\alpha. This matrix satisfies (Γα1/2)TΓα1/2=Γα(\Gamma_\alpha^{1/2})^T\Gamma_\alpha^{1/2} = \Gamma_\alpha. For coefficients satisfying ∑αSαTxα=c\sum_\alpha S_\alpha^T x_\alpha= c, define

rα(x)=xαTΓαxα=∥Γα1/2xα∥2,F(x)=∑αrα(x).(7)r_\alpha(x) = \sqrt{x_\alpha^T\Gamma_\alpha x_\alpha} = \lVert\Gamma_\alpha^{1/2}x_\alpha\rVert_2,\qquad F(x) = \sum_\alpha r_\alpha(x). \tag*{(7)}

Here rα(x)r_\alpha(x) is the standard deviation predicted by the covariance model for the weighted sum of Pauli measurement outcomes from one shot in group GαG_\alpha, with weights xαix_{\alpha i}. Since c≠0c \ne0, at least one group coefficient vector is nonzero, and positive definiteness ensures F(x)>0F(x) > 0. For any allocation compatible with these coefficients, the Cauchy–Schwarz inequality and ∑αaα=1\sum_{\alpha} a_{\alpha}=1 give

F(x)2=(∑α:aα>0rα(x)aαaα)2≤(∑α:aα>0rα(x)2aα)(∑α:aα>0aα)=Ψ(x,a).(8)F(x)^2=\left(\sum_{\alpha:a_{\alpha}>0}\frac{r_{\alpha}(x)}{\sqrt{a_{\alpha}}}\sqrt{a_{\alpha}}\right)^2 \leq\left(\sum_{\alpha:a_{\alpha}>0}\frac{r_{\alpha}(x)^2}{a_{\alpha}}\right)\left(\sum_{\alpha:a_{\alpha}>0}a_{\alpha}\right)=\Psi(x,a). \tag*{(8)}

Equality holds when the shot fractions are proportional to the group standard deviations:

aα⋆(x)=rα(x)F(x),Ψ(x,a⋆(x))=F(x)2.(9)a_{\alpha}^{\star}(x)=\frac{r_{\alpha}(x)}{F(x)},\qquad\Psi(x,a^{\star}(x))=F(x)^2. \tag*{(9)}

When rα(x)=0r_{\alpha}(x)=0, positive definiteness implies xα=0x_{\alpha}=0, so the zero fraction in Eq. (9) respects the condition in § 1.1 B.

Eliminating the shot fractions therefore leaves the minimization of F(x)2F(x)^2 over feasible coefficients. Since squaring preserves the ordering of nonnegative values, it suffices to solve

F⋆=min⁡∑αSαTxα=c∑α∥Γα1/2xα∥2,ΦG⋆=(F⋆)2.(10)F^{\star}=\min_{\sum_{\alpha}S_{\alpha}^{T}x_{\alpha}=c}\sum_{\alpha}\left\|\Gamma_{\alpha}^{1/2}x_{\alpha}\right\|_{2},\qquad\Phi_{\mathrm{G}}^{\star}=(F^{\star})^2. \tag*{(10)}

Introduce one scalar τα∈R\tau_{\alpha}\in\mathbb{R} to bound each group norm and collect them into τ=(τ1,…,τL)T∈RL\tau=(\tau_{1},\ldots,\tau_{L})^{T}\in\mathbb{R}^{L}. The SOCP is

F⋆=min⁡x,τ∑α=1Lταsubject to∑α=1LSαTxα=c,∥Γα1/2xα∥2≤τα, ∀α.(11)\begin{aligned} F^{\star}&=\min_{x,\tau}\sum_{\alpha=1}^{L}\tau_{\alpha}\\ \text{subject to}\quad&\sum_{\alpha=1}^{L}S_{\alpha}^{T}x_{\alpha}=c,\\ &\left\|\Gamma_{\alpha}^{1/2}x_{\alpha}\right\|_{2}\leq\tau_{\alpha},\ \forall\alpha. \tag*{(11)} \end{aligned}

Each norm constraint places (τα,Γα1/2xα)∈Rdα+1(\tau_{\alpha},\Gamma_{\alpha}^{1/2}x_{\alpha})\in\mathbb{R}^{d_{\alpha+1}} in Qdα+1Q_{d_{\alpha+1}}. At an optimum, τα=∥Γα1/2xα∥2\tau_{\alpha}=\left\|\Gamma_{\alpha}^{1/2}x_{\alpha}\right\|_{2} for every group, because any larger value could be reduced without changing the coefficients. An optimal solution (x⋆,τ⋆)(x^{\star},\tau^{\star}) therefore recovers the shot fractions as

aα⋆=τα⋆∑βτβ⋆=∥Γα1/2xα⋆∥2F⋆.(12)a_{\alpha}^{\star}=\frac{\tau_{\alpha}^{\star}}{\sum_{\beta}\tau_{\beta}^{\star}}=\frac{\left\|\Gamma_{\alpha}^{1/2}x_{\alpha}^{\star}\right\|_{2}}{F^{\star}}. \tag*{(12)}

The optimal objective value of SOCP F⋆F^{\star} is the square root of the optimal model variance coefficient. For a total budget of MM shots, the minimum variance predicted by the model is (F⋆)2/M(F^{\star})^2/M. Thus the SOCP solves the joint problem in § 1.1 B under its continuous allocation assumption. Appendix A 2 proves that an optimum exists and gives the corresponding dual problem.

Reduction to an allocation problem

We now eliminate the estimator coefficients from Eq. (5) while retaining the shot fractions as the decision variables. Fix an allocation a∈ΔLa\in\Delta_{L} such that every retained Pauli operator belongs to at least one group with aα>0a_{\alpha}>0. Let A+(a)={α∈{1,…,L}:aα>0}A_{+}(a)=\{\alpha\in\{1,\ldots,L\}:a_{\alpha}>0\} index the groups receiving shots. The coefficient problem at this allocation is

Φ(a)=min⁡{xα}α∈A+(a)∑α∈A+(a)xαTΓαxαaα\Phi(a)=\min_{\{x_{\alpha}\}_{\alpha\in A_{+}(a)}}\sum_{\alpha\in A_{+}(a)}\frac{x_{\alpha}^{T}\Gamma_{\alpha}x_{\alpha}}{a_{\alpha}}

subject to

∑α∈A+(a)SαTxα=c.(13)\sum_{\alpha\in A_{+}(a)}S_{\alpha}^{T}x_{\alpha}=c. \tag*{(13)}

with xα=0x_{\alpha}=0 for every group outside A+(a)A_{+}(a). We write ΦG(a)=Φ(a)\Phi_{\mathrm{G}}(a)=\Phi(a) when the group set needs to be explicit.

Introduce the Lagrange multiplier vector μ∈RNP\mu\in\mathbb{R}^{N_{P}}, with one entry for each unbiasedness equality in Eq. (3). Scaling the objective by 1/21/2 simplifies differentiation without changing the minimizing coefficients, giving the Lagrangian

La(x,μ)=12∑α∈A+(a)xαTΓαxαaα−μT(∑α∈A+(a)SαTxα−c).(14)\mathcal{L}_{a}(x,\mu)=\frac{1}{2}\sum_{\alpha\in A_{+}(a)}\frac{x_{\alpha}^{T}\Gamma_{\alpha}x_{\alpha}}{a_{\alpha}}-\mu^{T}\left(\sum_{\alpha\in A_{+}(a)}S_{\alpha}^{T}x_{\alpha}-c\right). \tag*{(14)}

For this quadratic problem with linear equality constraints, the Karush–Kuhn–Tucker (KKT) conditions require the coefficient derivatives of the Lagrangian to vanish and the unbiasedness constraints to hold [29]:

∇xαLa=Γαxαaα−Sαμ=0,α∈A+(a),(15)\nabla_{x_{\alpha}}\mathcal{L}_{a}=\frac{\Gamma_{\alpha}x_{\alpha}}{a_{\alpha}}-S_{\alpha}\mu=0,\quad\alpha\in A_{+}(a), \tag*{(15)}
∑α∈A+(a)SαTxα=c.\sum_{\alpha\in A_{+}(a)}S_{\alpha}^{T}x_{\alpha}=c.

The first row is a vector equation in Rdα\mathbb{R}^{d_{\alpha}} for each measured group, and the second is a vector equation in RNP\mathbb{R}^{N_{P}}. The fractions aαa_{\alpha} are fixed in this subproblem, so their nonnegativity constraints introduce no additional KKT conditions here. The first row gives xα⋆(a)=aαΓα−1Sαμx_{\alpha}^{\star}(a)=a_{\alpha}\Gamma_{\alpha}^{-1}S_{\alpha}\mu. Substituting this expression into the coefficient constraint gives

c=∑α∈A+(a)SαTxα⋆(a)=(∑α∈A+(a)aαSαTΓα−1Sα)μ.(16)c=\sum_{\alpha\in A_{+}(a)}S_{\alpha}^{T}x_{\alpha}^{\star}(a)=\left(\sum_{\alpha\in A_{+}(a)}a_{\alpha}S_{\alpha}^{T}\Gamma_{\alpha}^{-1}S_{\alpha}\right)\mu. \tag*{(16)}

This identity leads to the embedded group precision matrices Wα∈RNP×NPW_{\alpha}\in\mathbb{R}^{N_{P}\times N_{P}} and their sum weighted by the allocation fractions K(a)∈RNP×NPK(a)\in\mathbb{R}^{N_{P}\times N_{P}},

Wα=SαTΓα−1Sα,K(a)=∑αaαWα.(17)W_{\alpha}=S_{\alpha}^{T}\Gamma_{\alpha}^{-1}S_{\alpha},\qquad K(a)=\sum_{\alpha}a_{\alpha}W_{\alpha}. \tag*{(17)}

In the eigenbasis of Γα\Gamma_{\alpha}, the inverse covariance weights each direction by the reciprocal of its model variance. The factor aαa_{\alpha} accounts for the sampling effort assigned to the group. The selection matrices place the entries of Γα−1\Gamma_{\alpha}^{-1} in the rows and columns indexed by GαG_{\alpha}, with zeros elsewhere in WαW_{\alpha}. Thus K(a)K(a) combines the inverse covariance matrices of all groups according to their shot fractions.

Every retained Pauli operator belongs to at least one group receiving shots, and each Γα\Gamma_\alpha is positive definite. These conditions make K(a)K(a) positive definite, as shown in Appendix A. Solving the KKT system therefore reduces to

K(a)μ=c,xα⋆(a)=aαΓα−1Sαμ.(18)K(a)\mu= c,\qquad x_\alpha^\star(a)=a_\alpha\Gamma_\alpha^{-1}S_\alpha\mu. \tag*{(18)}

This formula also assigns zero coefficients to unused groups. The multiplier depends on the allocation through μ=μ(a)=K(a)−1c∈RNP\mu=\mu(a)=K(a)^{-1}c\in\mathbb{R}^{N_P}. The objective in (13) is strictly convex in the coefficients of groups receiving shots, so the KKT system gives the unique minimizing coefficient assignment at the fixed allocation.

Substitution into the unscaled objective in Section II B now gives

Φ(a)=Ψ(x⋆(a),a)=∑α∈A+(a)aαμTWαμ=μTK(a)μ=cTμ=cTK(a)−1c.(19)\begin{aligned} \Phi(a)&=\Psi(x^\star(a),a)=\sum_{\alpha\in\mathcal{A}_+(a)}a_\alpha\mu^T W_\alpha\mu\\ &=\mu^T K(a)\mu=c^T\mu=c^T K(a)^{-1}c. \tag*{(19)} \end{aligned}

(19) is the objective value after solving the coefficient KKT system. Minimizing this value over the shot fractions gives the reduced problem

Φg⋆=min⁡a∈ΔLΦ(a),Φ(a)={cTK(a)−1c,K(a)≻0,+∞,K(a) singular.(20)\Phi_g^\star=\min_{a\in\Delta_L}\Phi(a),\qquad \Phi(a)= \begin{cases} c^T K(a)^{-1}c, & K(a)\succ0,\\ +\infty, & K(a)\text{ singular}. \end{cases} \tag*{(20)}

Because SαS_\alpha selects the entries belonging to group α\alpha, a singular K(a)K(a) means that at least one Pauli operator with cj≠0c_j\ne0 belongs to no group receiving shots. Such an allocation cannot satisfy the coefficient constraint, which explains the infinite objective value.

To establish convexity, introduce an auxiliary vector ξ∈RNP\xi\in\mathbb{R}^{N_P}, with one component for each coefficient equality. The reduced objective has the representation

Φ(a)=sup⁡ξ∈RNP(2cTξ−∑αaαξTWαξ).(21)\Phi(a)=\sup_{\xi\in\mathbb{R}^{N_P}}\left(2c^T\xi-\sum_\alpha a_\alpha\xi^T W_\alpha\xi\right). \tag*{(21)}

For K(a)≻0K(a)\succ0, completing the square gives the maximum at ξ=K(a)−1c=μ\xi=K(a)^{-1}c=\mu. For a singular K(a)K(a), some Pauli operator is unmeasured, so the term 2cjξj2c_j\xi_j is unbounded above without a corresponding quadratic term. For each fixed ξ\xi, the expression in parentheses is linear in aa. Taking its supremum therefore gives a convex objective on ΔL\Delta_L. This gives a convex optimization over allocations, although the optimal allocation need not be unique. Both eliminations preserve the joint optimum, with

min⁡a∈ΔLΦ(a)=min⁡∑αSαTxα=cF(x)2=(F⋆)2.(22)\min_{a\in\Delta_L}\Phi(a)=\min_{\sum_\alpha S_\alpha^T x_\alpha=c}F(x)^2=(F^\star)^2. \tag*{(22)}

Let πj(a)=∑α:j∈Gαaα∈[0,1]\pi_j(a)=\sum_{\alpha:j\in G_\alpha}a_\alpha\in[0,1] denote the fraction of shots measuring term jj. For identity group covariances Γα=Idα\Gamma_\alpha=I_{d_\alpha}, μj=cj/πj(a)\mu_j=c_j/\pi_j(a) and xαj⋆=aαcj/πj(a)x_{\alpha j}^\star=a_\alpha c_j/\pi_j(a), so the contribution of each batch is proportional to its number of samples of that operator.

with correlated outcomes, the system K(a)μ=cK(a)\mu=c also accounts for covariance contributions across jointly measured terms. The multiplier vector μ\mu from the coefficient KKT system determines the group scores below.

Optimal shot allocation

The allocation objective in (20) lets us compare the variance changes produced by assigning shots to different groups. Using ∂K/∂aα=Wα\partial K/\partial a_\alpha=W_\alpha and the inverse derivative identity dK−1=−K−1(dK)K−1dK^{-1}=-K^{-1}(dK)K^{-1} gives

∂Φ∂aα=−cTK(a)−1WαK(a)−1c=−μTWαμ=−ωα(a).(23)\frac{\partial\Phi}{\partial a_\alpha}=-c^T K(a)^{-1}W_\alpha K(a)^{-1}c=-\mu^T W_\alpha\mu=-\omega_\alpha(a). \tag*{(23)}

Here ωα(a)=μTWαμ≥0\omega_\alpha(a)=\mu^T W_\alpha\mu\ge0 is the scalar group score. The derivative already accounts for the optimal coefficient assignment at each allocation. It measures the decrease in Φ\Phi when one fraction increases with the others held fixed. A feasible change must preserve the total shot budget, so shots must instead be transferred between groups. Moving a small fraction from a used group with a lower score to a group with a higher score decreases the model variance to first order.

The mean score weighted by the shot fractions is Φ(a)\Phi(a). For optimization over aa, the KKT conditions include the nonnegativity and normalization of the shot fractions. After eliminating their Lagrange multipliers, these conditions state that every group receiving shots has score Φg⋆\Phi_g^\star, while every group with zero shots has no larger score:

{ωα(a⋆)=Φg⋆if aα⋆>0,ωα(a⋆)≤Φg⋆if aα⋆=0.(24)\begin{cases} \omega_\alpha(a^\star)=\Phi_g^\star& \text{if }a_\alpha^\star>0,\\ \omega_\alpha(a^\star)\le\Phi_g^\star& \text{if }a_\alpha^\star=0. \tag*{(24)} \end{cases}

These conditions equalize the first-order variance benefit of shots among used groups, without requiring equal shot counts. A group can become unused when other groups supply its contribution more effectively. Convexity makes (24) sufficient for optimality on the specified group set. Appendix A3 derives the KKT conditions for the shot fractions.

Algorithm 1 applies a Frank–Wolfe update to the reduced allocation problem. Starting from an allocation in which every Pauli operator belongs to a group receiving shots, it transfers a fraction of the current allocation to a group with the highest score. For the selected group index q∈{1,…,L}q\in\{1,\ldots,L\}, let eq∈RLe_q\in\mathbb{R}^L be the qqth standard basis vector: (eq)α=1(e_q)_\alpha=1 if α=q\alpha=q and zero otherwise. It is the vertex of ΔL\Delta_L that assigns all shots to group qq. The step size γ∈[0,1]\gamma\in[0,1] minimizes Φ((1−γ)a+γeq)\Phi((1-\gamma)a+\gamma e_q) by varying this single parameter, a procedure called a line search. The trial parameter is denoted by η\eta in Algorithm 1, and the coefficients are optimal at each trial allocation. Algorithm 1 uses the prescribed dimensionless relative tolerance ϵrel=10−4\epsilon_{\rm rel}=10^{-4} in its stopping test.

Algorithm 1 Coefficient and shot optimization

Input: Hamiltonian coefficients $c$, QWC groups $\mathcal{G} = \{G_\alpha\}_{\alpha=1}^{L}$, positive-definite covariance matrices $\{\Gamma_\alpha\}$, initial allocation $a^{(0)} \in \Delta_L$ with $K(a^{(0)}) \succ 0$

Output: Allocation $a$, coefficients $x$, vector $\mu$ satisfying $K(a)\mu = c$, model variance coefficient $\Phi$

1: $W_\alpha \leftarrow S_\alpha^{T}\Gamma_\alpha^{-1}S_\alpha \quad (\alpha = 1,\ldots,L)$
2: $a \leftarrow a^{(0)}$
3: **loop**
4: $K \leftarrow \sum_{\alpha=1}^{L}a_\alpha W_\alpha$
5: Solve $K\mu = c$ and set $\Phi \leftarrow c^{T}\mu$
6: Choose $q \in \arg\max_{\alpha\in\{1,\ldots,L\}}\mu^{T}W_\alpha\mu$
7: **if** $\mu^{T}W_q\mu \leq (1+\varepsilon_{\mathrm{rel}})\Phi$ **then**
8:     **break**
9: **end if**
10: Choose $\gamma \in \arg\min_{\eta\in[0,1]}\Phi((1-\eta)a+\eta e_q)$
11: $a \leftarrow (1-\gamma)a+\gamma e_q$
12: **end loop**
13: $x_\alpha \leftarrow a_\alpha\Gamma_\alpha^{-1}S_\alpha\mu \quad (\alpha=1,\ldots,L)$
14: **return** $(a,x,\mu,\Phi)$

For an initial measurement group set, the underlying Frank–Wolfe iteration in Algorithm 1 attains an O(1/t)O(1/t) objective error bound under exact coefficient recovery and line minimization. Appendix B 1 establishes the required curvature bound by showing that K(a)K(a) remains uniformly positive definite along the iterates. Convexity also gives 0≤Φ(a)−ΦG⋆≤g(a)0 \leq\Phi(a)-\Phi_{\mathcal{G}}^{\star} \leq g(a), where g(a)=max⁡αωα(a)−Φ(a)g(a)=\max_\alpha\omega_\alpha(a)-\Phi(a). With exact coefficient recovery, this gap also assesses allocations returned by other solvers. Numerical calculations used L-BFGS-B [30] on the parameterized allocation objective. This quasi-Newton method approximates curvature from changes in the iterates and gradients, with coefficients recovered through Eq. (18) at each evaluation. The original allocation variables were assessed using the primal–dual gap and the feasibility and residual checks specified in Appendix C 2.

Scoring candidate groups

Let G⊆{1,…,NP}\mathcal{G}\subseteq\{1,\ldots,N_P\} be a candidate measurement group that is not in the current set G\mathcal{G}. Define its selection matrix SG∈{0,1}∣G∣×NPS_G\in\{0,1\}^{|G|\times N_P} and positive-definite model covariance ΓG∈R∣G∣×∣G∣\Gamma_G\in\mathbb{R}^{|G|\times|G|} as for the existing groups. The vector μG=SGμ∈R∣G∣\mu_G=S_G\mu\in\mathbb{R}^{|G|} selects the entries of the current multiplier vector corresponding to the candidate’s Pauli operators. The scalar candidate score is

ωG(a)=μGTΓG−1μG.(25)\omega_G(a)=\mu_G^{T}\Gamma_G^{-1}\mu_G. \tag*{(25)}

We also write WG=SGTΓG−1SG∈RNP×NPW_G=S_G^{T}\Gamma_G^{-1}S_G\in\mathbb{R}^{N_P\times N_P} for the corresponding matrix with rows and columns indexed by all NPN_P Pauli operators.

For identity covariances, ωG(a)=∑j∈Gcj2/πj(a)2\omega_G(a)=\sum_{j\in G}c_j^2/\pi_j(a)^2. At equal coefficient magnitudes, a less frequently measured term therefore contributes more to the score. With correlated outcomes, ΓG−1\Gamma_G^{-1} also accounts for how the candidate’s outcomes can be combined. The score changes when reoptimization changes μ\mu, even though the Hamiltonian and covariance model remain fixed.

For the enlarged group set G∪{G}\mathcal{G}\cup\{G\}, let ΦG∪{G}\Phi_{\mathcal{G}\cup\{G\}} denote the reduced objective in Eq. (20). Write the old allocation in this set as a~=(aT,0)T∈RL+1\tilde{a}=(a^{T},0)^{T}\in\mathbb{R}^{L+1} and let eG=eL+1∈RL+1e_G=e_{L+1}\in\mathbb{R}^{L+1} have entry one in the new group’s position and zeros elsewhere. Here the standard basis vector belongs to the enlarged allocation space, whose last coordinate represents GG. Assigning a fraction γ∈[0,1]\gamma\in[0,1] to the candidate gives (1−γ)a~+γeG∈ΔL+1(1-\gamma)\tilde{a}+\gamma e_G\in\Delta_{L+1}. This transfer preserves the total shot budget and has initial derivative

dΦG∪{G}((1−γ)a~+γeG)dγ∣γ=0+=Φ(a)−ωG(a).(26)\left.\frac{d\Phi_{\mathcal{G}\cup\{G\}}\left((1-\gamma)\tilde{a}+\gamma e_G\right)}{d\gamma}\right|_{\gamma=0^{+}} =\Phi(a)-\omega_G(a). \tag*{(26)}

The term Φ(a)\Phi(a) is the first-order cost of reducing measurements in the old groups, and ωG(a)\omega_G(a) is the candidate’s first-order benefit. Coefficients are reassigned optimally as the allocation changes.

At an exact optimum of the old set of groups, ωG(a⋆)>ΦG⋆\omega_G(a^\star)>\Phi_{\mathcal{G}}^\star guarantees a variance decrease for a sufficiently small transfer. If the inequality fails, the old allocation satisfies all optimality conditions for the enlarged problem, so adding this candidate cannot lower its optimum. Appendix A proves the criterion and its extension to a finite candidate set.

Including all Hamiltonian terms measurable in the existing bases does not exhaust the possible combinations supplied by other bases. A new basis can therefore satisfy the improvement criterion even after complete inclusion of compatible terms and joint estimator optimization on the old set. As shots move to the candidate, μ\mu and the marginal scores change. We therefore use the current scores to rank candidate groups and reoptimize the estimator to determine the reduction achieved by an accepted addition.

Construction of QWC measurement groups

We use the score in Eq. (25) to construct additional QWC groups from the current optimized estimator. Starting from a single Pauli term, we add compatible terms according to their score increments. Each non-identity factor fixes a local measurement axis, and subsequent additions must respect the axes already fixed. Starting from different terms can produce different compatible combinations, and reoptimization after each accepted group updates the estimator used for the next construction step.

Growing candidate groups

The value of adding a group depends on the group already constructed. With diagonal covariances, its score contribution is independent of the other members. With correlated measurement results, even a term with a small score when measured alone can have a large increment because of its covariances with those members. We therefore evaluate each compatible addition relative to the group constructed so far. All scores in this subsection use the current optimized allocation, and its multiplier vector μ\mu is held fixed while a candidate is constructed.

Let GG be the group constructed so far and i∉Gi \notin G the index of a Pauli operator compatible with every operator in GG. The vector u∈R∣G∣u \in\mathbb{R}^{|G|} contains the model covariances between the outcome of PiP_i and the outcomes of the operators in GG, in the ordering used for ΓG\Gamma_G. The scalar Γii\Gamma_{ii} is the model variance of the PiP_i outcome. We require the covariance assigned to a given pair of Pauli outcomes to remain unchanged when other terms are added to or removed from a group. Thus the enlarged covariance matrix ΓG∪{i}∈R(∣G∣+1)×(∣G∣+1)\Gamma_{G\cup\{i\}} \in\mathbb{R}^{(|G|+1)\times(|G|+1)} contains ΓG\Gamma_G as the submatrix for the original terms. The covariance model remains fixed during construction, and all group covariance matrices are positive definite.

For outcomes with their means subtracted, ΓG−1u∈R∣G∣\Gamma_G^{-1}u \in\mathbb{R}^{|G|} gives the coefficients for linearly predicting the outcome of PiP_i from the outcomes in GG. These coefficients minimize the mean squared prediction error under the covariance model. The residual, defined as that outcome minus its linear prediction, has variance Γii−uTΓG−1u\Gamma_{ii}-u^{T}\Gamma_G^{-1}u. Let μi\mu_i denote the entry of μ\mu associated with PiP_i. Applying the block inverse identity to the enlarged covariance matrix gives the change in group score,

Δ(i∣G)=ωG∪{i}−ωG=(μi−uTΓG−1μG)2Γii−uTΓG−1u≥0.(27)\Delta(i\mid G)=\omega_{G\cup\{i\}}-\omega_G=\frac{\left(\mu_i-u^{T}\Gamma_G^{-1}\mu_G\right)^2}{\Gamma_{ii}-u^{T}\Gamma_G^{-1}u}\geq0. \tag*{(27)}

The numerator applies the same linear subtraction to the entries of μ\mu, and the denominator is strictly positive under the covariance assumptions. A large increment requires a large squared residual component of μ\mu relative to the residual variance. A small denominator alone is insufficient because the covariances between PiP_i and the terms in GG affect both quantities. Interpreting the denominator as a conditional variance requires additional assumptions.

At fixed μ\mu, we repeatedly add the compatible term with the largest increment until no further term can be included. Since ωG\omega_G is common to all compatible additions at a given step, this rule also maximizes the score of the enlarged group at that step. We retain additions with zero increments so that the resulting group is maximal. No further retained Pauli operator can then be included while preserving QWC. Any unspecified local axes can then be assigned to complete a measurement basis. No omitted Hamiltonian term is measurable in that basis, since such a term would already have been compatible with the group. Choosing the largest current increment can exclude terms belonging to another useful group, so this rule need not construct the group with the largest possible score.

Algorithm 2 Variance guided measurement group
construction (VGMC)

Input: Hamiltonian H; covariance model {Γ_G}; initial QWC
groups G_0; addition budget B

Output: QWC groups G; shot fractions a; estimator coeffi-
cients x; variance coefficients Φ

1: G ← G_0
2: (a, x, μ, Φ) ← Optimize(G, 1_{L_0}/L_0, ε_rel) ▷ Algorithm 1
3: for t = 1, …, B do
4:     For each j ∈ [N_P], grow G_j from {j} by repeatedly
       adding a term maximizing Δ(i | G_j) over I(G_j) until
       I(G_j) = ∅ ▷ Eq. (27)
5:     C ← {G_j : j ∈ [N_P]} \ G
6:     if C = ∅ then break
7:     Choose G* ∈ arg max_{G∈C} ω_G ▷ Eq. (25)
8:     if ω_{G*} ≤ (1 + ε_adm) Φ then break ▷ Eq. (26)
9:     G ← G ∪ {G*}
10:    (a, x, μ, Φ) ← Optimize(G, (a^T, 0)^T, ε_rel)
11: end
12: return (G, a, x, Φ)

Expansion of the group set

We initialize the design with overlapped SI, include every Hamiltonian term measurable in its selected bases, and merge groups with identical Hamiltonian term index sets. We denote this initial group set by G0\mathcal{G}_0 and jointly optimize its estimator coefficients and shot fractions. Let μ0∈RNP\mu_0 \in\mathbb{R}^{N_P} be the multiplier vector for this optimized initial design. With exact optimization, this baseline already incorporates the gains obtainable solely by including omitted compatible terms or reallocating coefficients and shots within the original bases.

At each expansion step, we use the current optimized μ\mu to construct a maximal QWC group from every Hamiltonian term. After removing duplicates and groups already present, we select a candidate with the largest score. At an exact optimum of the current design, a score exceeding ΦG∗\Phi_{\mathcal{G}}^* guarantees a strict decrease in the optimum after adding the candidate and reoptimizing, by (26). If no candidate exceeds this threshold, construction stops for the generated candidate set.

Algorithm 2 allows at most BB accepted additions, where BB is a nonnegative integer. The budget counts accepted groups even if reoptimization later assigns them zero shots. Write [NP]={1,…,NP}[N_P]=\{1,\ldots,N_P\} and let I(G)={i∈[NP]∖G:G∪{i} is QWC}\mathcal{I}(G)=\{i\in[N_P]\setminus G:G\cup\{i\}\text{ is QWC}\} list the terms that can be added while preserving QWC. For candidates G(j)G^{(j)} constructed from each PjP_j, the set C={G(j):j∈[NP]}∖G\mathcal{C}=\{G^{(j)}:j\in[N_P]\}\setminus\mathcal{G} contains the distinct groups not already included.

Let L0=∣G0∣L_0=|\mathcal{G}_0| and let 1L0∈RL0\mathbf{1}_{L_0}\in\mathbb{R}^{L_0} have every entry equal to one. The initial allocation 1L0/L0\mathbf{1}_{L_0}/L_0 assigns the same shot fraction to each initial group. When a group is added to a set of LL groups, the column vector (aT,0)T∈RL+1(a^{T},0)^{T}\in\mathbb{R}^{L+1} retains the old fractions and assigns zero to the new group as a starting point for re-optimization. The old groups still measure every retained Pauli operator, so this starting allocation remains feasible. The dimensions of the allocation and coefficient vectors change with the group set. Algorithm 2 passes the relative tolerance εrel\varepsilon_{\mathrm{rel}} to each allocation solve. A candidate is admitted when ωG>(1+εadm)Φ\omega_G > (1+\varepsilon_{\mathrm{adm}})\Phi, where εadm=10−6\varepsilon_{\mathrm{adm}} = 10^{-6} is the numerical comparison margin.

The numerical calculations used batches to distribute the reoptimization cost across several additions. A batch keeps the current μ\mu fixed while seeds are processed in waves, deduplicates the resulting groups, and selects the candidates with the highest scores above this threshold. Scanning terminates once the batch reaches capacity with a sufficient number of candidates or once all seeds have been processed. The coefficients and shot fractions are then reoptimized on the enlarged group set before the next search.

Quantifying improvement and assessing optimality

Let Gt\mathcal{G}_t be the group set after tt accepted additions and let Gtnew\mathcal{G}^{\mathrm{new}}_t be the group accepted at step t≥1t \ge1. The dimensionless relative decrease in the optimized variance coefficient is

Dt=1−ΦGt∗ΦGt−1∗,Gt=Gt−1∪{Gtnew}.(28)D_t = 1 - \frac{\Phi^{*}_{\mathcal{G}_t}}{\Phi^{*}_{\mathcal{G}_{t-1}}}, \qquad\mathcal{G}_t = \mathcal{G}_{t-1} \cup\{\mathcal{G}^{\mathrm{new}}_t\}. \tag*{(28)}

Both optima use the same covariance model. When that model matches the measured state, DtD_t is also the relative reduction in estimator variance at a fixed shot budget under continuous allocation. With approximate covariances, it measures the reduction predicted by the model. The variance on the measured state must be evaluated separately. Reoptimization may assign zero shots to previously used groups, so the total number of available groups and the number of groups that receive shots are distinct quantities.

With exact coefficient and shot optimization, failure to find a candidate with score above ΦG∗\Phi^{*}_{\mathcal{G}} establishes optimality over the current group set together with the candidates generated in that round. It does not establish optimality over all QWC groups, because the construction rule need not generate every improving group. If the addition budget is exhausted, construction stops without testing whether further candidates improve the design. If no group is accepted, the optimized initial estimator remains the final design and the additional variance reduction is zero.

Computational cost

We count the dense linear algebra operations in VGMC with covariance entries and QWC compatibility available. Let dmax⁡≤NPd_{\max} \le N_P be the largest number of terms in any generated or retained group, and let Lmax⁡=L0+BL_{\max} = L_0 + B bound the number of retained groups. The current implementation evaluates each extension of a group containing kk terms by factorizing its k×kk \times k covariance matrix, at a cost of O(k3)O(k^3). Scanning at most NPN_P extensions at each growth step gives O(NPdmax⁡4)O(N_P d_{\max}^{4}) per seed and O(NP2dmax⁡4)O(N_P^2 d_{\max}^{4}) per complete construction round.

Let EtotE_{\mathrm{tot}} be the total number of allocation evaluations across the initial optimization and all reoptimizations, including trials during line searches and final optimality checks. Preparing the group covariance factors and inverse blocks costs O(Lmax⁡dmax⁡3)O(L_{\max}d_{\max}^{3}) per optimization call, and these matrices are reused within that call. Each allocation evaluation assembles K(a)K(a), solves K(a)μ=cK(a)\mu= c, and scores all retained groups at a cost of O(NP3+Lmax⁡dmax⁡2)O(N_P^3 + L_{\max}d_{\max}^{2}). Final coefficient recovery costs O(Lmax⁡dmax⁡2)O(L_{\max}d_{\max}^{2}) and is covered by the same bound. Algorithm 2 performs at most BB construction rounds and B+1B+1 optimization calls. Combining candidate construction, matrix preparation, and allocation optimization gives the total dense arithmetic cost O(BNP2dmax⁡4+(B+1)Lmax⁡dmax⁡3+Etot(NP3+Lmax⁡dmax⁡2))O\left(BN_P^2d_{\max}^{4} + (B+1)L_{\max}d_{\max}^{3} + E_{\mathrm{tot}}\left(N_P^3 + L_{\max}d_{\max}^{2}\right)\right).

Experiments

We evaluate whether group construction reduces variance in energy estimation beyond joint optimization on the initial measurement bases. Molecular comparisons tested this question with exact and approximate covariance information. Random construction and growth ablations examined the contribution of candidate selection, and simulations with finite shot budgets tested the resulting designs near chemical accuracy.

Molecular systems and evaluation

We consider H2_2, LiH, BeH2_2, H2_2O, and NH3_3 in the complete STO-3G orbital spaces with the Bravyi–Kitaev mapping. The H–H, Li–H, Be–H, O–H and N–H bond lengths are all 1 Å. BeH2_2 is linear. The H–O–H and H–N–H bond angles in H2_2O and NH3_3 are 107.6° and 107°, respectively [25]. tbl:I lists the electron counts (NeN_e), the sizes of the qubit Hamiltonians (NqN_q the number of qubits and NPN_P the number of Pauli terms) and initial group sets (L0L_0). For each molecule, the reference state had the lowest energy among states with NeN_e electrons and equal alpha and beta populations. CISD supplies an approximate covariance model for designing the measurements, with the resulting estimator evaluated on the reference state under either model. We evaluate designs by the reference state variance coefficient V=Var⁡(E^)V = \operatorname{Var}(\hat{E}) in Hartree2^2. Appendix C1 specifies which spin orbitals are occupied in the reference determinant used to construct the CISD subspace.

Using the conic formulation, the SOCP baseline jointly optimized coefficients and shot fractions on the completed initial bases obtained by overlapped SI. VGMC expanded that design and reoptimized both variables.

SI and largest-first graph coloring (LF) supplied disjoint partitions and allocated shots in proportion to their group standard deviations under the chosen design covariance source. ICS performed five updates of the coefficients and shot allocations on overlapping groups using the Tequila implementation [31]. Overlapped grouping measurement (OGM) estimates each Pauli expectation value by averaging the outcomes recorded for that operator across overlapping QWC groups. Its group construction and shot allocation depend solely on the Hamiltonian terms and coefficients. We therefore used the same OGM design in the exact and CISD covariance comparisons.

With CISD covariances, SOCP yielded higher variances than ICS for BeH2_2 and NH3_3, suggesting that covariance errors can outweigh the modest gains from more complete optimization of coefficients and shot fractions on the initial groups. VGMC uses the same covariance-dependent optimization and also yields higher variances with CISD than with exact covariances. Its advantage over both ICS and SOCP nevertheless persists in all four systems where groups are added, indicating that the larger gains from additional measurement combinations outweigh the loss associated with approximate covariance information in these benchmarks.

Variance reduction with exact and approximate covariances

For designs based on exact covariances, VGMC reduced variance by 18.19%–23.38% relative to SOCP for LiH, BeH2_2, H2_2O, and NH3_3 (Table I). For H2_2, the initial bases covered all maximal QWC groups, so construction added no basis and gave no further reduction. In the four systems that benefited, replacing the five ICS updates with SOCP reduced variance by 0.07%–1.93% on the initial groups. The larger improvement after expansion identifies useful measurement combinations beyond the estimation freedom already optimized on those bases.

The same four molecules benefited when CISD covariances guided construction and estimator optimization. On the reference states, VGMC reduced variance by 19.47%–23.39% relative to SOCP designs using the same approximate information. The expanded CISD designs also improved on the initial designs based on exact covariances by 13.39%–20.16%. In these comparisons, better measurement combinations more than compensated for the reduced accuracy of the covariance information. Construction based on exact covariances gave the lowest final variances, so covariance accuracy continued to matter after expansion.

Candidate selection and growth ablations

To determine whether the choice of additional groups mattered, we compared VGMC with five independent random compatible group constructions. For each random construction, Hamiltonian terms were greedily combined in a random order to form a compatible basis. The corresponding group was then completed with all measurable terms, and repeated groups were discarded. At each tested number of added groups, the expanded design was jointly reoptimized using the same initial group set. At every tested nonzero addition count common to VGMC and the five independent random constructions, VGMC achieved lower variance on the reference state than all five controls (Fig. 1). Matching addition counts holds the size of the expanded design fixed. The comparison therefore supports selecting groups with information from the optimized estimator.

We examined the information used in growth with three ablations. Frozen evaluated Δ(i∣G)\Delta(i \mid G) using the initial vector μ0\mu_0, Diag omitted off-diagonal covariances from those increments, and Frozen+Diag combined both changes. All variants used the current estimator and full covariance information to score completed candidates and jointly reoptimize the design.

At their respective stopping points, Diag retained apapproximately 94%–98% of VGMC’s terminal reduction. Much of the gain therefore remained with simpler increments when full covariances were retained for computing μ\mu, evaluating candidates, and optimizing the estimator. Frozen+Diag had the smallest terminal reduction of the four guided variants in each system, showing the consequence of combining the two simplifications.

Variance reduction and activity of added groups for LiH, BeH2, H2O, and NH3

Figure 1. Variance reduction and activity of added groups during measurement group construction. Upper panels show the reduction relative to the optimized initial variance, and lower panels show the percentage of added groups with aα>10−6a_{\alpha} > 10^{-6}, where aαa_{\alpha} is the shot allocation fraction. All curves use designs based on exact covariances. Gray Random curves show the median over five independent random constructions.

The lower panels show how reoptimization used the added groups. Frozen could retain a larger active fraction while achieving less variance reduction. The quality of the estimator therefore depended on the combinations selected and their optimized contributions, rather than on the active fraction alone.

Energy estimation with finite shots

We converted the optimized ICS, SOCP, and VGMC shot fractions to integer allocations while holding their group sets and estimator coefficients fixed. Each group with a nonzero coefficient vector first received one shot. The remaining budget was distributed in proportion to the optimized fractions by the largest-remainder rule, preserving the total budget and ensuring that every contributing group was sampled. Sampling the joint measurement outcomes gave the empirical root mean square error (RMSE) shown in Figure 2. Each plotted RMSE was calculated from 300 independent energy estimates. The analytic RMSE was calculated separately from the estimator variance under the integer allocation.

Energy estimation error with finite shots for LiH, BeH2, H2O, and NH3

Figure 2. Energy estimation error with finite shots near chemical accuracy. The dotted line marks chemical accuracy (1.6 mHa), and the shaded region lies below that threshold. Diamonds denote designs using exact covariances and stars denote CISD designs. Each diamond or star gives the empirical RMSE of 300 independent estimates. This reference is the lowest energy obtained by diagonalizing the molecular Hamiltonian in the complete STO-3G space, as detailed in Appendix C 1. Solid lines connect the diamonds. The analytic RMSE discussed in the text is computed separately. Hollow circles indicate approximate shot requirements obtained by interpolating threshold crossings between sampled budgets.

Near chemical accuracy (1.6 mHa), the empirical RMSE generally followed the ordering predicted for integer allocations, with VGMC retaining an advantage over the initial designs. Interpolated threshold crossings indicated shot savings of 9.8%–23.9% relative to SOCP for designs based on exact covariances and 6.5%–16.9% for CISD designs. These crossing estimates connect the variance reductions to lower shot requirements at a specified energy precision.

Conclusion

We have shown that an optimized energy estimator can guide the construction of additional measurement groups. Under a fixed positive definite design covariance model, the optimality conditions for coefficient assignment and shot allocation provide a criterion for identifying improving candidates. VGMC uses the associated score increments to construct QWC groups and reoptimizes the estimator after each accepted addition. The optimized estimator therefore determines how the available groups are used and provides guidance for extending the group set.

The molecular benchmarks demonstrate variance reductions beyond joint optimization on the initial measurement bases. Comparisons at matched addition counts support the contribution of estimator guided selection of new measurement combinations. In these considered molecular systems, CISD guided construction also gives lower reference state variance than the initial designs optimized with exact covariances. Thus, improved measurement combinations can compensate for approximate covariance information, although exact covariance construction still gives the lowest variances. Finite-shot simulations further indicate that these improvements reduce the estimated shot requirements near chemical accuracy.

The improvement criterion is exact for evaluated candidates under the stated model, while greedy construction provides a heuristic search for those candidates. Together, the exact criterion and heuristic search connect estimator optimization to the selection of local Pauli measurements, offering a route to reducing the sampling overhead of variational quantum algorithms.

Acknowledgments

We gratefully acknowledge support from the National Natural Science Foundation of China under Grant 62304037, the Jiangsu Provincial Scientific Research Center of Applied Mathematics under Grant BK20233002, the Start-up Research Fund of Southeast University under Grant RF1028623173, the Jiangsu Key Laboratory for Undersea Communications and Sensing under Grant 8506006260C, and the Big Data Computing Center of Southeast University and the Center for Fundamental and Interdisciplinary Sciences of Southeast University.

Data Availability

The data and code supporting this study are publicly available [32].

Coefficient assignment and group scores

Zero shot fractions and coefficient assignment

For each group, let xα∈Rdαx_\alpha\in\mathbb{R}^{d_\alpha} and aα≥0a_\alpha\ge0. Extend the variance objective to zero shot fractions by defining

qα(xα,aα)={xαTΓαxα/aα,aα>0,0,aα=0 and xα=0,+∞,aα=0 and xα≠0,q_\alpha(x_\alpha,a_\alpha)= \begin{cases} x_\alpha^{T}\Gamma_\alpha x_\alpha/a_\alpha, & a_\alpha>0,\\ 0, & a_\alpha=0\text{ and }x_\alpha=0,\\ +\infty, & a_\alpha=0\text{ and }x_\alpha\ne0, \end{cases}
Ψ(x,a)=∑αqα(xα,aα).(29)\Psi(x,a)=\sum_\alpha q_\alpha(x_\alpha,a_\alpha). \tag*{(29)}

This definition requires zero coefficients in any group that receives no shots and makes Ψ\Psi jointly convex in xx and aa.

Proposition 1 (Coefficient assignment). *Under the assumptions of Section II, every allocation with K(a)≻0K(a)\succ0 has the unique optimal coefficients in Eq. (18). With Φ(a)=+∞\Phi(a)=+\infty when K(a)K(a) is singular, minimizing Φ\Phi on ΔL\Delta_L is a convex problem that attains the joint minimum in Eq. (5).

Proof. An allocation permits an unbiased estimator only if each retained Pauli operator belongs to at least one group with aα>0a_\alpha>0, since cj≠0c_j\ne0 for every retained term. For any nonzero z∈RNPz\in\mathbb{R}^{N_P}, at least one such group has Sαz≠0S_\alpha z\ne0. Positive definiteness of its covariance matrix therefore gives

zTK(a)z=∑α:aα>0aα(Sαz)TΓα−1(Sαz)>0.(30)z^T K(a)z=\sum_{\alpha:a_\alpha>0}a_\alpha(S_\alpha z)^T\Gamma_\alpha^{-1}(S_\alpha z)>0. \tag*{(30)}

Conversely, if K(a)K(a) is singular, some retained Pauli operator belongs to no group with positive shot fraction, so its coefficient equality cannot be satisfied. For an allocation satisfying these conditions, the coefficient KKT system in Eq. (15) gives the assignment in Eq. (18).

For any other feasible assignment, write x=x⋆+Δxx=x^\star+\Delta x, where Δx∈RNx\Delta x\in\mathbb{R}^{N_x} has group components Δxα∈Rdα\Delta x_\alpha\in\mathbb{R}^{d_\alpha}. Both assignments satisfy the coefficient equalities, so ∑αSαTΔxα=0\sum_\alpha S_\alpha^T\Delta x_\alpha=0 and the cross term vanishes. Thus

Ψ(x,a)=Φ(a)+∑α:aα>0(Δxα)TΓαΔxαaα.(31)\Psi(x,a)=\Phi(a)+\sum_{\alpha:a_\alpha>0}\frac{(\Delta x_\alpha)^T\Gamma_\alpha\Delta x_\alpha}{a_\alpha}. \tag*{(31)}

Positive definiteness proves uniqueness at fixed allocation. Equation (21) establishes convexity of the reduced objective, and Appendix A 2 establishes existence of an optimum.

Existence of an optimum and conic duality

We now show that the coefficient problem in Eq. (10) has an optimal solution and identify its conic dual. The feasible coefficient set is nonempty and closed. Let λmin⁡\lambda_{\min} denote the smallest eigenvalue and set σ⋆=min⁡αλmin⁡(Γα)>0\sigma_\star=\min_\alpha\lambda_{\min}(\Gamma_\alpha)>0. For the stacked coefficient vector x∈RNxx\in\mathbb{R}^{N_x}, the objective satisfies F(x)≥σ⋆∥x∥2F(x)\ge\sqrt{\sigma_\star}\lVert x\rVert_2. The objective therefore tends to infinity as ∥x∥2\lVert x\rVert_2 tends to infinity and hence attains a minimum on the feasible set. Since c≠0c\ne0, this minimum is positive. The recovery formulas in Eqs. (12) and (18) give optimal shot fractions and coefficients for the joint problem.

The dual problem uses an auxiliary vector y∈RNPy\in\mathbb{R}^{N_P} to maximize cTyc^T y subject to yTWαy≤1y^T W_\alpha y\le1 for every group, as in the conic formulation of multiresponse optimal design [27]. Every feasible yy gives a lower bound cTy≤F⋆c^T y\le F^\star. Because every retained term belongs to at least one available group, the coefficient equalities have a solution. Choosing τα>∥Γα1/2xα∥2\tau_\alpha>\lVert\Gamma_\alpha^{1/2}x_\alpha\rVert_2 then satisfies every cone inequality strictly, so the primal and dual optimal objective values coincide. For any optimal allocation a⋆a^\star, define μ⋆=K(a⋆)−1c∈RNP\mu^\star=K(a^\star)^{-1}c\in\mathbb{R}^{N_P}. The allocation conditions in Eq. (24) show that y=μ⋆/ΦG⋆y=\mu^\star/\sqrt{\Phi^\star_{\mathcal{G}}} attains the dual optimum F⋆F^\star.

Allocation optimality and additional measurement groups

For the allocation problem in Eq. (20), let λnorm∈R\lambda_{\mathrm{norm}}\in\mathbb{R} enforce ∑αaα=1\sum_\alpha a_\alpha=1 and let ν∈RL\nu\in\mathbb{R}^L contain the non-negative multipliers for aα≥0a_\alpha\ge0. The Lagrangian is Φ(a)+λnorm(∑αaα−1)−νTa\Phi(a)+\lambda_{\mathrm{norm}}(\sum_\alpha a_\alpha-1)-\nu^T a. At an allocation with finite Φ(a)\Phi(a), the KKT conditions are

−ωα(a)+λnorm−να=0,∀α,-\omega_\alpha(a)+\lambda_{\mathrm{norm}}-\nu_\alpha=0,\qquad\forall\alpha,
aα≥0,να≥0,aανα=0,∀α,a_\alpha\ge0,\quad\nu_\alpha\ge0,\quad a_\alpha\nu_\alpha=0,\qquad\forall\alpha,
∑αaα=1.(32)\sum_\alpha a_\alpha=1. \tag*{(32)}

The first row gives stationarity, and aανα=0a_\alpha\nu_\alpha=0 expresses complementary slackness for the nonnegativity constraint. Strictly positive shot fractions give a feasible allocation with K(a)≻0K(a)\succ0, so these conditions are necessary for an optimum. Convexity makes them sufficient. Multiplying the stationarity conditions by aαa_\alpha and summing gives λnorm=∑αaαωα(a)=Φ(a)\lambda_{\mathrm{norm}}=\sum_\alpha a_\alpha\omega_\alpha(a)=\Phi(a), which yields Eq. (24).

Let D\mathcal{D} be a finite collection of QWC groups not already in G\mathcal{G}, with fixed positive-definite model covariance matrices. The allocation conditions imply

ΦG∪D⋆<ΦG⋆⟺∃G∈D: ωG(a⋆)>ΦG⋆.(33)\Phi^\star_{\mathcal{G}\cup\mathcal{D}}<\Phi^\star_{\mathcal{G}} \Longleftrightarrow \exists G\in\mathcal{D}:\ \omega_G(a^\star)>\Phi^\star_{\mathcal{G}}. \tag*{(33)}

Extend the optimal allocation a⋆∈RLa^\star\in\mathbb{R}^L by one zero entry for each group in D\mathcal{D}, giving

a~=((a⋆)T,0,…,0)T∈RL+∣D∣.(34)\widetilde{a}=((a^\star)^T,0,\ldots,0)^T\in\mathbb{R}^{L+|\mathcal{D}|}. \tag*{(34)}

If any G∈DG\in\mathcal{D} satisfies ωG(a⋆)>ΦG⋆\omega_G(a^\star)>\Phi^\star_{\mathcal{G}}, Eq. (26) gives a negative derivative when shots are transferred to that group. A sufficiently small transfer keeps the corresponding matrix KK positive definite and decreases the objective. If every additional group instead satisfies ωG(a⋆)≤ΦG⋆\omega_G(a^\star)\le\Phi^\star_{\mathcal{G}}, then a~\tilde{a} satisfies all KKT conditions for the combined group set. Its objective is therefore already optimal even when all groups in D\mathcal{D} are available.

Score increments and linear prediction

For a group GG and an additional compatible term ii, the covariance matrix ΓG∪{i}∈R(∣G∣+1)×(∣G∣+1)\Gamma_{G\cup\{i\}} \in\mathbb{R}^{(|G|+1)\times(|G|+1)} has the block form below. Here ΓG∈R∣G∣×∣G∣\Gamma_G \in\mathbb{R}^{|G|\times|G|}, u∈R∣G∣u \in\mathbb{R}^{|G|}, and Γii∈R\Gamma_{ii} \in\mathbb{R} are the covariance quantities defined in Section IV. Define the linear prediction coefficients b∈R∣G∣b \in\mathbb{R}^{|G|} and residual variance σres2∈R\sigma_{\mathrm{res}}^2 \in\mathbb{R} by

ΓG∪{i}=(ΓGuuTΓii),b=ΓG−1u,σres2=Γii−uTΓG−1u>0.(35)\Gamma_{G\cup\{i\}} = \begin{pmatrix} \Gamma_G & u \\ u^T & \Gamma_{ii} \end{pmatrix}, \quad b = \Gamma_G^{-1}u, \quad \sigma_{\mathrm{res}}^2 = \Gamma_{ii}-u^T\Gamma_G^{-1}u > 0. \tag*{(35)}

Positive definiteness of the enlarged covariance matrix gives σres2>0\sigma_{\mathrm{res}}^2 > 0. In a matrix inequality, ⪯\preceq means that the matrix on the right minus the matrix on the left is positive semidefinite. The block inverse identity gives

ΓG∪{i}−1−(ΓG−1000)=1σres2(b−1)(b−1)T⪰0.(36)\Gamma_{G\cup\{i\}}^{-1} - \begin{pmatrix} \Gamma_G^{-1} & 0 \\ 0 & 0 \end{pmatrix} = \frac{1}{\sigma_{\mathrm{res}}^2} \begin{pmatrix} b \\ -1 \end{pmatrix} \begin{pmatrix} b \\ -1 \end{pmatrix}^{T} \succeq0. \tag*{(36)}

The off-diagonal zero blocks have sizes ∣G∣×1|G|\times1 and 1×∣G∣1\times|G|, and the final zero is a scalar. The column vector (bT,−1)T∈R∣G∣+1(b^T,-1)^T \in\mathbb{R}^{|G|+1} makes the right side a positive semidefinite matrix of size (∣G∣+1)×(∣G∣+1)(|G|+1)\times(|G|+1). Evaluating this quadratic form at (μG,μi)T∈R∣G∣+1(\mu_G,\mu_i)^T \in\mathbb{R}^{|G|+1} proves Eq. (27). Placing the entries in the rows and columns indexed by the corresponding Pauli operators also gives WG∪{i}−WG⪰0W_{G\cup\{i\}}-W_G\succeq0, an inequality between NP×NPN_P\times N_P matrices.

Let ZG∈R∣G∣Z_G \in\mathbb{R}^{|G|} and Zi∈RZ_i \in\mathbb{R} be a random vector and a random variable, respectively, both with zero mean. Their joint covariance matrix is given in Eq. (35). The scalar residual Ri=Zi−bTZGR_i=Z_i-b^TZ_G satisfies Cov⁡(ZG,Ri)=0∈R∣G∣\operatorname{Cov}(Z_G,R_i)=0\in\mathbb{R}^{|G|} and Var⁡(Ri)=σres2\operatorname{Var}(R_i)=\sigma_{\mathrm{res}}^2. Thus bTZGb^TZ_G is the best linear prediction of ZiZ_i under the specified covariance model, and σres2\sigma_{\mathrm{res}}^2 is its residual variance. This argument uses only second moments. Interpreting σres2\sigma_{\mathrm{res}}^2 as a conditional variance requires additional assumptions.

Shot allocation

This appendix gives the optimality check and convergence analysis for the Frank–Wolfe allocation iteration in Algorithm 1. Section IV D gives its arithmetic cost.

Allocation update and convergence

Let a(t)∈ΔL⊂RLa^{(t)}\in\Delta_L\subset\mathbb{R}^L denote the allocation at iteration t=0,1,…t=0,1,\ldots for a fixed group set. Denote the selected group index by qt∈{1,…,L}q_t\in\{1,\ldots,L\} and the transferred fraction by γt∈[0,1]\gamma_t\in[0,1]. The vector eqt∈RLe_{q_t}\in\mathbb{R}^L assigns all shots to the selected group. Algorithm 1 uses Eq. (18) and the Frank–Wolfe update [33, 34]

qt∈arg⁡max⁡α∈{1,…,L}ωα(a(t)),a(t+1)=(1−γt)a(t)+γteqt.(37)q_t\in\arg\max_{\alpha\in\{1,\ldots,L\}}\omega_\alpha(a^{(t)}), \quad a^{(t+1)}=(1-\gamma_t)a^{(t)}+\gamma_t e_{q_t}. \tag*{(37)}

Exact line minimization chooses γt\gamma_t to minimize Φ\Phi along this transfer, assigning Φ=+∞\Phi=+\infty if its endpoint has a singular KK.

For a prescribed dimensionless relative tolerance ϵrel>0\epsilon_{\mathrm{rel}}>0, define the score gap and the associated stopping condition as

g(a)=max⁡αωα(a)−Φ(a),g(a)Φ(a)≤ϵrel.(38)g(a)=\max_\alpha\omega_\alpha(a)-\Phi(a), \qquad \frac{g(a)}{\Phi(a)}\leq\epsilon_{\mathrm{rel}}. \tag*{(38)}

Since the mean score weighted by the shot fractions is Φ(a)\Phi(a), g(a)g(a) is nonnegative and vanishes exactly when Eq. (24) holds. The score gap can also assess allocations returned by other solvers. The convergence rate below, however, concerns the stated Frank–Wolfe iteration. The proof below shows that g(a)g(a) bounds the remaining objective error when the coefficient solve is exact. Using this bound numerically requires control of the residual in K(a)μ=cK(a)\mu=c and verification of the coefficient equalities and shot fraction normalization.

For the convergence analysis, assume that K(a(0))≻0K(a^{(0)})\succ0 and that coefficient assignment and line minimization are exact. Write Φ0=Φ(a(0))\Phi_0=\Phi(a^{(0)}). Let π(a)=(π1(a),…,πNP(a))T∈RNP\pi(a)=(\pi_1(a),\ldots,\pi_{N_P}(a))^T\in\mathbb{R}^{N_P}, where πj(a)=∑α:j∈Gαaα\pi_j(a)=\sum_{\alpha:j\in G_\alpha}a_\alpha is the fraction of shots that measure term jj. Define the positive covariance bounds ℓ=min⁡αλmin⁡(Γα−1)\ell=\min_\alpha\lambda_{\min}(\Gamma_\alpha^{-1}) and β=max⁡αλmax⁡(Γα−1)\beta=\max_\alpha\lambda_{\max}(\Gamma_\alpha^{-1}), where λmax⁡\lambda_{\max} denotes the largest eigenvalue. Write diag⁡(π(a))∈RNP×NP\operatorname{diag}(\pi(a))\in\mathbb{R}^{N_P\times N_P} for the diagonal matrix whose entries are πj(a)\pi_j(a). Since each SαS_\alpha selects the entries belonging to GαG_\alpha,

ℓdiag⁡(π(a))⪯K(a)⪯βdiag⁡(π(a)).(39)\ell\operatorname{diag}(\pi(a))\preceq K(a)\preceq\beta\operatorname{diag}(\pi(a)). \tag*{(39)}

Consequently, Φ(a)≥∑jcj2/(βπj(a))\Phi(a)\geq\sum_j c_j^2/(\beta\pi_j(a)). For every allocation satisfying Φ(a)≤Φ0\Phi(a)\leq\Phi_0, the fraction measuring term jj satisfies πj(a)≥cj2/(βΦ0)\pi_j(a)\geq c_j^2/(\beta\Phi_0), and hence

K(a)⪰κINP,κ=ℓmin⁡jcj2βΦ0>0.(40)K(a)\succeq\kappa I_{N_P}, \quad \kappa=\frac{\ell\min_j c_j^2}{\beta\Phi_0}>0. \tag*{(40)}

Exact line minimization does not increase Φ\Phi, so every allocation generated from a(0)a^{(0)} satisfies this bound. For the selected group qq with the highest score, define Kγ=K(a)+γ(Wq−K(a))∈RNP×NPK_\gamma=K(a)+\gamma(W_q-K(a))\in\mathbb{R}^{N_P\times N_P} for 0≤γ≤1/20\leq\gamma\leq1/2. This is the matrix corresponding to the allocation (1−γ)a+γeq(1-\gamma)a+\gamma e_q. For matrices, ∥⋅∥2\|\cdot\|_2 denotes the largest singular value. The bounds above give Kγ⪰κINP/2K_\gamma\succeq\kappa I_{N_P}/2 and ∥Wq−K(a)∥2≤2β\|W_q-K(a)\|_2\leq2\beta. Differentiating Φ((1−γ)a+γeq)\Phi((1-\gamma)a+\gamma e_q) twice with respect to γ\gamma bounds its second derivative from above by the positive scalar CFW=64β2∥c∥22/κ3C_{\mathrm{FW}}=64\beta^2\|c\|_2^2/\kappa^3. Therefore

Φ((1−γ)a+γeq)≤Φ(a)−γg(a)+CFW2γ2,0≤γ≤12.(41)\Phi((1-\gamma)a+\gamma e_q)\leq\Phi(a)-\gamma g(a)+\frac{C_{\mathrm{FW}}}{2}\gamma^2, \quad 0\leq\gamma\leq\frac{1}{2}. \tag*{(41)}

Exact line minimization yields an objective value no greater than that of any comparison step, including when the full segment has a singular endpoint.

Theorem 1 (Convergence for a fixed group set). Under the assumptions above, let ht=Φ(a(t))−ΦG⋆h_t = \Phi(a^{(t)})-\Phi^\star_{\mathcal{G}} be the objective error and set gt=g(a(t))g_t = g(a^{(t)}) and A=max⁡{3Φ0,2CFW}A = \max\{3\Phi_0, 2C_{\mathrm{FW}}\}. Then, for every iteration t≥0t \ge0 and every integer n≥2n \ge2,

ht≤At+3,min⁡n≤t<2ngt≤An+3+CFW2n.(42)h_t \le\frac{A}{t+3}, \qquad\min_{n \le t < 2n} g_t \le\frac{A}{n+3}+\frac{C_{\mathrm{FW}}}{2n}. \tag*{(42)}

Proof. Let a⋆∈ΔLa^\star\in\Delta_L be an optimal allocation. The gradient ∇Φ(a)∈RL\nabla\Phi(a) \in\mathbb{R}^L collects the allocation derivatives in Eq. (23), with component −ωα(a)-\omega_\alpha(a) in position α\alpha. Convexity gives 0≤ht≤−∇Φ(a(t))T(a⋆−a(t))≤gt0 \le h_t \le-\nabla\Phi(a^{(t)})^T(a^\star-a^{(t)}) \le g_t, because the maximum group score is at least its average under a⋆a^\star. Using this inequality and γ=2/(t+4)\gamma= 2/(t+4) in Eq. (41) gives

ht+1≤t+2t+4ht+2CFW(t+4)2.h_{t+1} \le\frac{t+2}{t+4}h_t+\frac{2C_{\mathrm{FW}}}{(t+4)^2}.

The first bound follows by induction from h0≤A/3h_0 \le A/3 and A≥2CFWA \ge2C_{\mathrm{FW}}. For the second bound, use γ=1/n\gamma= 1/n at each iteration n≤t<2nn \le t < 2n and sum the resulting decreases. The average of gtg_t over this interval is at most hn+CFW/(2n)h_n+C_{\mathrm{FW}}/(2n). The same bound therefore applies to the minimum value of gtg_t over the interval. Substitution of the first bound gives Eq. (42).

For a prescribed absolute objective tolerance εabs>0\varepsilon_{\mathrm{abs}} > 0, the sequence therefore reaches an iterate with gt≤εabsg_t \le\varepsilon_{\mathrm{abs}} in O((A+CFW)/εabs)O((A+C_{\mathrm{FW}})/\varepsilon_{\mathrm{abs}}) iterations. This tolerance has the same units as Φ\Phi.

Experimental details

Molecular systems and reference states

All five calculations used the complete STO-3G spin-orbital spaces, with no frozen core or qubit tapering, and the Bravyi–Kitaev mapping. The nuclear geometries are specified in § 1.4 A. Identity energy offsets contribute no sampling variance and were omitted from the variance calculations. The reference state was obtained by diagonalizing the molecular Hamiltonian in the sector with NeN_e electrons and Nα=NβN_\alpha= N_\beta, where NαN_\alpha and NβN_\beta are the numbers of electrons with alpha and beta spin, respectively.

The CISD calculation used a reference Slater determinant, a many-electron state defined as the antisymmetrized product of its occupied spin orbitals. The first NeN_e spin orbitals in the interleaved alpha/beta ordering were occupied, and all remaining spin orbitals were empty. Single and double excitations generated further determinants by replacing one or two occupied spin orbitals with unoccupied ones. The CISD state was the eigenvector with the lowest energy after restricting the Hamiltonian to the subspace spanned by the reference determinant and these excited determinants within the same electron-number sector. Covariances were evaluated from the corresponding state vectors. Group construction and optimization used one of these fixed covariance sources, while reported physical variances used the reference state.

Covariance model and numerical optimization

For joint optimization of coefficients and shot fractions, including the ICS and SOCP implementations and VGMC, the design blocks were

ΓG=CG+λcov∣G∣,λcov=10−8,(43)\Gamma_{\mathcal{G}} = C_{\mathcal{G}}+\lambda_{\mathrm{cov}}|G|,\qquad\lambda_{\mathrm{cov}}=10^{-8}, \tag*{(43)}

where CG∈R∣G∣×∣G∣C_G \in\mathbb{R}^{|G|\times|G|} is the covariance block of the exact or CISD state and λcov>0\lambda_{\mathrm{cov}}>0 is the ridge parameter. The same ridge was added to every diagonal. For nested groups, the covariance matrix of the smaller group therefore remained a principal submatrix of that of the larger group. Thus exact-covariance design identifies the source of CGC_G before regularization.

The reduced solvers used L-BFGS-B, with coefficient recovery through Eq. (18). They parameterized positive numerical allocations as

aα(θ)=θα2+δ∑β(θβ2+δ),θ∈RL, δ=10−15.(44)a_\alpha(\theta)=\frac{\theta_\alpha^2+\delta}{\sum_\beta(\theta_\beta^2+\delta)},\qquad\theta\in\mathbb{R}^L,\ \delta=10^{-15}. \tag*{(44)}

Here δ\delta is a floor on unnormalized weights. The theoretical problem remains defined on the closed simplex.

Numerical optimality was assessed in the original allocation coordinates. For feasible returned coefficients, let U=Ψ(x,a)>0U=\Psi(x,a)>0 be the scalar primal objective. A dual objective is obtained by scaling the multiplier vector μ∈RNP\mu\in\mathbb{R}^{N_P} so that its largest group score satisfies the conic dual constraint in Appendix A2. In exact arithmetic, for a finite set P\mathcal{P} containing the current groups, this gives

ΦPlb=(cTμ)2max⁡G∈PωG,εpd=UΦPlb−1.(45)\Phi_{\mathcal{P}}^{\mathrm{lb}}=\frac{(c^T\mu)^2}{\max_{G\in\mathcal{P}}\omega_G},\qquad\varepsilon_{\mathrm{pd}}=\frac{U}{\Phi_{\mathcal{P}}^{\mathrm{lb}}}-1. \tag*{(45)}

Here ΦPlb\Phi_{\mathcal{P}}^{\mathrm{lb}} is a scalar lower bound on ΦP⋆\Phi^\star_{\mathcal{P}} and εpd\varepsilon_{\mathrm{pd}} is a dimensionless relative primal–dual gap. For P=G\mathcal{P}=\mathcal{G}, the numerical implementation compares this gap with the prescribed tolerance εrel\varepsilon_{\mathrm{rel}} in Algorithm 1. For a feasible estimator and a positive dual lower bound, the gap test implies ΦG⋆≤Ψ(x,a)≤(1+εrel)ΦG⋆\Phi^\star_{\mathcal{G}}\le\Psi(x,a)\le(1+\varepsilon_{\mathrm{rel}})\Phi^\star_{\mathcal{G}} in exact arithmetic. Coefficient conservation was enforced before evaluating these quantities, and numerical safety margins were applied to account for residuals and roundoff. The resulting gap estimates are numerical diagnostics computed in floating point. With exact coefficient recovery on the current group set and without safety padding, Eq. (45) equals the relative score gap g(a)/Φ(a)g(a)/\Phi(a) in Appendix B1. For the current group set, the final target was εrel=10−4\varepsilon_{\mathrm{rel}}=10^{-4}, with a tolerance of 10−910^{-9} for coefficient conservation. Expansion solves first targeted 10−310^{-3} and were refined to 10−410^{-4} at the evaluated addition counts. Unresolved candidate boundaries allowed further allocation refinement to 10−510^{-5} and 10−610^{-6}. ICS was run for five updates for the comparison in Table I [31]. The SOCP implementation used CLARABEL with absolute and relative gap and feasibility tolerances 10−910^{-9} and at most 500 iterations.

MoleculeNeN_eNqN_qNPN_PL0L_0LF [13]OGM [24]SI [12]ICS [25]SOCP [27]VGMC
H2_2241430.13640.17560.13640.13640.13640.1364
LiH4126301555.0553.5922.0940.98100.97480.7843
BeH2_261466518314.5911.716.3444.2914.2883.508
H2_2O10141085334125.078.6048.6113.6113.4510.46
NH3_3101636081359388.0148.997.0045.6744.7934.32
Design using CISD covariances
H2_2241430.13640.17560.13640.13640.13640.1364
LiH4126301555.0553.5922.0940.98120.97710.7859
BeH2_261466518314.5911.716.3454.4054.6123.714
H2_2O10141085334125.078.6048.6115.6714.2911.36
NH3_3101636081359388.1148.997.0046.1946.6835.76

Table I. Estimator variance on the reference states VV (Hartree2^2). NeN_e is the electron count, NqN_q the qubit count, NPN_P the number of nonidentity Pauli terms, and L0L_0 the number of completed initial groups. Boldface marks the lowest variance coefficient in each row, including ties at the displayed precision.

References

References

  1. [1]Y. Cao, J. Romero, J. P. Olson, M. Degroote, P. D. Johnson, M. Kieferová, I. D. Kivlichan, T. Menke, B. Peropadre, N. P. D. Sawaya, S. Sim, L. Veis, and A. Aspuru-Guzik, Chemical Reviews 119, 10856 (2019).
  2. [2]S. McArdle, S. Endo, A. Aspuru-Guzik, S. C. Benjamin, and X. Yuan, Reviews of Modern Physics 92, 015003 (2020).
  3. [3]A. Peruzzo, J. McClean, P. Shadbolt, M.-H. Yung, X.-Q. Zhou, P. J. Love, A. Aspuru-Guzik, and J. L. O’Brien, Nature Communications 5, 4213 (2014).
  4. [4]J. R. McClean, J. Romero, R. Babbush, and A. Aspuru-Guzik, New Journal of Physics 18, 023023 (2016).
  5. [5]M. Cerezo, A. Arrasmith, R. Babbush, S. C. Benjamin, S. Endo, K. Fujii, J. R. McClean, K. Mitarai, X. Yuan, L. Cincio, and P. J. Coles, Nature Reviews Physics 3, 625 (2021).
  6. [6]K. Bharti, A. Cervera-Lierta, T. H. Kyaw, T. Haug, S. Alperin-Lea, A. Anand, M. Degroote, H. Heimonen, J. S. Kottmann, T. Menke, W.-K. Mok, S. Sim, L.-C. Kwek, and A. Aspuru-Guzik, Reviews of Modern Physics 94, 015004 (2022).
  7. [7]S. B. Bravyi and A. Y. Kitaev, Annals of Physics 298, 210 (2002).
  8. [8]J. T. Seeley, M. J. Richard, and P. J. Love, The Journal of Chemical Physics 137, 224109 (2012).
  9. [9]D. Wecker, M. H. Hastings, and M. Troyer, Physical Review A 92, 042303 (2015).
  10. [10]J. F. Gonthier, M. D. Radin, C. Buda, E. J. Doskocil, C. M. Abuan, and J. Romero, Physical Review Research 4, 033154 (2022).
  11. [11]J. Tilly, H. Chen, S. Cao, D. Picozzi, K. Setia, Y. Li, E. Grant, L. Wossing, I. Rungger, G. H. Booth, and J. Tennys on, Physics Reports 986, 1 (2022).
  12. [12]O. Crawford, B. van Straaten, D. Wang, T. Parks, E. Campbell, and S. Brierley, Quantum 5, 385 (2021).
  13. [13]V. Verteletskiy, T.-C. Yen, and A. F. Izmaylov, Journal of Chemical Physics 152, 124114 (2020).
  14. [14]T.-C. Yen, V. Verteletskiy, and A. F. Izmaylov, Journal of Chemical Theory and Computation 16, 2400 (2020).
  15. [15]I. Hamamura and T. Imamichi, npj Quantum Information 6, 56 (2020).
  16. [16]M. X. Burns, C. Liu, S. Stein, B. Peng, K. Kowalski, and A. Li, Quantum Science and Technology 10, 015054 (2025).
  17. [17]B. DalFavero, R. Sarkar, J. Rowland, D. Camps, N. P. D. Sawaya, and R. LaRose, Physical Review A 112, 052407 (2025).
  18. [18]D. Miller, L. E. Fischer, K. Levi, E. J. Kuehnke, I. O. Sokolov, P. K. Barkoutsos, J. Eisert, and I. Tavernelli, npj Quantum Information 10, 122 (2024).
  19. [19]H.-Y. Huang, R. Kueng, and J. Preskill, Nature Physics 16, 1050 (2020).
  20. [20]H.-Y. Huang, R. Kueng, and J. Preskill, Physical Review Letters 127, 030503 (2021).
  21. [21]C. Hadfield, S. Bravyi, R. Raymond, and A. Mezzacapo, Communications in Mathematical Physics 391, 951 (2022).
  22. [22]A. Elben, S. T. Flammia, H.-Y. Huang, R. Kueng, J. Preskill, B. Vermersch, and P. Zoller, Nature Reviews Physics 5, 9 (2023).
  23. [23]I. L. Huidobro-Meezs and R. A. Vargas-Hernández, arXiv preprint arXiv:2607.02794v2 10.48550/arXiv.2607.02794 (2026), version 2, 9 September 2026.
  24. [24]B. Wu, J. Sun, Q. Huang, and X. Yuan, Quantum 7, 896 (2023).
  25. [25]T.-C. Yen, A. Ganeshram, and A. F. Izmaylov, npj Quantum Information 9, 14 (2023).
  26. [26]J. Rowland, R. Sarkar, N. P. D. Sawaya, N. M. Tubman, and R. LaRose, arXiv preprint arXiv:2604.07156 10.48550/arXiv.2604.07156 (2026).arxiv.org/abs/2604.07156
  27. [27]G. Sagnol, Journal of Statistical Planning and Inference 141, 1684 (2011).
  28. [28]M. S. Lobo, L. Vandenberghe, S. Boyd, and H. Lebret, Linear Algebra and its Applications 284, 93 (1998).
  29. [29]S. Boyd and L. Vandenberghe, Convex Optimization (Cambridge University Press, 2004).
  30. [30]R. H. Byrd, P. Lu, J. Nocedal, and C. Zhu, SIAM Journal on scientific computing 16, 1190 (1995).
  31. [31]J. S. Kottmann, S. Alperin-Lea, T. Tamayo-Mendoza, A. Cervera-Lierta, C. Lavigne, T.-C. Yen, V. Verteletskiy, P. Schleich, A. Anand, M. Degroote, et al., Quantum Science & Technology 6, 024009 (2021).
  32. [32]T. Zhao, Q. Yao, M. Sun, and H. Li, 10.5281/zenodo.24068546 (2026).
  33. [33]H. P. Wynn, The Annals of Mathematical Statistics 41, 1655 (1970).
  34. [34]M. Jaggi, in Proceedings of the 30th International Conference on Machine Learning, Proceedings of Machine Learning Research, Vol. 28 (2013) pp. 427–435.

AI tools statement

No AI-use declaration is available for this version in Valency.

The available record does not establish whether AI systems or models contributed to this work.

How AI tools are recorded

Paper details

Cite this paper

Publication

Published
Version
Latest

Data & code

No code, data or supplementary files were declared for this version.

Pick where to look, or just type