betaFeedback

WorksPhysics and Astronomy

Restoring quantum neural network trainability through reusable calibration

Abstract

Quantum neural networks (QNNs) rely on measured quantum observables to guide optimization, but hardware noise can suppress the parameter-dependent signals essential for learning. Here, we develop a structure-preserving error-mitigation framework that improves QNN trainability through reusable calibration of the quantum circuit's effective noise response. By calibrating a reference circuit with the same gate architecture as the trainable circuit, we construct regularized estimators of local quantum features that remain fixed throughout training. We quantify how calibration errors and response mismatches affect the recovery of both observables and their derivatives. Numerical simulations demonstrate enhanced loss-landscape contrast, faster convergence, and improved classification performance, and an IBM Quantum experiment confirms improved closed-loop variational optimization under hardware noise. We further demonstrate calibration reuse in a modular QNN comprising 25 independent four-qubit channels, corresponding to 100 qubits in aggregate. Our results establish reusable feature calibration as a practical approach to improving noise-limited quantum machine learning without repeated calibration at every training step.

Introduction

Quantum neural networks (QNNs) rely on measurements of parameterized quantum circuits to extract features that define the learning objective and guide classical optimization [1, 2, 3, 4, 5, 6]. However, hardware noise can distort both the measured features and their dependence on circuit parameters, reducing the ability to distinguish different parameter configurations and weakening the gradients that drive learning [7, 8, 9]. Because QNN training continuously updates the variational parameters while processing different input data, effective error mitigation must remain reliable across a family of evolving quantum circuits, rather than correcting the output of a single fixed circuit.

Quantum error mitigation offers a means of recovering observables from noisy quantum processors without requiring full quantum error correction [10, 11, 12, 13, 14, 15, 16]. Existing approaches address different sources of error. Readout calibration corrects measurement-assignment errors [17, 18, 19, 20, 21, 22], while zero-noise extrapolation and probabilistic error cancellation mitigate errors accumulated during circuit execution at the cost of additional quantum sampling [23, 24, 25, 26, 27, 28]. Clifford data regression instead constructs corrections using classically tractable reference circuits [29, 30, 31]. Although several error-mitigation methods allow corrections to be reused across circuit evaluations [32, 33, 34], their application to QNN training presents additional challenges. In particular, readout mitigation does not correct errors accumulated during circuit execution, while methods requiring auxiliary or noise-scaled circuit evaluations can introduce substantial overhead when applied repeatedly throughout optimization. For QNNs, the central challenge is therefore to mitigate circuit-induced distortions of the measured quantum features while maintaining an efficient and consistent correction throughout training. This motivates the development of a structure-preserving calibration strategy that exploits the repeated circuit architecture to recover the feature information needed for learning, without requiring additional mitigation circuits or recalibration at every parameter update.

To address this challenge, we develop a structure-preserving error-mitigation framework that directly corrects the local Pauli-ZZ observables used as quantum features in QNN training. The method constructs a reference circuit that approximates the identity while preserving the gate structure, depth, and connectivity of the trainable quantum circuit [35]. Measurements of computational-basis inputs are then used to characterize its effective noise response and construct a regularized linear estimator, which is applied to the measured features throughout training without repeated calibration at each parameter update.

An important advantage of this approach is that the calibration complexity is determined by the size of an individual quantum channel rather than the total network width. For a channel containing NN qubits, calibration requires 2N2^N computational-basis input settings to construct a 2N×2N2^N \times2^N response matrix. When different channels exhibit compatible effective noise responses, the same calibration can be reused across the network. We illustrate this capability using a modular QNN comprising 25 independent four-qubit channels, corresponding to 100 qubits in aggregate, while retaining a four-qubit calibration block. We further investigate the impact of reusable feature correction on QNN training through numerical classification benchmarks and demonstrate its effectiveness in closed-loop variational optimization on IBM Quantum hardware. Together, these results connect the theoretical conditions for calibration transfer with practical improvements in noise-limited variational learning.

Results

Error-mitigated quantum neural-network architecture

We consider a modular QNN classifier whose quantum layer consists of PP parallel channels of NN qubits each Figure 1(c). Panel (a) shows the circuit of one illustrative four-qubit channel and the flow from its input to measured features and a class prediction. The notation is summarized in Appendix S1. A trainable linear layer maps an input x∈RK\mathbf{x} \in\mathbb{R}^{K} to an NPNP-dimensional latent vector, which is divided into PP channel inputs,

Figure 1. Reusable calibration corrects the quantum features entering QNN training. (a) A classical input x\mathbf{x} is encoded by Ry(xq)R_y(x_q) rotations. The illustrative four-qubit channel VV contains LL layers of trainable RyR_y and RzR_z rotations followed by even- and odd-bond controlled-ZZ (CZ) gates; connected filled dots denote CZ gates. Local Pauli-ZZ measurements provide the feature vector s\mathbf{s} used to predict the class y^\hat{y}. (b) Computational-basis inputs ∣b⟩\lvert b\rangle and counts of output bitstrings b′b' characterize an identity-target reference, Vmit≃IV_{\rm mit}\simeq I, with the same gate structure, depth and connectivity as the QNN channel. Its response matrix Mch≡MmitM_{\rm ch}\equiv M_{\rm mit} determines a regularized estimator η\eta satisfying MchTη≃FM_{\rm ch}^{T}\eta\simeq F, where Fbq=⟨b∣Zq∣b⟩F_{bq}=\langle b\lvert Z_q\lvert b\rangle. The estimator can be reused across parameter updates and channels with compatible effective noise responses. (c) Parallel channels Uθ,1,…,Uθ,PU_{\theta,1},\ldots,U_{\theta,P} produce noisy bitstring probabilities pnoisy\mathbf{p}_{\rm noisy}. Applying the fixed estimator gives smit=ηTpnoisy\mathbf{s}_{\rm mit}=\eta^{T}\mathbf{p}_{\rm noisy} for each channel, and the combined features enter the classical readout fwf_w and loss L\mathcal{L}. Solid and dashed purple feedback paths indicate updates of quantum parameters θ\theta and classical parameters ww, respectively; ww corresponds to WW in the text. (d) Schematic correction of a measured feature during optimization. Gray dashed curves show the ideal response to a circuit parameter; orange and teal curves show attenuation by noise and correction with a fixed estimator, respectively. Vertical arrows indicate the feature difference Δs=s(θ)−s(θ′)\Delta s=s(\theta)-s(\theta') between two values θ\theta and θ′\theta' of one circuit parameter; these parameter values are the same in both plots. Under a compatible effective response, calibration recovers the feature changes that contribute to the loss and its parameter derivatives. Insets show the corresponding schematic loss landscapes on a common loss scale as conceptual illustrations.

xlatent=[x(1)⋮x(P)],x(α)∈RN.(1)\mathbf{x}_{\mathrm{latent}} = \begin{bmatrix} \mathbf{x}^{(1)} \\ \vdots\\ \mathbf{x}^{(P)} \end{bmatrix}, \qquad \mathbf{x}^{(\alpha)} \in\mathbb{R}^{N}. \tag*{(1)}

Each subvector is processed by one NN-qubit quantum channel. Starting from ∣0⟩⊗N\lvert0\rangle^{\otimes N}, the α\alpha-th channel encodes the input through single-qubit rotations, a standard form of angle encoding used in variational quantum learning models [1, 36, 37, 38, 39],

Venc(x(α))=⨂q=1NRy(xq(α)),(2)V_{\mathrm{enc}}\left(\mathbf{x}^{(\alpha)}\right) = \bigotimes_{q=1}^{N} R_y\left(x_q^{(\alpha)}\right), \tag*{(2)}

followed by a trainable circuit,

V(x(α),θ(α))=Vtrain(θ(α))Venc(x(α)),(3)V\left(\mathbf{x}^{(\alpha)},\boldsymbol{\theta}^{(\alpha)}\right) = V_{\mathrm{train}}\left(\boldsymbol{\theta}^{(\alpha)}\right) V_{\mathrm{enc}}\left(\mathbf{x}^{(\alpha)}\right), \tag*{(3)}

where VtrainV_{\mathrm{train}} contains parameterized single-qubit rotations and a fixed entangling pattern. Figure 1 illustrates a CZ-chain architecture. The retained classification runs in Figure 3 and Figure 5 use the full-CX implementation specified in Appendix S3.4, within the hardware-efficient ansatz paradigm [40, 41, 42, 43, 44, 45, 46, 47]. The channel circuit is labeled VV in Figure 1(a) and Uθ,αU_{\theta,\alpha} for channel α\alpha in panel (c). Further circuit details are given in Appendix S3.4.

Figure 3. Calibration increases loss variation and gradient magnitude over much of the displayed PCA plane in two numerical classification examples. The upper row (Instance 1) and lower row (Instance 2) correspond to 10-class Digits classification with two four-qubit channels and binary Breast Cancer classification with one four-qubit channel, respectively. Both are simulated with a two-qubit error parameter e2=0.08e_2 = 0.08. (a,d) Mitigated (teal) and unmitigated (orange) loss surfaces, Lmit\mathcal{L}_{\mathrm{mit}} and Lnoisy\mathcal{L}_{\mathrm{noisy}}, projected onto the two-dimensional PCA plane. The horizontal coordinates α\alpha and β\beta represent αPCA\alpha_{\mathrm{PCA}} and βPCA\beta_{\mathrm{PCA}}, respectively, while the vertical axis gives the loss L\mathcal{L}. (b,e) Logarithmic loss ratio, ln⁡(Lmit/Lnoisy)\ln(\mathcal{L}_{\mathrm{mit}}/\mathcal{L}_{\mathrm{noisy}}), evaluated at corresponding points in the PCA plane. Negative (red) and positive (teal) values indicate lower and higher mitigated loss, respectively. (c,f) Logarithmic gradient-magnitude ratio, ln⁡[(Gmit+ϵ)/(Gnoisy+ϵ)]\ln[(G_{\mathrm{mit}}+\epsilon)/(G_{\mathrm{noisy}}+\epsilon)], where G=∥∇αPCA,βPCAL∥2G = \lVert\nabla_{\alpha_{\mathrm{PCA}},\beta_{\mathrm{PCA}}}\mathcal{L}\rVert_2 and ϵ=10−12\epsilon= 10^{-12} is the numerical regularizer. Positive (teal) values indicate larger gradients under mitigation. Dark curves denote the projected optimization trajectories, with open circles and filled squares marking the initial and final parameter coordinates, respectively.

Figure 5. Structure-preserving error mitigation reduces training loss in ten-class Digits classification. (a) Training loss over 600 optimization steps. Mitigation accelerates convergence and reduces the training loss at both noise strengths, with a particularly pronounced improvement at the higher two-qubit error rate. (b) Training loss at steps 350–600, showing that the loss reduction persists late in training. At e2=0.10e_2 = 0.10, the mitigated loss approaches zero, whereas unmitigated training remains at substantially higher loss. Blue curves represent noiseless training, while orange and teal denote unmitigated and mitigated training, respectively. Solid lines with open circles correspond to e2=0.02e_2 = 0.02, and dashed lines with filled triangles to e2=0.10e_2 = 0.10. Curves show the mean over five independent runs, with shaded bands indicating one standard deviation. The QNN comprises two four-qubit channels with two circuit repetitions. Local simulations use 1,024 shots per circuit, a single-qubit error rate e1=0e_1 = 0, a readout error probability of 0.01, and 10,000 calibration shots per computational-basis input.

The channel output is the local Pauli-ZZ feature vector,

s(α)=[⟨Z1(α)⟩,…,⟨ZN(α)⟩]T,(4)\mathbf{s}^{(\alpha)} = \left[ \left\langle Z_1^{(\alpha)}\right\rangle,\ldots, \left\langle Z_N^{(\alpha)}\right\rangle \right]^{T}, \tag*{(4)}

which is estimated from the bitstring probabilities measured at the output of channel α\alpha [48, 49, 50]. The features from all channels are concatenated and passed to a classical postprocessing layer, which produces the predicted class probabilities f=[f1,…,fC]T\mathbf{f}=[f_1,\ldots,f_C]^T [51, 52, 53]. The quantum and classical parameters are trained by minimizing the standard cross-entropy loss,

L(θ,W)=−∑k=1Cykln⁡fk(x,θ,W),(5)\mathcal{L}(\boldsymbol{\theta},\mathcal{W}) = -\sum_{k=1}^{C} y_k \ln f_k(\mathbf{x},\boldsymbol{\theta},\mathcal{W}), \tag*{(5)}

where yky_k is the one-hot target label and W\mathcal{W} collects the trainable classical weights and biases. Appendix § 1.10 gives the complete model structure. Hardware noise directly distorts this learning problem because the measured features entering the loss can be contracted by decoherence, gate errors, and readout errors [7, 9, 54, 55]. A simple illustration is a parameter-independent contraction of the measured features,

snoisy≃λsideal,0<λ<1,(6)\mathbf{s}^{\mathrm{noisy}} \simeq\lambda\mathbf{s}^{\mathrm{ideal}}, \qquad0 < \lambda< 1, \tag*{(6)}

Note that this is a restricted response model for illustration, not an assumption of the implemented estimator: a general channel can attenuate different observables differently [56] and can produce parameter-dependent mixing. Moreover, the full loss gradient also depends on the classical readout evaluated at the changed features.

To address this problem, we introduce a structure-preserving mitigation protocol that calibrates the effective noise response of a fixed QNN architecture. Rather than characterizing each microscopic noise source or reconstructing a detailed device-level noise model [11, 12, 57], we keep the gate set, connectivity, and layer structure fixed during both calibration and training. Reference circuits with known ideal outputs provide calibration labels without reconstructing a microscopic noise model [29, 32, 35, 58]. Here, the reference is used to determine fixed estimators of the classifier features, whose transfer through the training family is analyzed below.

Figure 1(b) separates calibration from the subsequent training loop. We construct a reference circuit VmitV_{\mathrm{mit}} with the same gate structure, depth and connectivity as one NN-qubit QNN channel and fit its parameters classically so that Vmit≃IV_{\mathrm{mit}} \simeq I. Because the ideal reference leaves every input unchanged, any deviation between its input and output bitstrings probes the effective noise of the shared circuit structure. We verify each fit through the Frobenius-norm distance between the fitted unitary and the identity Appendix S3.6. We obtain the raw reference response matrix by preparing each computational-basis state {∣b⟩}b=02N−1\{\lvert b\rangle\}_{b=0}^{2^N-1} and measuring the output bitstring b′b',

(Mref)b′,b=Pr⁡(b′∣b).(7)(M_{\mathrm{ref}})_{b',b} = \Pr(b' \mid b). \tag*{(7)}

For a verified identity reference, the calibration response is simply Mmit=MrefM_{\mathrm{mit}}=M_{\mathrm{ref}}. More generally, if the ideal reference maps basis states to known basis states, define its permutation matrix Πb′,b=∣⟨b′∣Vmit∣b⟩∣2\Pi_{b',b}=\lvert\langle b'|V_{\mathrm{mit}}|b\rangle\rvert^2 and relabel the response columns:

Mmit=MrefΠT.(8)M_{\mathrm{mit}}=M_{\mathrm{ref}}\Pi^{T}. \tag*{(8)}

This removes the known ideal reference action from the calibration labels, so that MmitM_{\mathrm{mit}} maps ideal output distributions to noisy ones. A reference that coherently mixes basis states requires a different calibration design.

The classifier does not use the full bitstring distribution of a channel, but only its local Pauli-ZZ features. These features are linear in the output probabilities. With F∈{−1,+1}2N×NF \in\{-1,+1\}^{2^N \times N} collecting the eigenvalues

Fbq=⟨b∣Zq∣b⟩F_{bq}=\langle b\lvert Z_q\lvert b\rangle, one channel gives sideal=FTpideal\mathbf{s}^{\rm ideal}=F^{T}\mathbf{p}^{\rm ideal}. We therefore correct the features directly with a 2N×N2^N\times N feature estimator η\eta, which maps the noisy probabilities of a channel to smit=ηTpnoisy\mathbf{s}_{\rm mit}=\eta^{T}\mathbf{p}_{\rm noisy}. Under pnoisy≃Mmitpideal\mathbf{p}_{\rm noisy}\simeq M_{\rm mit}\mathbf{p}^{\rm ideal}, this estimate reproduces the ideal features provided that

MmitTη≃F.(9)M_{\rm mit}^{T}\eta\simeq F. \tag*{(9)}

We solve Eq. (9) by Tikhonov-regularized least squares, which limits the amplification of finite-shot calibration noise [Appendix S3.6]. The mitigation is thus a regularized feature estimator rather than an inverse of the full noise process, and it requires neither reconstruction of the output quantum state nor full error correction. For a QNN with PP parallel channels, the same estimator is applied independently to each channel,

smit=[s(1)mit⋮s(P)mit].(10)\mathbf{s}^{\rm mit}= \begin{bmatrix} \mathbf{s}^{(1){\rm mit}}\\ \vdots\\ \mathbf{s}^{(P){\rm mit}} \end{bmatrix}. \tag*{(10)}

When the channels share a compatible effective response, calibration is performed once for a single NN-qubit circuit block and reused across all PP channels, keeping the response dimension at 2N2^N. Shared topology defines the calibration family but does not by itself guarantee this response condition, and channels with different responses require separate small-block calibrations. Within the training loop Figure 1(c), each channel supplies noisy bitstring probabilities to the fixed estimator. The corrected feature vectors are concatenated for the classical readout, while the optimizer updates the quantum and classical parameters and leaves η\eta unchanged. Calibration reuse therefore removes the need to refit this estimator at each parameter update, provided the effective response remains compatible.

Figure 1(d) summarizes how feature correction can affect optimization. Noise can suppress the parameter dependence of the measured features and hence reduce the loss variation available to the optimizer. For fixed classical weights, recovering the feature vectors at two parameter points recovers their ideal loss difference, because the same classical readout acts on those features. Recovering their parameter derivatives also restores the corresponding loss gradient. In the main plots, orange and teal curves show one measured feature before and after correction, and Δs\Delta s marks its change between two parameter values θ\theta and θ′\theta'. The insets show the corresponding loss landscapes, where the recovered feature contrast appears as a deeper loss basin. Both the curves and the landscapes are schematic. The recovery conditions are derived in Appendix § 1.9.

Error mitigation improves variational optimization in simulation and on quantum hardware

To assess the effectiveness of our error-mitigation strategy, we first isolate the trainable quantum block from the full QNN architecture. Specifically, we remove the classical preprocessing, data-encoding, and postprocessing layers, and optimize only the variational ansatz. This controlled setting provides a direct test of whether mitigation improves the intrinsic trainability of a noisy parameterized circuit. The corresponding noise-response model is developed in Appendix § 2.2.

We consider the normalized average Pauli-Z magnetization for the initial state ∣ψ0⟩=∣0⟩⊗N|\psi_0\rangle= |0\rangle^{\otimes N}:

CZ(θ)=1N⟨ψ0∣Vtrain†(θ)(∑q=1NZq)Vtrain(θ)∣ψ0⟩.(11)C_Z(\theta) = \frac{1}{N}\langle\psi_0|V_{\mathrm{train}}^\dagger(\theta)\left(\sum_{q=1}^{N} Z_q\right)V_{\mathrm{train}}(\theta)|\psi_0\rangle. \tag*{(11)}

Here, Vtrain(θ)V_{\mathrm{train}}(\theta) is the trainable variational ansatz. This objective is particularly relevant because it is built from the same local Pauli-Z expectation values used as quantum features in the full QNN. Thus, the benchmark directly probes the quality of the measured signals that later enter the QNN loss function. Noise affects this optimization by contracting the measured magnetization and reducing its parameter sensitivity. Schematically, we have CZnoisy(θ)≃λZCZideal(θ)C_Z^{\mathrm{noisy}}(\theta) \simeq\lambda_Z C_Z^{\mathrm{ideal}}(\theta), which is the scalar counterpart of Eq. (6). Our mitigation protocol compensates this architecture-dependent contraction by applying the calibrated feature estimator η\eta, which acts as a regularized inverse of the response on the measured features. In this way, it restores part of the lost observable contrast and improves the effective resolvability of different parameter points during training.

We first evaluate this benchmark using a local noisy simulator, as summarized in Figure 2(a). For each CZ error probability, we record the minimum objective value reached during training. Without mitigation, the optimized observable deteriorates steadily as the error probability increases, indicating that noise suppresses the useful parameter dependence of the circuit output. In contrast, the mitigated minimum remains near the ideal value of −1-1 over the full range of error probabilities considered. This shows that the structure-preserving calibration compensates the dominant architecture-level distortion of the measured observables and helps maintain the effective optimization landscape. The simulated noise channels are specified in Appendix S3.5.

Figure 2. Reusable calibration improves variational optimization. (a) Minimum magnetization CZ=⟨Z⟩C_Z = \langle Z\rangle [Eq. (11)] reached during optimization as a function of the CZ-gate error probability. Mitigation keeps the optimized magnetization close to the ideal minimum of −1-1 across the simulated noise range. (b) Experimental optimization trajectories on an IBM quantum processor. After 150 optimization steps, the mitigated magnetization reaches −0.86-0.86, compared with −0.42-0.42 without mitigation. Teal solid and orange dashed curves denote mitigated and unmitigated results, respectively. (c) A fixed calibration brings training close to the noiseless reference, yielding the closest final mean training objective among the noisy protocols tested: CZ=−0.953C_Z=-0.953 versus −0.958-0.958 in the noiseless control. The dark blue dashed line with open circles denotes noiseless training; the teal solid line with filled diamonds denotes structure-preserving error mitigation. The inset magnifies the unsmoothed mean trajectories of these two methods over steps 350–500. Other curves show unmitigated training, readout mitigation, zero-noise extrapolation (ZNE), and Clifford data regression (CDR). All conditions use the same objective and zero initial angles, with at most 500 objective evaluations per run. Noisy conditions use the CZ-associated error parameter e2=0.006e_2=0.006 and a readout-flip probability of 0.01. Curves show the mean over five independent finite-shot repeats; shaded bands in the main panel indicate one sample standard deviation. Simulations in (a,c) use five qubits and four circuit layers. Protocol details and measurement budgets are given in Appendix S3.8.

We then implement the same benchmark directly on IBM Quantum hardware (Appendix § 2.1, Figure S1). Full end-to-end QNN training on hardware is costly because each optimization step requires many finite-shot circuit evaluations, and reliable performance assessment typically requires multiple independent runs. To obtain a practical hardware-level validation, we therefore use the simplified magnetization benchmark in Eq. (11) and restrict the optimization to 150 iterations. As shown in Figure 2(b), the error-mitigated trajectory converges faster and reaches lower cost values than the unmitigated baseline, ending at CZ=−0.86C_Z=-0.86 compared with −0.42-0.42. This demonstrates that the proposed mitigation protocol remains effective under realistic noise and can be integrated into iterative, closed-loop variational optimization.

Noise data for the ibm fez device

Figure S1. Noise data for the ibm fez device. The selected qubit chain is marked by the dashed box. This device information is separate from the phenomenological CX/CZ noise model used for the controlled QNN training benchmarks.

In local training simulations [Figure 2(c)], structure-preserving error mitigation substantially improves variational optimization, bringing the training objective close to the noiseless reference. After 500 objective evaluations, the mitigated circuit achieves CZ=−0.953C_Z=-0.953, compared with −0.958-0.958 for noiseless training and −0.839-0.839 without mitigation. In comparison, readout mitigation, zero-noise extrapolation (ZNE), and Clifford data regression (CDR) yield CZ=−0.866C_Z=-0.866, −0.817-0.817, and −0.932-0.932, respectively. Among the noisy protocols considered, our method achieves the closest agreement with the noiseless result. The improvement over conventional readout mitigation highlights the importance of accounting for errors accumulated during circuit execution, rather than correcting measurement errors alone. Notably, this improvement is achieved using a single architecture-specific calibration, whose estimator remains fixed throughout optimization despite changes in the variational parameters. These results demonstrate that reusable circuit-level calibration can effectively improve variational optimization without requiring repeated calibration or additional mitigation circuits at each training step.

Feature calibration and QNN loss contrast

The above magnetization benchmark shows that a fixed feature correction can preserve the parameter dependence needed for optimization; in Figure 2(c), it also brings the final mean objective closest to the noiseless reference among the tested noisy protocols. We now ask how correcting these features changes the loss of the full classifier. For training, the central question is not only whether a measured observable is biased, but also whether parameter-dependent changes in the loss remain resolvable under finite sampling [59, 60]. At fixed classical weights, a circuit parameter affects the loss through the measured features [61]. In the parameter-independent scalar approximation of Eq. (6), their Jacobian can be described as follows:

∂θsnoisy≃λeff∂θsideal.(12)\partial_{\theta_s}^{\mathrm{noisy}} \simeq\lambda_{\mathrm{eff}}\partial_{\theta_s}^{\mathrm{ideal}} . \tag*{(12)}

When the reference is correctly labelled and the effective response transfers to the trained circuit, feature calibration can compensate for this architecture-dependent contraction. In a scalar approximation, this gives

smit≃λmit−1snoisy,(13)s^{\mathrm{mit}} \simeq\lambda_{\mathrm{mit}}^{-1}s^{\mathrm{noisy}}, \tag*{(13)}

where λmit−1\lambda_{\mathrm{mit}}^{-1} represents a calibrated inverse contraction. The corresponding mean derivative is schematically λmit−1λ∂θsideal\lambda_{\mathrm{mit}}^{-1}\lambda\partial_{\theta_s}^{\mathrm{ideal}}, which recovers the ideal derivative when λmit=λ\lambda_{\mathrm{mit}}=\lambda. Appendix § 1.9 gives exact feature and derivative errors for a fixed estimator beyond this scalar picture.

To visualize this effect, we project the variational parameter space onto a two-dimensional principal-component-analysis (PCA) plane, with coordinates (αPCA,βPCA)(\alpha_{\mathrm{PCA}},\beta_{\mathrm{PCA}}) along the first two principal directions [62]. Figure 3 presents two representative classification tasks, 10-class Digits and binary Breast Cancer. The mitigated and unmitigated loss surfaces, Lmit\mathcal{L}_{\mathrm{mit}} and Lnoisy\mathcal{L}_{\mathrm{noisy}}, are evaluated on the same PCA plane, allowing a direct comparison of their optimization landscapes [Figure 3(a,Figure 3d)]. In both tasks, the unmitigated surface is comparatively flat, whereas the mitigated surface shows pronounced peaks and valleys over the same parameter range.

To quantify the changes in the loss landscape, we evaluate the logarithmic loss ratio, ln⁡(Lmit/Lnoisy)\ln(\mathcal{L}_{\mathrm{mit}}/\mathcal{L}_{\mathrm{noisy}}), at each point in the PCA plane, with the projected training trajectory overlaid [Figure 3(b,Figure 3e)]. Negative values indicate regions where mitigation reduces the loss, whereas positive values indicate a larger mitigated loss. The ratio is positive over most of the plane, while negative values are confined to smaller regions, including the vicinity of the trajectory end point.

We further characterize the local parameter sensitivity through the logarithmic gradient-magnitude ratio, ln⁡[(Gmit+ϵ)/(Gnoisy+ϵ)]\ln[(G_{\mathrm{mit}}+\epsilon)/(G_{\mathrm{noisy}}+\epsilon)], where G=∥∇αPCA,βPCAL∥2G = \lVert\nabla_{\alpha_{\mathrm{PCA}},\beta_{\mathrm{PCA}}}\mathcal{L}\rVert_2 denotes the gradient magnitude within the PCA plane and ϵ>0\epsilon> 0 is a small numerical regularizer [Figs. 3(c,f)]. Positive values indicate enhanced local gradient magnitude under mitigation. In both tasks, the gradient ratio is positive over most of the plane, with scattered regions of reduced gradient, revealing a broad increase in parameter sensitivity that can influence the optimization dynamics. The distinction between feature and derivative recovery is analyzed in Appendix § 1.9.

Error mitigation improves QNN training in binary and 10-class tasks

For the two instances in Figure 3, mitigation increases loss variation and gradient magnitude over most of the displayed PCA plane. We next follow complete training runs to test how this restored signal changes the training dynamics of noisy QNNs [7, 9, 54, 55, 63, 64, 65, 66]. Because hardware-based training requires repeated circuit evaluations for loss and gradient estimation, its measurement cost becomes substantial, particularly across multiple initializations and training runs [8, 67, 68, 69, 70, 71, 72, 73, 74]. Unless otherwise stated, we therefore use a local noisy simulator to systematically compare noiseless, noisy, and error-mitigated training under controlled noise and sampling conditions [29, 30, 35, 75, 76]. The noise model is specified in Appendix S3.5.

We first benchmark binary classification on the Breast Cancer dataset. Dataset splitting and preprocessing are described in Appendix S3.2. Figure 4(a,Figure 4b) show the training loss and training accuracy over 100 optimization steps. In the noiseless case, the QNN rapidly approaches a low-loss region and achieves high training accuracy. In contrast, under noisy execution, optimization becomes slower: the loss decreases more gradually and saturates at a higher value, consistent with the noise-induced suppression of gradients discussed above. Applying structure-preserving error mitigation largely restores the learning dynamics. The mitigated trajectory follows the noise-less reference more closely, reaches lower loss values, and converges faster than the unmitigated noisy baseline.

Figure 4. Error mitigation improves QNN training and classification performance. (a) Training loss over 100 optimization steps. Mitigation accelerates loss reduction and achieves lower loss than that obtained with either unmitigated or noiseless training. (b) Training accuracy, showing that mitigation enables faster convergence towards nearly perfect classification, whereas unmitigated training requires substantially more optimization steps. (c) Validation loss over seven epochs. Mitigation consistently yields the lowest validation loss, indicating that the improvement extends beyond the training data. (d) Validation accuracy, demonstrating faster convergence and improved classification performance under mitigation, approaching the noiseless reference while outperforming unmitigated training. Blue, orange and teal curves denote noiseless, unmitigated and mitigated results, respectively. Curves show the mean over three independent runs, with shaded bands indicating one standard deviation. The binary Breast Cancer classifier comprises two four-qubit channels with four circuit repetitions. Local simulations use 2,048 shots per circuit, a single-qubit error rate e1=0e_1 = 0, a two-qubit error rate e2=0.05e_2 = 0.05 and a readout error probability of 0.01. Calibration uses 4,000 shots per basis input.

We also evaluate generalization performance during training. Figure 4(c,Figure 4d) show the corresponding validation loss and validation accuracy, with shaded regions indicating the standard deviation over independent

runs. Without mitigation, the validation curves exhibit stronger fluctuations and systematically degraded accuracy. By contrast, the mitigated QNN achieves higher mean validation accuracy and lower validation loss, while also reducing run-to-run variability. These results indicate that the mitigation procedure improves not only the training trajectory but also the stability of the learned classifier.

We next consider the more demanding 10-class Digits image classification task and test the robustness of the method under stronger two-qubit gate noise. In this setting, we vary the per-endpoint bit-flip parameter e2e_2 attached to those gates. The circuit implementation and local noise model are given in Appendices S3.4 and S3.5. Figure 5(a) shows the training loss for noiseless circuits and for noisy circuits with two-qubit error rates e2=0.02e_2 = 0.02 and e2=0.10e_2 = 0.10, with and without mitigation. Consistent with the above binary benchmark, unmitigated noise slows convergence and leads to higher training loss, whereas our error-mitigation method substantially improves the training trajectory, producing faster convergence and lower final loss across the noise strengths considered. A closer view of the late-stage training regime is shown in Figure 5(b), focusing on optimization steps 350–600. The mitigated trajectories reach lower loss plateaus and display reduced oscillations compared with the unmitigated noisy cases.

Calibration reuse in a 25-channel modular QNN

We next consider calibration reuse as the number of channels increases. The architecture in Figure 6(a) comprises 25 independent four-qubit channels: its 100 qubits are counted in aggregate, with quantum gates acting within each four-qubit block and a classical readout combining the channel features. For a modular architecture comprising PP channels of NN qubits each, the quantum layer generates PNPN measurement features, while calibration requires a 2N×2N2^N \times2^N response matrix and a 2N×N2^N \times N feature estimator per channel. When channels share a compatible effective noise response, one calibrated estimator can be reused throughout the network. The estimator construction and requirements for reuse are detailed in Appendices S3.6 and § 1.9.

Figure 6. Reusable channel calibration in a 25-channel QNN with 100 aggregate qubits. (a) The quantum layer comprises 25 independent four-qubit channels, whose 100 local Pauli-ZZ features enter a classical readout. There are no inter-channel quantum gates. Channels with compatible effective responses share a 16×1616 \times16 response matrix and a 16×416 \times4 feature estimator η\eta. (b) Reported mean test accuracies at e2=0.02e_2 = 0.02 and 0.100.10. Structure-preserving error mitigation raises accuracy from 82.0% to 83.6% and from 81.6% to 83.6%, respectively. The remaining gap is 0.8 percentage points. Terracotta circles and teal squares show unmitigated and mitigated means; the navy dashed line denotes the noiseless reference. Error bars and shading show the retained reported standard deviations, not confidence intervals.

Figure 6(b) shows the retained accuracy comparison for the 25-channel model. At e2=0.02e_2 = 0.02 and 0.100.10, the unmitigated mean test accuracies are 82.0% and 81.6%, respectively; calibration increases both to 83.6%. Although modest in absolute terms, these gains of 1.6 and 2.0 percentage points recover approximately 67% and 71% of the respective 2.4- and 2.8-percentage-point gaps to the noiseless mean of 84.4%. The residual gap is 0.8 percentage points at both noise strengths. This comparison quantifies recovery of noise-degraded accuracy within the same architecture.

For four-qubit channels, a shared calibration uses 16 computational-basis input settings and one 16×1616 \times16 response matrix, independent of PP, provided that the effective responses remain compatible. Distinct channel responses instead require 16P16P settings and PP small response matrices. At P=25P = 25, these alternatives use 16 and 400 settings, respectively, rather than the 21002^{100} settings of a dense full-system basis calibration. Channel execution and feature-processing costs still grow with PP, and the shot cost equals the number of calibration settings multiplied by the shots per setting. Together with the training results in Figure 4 and Figure 5, the 25-channel accuracy comparison illustrates how local calibration can be reused in a wider modular QNN without enlarging the calibrated block.

Discussion

Quantum noise can degrade QNN trainability by distorting the measured quantum features and their dependence on variational parameters, thereby modifying the loss landscape and the gradients available to the optimizer [7, 8, 9, 54, 55]. Our approach addresses this problem by calibrating the effective noise response of a fixed circuit architecture and directly correcting the observables that determine the learning objective. Rather than characterizing individual microscopic noise processes, the method exploits the shared circuit structure to construct a reusable feature estimator [10, 11, 12, 35]. Crucially, the theoretical analysis establishes that successful reuse requires not only accurate calibration of the reference circuit but also sufficiently small response mismatch and parameter-dependent variations across the training circuit family. Under these conditions, the calibrated estimator can recover both the measured features and their parameter sensitivities, providing a direct mechanism for improving optimization under noise.

Our numerical results demonstrate the consequences of this feature-level correction for variational learning. Across the classification benchmarks, structure-preserving mitigation increases loss contrast and gradient magnitudes over substantial regions of the parameter space, accelerates convergence, and improves training and validation performance relative to unmitigated noisy execution. These improvements indicate that recovering the parameter dependence of measured observables can substantially improve the effective optimization landscape, beyond correcting biases in individual expectation values. The IBM Quantum experiment further demonstrates that the same calibration strategy improves closed-loop variational optimization on superconducting quantum hardware, supporting its practical applicability beyond idealized noise models. These findings complement existing approaches that integrate error mitigation into variational optimization [34, 77].

An important practical advantage is that the calibration can be reused across training iterations and, when the effective noise responses are compatible, across independent quantum channels. For a modular QNN comprising a PP-channel architecture, a shared calibration uses one 16×1616 \times16 response matrix, independent of PP, provided that the effective responses remain compatible. Distinct channel responses instead require 16P16P settings and PP small response matrices. At P=25P = 25, these alternatives use 16 and 400 settings, respectively, rather than the 21002^{100} settings of a dense full-system basis calibration. Channel execution and feature-processing costs still grow with PP, and the shot cost equals the number of calibration settings multiplied by the shots per setting. Together with the training results in Figure 4 and Figure 5, the 25-channel accuracy comparison illustrates how local calibration can be reused in a wider modular QNN without enlarging the calibrated block. prising PP channels of NN qubits, a shared calibration requires a 2N×2N2^N \times2^N response matrix, independent of the total number of channels. This reduces the calibration requirements relative to a full-system treatment, although circuit execution and feature processing still scale with PP. The benefit therefore lies in the reuse of a small, architecture-specific calibration rather than the elimination of sampling costs or an unconditional guarantee of transfer across circuits [78, 79, 80]. In this respect, our method complements readout mitigation, learned corrections, and other circuit- or structure-aware mitigation strategies [17, 18, 29, 30, 33, 81, 82, 83, 84].

ACKNOWLEDGMENTS

We acknowledge the use of IBM Quantum services for this work. The views expressed are those of the authors and do not reflect the official policy or position of IBM or the IBM Quantum team. This research is supported by the Singapore Ministry of Education (MOE) through an Academic Research Fund Tier-II Grant (MOE-T2EP50224-0007). Additional support was provided by the Air Force Office of Scientific Research (Award No. FA2386-24-1-4011).

References

Notation and conventions

This glossary connects the circuit and estimator labels in Figure 1 to the quantities used in the main-text equations and the recovery analysis below. In particular, it distinguishes channel size, aggregate width and the several unrelated uses of contraction and regularization parameters.

All probability, feature, logit, and label vectors are column vectors. Sample and channel indices are omitted when the context refers to one sample or one channel. In a single-channel formula, s∈RN\mathbf{s} \in\mathbb{R}^{N} and p∈R2N\mathbf{p} \in\mathbb{R}^{2^{N}}. In a formula for the complete QNN, s∈RNP\mathbf{s} \in\mathbb{R}^{NP} is the column obtained by stacking channel features. The superscripts ideal, noisy, and mit identify the execution or estimation condition, and (α)(\alpha) identifies a quantum channel. Shortened figure labels and schematic aliases are listed with the corresponding symbols below.

Indices

i=1,…,Qi = 1,\ldots,Q Sample index.

k,k′=1,…,Ck,k' = 1,\ldots,C True, predicted, or summation class indices.

α=1,…,P\alpha= 1,\ldots,P Quantum-channel index; Figure 1(c) displays channels 1,2,…,P1,2,\ldots,P.

q,q′=1,…,Nq,q' = 1,\ldots,N Qubit indices within a channel.

ℓ\ell Variational-layer index, with LL counting entangling repetitions. The CX ansatz used in the classification benchmarks has rotation layers 1,…,L+11,\ldots,L+1, while the CZ schematic has LL. Distinct from the logit vector l\mathbf{l}.

b,b′b,b' Computational-basis bitstring indices in {0,…,2N−1}\{0,\ldots,2^{N}-1\}. In calibration, bb is the prepared input and b′b' the measured output.

jj Coordinate index for the quantum-parameter derivative ∂j=∂/∂θj\partial_j = \partial/\partial\theta_j.

Problem sizes and shot counts

Q,C,KQ,C,K Dataset sample count, class count, and original input dimension, respectively.

P,N,LP,N,L Number of parallel quantum channels, qubits per channel, and entangling repetitions, respectively. The aggregate number of channel qubits is NPNP.

ScalibS_{\mathrm{calib}} Calibration shots per prepared basis state.

Data and classical preprocessing/postprocessing

xi\mathbf{x}_i Input for sample ii, in RK\mathbb{R}^{K}.

xlatent,i\mathbf{x}_{\mathrm{latent},i} Latent column in RNP\mathbb{R}^{NP}, equal to Wprexi+bpreW_{\mathrm{pre}}\mathbf{x}_i+\mathbf{b}_{\mathrm{pre}}.

xi(α)\mathbf{x}_i^{(\alpha)} Length-NN latent subvector supplied to channel α\alpha.

yi\mathbf{y}_i One-hot label in {0,1}C\{0,1\}^{C}, with components yi,ky_{i,k}.

li,fi\mathbf{l}_i,\mathbf{f}_i Length-CC logit and predicted-probability columns, with components li,kl_{i,k} and fi,kf_{i,k}. Softmax maps li\mathbf{l}_i to fi\mathbf{f}_i.

Wpre,bpreW_{\mathrm{pre}},\mathbf{b}_{\mathrm{pre}} Preprocessing weights and bias, of dimensions NP×KNP \times K and NPNP.

Wpost,bpostW_{\mathrm{post}},\mathbf{b}_{\mathrm{post}} Readout weights and bias, of dimensions C×NPC \times NP and CC, with l=Wposts+bpost\mathbf{l}=W_{\mathrm{post}}\mathbf{s}+\mathbf{b}_{\mathrm{post}}.

W\mathcal{W} Collection {Wpre,bpre,Wpost,bpost}\{W_{\mathrm{pre}},\mathbf{b}_{\mathrm{pre}},W_{\mathrm{post}},\mathbf{b}_{\mathrm{post}}\} of classical parameters, denoted ww in Figure 1.

Quantum circuits, states, and measurements

VV Encoded channel circuit V(xi(α),θ(α))=Vtrain(θ(α))Venc(xi(α))V(\mathbf{x}_i^{(\alpha)},\boldsymbol{\theta}^{(\alpha)})=V_{\mathrm{train}}(\boldsymbol{\theta}^{(\alpha)})V_{\mathrm{enc}}(\mathbf{x}_i^{(\alpha)}). Figure 1(a) labels this channel block VV, while panel (c) uses Uθ,αU_{\theta,\alpha} for channel α\alpha.

Venc,VtrainV_{\mathrm{enc}},V_{\mathrm{train}} Data-encoding unitary and trainable variational ansatz.

Vrot(ℓ),VentV_{\mathrm{rot}}^{(\ell)},V_{\mathrm{ent}} Layer-ℓ\ell rotations and the fixed entangling pattern, specified separately for the CX implementation and CZ example. Operator products act on states from right to left.

θ\boldsymbol{\theta} Quantum parameters, with θ(α)\boldsymbol{\theta}^{(\alpha)} for a channel and θq,y(ℓ),θq,z(ℓ)\theta_{q,y}^{(\ell)},\theta_{q,z}^{(\ell)} for its layer rotations.

∣ψ0⟩,ρ0|\psi_0\rangle,\rho_0 Reference state ∣0⟩⊗N|0\rangle^{\otimes N} and projector ρ0=∣ψ0⟩⟨ψ0∣\rho_0=|\psi_0\rangle\langle\psi_0|.

∣ψ⟩|\psi\rangle Encoded channel output state ∣ψ(x(α),θ(α))⟩=V∣ψ0⟩|\psi(\mathbf{x}^{(\alpha)},\boldsymbol{\theta}^{(\alpha)})\rangle=V|\psi_0\rangle.

Xq,Yq,ZqX_q,Y_q,Z_q Local Pauli operators on qubit qq.

sq(α),s(α)s_q^{(\alpha)},\mathbf{s}^{(\alpha)} Scalar local expectation ⟨Zq(α)⟩\langle Z_q^{(\alpha)}\rangle [Eq. (46)] and its length-NN feature column.

s,Δss, \Delta s One measured feature sqs_q, drawn as s(θ)s(\theta) against one circuit parameter in Figure 1(d), and its change Δs=s(θ)−s(θ′)\Delta s = s(\theta) - s(\theta') between two parameter values.

ss Length-NPNP column formed by stacking s(1),…,s(P)\mathbf{s}^{(1)}, \ldots, \mathbf{s}^{(P)} when all channels are included.

pideal,pnoisy\mathbf{p}^{\mathrm{ideal}}, \mathbf{p}^{\mathrm{noisy}} Length-2N2^N single-channel probability columns, written [p(α)]noisy[\mathbf{p}^{(\alpha)}]^{\mathrm{noisy}} for channel α\alpha. The implemented estimator computes corrected features directly, without requiring a reconstructed probability column.

FF Measurement-eigenvalue matrix in {−1,+1}2N×N\{-1,+1\}^{2^N \times N}, with Fbq=⟨b∣Zq∣b⟩F_{bq} = \langle b|Z_q|b\rangle and sideal=FTpideal\mathbf{s}^{\mathrm{ideal}} = F^{\mathsf{T}}\mathbf{p}^{\mathrm{ideal}}.

CZC_Z Normalized mean magnetization N−1∑q⟨Zq⟩N^{-1}\sum_q \langle Z_q\rangle [Eq. (11)], plotted as ⟨Z⟩\langle Z\rangle in Figure 2.

Noise parameters and phenomenological responses

e1,e2,eroe_1,e_2,e_{\mathrm{ro}} Single-qubit depolarizing parameter, independent per-endpoint Pauli-XX error probability after each CX or CZ gate of the implemented circuit, and readout bit-flip probability, respectively. Figure 5 labels e2e_2 as p2p_2.

pap_a Binary Pauli-error weights in Eq. (41), p0=1−e2p_0 = 1-e_2 and p1=e2p_1=e_2, distinct from the probability vector p\mathbf{p}.

λ,λZ,λmit\lambda,\lambda_Z,\lambda_{\mathrm{mit}} Phenomenological feature contraction, mean-magnetization contraction, and calibrated contraction, respectively, with λmit−1\lambda_{\mathrm{mit}}^{-1} the inverse signal factor. These differ from the regularization strength λreg\lambda_{\mathrm{reg}}.

Anoise,Amit−1A_{\mathrm{noise}}, A_{\mathrm{mit}}^{-1} Effective N×NN \times N feature response and correction in the single-channel phenomenological model of Sec. S5.

ξ~Z,ξ~\tilde{\xi}_Z,\tilde{\xi} Scalar magnetization and vector feature fluctuations.

Error mitigation

Vmit,θidV_{\mathrm{mit}},\theta_{\mathrm{id}} Identity-target reference circuit and its fitted parameters.

Mref,ΠM_{\mathrm{ref}},\Pi Raw reference response (Mref)b′b=Pr⁡(b′∣b)(M_{\mathrm{ref}})_{b'b} = \Pr(b' \mid b) and permutation matrix of the ideal reference action [Eqs. (7) and (8)].

MmitM_{\mathrm{mit}} Effective response MrefΠTM_{\mathrm{ref}}\Pi T in ideal-output labels, of size 2N×2N2^N \times2^N. The Figure 1 schematic shows the identity-reference case, in which Mch≡MmitM_{\mathrm{ch}} \equiv M_{\mathrm{mit}}. Section S2 abbreviates the effective response as MM.

η,ηq\eta,\eta_q 2N×N2^N \times N feature-estimator matrix and its column qq, with MmitTη≃FM_{\mathrm{mit}}^{\mathsf{T}}\eta\simeq F and smit=ηTpnoisy\mathbf{s}^{\mathrm{mit}} = \eta^{\mathsf{T}}\mathbf{p}^{\mathrm{noisy}} for one channel.

λreg\lambda_{\mathrm{reg}} Tikhonov regularization strength. The identity II in the estimator solution is 2N2^N-dimensional.

smit\mathbf{s}^{\mathrm{mit}} Corrected feature column. For channel α\alpha, it is written [s(α)]mit∈RN[\mathbf{s}^{(\alpha)}]^{\mathrm{mit}} \in\mathbb{R}^N, and stacking these columns gives the complete length-NPNP vector.

Training, landscape coordinates, and supplementary theory

vv Complete trainable parameter collection, W\mathcal{W} together with θ\theta.

L\mathcal{L} Cross-entropy loss, with single-sample form in Eq. (5) and dataset average in Eq. (58). Logarithms are natural.

αPCA,βPCA\alpha_{\mathrm{PCA}},\beta_{\mathrm{PCA}} PCA-plane coordinates, shortened to α,β\alpha,\beta on the Figure 3 axes and distinct from the channel index α\alpha.

G,ϵG,\epsilon Scalar gradient norm G=∥∇αPCA,βPCAL∥2G = \lVert\nabla_{\alpha_{\mathrm{PCA}},\beta_{\mathrm{PCA}}}\mathcal{L}\rVert_2 and stabilizer ϵ=10−12\epsilon= 10^{-12} in its plotted log ratio.

Uθ,Cθ\mathcal{U}_{\theta},\mathcal{C}_{\theta} Ideal and noisy quantum channels in Sec. S2. The star denotes their adjoint action.

BqB_q Diagonal corrected measurement observable ∑bηqb∣b⟩⟨b∣\sum_b \eta_{qb}|b\rangle\langle b|.

r,Rq,ϱq\mathbf{r},R_q,\varrho_q Transfer residual, calibration-residual column, and scalar feature bias [Eqs. (17) and (18)].

U,σ,N(q)U,\sigma,\mathcal{N}(q) Illustrative ideal unitary, a Pauli string, and the neighbor set of qubit qq in the two-layer example. Without a qubit argument, N\mathcal{N} denotes the noise channel of Sec. S5.

dℓq,γ(σ)d_{\ell q},\gamma(\sigma) Onsite and entangling-error Pauli contractions in layer ℓ\ell.

Kxq,Kyq,d1⋆qK_{xq},K_{yq},d_{1\star q} Neighbor-supported Pauli strings and the product of onsite contractions over qq and its neighbors [Eq. (23)].

aq,hq,μqa_q,h_q,\mu_q Longitudinal, transverse, and identity-reference parity responses, with μq=aq\mu_q = a_q in the stated two-layer zero-angle reference.

ϑ\vartheta, mZ,qm_{Z,q}, mK,qm_{K,q} Angle ϑ=θq,y(2)\vartheta= \theta_{q,y}^{(2)} and the two ideal correlators used in Eq. (25).

kqk_q, Δq\Delta_q Regularized scalar score kq=aq/(aq2+λreg)k_q = a_q/(a_q^2 + \lambda_{\mathrm{reg}}) and adjoint-observable residual in the two-layer example.

Observable recovery and calibration reuse in QNN training

The structure-preserving calibration targets the measurement functionals that enter the QNN. Its reuse during training is governed by how faithfully a fixed estimator recovers these functionals as circuit parameters change. Here we express this mechanism at the observable level, derive separate contributions from calibration and transfer errors, and illustrate their effect on features and derivatives in a two-layer circuit. The observable criterion below gives the feature and derivative recovery conditions underlying the schematic feature correction in Figure 1(d); the residual identities also guide interpretation of the numerical loss and gradient maps in Figure 3.

The calibrated estimator as a measurement observable

Consider one NN-qubit channel. Write M≡MmitM \equiv M_{\mathrm{mit}} for its response in ideal-output labels [Eq. (8)], Fbq=⟨b∣Zq∣b⟩F_{bq} = \langle b|Z_q|b\rangle for the ideal measurement functional, and ηq\eta_q for column qq of the estimator

η=(MMT+λregI)−1MF,sqmit=ηqTpnoisy.(14)\eta= (MM^T + \lambda_{\mathrm{reg}}I)^{-1}MF,\qquad s_q^{\mathrm{mit}} = \eta_q^T p^{\mathrm{noisy}}. \tag*{(14)}

The regularization parameter λreg>0\lambda_{\mathrm{reg}} > 0 balances agreement with the calibration constraints against the magnitude of the estimator weights. For a fixed calibration, all quantities below refer to mean features conditioned on that calibration and do not include fluctuations from output sampling.

Let UθU_\theta and CθC_\theta denote the ideal and noisy circuit channels, respectively, and let ρ\rho be the input state. The dependence on the classical input is suppressed in this notation. Computational-basis readout errors can be included in the terminal action of CθC_\theta. Define the diagonal observable Bq=∑bηbq∣b⟩⟨b∣B_q = \sum_b \eta_{bq}|b\rangle\langle b|. The ideal and corrected features are

sqideal=Tr⁡[ρUθ∗(Zq)],sqmit=Tr⁡[ρCθ∗(Bq)],(15)s_q^{\mathrm{ideal}} = \operatorname{Tr}[\rho U_\theta^*(Z_q)],\qquad s_q^{\mathrm{mit}} = \operatorname{Tr}[\rho C_\theta^*(B_q)], \tag*{(15)}

where the star denotes the adjoint channel. Thus, recovery for every input state is equivalent to

Cθ∗(Bq)=Uθ∗(Zq).(16)C_\theta^*(B_q) = U_\theta^*(Z_q). \tag*{(16)}

The operator norm of the difference between these two Hermitian operators is exactly the largest absolute feature bias over input states. This criterion concerns the measured observable and does not require reconstruction of the output quantum state.

For an ideal identity reference, basis-input calibration determines the diagonal matrix elements of this relation through MTηq≃FqM^T\eta_q \simeq F_q. If both adjoint observables are diagonal, equality of these diagonal entries certifies recovery at the reference. Otherwise, basis-input constraints do not determine the off-diagonal entries. Transfer of this recovery across the parameter family additionally depends on the response of the intervening rotations and noisy gates. Even angle-independent errors at individual gates can produce an angle-dependent effective response after propagation through the rest of the circuit.

Feature and derivative errors under a fixed calibration

For arbitrary circuit inputs and parameters, define the transfer residual r\mathbf{r} and the calibration residual Rq\mathbf{R}_q by

r=pnoisy−Mpideal,Rq=MTηq−Fq.(17)\mathbf{r} = \mathbf{p}^{\mathrm{noisy}} - M\mathbf{p}^{\mathrm{ideal}},\qquad\mathbf{R}_q = M^T\eta_q - F_q. \tag*{(17)}

This definition leaves all mismatch between the calibrated reference and a deployed circuit in r\mathbf{r}. In particular, it accommodates parameter dependence, input dependence, imperfect identity fitting, and noise drift. The resulting feature bias eq=sqmit−sqideale_q = s_q^{\mathrm{mit}} - s_q^{\mathrm{ideal}} satisfies the exact identities

eq=RqTpideal+ηqTr,(18)e_q = \mathbf{R}_q^T\mathbf{p}^{\mathrm{ideal}} + \eta_q^T\mathbf{r}, \tag*{(18)}
∂jeq=RqT∂jpideal+ηqT∂jr.(19)\partial_j e_q = \mathbf{R}_q^T\partial_j\mathbf{p}^{\mathrm{ideal}} + \eta_q^T\partial_j\mathbf{r}. \tag*{(19)}

where ∂j=∂/∂θj\partial_j = \partial/\partial\theta_j and MM and η\eta are held fixed. Since ∥pideal∥1=1\|\mathbf{p}^{\mathrm{ideal}}\|_1 = 1, these imply

∣eq∣≤∥Rq∥∞+∥ηq∥∞∥r∥1.(20)|e_q| \leq\|\mathbf{R}_q\|_\infty+ \|\boldsymbol{\eta}_q\|_\infty\|\mathbf{r}\|_1. \tag*{(20)}
∣∂jeq∣≤∥Rq∥∞∥∂jpideal∥1+∥ηq∥∞∥∂jr∥1.(21)|\partial_j e_q| \leq\|\mathbf{R}_q\|_\infty\|\partial_j\mathbf{p}^{\mathrm{ideal}}\|_1 + \|\boldsymbol{\eta}_q\|_\infty\|\partial_j\mathbf{r}\|_1. \tag*{(21)}

Consequently, a reusable calibration recovers features when the calibration residual and the amplified transfer residual are small. Recovery of their derivatives requires control of the variation of that transfer residual as well. Regularization limits amplification through the estimator weights while allowing a finite calibration residual. These identities apply to any fixed estimator and response matrix, independently of a particular gate decomposition or scalar noise approximation. The residuals thus provide measures of feature-recovery accuracy beyond the training loss.

Analytical example: longitudinal and transverse attenuation

For an identity reference composed of Clifford gates with stochastic Pauli errors, the exact probability response takes the form Mb′b=c(b′⊕b)M_{b'b} = c(b' \oplus b), where cc is the distribution of effective bit flips and ⊕\oplus denotes bitwise addition modulo two. The local parity FqF_q is an eigenvector: MFq=μqFqMF_q = \mu_qF_q. Since this response matrix is symmetric, Eq. (14) becomes

ηq=μqμq2+λregFq.(22)\eta_q = \frac{\mu_q}{\mu_q^2+\lambda_{\mathrm{reg}}}F_q. \tag*{(22)}

In this regime, calibration corrects the attenuation of each local feature. This reduction concerns the exact reference response. A finite-sample response matrix can also mix different parities.

To examine transfer explicitly, consider the ideal two-layer circuit U=Vent(2)Vrot(2)Vent(1)Vrot(1)U = V_{\mathrm{ent}}^{(2)}V_{\mathrm{rot}}^{(2)}V_{\mathrm{ent}}^{(1)}V_{\mathrm{rot}}^{(1)}, where VentV_{\mathrm{ent}} is a product of CZ gates on a fixed simple graph and Vrot(ℓ)=⨂qRz(θq,z(ℓ))Ry(θq,y(ℓ))V_{\mathrm{rot}}^{(\ell)} = \bigotimes_q R_z(\theta_{q,z}^{(\ell)})R_y(\theta_{q,y}^{(\ell)}). Assume stationary, angle-independent stochastic Pauli errors after the entangling gates and onsite depolarization after each rotation layer. Let dℓq>0d_{\ell q} > 0 be the onsite Pauli contraction. Propagating the entangling-gate errors through the remaining CZ gates of that layer gives a Pauli channel with eigenvalues γℓ(σ)>0\gamma_\ell(\sigma) > 0 on Pauli strings σ\sigma. For the neighbor set N(q)\mathcal{N}(q), introduce

Kxq=Xq∏q′∈N(q)Zq′,d1⋆q=∏q′∈{q}∪N(q)d1q′.(23)K_{xq} = X_q\prod_{q'\in\mathcal{N}(q)} Z_{q'}, \qquad d_{1\star q} = \prod_{q'\in\{q\}\cup\mathcal{N}(q)} d_{1q'}. \tag*{(23)}

The longitudinal and transverse responses are, respectively,

aq=γ2(Zq)d2qγ1(Zq)d1q,hq=γ2(Zq)d2qγ1(Xq)d1⋆q.(24)a_q = \gamma_2(Z_q)d_{2q}\gamma_1(Z_q)d_{1q}, \qquad h_q = \gamma_2(Z_q)d_{2q}\gamma_1(X_q)d_{1\star q}. \tag*{(24)}

Writing ϑ=θq,y(2)\vartheta= \theta_{q,y}^{(2)}, mZ,q=Tr⁡(ρ[Vrot(1)]†ZqVrot(1))m_{Z,q} = \operatorname{Tr}(\rho[V_{\mathrm{rot}}^{(1)}]^\dagger Z_qV_{\mathrm{rot}}^{(1)}), and mK,q=Tr⁡(ρ[Vrot(1)]†KxqVrot(1))m_{K,q} = \operatorname{Tr}(\rho[V_{\mathrm{rot}}^{(1)}]^\dagger K_{xq}V_{\mathrm{rot}}^{(1)}) gives

sqideal=cos⁡ϑ mZ,q−sin⁡ϑ mK,q,sqnoisy=aqcos⁡ϑ mZ,q−hqsin⁡ϑ mK,q.(25)s_q^{\mathrm{ideal}} = \cos\vartheta\,m_{Z,q} - \sin\vartheta\,m_{K,q}, \qquad s_q^{\mathrm{noisy}} = a_q\cos\vartheta\,m_{Z,q} - h_q\sin\vartheta\,m_{K,q}. \tag*{(25)}

These expressions follow by propagating ZqZ_q backwards: the final CZ layer fixes ZqZ_q, the second RyR_y rotation mixes ZqZ_q and XqX_q, and the first CZ layer transforms XqX_q into KxqK_{xq}. The two resulting components acquire the distinct factors in Eq. (24).

With all angles zero, Vent2=IV_{\mathrm{ent}}^2 = I and the reference measures μq=aq\mu_q = a_q. In the unregularized limit, the score Zq/aqZ_q/a_q therefore leaves the operator residual

Δq=Cθ∗(Zq/aq)−Uθ∗(Zq)=(1−hqaq)sin⁡ϑ [Vrot(1)]†KxqVrot(1).(26)\Delta_q = \mathcal{C}_\theta^*(Z_q/a_q) - \mathcal{U}_\theta^*(Z_q) = \left(1-\frac{h_q}{a_q}\right)\sin\vartheta\,[V_{\mathrm{rot}}^{(1)}]^\dagger K_{xq}V_{\mathrm{rot}}^{(1)}. \tag*{(26)}

Its feature and derivative norms are

∥Δq∥op=∣1−hqaq∣∣sin⁡ϑ∣,∥∂ϑΔq∥op=∣1−hqaq∣∣cos⁡ϑ∣.(27)\|\Delta_q\|_{\mathrm{op}} = \left|1-\frac{h_q}{a_q}\right||\sin\vartheta|, \qquad\|\partial_\vartheta\Delta_q\|_{\mathrm{op}} = \left|1-\frac{h_q}{a_q}\right||\cos\vartheta|. \tag*{(27)}

Thus, similar longitudinal and transverse responses support transfer of the scalar correction. At ϑ=0\vartheta= 0, feature bias vanishes even when the derivative bias is nonzero. For finite regularization, the scalar score becomes kq=aq/(aq2+λreg)k_q = a_q/(a_q^2+\lambda_{\mathrm{reg}}), and the corresponding residual is

Δq,λreg=(kqaq−1)cos⁡ϑ [Vrot(1)]†ZqVrot(1)+(1−kqhq)sin⁡ϑ [Vrot(1)]†KxqVrot(1).(28)\Delta_{q,\lambda_{\mathrm{reg}}} = (k_qa_q-1)\cos\vartheta\,[V_{\mathrm{rot}}^{(1)}]^\dagger Z_qV_{\mathrm{rot}}^{(1)} + (1-k_qh_q)\sin\vartheta\,[V_{\mathrm{rot}}^{(1)}]^\dagger K_{xq}V_{\mathrm{rot}}^{(1)}. \tag*{(28)}

This example resolves the scalar attenuation picture into two response components and identifies the regularization contribution explicitly. Its closed-form expressions assume the stated two-layer CZ model, whereas the general residual identities above apply to other circuit architectures and depths. Resolving the transverse response through additional measurements of KxqK_{xq} and Kyq=Yq∏q′∈N(q)Zq′K_{yq} = Y_q\prod_{q'\in\mathcal{N}(q)} Z_{q'} would define an augmented measurement protocol, beyond the computational-basis estimator used here.

Details of QNN training

This section specifies the numerical classifiers, noise parameters and calibration procedure used for Figure 3–Figure 5; the separate protocol for Figure 2(c) is given in Sec. S3.8. The details distinguish the illustrated CZ channel from the retained classification implementation.

Implementation overview

The software interfaces below implement the closed loop in Figure 1(c), including the conversion from sampled bitstrings to fixed, calibrated features supplied to the classical model.

The error-mitigated QNN training framework is implemented in Python. The classical components of the workflow, including data loading, batching, model construction, and optimization, are handled using PyTorch and PyTorch-Lightning [85]. Quantum circuits are constructed and simulated using Qiskit, while noisy circuit execution is performed with Qiskit Aer through the AerSimulator backend.

To integrate the quantum circuits into the hybrid learning pipeline, we use Qiskit-Machine-Learning. The quantum block is implemented using the SamplerQNN primitive and connected to the PyTorch model through the TorchConnector, allowing the quantum outputs to be incorporated into the end-to-end training loop. Classical data preprocessing, including feature scaling and train-validation-test splitting, is performed using scikit-learn [86]. Reference fitting uses SciPy, and response relabelling and the linear solve are implemented in NumPy [87, 88].

Data handling and preprocessing

The splits and transformations here define the training and generalization tasks in Figure 3–Figure 5; fitted preprocessing uses training data only.

We evaluate the QNN classifiers using two benchmark datasets: Breast Cancer and Digits. The Breast Cancer dataset contains 569 samples with 30 numerical features for binary classification, while the Digits dataset comprises 1797 handwritten-digit images of size 8×88 \times8, represented by 64 features for ten-class classification. The Breast Cancer dataset is used in Figure 3(d–Figure 3f) and 4, whereas Digits is used in Figure 3(a–Figure 3c) and 5.

Each dataset is divided into training, validation, and test subsets with proportions of 70%, 10%, and 20%, respectively. Stratified sampling preserves the class distributions across all subsets. Input features are standardized using scikit-learn’s StandardScaler, with the mean and standard deviation determined exclusively from the training set and subsequently applied to the validation and test sets to prevent data leakage.

Hybrid quantum-classical architecture

The three stages below specify which quantities are optimized in the classifier and where the fixed estimator enters Figure 1(c). They also determine the dimensions used in the main-text recovery equations.

We employ a hybrid classifier that combines classical preprocessing and postprocessing layers with a parallel quantum circuit block, as shown in Figure 1. This modular architecture allows the classical layers to adapt the input and output dimensions to the available quantum resources, while the quantum block supplies trainable measurement features for classification. The model consists of three stages.

  1. Classical preprocessing. The standardized input feature vector x∈RK\mathbf{x} \in\mathbb{R}^{K} is first mapped to a latent representation by a trainable classical linear layer,

xlatent=Wprex+bpre.(29)\mathbf{x}_{\mathrm{latent}} = W_{\mathrm{pre}}\mathbf{x} + \mathbf{b}_{\mathrm{pre}}. \tag*{(29)}

For a QNN with PP parallel quantum channels and NN qubits per channel, the latent vector has dimension NPNP and is partitioned as

xlatent=[x(1)⋮x(P)],(30)\mathbf{x}_{\mathrm{latent}} = \begin{bmatrix} \mathbf{x}^{(1)} \\ \vdots\\ \mathbf{x}^{(P)} \end{bmatrix}, \tag*{(30)}

where x(α)∈RN\mathbf{x}^{(\alpha)} \in\mathbb{R}^{N} denotes the feature subvector assigned to the α\alpha-th quantum channel. 2. Quantum block. The latent features are distributed across the PP quantum channels. Each channel α∈{1,…,P}\alpha\in\{1,\ldots,P\} receives the subvector x(α)\mathbf{x}^{(\alpha)} and processes it using an NN-qubit parameterized circuit,

V(x(α),θ(α)).(31)V\left(\mathbf{x}^{(\alpha)},\boldsymbol{\theta}^{(\alpha)}\right). \tag*{(31)}

The circuit output is measured in the computational basis to obtain raw bitstring probabilities. Under noisy execution, these probabilities are postprocessed using the structure-preserving mitigation procedure described in Sec. S3.6, yielding mitigated local expectation values.

3. Classical postprocessing. For each quantum channel, we use local Pauli-ZZ expectation values as quantum features,

s(α)=[⟨Z1(α)⟩,…,⟨ZN(α)⟩]T.(32)\mathbf{s}^{(\alpha)}=\left[\left\langle Z_1^{(\alpha)}\right\rangle,\ldots,\left\langle Z_N^{(\alpha)}\right\rangle\right]^{T}. \tag*{(32)}

The outputs from all channels are concatenated into a single feature vector,

s=[(s(1))T,…,(s(P))T]T.(33)\mathbf{s}=\left[\left(\mathbf{s}^{(1)}\right)^{T},\ldots,\left(\mathbf{s}^{(P)}\right)^{T}\right]^{T}. \tag*{(33)}

This vector is then passed through a final trainable classical linear layer to produce the classification logits,

l=Wposts+bpost.(34)\mathbf{l}=W_{\mathrm{post}}\mathbf{s}+\mathbf{b}_{\mathrm{post}}. \tag*{(34)}

Here, l∈RC\mathbf{l} \in\mathbb{R}^{C}, where CC is the number of output classes.

Quantum circuit design

The gate choices and final rotation layers below specify the actual circuits behind the numerical classifiers, so they are needed to interpret circuit depth and calibration matching in Figure 3 and Figure 5.

Each quantum channel is implemented by a parameterized quantum circuit composed of a data-encoding block followed by a trainable variational ansatz,

V(x(α),θ(α))=Vtrain(θ(α))Venc(x(α)).(35)V\left(\mathbf{x}^{(\alpha)},\boldsymbol{\theta}^{(\alpha)}\right)=V_{\mathrm{train}}\left(\boldsymbol{\theta}^{(\alpha)}\right)V_{\mathrm{enc}}\left(\mathbf{x}^{(\alpha)}\right). \tag*{(35)}

Here, x(α)∈RN\mathbf{x}^{(\alpha)} \in\mathbb{R}^{N} is the input assigned to channel α\alpha, while the original sample input has dimension KK. Channel indices are suppressed below when only one channel is considered.

Data encoding

For the α\alpha-th quantum channel, the latent feature vector x(α)\mathbf{x}^{(\alpha)} is encoded into an NN-qubit state using single-qubit RyR_y rotations. For a channel initialized in the reference state ∣0⟩⊗N\lvert0\rangle^{\otimes N}, the encoding unitary is

Venc(x(α))=⨂q=1NRy(xq(α)),(36)V_{\mathrm{enc}}\left(\mathbf{x}^{(\alpha)}\right)=\bigotimes_{q=1}^{N}R_y\left(x_q^{(\alpha)}\right), \tag*{(36)}

where

Ry(ϕ)=exp⁡(−iϕY/2).(37)R_y(\phi)=\exp(-i\phi Y/2). \tag*{(37)}

Thus, each latent feature component xq(α)x_q^{(\alpha)} is encoded as a rotation angle on qubit qq.

Variational ansatz

The following ansatz identifies the entangling pattern and rotation-layer convention used by the retained classification runs; the CZ chain in Figure 1 remains an architectural illustration.

The circuit implementations for Figure 3 and Figure 5 use Qiskit TwoLocal with rotation_blocks=[ry,rz], entanglement_blocks=cx, entanglement=full, and reps=L. The default final rotation layer is retained. Thus

Vtrain(θ)=Vrot(L+1)∏ℓ=1L[Vent,CX(ℓ)Vrot(ℓ)],(38)V_{\mathrm{train}}(\theta)=V_{\mathrm{rot}}^{(L+1)}\prod_{\ell=1}^{L}\left[V_{\mathrm{ent,CX}}^{(\ell)}V_{\mathrm{rot}}^{(\ell)}\right], \tag*{(38)}

where ℓ=1\ell=1 acts first (rightmost), and the ordered CX pattern is the full-entanglement pattern generated by TwoLocal. The per-qubit rotations are

Vrot(ℓ)=⨂q=1NRz(θq,z(ℓ))Ry(θq,y(ℓ)).(39)V_{\mathrm{rot}}^{(\ell)}=\bigotimes_{q=1}^{N}R_z\left(\theta_{q,z}^{(\ell)}\right)R_y\left(\theta_{q,y}^{(\ell)}\right). \tag*{(39)}

The number of trainable quantum angles per channel is 2N(L+1)2N(L+1): 24 for N=4N=4, L=2L=2, and 40 for N=4N=4, L=4L=4. Figure 1 and the closed-form example in § 1.9 instead illustrate a CZ-chain circuit with LL rotation layers and no extra final rotation layer. Its entangler is

Vent,CZ=∏1≤q<Nq oddCZq,q+1∏1≤q<Nq evenCZq,q+1.(40)V_{\mathrm{ent,CZ}}=\prod_{\substack{1\leq q<N\\q\ \mathrm{odd}}}\mathrm{CZ}_{q,q+1}\prod_{\substack{1\leq q<N\\q\ \mathrm{even}}}\mathrm{CZ}_{q,q+1}. \tag*{(40)}

Local noise model

To evaluate QNN training under controlled noisy conditions, we use the Qiskit AerSimulator with a phenomenological noise model that captures the dominant error sources expected in superconducting-qubit processors [89]. The model includes single-qubit gate errors, two-qubit gate errors, readout errors, and finite-shot sampling noise.

  1. Single-qubit gate errors. A single-qubit depolarizing channel with parameter e1e_1 can be applied after single-qubit gates.

  1. Two-qubit gate errors. After each entangling gate, we apply a two-qubit Pauli error channel. The simulation noise model attaches this channel to both CX and CZ instructions, according to the entangling gates used by each circuit. Specifically, the error is modeled as independent bit-flip errors on the two qubits participating in the gate. For a two-qubit state ρ\rho, this channel takes the form

E2(ρ)=∑a,b∈{0,1}papb(Xa⊗Xb)ρ(Xa⊗Xb),(41)\mathcal{E}_2(\rho)=\sum_{a,b\in\{0,1\}}p_ap_b\left(X^a\otimes X^b\right)\rho\left(X^a\otimes X^b\right), \tag*{(41)}

where p1=e2p_1=e_2 and p0=1−e2p_0=1-e_2. The parameter e2e_2 therefore controls the two-qubit gate noise strength. This parameter is the independent error probability on each endpoint, not the total probability that the two-qubit error is non-identity, which is 1−(1−e2)21-(1-e_2)^2.

  1. Readout errors. Before measurement, we apply a classical readout error model. Each measured bit is flipped with probability eroe_{\mathrm{ro}}, corresponding to the assignment errors

Pr⁡(1∣0)=Pr⁡(0∣1)=ero.(42)\Pr(1|0)=\Pr(0|1)=e_{\mathrm{ro}}. \tag*{(42)}

Unless otherwise stated, we set ero=0.01e_{\mathrm{ro}}=0.01.

Details of the structure-preserving error mitigation

We employ a structure-preserving error-mitigation procedure designed to characterize and correct the effective noise associated with a fixed QNN circuit architecture. The key assumption is that, for a given device calibration window, the dominant noise affecting the measured output distribution is primarily determined by the circuit topology, including the gate set, connectivity, and layer structure, and depends only weakly on the specific trainable rotation angles θ\theta. Under this assumption, a calibration performed once for a representative circuit with the same topology can be reused throughout QNN training.

Identity fitting

The first step is to construct a reference circuit Vmit(θ)V_{\mathrm{mit}}(\theta) that has the same gate topology as the QNN circuit Vtrain(θ)V_{\mathrm{train}}(\theta). To isolate the architecture-dependent noise, we optimize the parameters θ\theta such that the fitted circuit approximates the identity operation. Specifically, we determine

θid=arg⁡min⁡θ∥Vmit(θ)−I∥F2,(43)\theta_{\mathrm{id}} = \arg\min_{\theta} \left\|V_{\mathrm{mit}}(\theta)-I\right\|_{F}^{2}, \tag*{(43)}

where ∥⋅∥F\|\cdot\|_{F} is the Frobenius norm. Reference fitting uses SciPy L-BFGS-B with all-zero initial angles, a maximum of 2000 iterations, and ftol=10^{-9}. The fitted unitary is characterized by its Frobenius-norm distance from the identity.

Calibration matrix construction

We next execute the checked reference to construct a raw response and relabel it as in Eq. (8). Let pideal\mathbf{p}^{\mathrm{ideal}} denote the ideal output probability distribution of an NN-qubit circuit, written as a column vector in the computational basis. We model the noisy measured distribution as

pnoisy≈Mmitpideal,(44)\mathbf{p}^{\mathrm{noisy}} \approx M_{\mathrm{mit}}\mathbf{p}^{\mathrm{ideal}}, \tag*{(44)}

where MmitM_{\mathrm{mit}} is the effective response in ideal-output labels. This probability-level model is an approximation whose transfer residual is defined in § 1.9. Topology alone does not make it exact.

To estimate MrefM_{\mathrm{ref}}, we prepare each state in the computational basis {∣b⟩}b=02N−1\{\lvert b\rangle\}_{b=0}^{2^{N}-1} and execute the noisy implementation of Vmit(θid)V_{\mathrm{mit}}(\theta_{\mathrm{id}}) for ScalibS_{\mathrm{calib}} shots. For each input bitstring bb, we estimate the probability of measuring the output bitstring b′b'. The raw reference response is then

[Mref]b′b=Pr⁡(b′∣b)noisy,(45)\left[M_{\mathrm{ref}}\right]_{b'b}=\Pr(b'\mid b)_{\mathrm{noisy}}, \tag*{(45)}

where the column labels the prepared input and the row labels the measured output. The effective response is Mmit=MrefΠTM_{\mathrm{mit}}=M_{\mathrm{ref}}\Pi^{T}, with Π=I\Pi=I for a verified identity reference. This construction does not require full quantum process tomography. It measures basis-input probabilities for the reference. Accurate correction of deployed circuits additionally requires a compatible effective response.

Mitigated expectation-value estimation

The estimator is derived for the local features actually used by the classifier. A corrected quantum state or full output distribution is not needed for this step. During QNN training, each quantum channel outputs local Pauli-ZZ expectation values. For channel α\alpha, the expectation value of ZqZ_q is

sq(α)=⟨ψ ⁣(x(α),θ(α))|Zq|ψ ⁣(x(α),θ(α))⟩,(46)s_{q}^{(\alpha)}=\left\langle\psi\!\left(x^{(\alpha)},\theta^{(\alpha)}\right)\middle|Z_q\middle|\psi\!\left(x^{(\alpha)},\theta^{(\alpha)}\right)\right\rangle, \tag*{(46)}

where

∣ψ ⁣(x(α),θ(α))⟩=V ⁣(x(α),θ(α))∣ψ0⟩,∣ψ0⟩=∣0⟩⊗N.(47)\left|\psi\!\left(x^{(\alpha)},\theta^{(\alpha)}\right)\right\rangle=V\!\left(x^{(\alpha)},\theta^{(\alpha)}\right)|\psi_0\rangle,\qquad|\psi_0\rangle=|0\rangle^{\otimes N}. \tag*{(47)}

These expectation values are linear functions of the output probability distribution. To express this relation, we define the measurement functional matrix F∈{−1,+1}2N×NF\in\{-1,+1\}^{2^N\times N}, whose element FbqF_{bq} is the eigenvalue of ZqZ_q on the computational-basis state ∣b⟩|b\rangle:

Fbq=⟨b∣Zq∣b⟩.(48)F_{bq}=\langle b|Z_q|b\rangle. \tag*{(48)}

For an ideal probability distribution pideal\mathbf{p}^{\mathrm{ideal}}, the corresponding vector of ideal local magnetizations is

sideal=FTpideal.(49)\mathbf{s}^{\mathrm{ideal}}=F^{T}\mathbf{p}^{\mathrm{ideal}}. \tag*{(49)}

A direct mitigation approach would estimate pideal≈Mmit−1pnoisy\mathbf{p}^{\mathrm{ideal}}\approx M_{\mathrm{mit}}^{-1}\mathbf{p}^{\mathrm{noisy}} and then compute smit=FTMmit−1pnoisy\mathbf{s}^{\mathrm{mit}}=F^{T}M_{\mathrm{mit}}^{-1}\mathbf{p}^{\mathrm{noisy}}. However, direct inversion of MmitM_{\mathrm{mit}} can be numerically unstable, especially when the matrix is ill-conditioned or affected by finite-shot calibration noise. Therefore, we instead construct a regularized linear estimator η\eta that maps noisy probabilities directly to mitigated expectation values:

smit=ηTpnoisy.(50)\mathbf{s}^{\mathrm{mit}}=\eta^{T}\mathbf{p}^{\mathrm{noisy}}. \tag*{(50)}

The estimator η\eta is chosen so that Eq. (50) reproduces the ideal expectation values whenever the noisy distribution satisfies Eq. (44). Substituting pnoisy≈Mmitpideal\mathbf{p}^{\mathrm{noisy}} \approx M_{\mathrm{mit}}\mathbf{p}^{\mathrm{ideal}}, we require smit≈sideal\mathbf{s}^{\mathrm{mit}} \approx\mathbf{s}^{\mathrm{ideal}}:

ηTMmitpideal≈FTpideal,(51)\eta^{T}M_{\mathrm{mit}}\mathbf{p}^{\mathrm{ideal}} \approx F^{T}\mathbf{p}^{\mathrm{ideal}}, \tag*{(51)}

for arbitrary pideal\mathbf{p}^{\mathrm{ideal}}, which gives the linear condition

MmitTη≈F.(52)M_{\mathrm{mit}}^{T}\eta\approx F. \tag*{(52)}

We solve this system with Tikhonov regularization by minimizing

min⁡η∥MmitTη−F∥F2+λreg∥η∥F2,(53)\min_{\eta}\left\|M_{\mathrm{mit}}^{T}\eta-F\right\|_{F}^{2}+\lambda_{\mathrm{reg}}\left\|\eta\right\|_{F}^{2}, \tag*{(53)}

where λreg\lambda_{\mathrm{reg}} is a small regularization parameter. In our simulations, we use λreg=10−6\lambda_{\mathrm{reg}}=10^{-6}. The closed-form solution is

η=(MmitMmitT+λregI)−1MmitF.(54)\eta=\left(M_{\mathrm{mit}}M_{\mathrm{mit}}^{T}+\lambda_{\mathrm{reg}}I\right)^{-1}M_{\mathrm{mit}}F. \tag*{(54)}

During the forward pass of the QNN, the same precomputed estimator η\eta is applied independently to each parallel quantum channel. For channel α\alpha, the noisy measured probability vector [p(α)]noisy[\mathbf{p}^{(\alpha)}]^{\mathrm{noisy}} is mapped to mitigated expectation values as

[s(α)]mit=ηT[p(α)]noisy.(55)[\mathbf{s}^{(\alpha)}]^{\mathrm{mit}}=\eta^{T}[\mathbf{p}^{(\alpha)}]^{\mathrm{noisy}}. \tag*{(55)}

The mitigated vectors from all channels are then concatenated and passed to the classical postprocessing layer. In this way, the QNN is trained using corrected quantum features while requiring only a single reusable calibration for the fixed circuit architecture.

Training procedure

The hybrid QNN is trained end to end using the PyTorch-Lightning framework. The trainable parameters include the classical preprocessing parameters WpreW_{\mathrm{pre}} and bpre\mathbf{b}_{\mathrm{pre}}, the classical postprocessing parameters WpostW_{\mathrm{post}} and bpost\mathbf{b}_{\mathrm{post}}, and the quantum variational parameters θ\boldsymbol{\theta}. We collect all trainable parameters as

v={Wpre,bpre,Wpost,bpost,θ}.(56)v=\{W_{\mathrm{pre}},\mathbf{b}_{\mathrm{pre}},W_{\mathrm{post}},\mathbf{b}_{\mathrm{post}},\boldsymbol{\theta}\}. \tag*{(56)}

The predicted class probabilities are obtained from the logits l\mathbf{l} in Eq. (34) using the softmax function,

fk=exp⁡(lk)∑k′=1Cexp⁡(lk′),k=1,…,C.(57)f_k=\frac{\exp(l_k)}{\sum_{k'=1}^{C}\exp(l_{k'})},\qquad k=1,\ldots,C. \tag*{(57)}

Here, CC is the number of classes and fkf_k denotes the predicted probability for class kk.

For a dataset containing QQ samples, the ii-th sample is represented by an input feature vector xi∈RK\mathbf{x}_i\in\mathbb{R}^{K} and a one-hot label vector yi∈{0,1}C\mathbf{y}_i\in\{0,1\}^{C}, with components yi,ky_{i,k}. The corresponding predicted probability vector is fi=[fi,1,…,fi,C]T\mathbf{f}_i=[f_{i,1},\ldots,f_{i,C}]^{T}. We train the model by minimizing the empirical multiclass cross-entropy loss

L(v)=−1Q∑i=1Q∑k=1Cyi,kln⁡fi,k(xi;v).(58)\mathcal{L}(v)=-\frac{1}{Q}\sum_{i=1}^{Q}\sum_{k=1}^{C}y_{i,k}\ln f_{i,k}(\mathbf{x}_i;v). \tag*{(58)}

Here, fi,k(xi;v)f_{i,k}(\mathbf{x}_i;v) is the predicted probability of class kk for input xi\mathbf{x}_i, evaluated using the full set of trainable parameters vv.

The forward pass of the error-mitigated QNN proceeds as follows. First, the standardized input data are transformed by the classical preprocessing layer and distributed across the parallel quantum channels. Second, each quantum channel is executed and its noisy output probabilities are converted into mitigated expectation values using the precomputed estimator in Eq. (55). Unmitigated runs use the raw expectation values instead. Third, the quantum features are concatenated and passed through the classical postprocessing layer to obtain the logits and predicted class probabilities. Finally, the loss in Eq. (58) is evaluated and used to update both the quantum and classical parameters.

Optimization is performed using the AdamW optimizer [90]. We use AdamW because its decoupled weight-decay update provides a stable optimization procedure for hybrid models containing both classical neural-network weights and quantum variational parameters.

Variational-training comparison

The new local benchmark in Figure 2(c) minimizes the normalized mean magnetization in Eq. (11). It uses five qubits initialized in ∣0⟩⊗5|0\rangle^{\otimes5} and four layers, each consisting of per-qubit RyR_y rotations followed by RzR_z rotations and then CZ gates on the even and odd nearest-neighbor bonds. There are 40 trainable angles and 16 CZ gates, with no additional final rotation layer. After every CZ gate, each endpoint independently undergoes a Pauli-X error with probability 0.006; each measured bit is independently flipped with probability 0.01. Single-qubit rotation gates are otherwise noiseless. The noiseless control omits both error channels but retains the same finite-shot sampling. We perform five independent finite-shot repeats using all-zero initial angles, 1,000 shots per executed circuit, and COBYLA [91] with an initial trust-region radius of 1, a tolerance of 10−810^{-8}, and a maximum of 500 objective evaluations. Thus, the horizontal axis counts objective evaluations rather than gradient updates or auxiliary circuits.

Readout mitigation uses a measured 32×3232 \times32 basis-assignment matrix. Our method instead measures the same basis inputs through the noisy four-layer reference with all rotation angles zero. Its ideal action is verified to be the identity. Both calibrations use 4,000 shots per basis input and the regularized feature estimator in Eq. (54), with λreg=10−6\lambda_{\mathrm{reg}} = 10^{-6}. The resulting estimator is fixed during a training run. ZNE uses local CZ folding with factors 1, 3, and 5, leaving ideal circuit action unchanged, and quadratic Richardson weights 15/8, −5/4-5/4, and 3/8 [10, 92]. Readout noise is not amplified or separately corrected in this ZNE condition.

At every target evaluation, CDR fits a scalar affine map from 32 noisy and noiseless near-Clifford auxiliary magnetizations [29]. Each auxiliary circuit retains eight randomly chosen target rotation angles; the remaining rotations are stochastically replaced by multiples of π/2\pi/2, favoring nearby gates with weights exp⁡(−d2/0.72)\exp(-d^2/0.7^2), where dd is their phase-insensitive Frobenius distance. The slope is fitted using centered ridge regression with a penalty of 10−610^{-6} and an unpenalized intercept [93]. No exact target-circuit objective is supplied to CDR or the optimizer. Neither CDR nor ZNE is stacked with separate readout mitigation in this six-condition comparison. Corrected objectives are not clipped to the physical magnetization range.

At 500 objective evaluations, the simulated measurement budgets per repeat are 500,000 shots for noiseless and raw noisy training, 628,000 shots for both readout mitigation and our method (including calibration), 1,500,000 shots for ZNE, and 16,500,000 shots for this local CDR implementation. Equal evaluation counts therefore do not imply equal shot budgets. Exact density-matrix evolution supplies circuit probabilities, from which multinomial bitstring counts are sampled. The simulator is independently checked against Qiskit Aer density-matrix execution with explicit Pauli channels. Ideal evaluations of the trained states are retained only as diagnostics and are not used for parameter updates or selection. The optimizer selects parameters using its own training estimator. All new results in panel (c) are local simulations; panels (a,b) retain their existing source data.

IBM Quantum device

The device information below locates the hardware demonstration in Figure 2(b). Note that this is distinct from the explicit noise channels used in the controlled simulator comparisons.

Figure S1 shows the hardware noise information for the ibm_fez device, with the selected qubit chain marked by the dashed box. The controlled QNN simulations in Figure 3–Figure 5 instead use the explicit phenomenological model and settings given in § 1.10.

Noise effects in circuit optimization

This appendix gives a contraction picture for interpreting the optimization results in Figure 2 and the schematic feature contraction and correction in Figure 1(d). We consider an NN-qubit parameterized circuit Vtrain(θ)V_{\mathrm{train}}(\theta), where θ\theta denotes the trainable circuit parameters. The circuit acts on the reference state

ρ0=(∣0⟩⟨0∣)⊗N.(59)\rho_0 = \left(|0\rangle\langle0|\right)^{\otimes N}. \tag*{(59)}

The ideal output state is

ρideal(θ)=Vtrain(θ)ρ0Vtrain†(θ).(60)\rho^{\mathrm{ideal}}(\theta) = V_{\mathrm{train}}(\theta)\rho_0 V_{\mathrm{train}}^\dagger(\theta). \tag*{(60)}

We first consider the variational benchmark used in the main text, where the objective is the normalized average

Pauli-ZZ magnetization,

CZideal(θ)=1N∑q=1NTr⁡[Zqρideal(θ)].(61)C_{Z}^{\mathrm{ideal}}(\theta)=\frac{1}{N}\sum_{q=1}^{N}\operatorname{Tr}\left[Z_q\rho^{\mathrm{ideal}}(\theta)\right]. \tag*{(61)}

where ZqZ_q is the Pauli-ZZ operator acting on qubit qq. In a noisy implementation, the ideal state is transformed by an effective noise channel N\mathcal{N} associated with the chosen circuit architecture,

ρnoisy(θ)=N[ρideal(θ)].(62)\rho^{\mathrm{noisy}}(\theta)=\mathcal{N}\left[\rho^{\mathrm{ideal}}(\theta)\right]. \tag*{(62)}

The corresponding noisy objective is

CZnoisy(θ)=1N∑q=1NTr⁡[Zqρnoisy(θ)].(63)C_{Z}^{\mathrm{noisy}}(\theta)=\frac{1}{N}\sum_{q=1}^{N}\operatorname{Tr}\left[Z_q\rho^{\mathrm{noisy}}(\theta)\right]. \tag*{(63)}

Because quantum channels are linear maps on density matrices and expectation values are linear functions of the state, the noisy objective is a linear response of the ideal output information. When the dominant effect of noise in the measured ZZ sector is signal attenuation, this response may be approximated by a scalar contraction,

CZnoisy(θ)≃λZCZideal(θ)+ξZ,0<λZ<1.(64)C_{Z}^{\mathrm{noisy}}(\theta)\simeq\lambda_Z C_{Z}^{\mathrm{ideal}}(\theta)+\xi_Z,\qquad0<\lambda_Z<1. \tag*{(64)}

Here, λZ\lambda_Z denotes the effective noise-induced contraction of the measured ZZ signal, while ξZ\xi_Z represents finite-shot fluctuations and residual hardware fluctuations. For two parameter points θ\theta and θ′\theta', define

ΔCZideal=CZideal(θ)−CZideal(θ′),ΔCZnoisy=CZnoisy(θ)−CZnoisy(θ′).(65)\Delta C_{Z}^{\mathrm{ideal}}=C_{Z}^{\mathrm{ideal}}(\theta)-C_{Z}^{\mathrm{ideal}}(\theta'),\qquad\Delta C_{Z}^{\mathrm{noisy}}=C_{Z}^{\mathrm{noisy}}(\theta)-C_{Z}^{\mathrm{noisy}}(\theta'). \tag*{(65)}

If the fluctuation term is averaged over or is small compared with the systematic contraction, Eq. (64) gives

ΔCZnoisy≃λZΔCZideal.(66)\Delta C_{Z}^{\mathrm{noisy}}\simeq\lambda_Z\Delta C_{Z}^{\mathrm{ideal}}. \tag*{(66)}

Similarly, the gradient is suppressed as

∂θCZnoisy≃λZ∂θCZideal.(67)\partial_\theta C_{Z}^{\mathrm{noisy}}\simeq\lambda_Z\partial_\theta C_{Z}^{\mathrm{ideal}}. \tag*{(67)}

Within this parameter-independent contraction approximation, noise reduces the mean cost difference and its parameter derivative. This explains the flattening mechanism without asserting it for every circuit or noise channel.

The same reasoning applies to the QNN feature vector of one channel (the channel index is suppressed). Let

sideal(θ)=(s1ideal,s2ideal,…,sNideal)T(68)\mathbf{s}^{\mathrm{ideal}}(\theta) = \left(s_1^{\mathrm{ideal}},s_2^{\mathrm{ideal}},\ldots,s_N^{\mathrm{ideal}}\right)^T \tag*{(68)}

be the vector of ideal local Pauli-Z features, with

sqideal(θ)=Tr⁡[Zqρideal(θ)].(69)s_q^{\mathrm{ideal}}(\theta) = \operatorname{Tr}\left[Z_q\rho^{\mathrm{ideal}}(\theta)\right]. \tag*{(69)}

Under noisy execution,

sqnoisy(θ)=Tr⁡[ZqN[ρideal(θ)]].(70)s_q^{\mathrm{noisy}}(\theta) = \operatorname{Tr}\left[Z_q\mathcal{N}\left[\rho^{\mathrm{ideal}}(\theta)\right]\right]. \tag*{(70)}

When the noisy adjoint response approximately closes on the measured local Pauli-Z observables, its action can be represented within that subspace by an effective linear map,

snoisy≃Anoisesideal+ξ,(71)\mathbf{s}^{\mathrm{noisy}} \simeq A_{\mathrm{noise}}\mathbf{s}^{\mathrm{ideal}}+\boldsymbol{\xi}, \tag*{(71)}

where AnoiseA_{\mathrm{noise}} is the effective feature-space noise response and ξ\boldsymbol{\xi} denotes finite-shot and hardware fluctuations. Outside this approximate closure, the probability/observable residuals of Appendix § 1.9 are needed. The additional assumption of nearly equal local contractions gives Anoise≃λIA_{\mathrm{noise}} \simeq\lambda I and hence

snoisy≃λsideal+ξ,0<λ<1.(72)\mathbf{s}^{\mathrm{noisy}} \simeq\lambda\mathbf{s}^{\mathrm{ideal}}+\boldsymbol{\xi}, \qquad0<\lambda<1. \tag*{(72)}

If λ\lambda is mainly determined by the circuit architecture and device noise and depends only weakly on the variational parameters, then

∂θsnoisy≃λ∂θsideal.(73)\partial_\theta\mathbf{s}^{\mathrm{noisy}} \simeq\lambda\partial_\theta\mathbf{s}^{\mathrm{ideal}}. \tag*{(73)}

Equation (S60) describes suppression of the feature Jacobian in this approximation. Its effect on the loss also depends on the classical readout, as discussed for Figure 1(d). A flatter landscape and slower convergence are possible consequences, rather than conclusions for an arbitrary QNN or noise channel.

We now describe the mitigation effect in the same language. The structure-preserving mitigation protocol learns an architecture-specific correction from a reference circuit with the same gate topology as the QNN block. The implemented correction solves constraints for the measured features rather than inverting a full quantum noise process. If its action is approximately a scalar rescaling of the measured magnetization, it can be written phenomenologically as

CZmit(θ)≃λmit−1CZnoisy(θ),(74)C_Z^{\mathrm{mit}}(\theta) \simeq\lambda_{\mathrm{mit}}^{-1}C_Z^{\mathrm{noisy}}(\theta), \tag*{(74)}

where λmit−1\lambda_{\mathrm{mit}}^{-1} is the effective inverse signal loss learned from calibration. Consequently,

ΔCZmit≃λmit−1ΔCZnoisy,∂θCZmit≃λmit−1∂θCZnoisy.(75)\Delta C_Z^{\mathrm{mit}} \simeq\lambda_{\mathrm{mit}}^{-1}\Delta C_Z^{\mathrm{noisy}}, \qquad\partial_\theta C_Z^{\mathrm{mit}} \simeq\lambda_{\mathrm{mit}}^{-1}\partial_\theta C_Z^{\mathrm{noisy}}. \tag*{(75)}

When the calibrated scalar response matches the deployed one, these relations recover the corresponding mean signal differences and derivatives. A mismatch leaves the transfer bias quantified in Appendix § 1.9. For the same single-channel feature vector, the analogous expression is

smit≃Amit−1snoisy,(76)\mathbf{s}^{\mathrm{mit}} \simeq A_{\mathrm{mit}}^{-1}\mathbf{s}^{\mathrm{noisy}}, \tag*{(76)}

where Amit−1A_{\mathrm{mit}}^{-1} denotes the effective inverse map obtained from the structure-preserving calibration. In the dominant-contraction approximation,

smit≃λmit−1snoisy.(77)\mathbf{s}^{\mathrm{mit}} \simeq\lambda_{\mathrm{mit}}^{-1}\mathbf{s}^{\mathrm{noisy}}. \tag*{(77)}

In practice, this inverse is not implemented as an unstable direct inversion of the calibration matrix. Instead, the protocol uses the regularized feature estimator of Eq. (54), which corrects the measured Pauli-Z features while suppressing noise-sensitive directions.

Comparison with other mitigation methods in QNN training

The comparison below separates reference-calibration cost from the circuits required at each new parameter point. It explains the operational role of reuse in Figure 2(c) and Figure 6 without claiming that reuse is unique to this protocol.

The practical advantage of the present method is that calibration is performed for an elementary circuit block and its feature estimator is then used inside the training loop. Setup comprises classical identity fitting, 2N2^N basis-input reference experiments, and a regularized linear solve [Sec. S3.6]. The four-qubit channels require a 16×1616 \times16 response and a 16×416 \times4 estimator. The shot allocations in Figure 4 and Figure 5 correspond to 64,000 and 160,000 shots per reference calibration, respectively. When the effective responses are compatible, this setup is shared across the PP channels and subsequent parameter updates; increasing network width does not enlarge the shared calibration matrix. During training, the quantum and classical model parameters are updated while η\eta remains fixed. For channel α\alpha, the corrected features are

[s(α)]mit=ηT[p(α)]noisy.(78)[\mathbf{s}^{(\alpha)}]_{\mathrm{mit}} = \eta^{T}[\mathbf{p}^{(\alpha)}]_{\mathrm{noisy}}. \tag*{(78)}

The same estimator can act on each channel.

Readout mitigation can likewise retain an assignment calibration while circuit parameters change. Its correction targets measurement errors and leaves gate errors in the underlying distribution [18, 94]. Our reference instead executes the channel’s gate pattern, so the calibrated response includes accumulated gate and readout effects. This extends calibration to circuit-induced feature distortions, subject to the transfer conditions above, rather than relying on detector characterization alone.

Conventional pointwise zero-noise extrapolation (ZNE) obtains each corrected estimate from measurements at several noise strengths [10, 92, 95, 96]. During training, updated feature or derivative circuits therefore require corresponding noise-scaled data; retaining extrapolation coefficients does not supply these measurements. Sampled probabilistic error cancellation (PEC) instead estimates observables using weighted outcomes from corrective circuit instances [11]. Its noise models may be reused, but characterization can recur: the sparse-PEC experiment of Ref. [24] periodically relearned its models to track temporal fluctuations. Such recalibration is distinct from measuring the current target circuits. Our implementation applies a fixed classical feature map to ordinary channel outputs, avoiding noise-scaled and corrective circuit families during compatible training updates.

Classifier data regression (CDR) constructs noisy/classically computed training pairs and fits a correction near a target circuit [29]. Transferable corrections, including learned mitigation schemes, can remain useful across parameter changes [29, 32]. If a target-specific fit becomes invalid during optimization, updating it can require additional auxiliary measurements and classical target calculations. Here, the reference labels are known Pauli eigenvalues, and η\eta follows from the regularized response equation; neither near-Clifford training-set selection nor an auxiliary neural model is required [97]. This provides a direct calibration procedure for the features used by the classifier. Learned mitigation can also be trained across variational parameters [33], and real-time mitigation can retain a correction until a monitored response changes [34]. The present choice differs in fitting a fixed linear estimator directly to basis-input measurement constraints for a repeated QNN block.

Standard virtual distillation uses multiple copies of each evaluated state [98, 99]. Symmetry verification requires a known symmetry sector and obtains the relevant checks from compatible outcomes or additional measurements; postselection discards outcomes outside that sector [100, 101, 102]. The present feature estimator requires neither multiple copies nor a prescribed symmetry sector.

The demonstrated benefit is improved learning with this reusable block calibration. Figure 4 and Figure 5 show faster loss reduction and lower training losses than unmitigated training. In the 25-channel, 100-qubit example, mean test accuracy increases from 82.0% to 83.6% at ϵ2=0.02\epsilon_2 = 0.02 and from 81.6% to 83.6% at ϵ2=0.10\epsilon_2 = 0.10 [Fig. 6]. These results support the usefulness of direct feature correction throughout modular QNN training without requiring calibration of the full network.

References

  1. [1]K. Mitarai, M. Negoro, M. Kitagawa, and K. Fujii, Physical Review A 98, 032309 (2018).
  2. [2]E. Farhi and H. Neven, Classification with quantum neural networks on near term processors (2018), arXiv:1802.06002 [quant-ph].arXiv
  3. [3]M. Benedetti, E. Lloyd, S. Sack, and M. Fiorentini, Quantum Science and Technology 4, 043001 (2019).
  4. [4]K. Beer, D. Bonderanko, T. Farrelly, T. J. Osborne, R. Salzmann, D. Scheiermann, and R. Wolf, Nature Communications 11, 808 (2020).
  5. [5]J. Biamonte, P. Wittek, N. Pancotti, P. Rebentrost, N. Wiebe, and S. Lloyd, Nature 549, 195 (2017).
  6. [6]M. Cerezo, V. Gordon, H.-Y. Huang, L. Cincio, and P. J. Coles, Nature Computational Science 2, 567 (2022).
  7. [7]S. Wang, E. Fontana, M. Cerezo, K. Sharma, A. Sone, L. Cincio, and P. J. Coles, Nature Communications 12, 6961 (2021).
  8. [8]A. Arrasmith, M. Cerezo, P. Czarnik, L. Cincio, and P. J. Coles, Quantum 5, 558 (2021).
  9. [9]M. Larocca, S. Thanasilp, S. Wang, K. Sharma, J. Biamonte, P. J. Coles, L. Cincio, J. R. McClean, Z. Holmes, and M. Cerezo, Nature Reviews Physics 7, 174 (2025), arXiv:2405.00781 [quant-ph].DOI
  10. [10]K. Temme, S. Bravyi, and J. M. Gambetta, Physical Review Letters 119, 180509 (2017).
  11. [11]S. Endo, S. C. Benjamin, and Y. Li, Physical Review X 8, 031027 (2018).
  12. [12]Z. Cai, R. Rabbush, S. C. Benjamin, S. Endo, W. J. Huggins, Y. Li, J. R. McClean, and T. E. O’Brien, Reviews of Modern Physics 95, 045005 (2023).
  13. [13]S. Endo, Z. Cai, S. C. Benjamin, and X. Yuan, Journal of the Physical Society of Japan 90, 032001 (2021).
  14. [14]C. Song, J. Cui, H. Wang, H. Hao, H. Feng, and Y. Li, Science Advances 5, eaaw5686 (2019).
  15. [15]Y. Kim, A. Eddins, S. Anand, K. X. Wei, E. van den Berg, S. Rosenblatt, H. Nayfeh, Y. Wu, M. Zaletel, K. Temme, and A. Kandala, Nature 618, 500 (2023).
  16. [16]H.-Z. Li, M. Yang, X. Yan, D. E. Koh, C. H. Lee, and R. Shen, Practical error suppression and mitigation for reliable quantum computing (2026), arXiv:2608.20453 [quant-ph].arxiv.org/abs/2608.20453
  17. [17]S. Bravyi, S. Sheldon, A. Kandala, D. C. Mckay, and J. M. Gambetta, Physical Review A 103, 042605 (2021).
  18. [18]P. D. Nation, H. Kang, N. Sundaresan, and J. M. Gambetta, PRX Quantum 2, 040326 (2021).
  19. [19]F. B. Maciejewski, Z. Zimborás, and M. Oszmaniec, Quantum 4, 257 (2020).
  20. [20]B. Nachman, M. Urbanek, W. A. de Jong, and C. W. Bauer, npj Quantum Information 6, 84 (2020).
  21. [21]T. Chen, R. Shen, C. H. Lee, and B. Yang, SciPost Physics 15, 170 (2023).
  22. [22]R. Shen, T. Chen, B. Yang, and C. H. Lee, Nature Communications 16, 1340 (2025).
  23. [23]A. Kandala, K. Temme, A. D. Córcoles, A. Mezzacapo, J. M. Chow, and J. M. Gambetta, Nature 567, 491 (2019).
  24. [24]E. van den Berg, Z. K. Minev, A. Kandala, and K. Temme, Nature Physics 19, 1116 (2023).
  25. [25]J. Sun, X. Yuan, T. Tsunoda, V. Vedral, S. C. Benjamin, and S. Endo, Physical Review Applied 15, 034026 (2021).
  26. [26]Y. Kim, C. J. Wood, T. J. Yoder, S. T. Merkel, J. M. Gambetta, K. Temme, and A. Kandala, Nature Physics 19, 752 (2023).
  27. [27]S. Ferracin, A. Hashim, J.-L. Ville, R. Naik, A. Carignan-Dugas, H. Qassim, A. Morvan, D. I. Santiago, I. Siddiqi, and J. J. Wallman, Quantum 8, 1410 (2024).
  28. [28]R. Shen, T. Chen, B. Yang, Y. Zhong, and C. H. Lee, npj Quantum Information 11, 179 (2025).
  29. [29]P. Czarnik, A. Arrasmith, P. J. Coles, and L. Cincio, Quantum 5, 592 (2021).
  30. [30]A. Lowe, M. H. Gordon, P. Czarnik, A. Arrasmith, P. J. Coles, and L. Cincio, Physical Review Research 3, 033098 (2021).
  31. [31]D. Bultrini, M. H. Gordon, P. Czarnik, A. Arrasmith, M. Cerezo, P. J. Coles, and L. Cincio, Quantum 7, 1034 (2023).
  32. [32]A. Strikis, D. Qin, Y. Chen, S. C. Benjamin, and Y. Li, PRX Quantum 2, 040330 (2021).
  33. [33]N. Korolev, K. Lakhmanskiy, and D. Rabinovich, Machine learning-based quantum error mitigation for variational algorithms (2026), arXiv:2606.02697 [quant-ph].arxiv.org/abs/2606.02697
  34. [34]M. Robbiati, A. Sopena, A. Papaluca, and S. Carrazza, Physical Review Research 8, 013262 (2026).
  35. [35]R. Shen, T. Chen, and C. H. Lee, Circuit structure-preserving error mitigation for high-fidelity quantum simulations (2025), arXiv:2505.17187 [quant-ph].arxiv.org/abs/2505.17187
  36. [36]M. Schuld and N. Killoran, Physical Review Letters 122, 040504 (2019).
  37. [37]M. Schuld, A. Bocharov, K. M. Svore, and N. Wiebe, Physical Review A 101, 032308 (2020).
  38. [38]M. Schuld, R. Rewe, and J. J. Meyer, Physical Review A 103, 032430 (2021).
  39. [39]A. Pérez-Salinas, A. Cervera-Lierta, E. Gil-Fuster, and J. I. Latorre, Quantum 4, 226 (2020).
  40. [40]A. Kandala, A. Mezzacapo, K. Temme, M. Takita, M. Brink, J. M. Chow, and J. M. Gambetta, Nature 549, 242 (2017).
  41. [41]S. Sim, P. D. Johnson, and A. Aspuru-Guzik, Advanced Quantum Technologies 2, 1900070 (2019).
  42. [42]M. Cerezo, A. Arrasmith, R. Babbush, S. C. Benjamin, S. Endo, K. Fujii, R. M. McClean, K. Mitarai, X. Yuan, L. Cincio, and P. J. Coles, Nature Reviews Physics 3, 625 (2021).
  43. [43]Z. Holmes, K. Sharma, M. Cerezo, and P. J. Coles, PRX Quantum 3, 010313 (2022).
  44. [44]A. Peruzzo, J. 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).
  45. [45]J. R. McClean, J. J. Romero, R. Babbush, and A. Aspuru-Guzik, New Journal of Physics 18, 023023 (2016).
  46. [46]R. Shen, Y. Zhong, and C. H. Lee, Resolving topological order crossovers on NISQ hardware (2026), arXiv:2607.21707 [quant-ph].arxiv.org/abs/2607.21707
  47. [47]T. Chen, R. Shen, C. H. Lee, B. Yang, and R. W. Bomantara, Quantum Science and Technology 11, 025030 (2026), arXiv:2309.11560 [quant-ph].
  48. [48]T. Chen, H.-T. Ding, R. Shen, S.-L. Zhu, and J. Gong, Physical Review B 110, 205402 (2024).
  49. [49]R. Shen, Y. Zhong, and C. H. Lee, Exploring quantum phase transitions beyond Landau theory on a quantum processor (2026), arXiv:2610.22482 [quant-ph].arxiv.org/abs/2610.22482
  50. [50]T. Y. Ng, Y. Wang, W. J. Chan, R. Shen, T. Chen, and C. H. Lee, Digital simulation of non-hermitian knotted bands on quantum hardware (2026), arXiv:2604.26914 [quant-ph].arxiv.org/abs/2604.26914
  51. [51]V. Havlíček, A. D. Córcoles, K. Temme, A. W. Harrow, A. Kandala, J. M. Chow, and J. M. Gambetta, Nature 567, 209 (2019).
  52. [52]A. Abbas, D. Sutter, C. Zoufal, A. Lucchi, A. Figalli, and S. Woerner, Nature Computational Science 1, 403 (2021).
  53. [53]I. Cong, S. Choi, and M. D. Lukin, Nature Physics 15, 1273 (2019).
  54. [54]J. R. McClean, S. Boixo, V. N. Smelyanskiy, R. Babbush, and H. Neven, Nature Communications 9, 4812 (2018).
  55. [55]M. Cerezo, A. Sone, T. Volkoff, L. Cincio, and P. J. Coles, Nature Communications 12, 1791 (2021).
  56. [56]R. Shen, X.-J. Yu, and C. H. Lee, Realization of decoherence-induced averaged symmetry-protected topological phases on quantum processors (2026), arXiv:2609.07831 [quant-ph].arxiv.org/abs/2609.07831
  57. [57]R. Takagi, S. Endo, S. Minagawa, and M. Gu, npj Quantum Information 8, 114 (2022).
  58. [58]M. Urbanek, B. Nachman, V. R. Pascuzzi, A. He, C. W. Bauer, and W. A. de Jong, Physical Review Letters 127, 270502 (2021).
  59. [59]J. M. Kübler, A. Arrasmith, L. Cincio, and P. J. Coles, Quantum 4, 263 (2020).
  60. [60]R. Sweke, F. Wilde, J. J. Meyer, M. Schuld, P. K. Faehmann, B. Meynard-Piganeau, and J. Eisert, Quantum 4, 314 (2020).
  61. [61]J. Stokes, J. Isaac, N. Killoran, and G. Carleo, Quantum 4, 269 (2020).
  62. [62]I. T. Jolliffe and J. Cadima, Philosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences 374, 20150202 (2016).
  63. [63]E. Grant, L. Wilson, M. Ostaszewski, and M. Benedetti, Quantum 3, 214 (2019).
  64. [64]A. Skolik, J. R. McClean, M. Mohseni, P. van der Smagt, and M. Leib, Quantum Machine Intelligence 3, 5 (2021).
  65. [65]A. Pesah, M. Cerezo, S. Wang, T. Volkoff, A. T. Sornborger, and P. J. Coles, Physical Review X 11, 041011 (2021).
  66. [66]Q. Li, Y. Huang, X. Hou, Y. Li, X. Wang, and A. Bayat, Physical Review Research 6, 013027 (2024), arXiv:2301.12707 [quant-ph].DOI
  67. [67]J. Preskill, Quantum 2, 79 (2018).
  68. [68]M. Schuld, V. Bergholm, C. Gogolin, J. Izaac, and N. Killoran, Physical Review A 99, 032331 (2019).
  69. [69]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).
  70. [70]W. J. Huggins, J. R. McClean, N. C. Rubin, Z. Jiang, N. Wiebe, K. B. Whaley, and R. Babbush, npj Quantum Information 7, 23 (2021).
  71. [71]J. F. Gonthier, M. D. Radin, C. Buda, E. J. Doskocil, C. M. Abuan, and J. Romero, Physical Review Research 4, 033154 (2022).
  72. [72]D. Wierichs, J. Izaac, C. Wang, and C. Y.-Y. Lin, Quantum 6, 677 (2022).
  73. [73]A. Mari, T. R. Bromley, and N. Killoran, Physical Review A 103, 012405 (2021).
  74. [74]R. Shen, Z. Hao, and C. H. Lee, Entropy 28, 916 (2026).
  75. [75]T. Ahmed, M. Kashif, A. Marchisio, and M. Shafique, Scientific Reports 15, 33654 (2025).
  76. [76]T. Ahmed, A. Marchisio, M. Kashif, and M. Shafique, in 2025 International Joint Conference on Neural Networks (IJCNN) (IEEE, 2025) pp. 1–10, arXiv:2505.03378 [quant-ph].arXiv
  77. [77]D. A. Kreplin and M. Roth, Quantum 8, 1385 (2024).
  78. [78]R. Takagi, H. Tajima, and M. Gu, Physical Review Letters 131, 210602 (2023).
  79. [79]K. Tsubouchi, T. Sagawa, and N. Yoshioka, Physical Review Letters 131, 210601 (2023).
  80. [80]Y. Quek, D. Stilck França, S. Khatri, J. J. Meyer, and J. Eisert, Nature Physics 20, 1648 (2024).
  81. [81]S. Wang, P. Czarnik, A. Arrasmith, M. Cerezo, L. Cincio, and P. J. Coles, Quantum 8, 1287 (2024).
  82. [82]M. C. Tran, K. Sharma, and K. Temme, Locality and Error Mitigation of Quantum Circuits (2023), arXiv:2303.06496 [quant-ph].arxiv.org/abs/2303.06496
  83. [83]A. Eddins, M. C. Tran, and P. Rall, Lightcone shading for classically accelerated quantum error mitigation (2024), arXiv:2409.04401 [quant-ph].arxiv.org/abs/2409.04401
  84. [84]S. Filippov, M. Leahy, M. A. C. Rossi, and G. García-Pérez, Scalable tensor-network error mitigation for near-term quantum computing (2023), arXiv:2307.11740 [quant-ph].arxiv.org/abs/2307.11740
  85. [85]Paszke, A., Gross, S., Massa, F., Lerer, A., Bradbury, J., Chanan, G., Killeen, T., Lin, Z., Gimelshein, N., Antiga, L., Desmaison, A., Kopf, A., Yang, E., DeVito, Z., Maison, M., Tejani, A., Chilamkurthy, S., Steiner, B., Fang, L., … Chintala, S. (2019). PyTorch: An Imperative Style, High-Performance Deep Learning Library. In Advances in Neural Information Processing Systems (Vol. 32).
  86. [86]F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel, M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, J. Vanderplas, A. Passos, D. Cournapeau, M. Brucher, M. Perrot, and Édouard Duchesnay, Journal of Machine Learning Research 12, 2825 (2011).arxiv.org/abs/1201.0490
  87. [87]P. Virtanen, R. Gommers, T. E. Oliphant, M. Haberland, T. Reddy, D. Cournapeau, E. Burovski, P. Peterson, W. Weckesser, J. Bright, S. J. van der Walt, M. Brett, J. Wilson, K. J. Millman, N. Mayorov, A. R. J. Nelson, E. Jones, R. Kern, E. Larson, C. J. Carey, İ. Polat, E. W. Moore, J. VanderPlas, D. Laxalde, J. Perktold, R. Cimrman, I. Henriksen, E. A. Quintero, C. R. Harris, A. M. Archibald, A. H. Ribeiro, F. Pedregosa, P. van Mulbregt, and SciPy 1.0 Contributors, Nature Methods 17, 261 (2020).DOI
  88. [88]C. R. Harris, K. J. Millman, S. J. van der Walt, R. Gommers, P. Virtanen, D. Cournapeau, E. Wieser, J. Taylor, S. Berg, N. J. Smith, R. Kern, M. Picus, S. Hoyer, M. H. van Kerkwijk, M. Brett, A. Haldane, J. F. del Río, M. Wiebe, P. Peterson, P. Gérard-Marchant, K. Sheppard, T. Reddy, K. Weckesser, H. Abbasi, C. Gohlke, and T. E. Oliphant, Nature 585, 357 (2020).DOI
  89. [89]R. Shen, T. Chen, T. Tai, J. M. Koh, P. Ghaemi, and C. H. Lee, Simulating condensed matter physics on quantum hardware (2026), arXiv:2606.02721 [cond-mat.str-el].arxiv.org/abs/2606.02721
  90. [90]I. Loshchilov and F. Hutter, in International Conference on Learning Representations (2019) arXiv:1711.05101 [cs.LG].arXiv
  91. [91]M. J. D. Powell, in Advances in Optimization and Numerical Analysis (Springer Netherlands, 1994) pp. 51–67.
  92. [92]Y. Li and S. C. Benjamin, Physical Review X 7, 021050 (2017).
  93. [93]A. E. Hoerl and R. W. Kennard, Technometrics 12, 55 (1970).
  94. [94]E. van den Berg, Z. K. Minev, and K. Temme, Physical Review A 105, 032620 (2022).
  95. [95]T. Giurgica-Tiron, Y. Hindy, R. LaRose, A. Mari, and W. J. Zeng, in 2020 IEEE International Conference on Quantum Computing and Engineering (QCE) (IEEE, 2020) pp. 306–316.
  96. [96]Z. Cai, npj Quantum Information 7, 80 (2021).
  97. [97]M. Liao, Y. Zhu, G. Chiribella, and Y. Yang, npj Quantum Information 11, 8 (2025).
  98. [98]W. J. Huggins, S. McArdle, T. E. O’Brien, J. Lee, N. C. Rubin, S. Boixo, K. B. Whaley, R. Babbush, and J. R. McClean, Physical Review X 11, 041036 (2021).
  99. [99]B. Koczor, Physical Review X 11, 031057 (2021).
  100. [100]X. Bonet-Monroig, R. Sagastizabal, M. Singh, and T. E. O’Brien, Physical Review A 98, 062339 (2018).
  101. [101]S. McArdle, X. Yuan, and S. Benjamin, Physical Review Letters 122, 180501 (2019).
  102. [102]R. Sagastizabal, X. Bonet-Monroig, M. Singh, M. A. Rol, C. C. Bultink, X. Fu, C. H. Price, V. P. Ostroukh, N. Muthusubramanian, A. Bruno, M. Beekman, N. Haider, T. E. O’Brien, and L. DiCarlo, Physical Review A 100, 010302 (2019).

Paper details

vlnc:W_6spmndeq
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 11

downloads · 1

A view counts once per browser per day, a download each time the PDF is requested.

  • Physics and Astronomy

Not recorded for this paper

View statement
Looking for related papers…
Contents