Conceptio › Archive › arXiv CS
arXiv CSopen access

Few-Shot Cross-Device Transfer for Quantum Noise Modeling on Real Hardware

2026 · arxiv_cs
arXiv CS · Papers · License: Open Access · 2026
Open Source ↗Direct PDF ↓
neural-networks
machine learning, deep learning, neural networks

arXiv:2604.24397v1 [quant-ph] 27 Apr 2026

Few-Shot Cross-Device Transfer for Quantum Noise Modeling on Real Hardware Sahil Al Farib

Sheikh Redwanul Islam

Azizur Rahman Anik

United International University Dhaka, Bangladesh [email protected]

United International University Dhaka, Bangladesh [email protected]

United International University Dhaka, Bangladesh [email protected]

Abstract—In the noisy intermediate-scale quantum (NISQ) regime, quantum devices contain hardware-specific noise sources which restrict device-invariant error mitigation strategies. We explore transfer learning approaches to apply noise models learned on one quantum device to a different device with the help of a small amount of data. We create a real-hardware dataset from two IBM quantum devices, ibm_fez (source) and ibm_marrakesh (target), comprising 170 noisy and ideal circuit output distributions, with device calibration features added. We train a residual neural network on the source device to map noisy to ideal outcomes. The zero-shot transfer test shows a KL divergence of 1.6706 (up from 0.3014), establishing device specificity. With K = 20 fine-tuning samples, KL drops to 1.1924 (28.6% improvement over zero-shot), recovering 34.9% of the gap between zero-shot and in-domain KL. Ablation studies reveal that the major cause of mismatches across devices is CX gate error, followed by readout error. The results show quantum noise can be learned and fine-tuned with minimal samples, and provide a plausible approach to cross-device quantum error mitigation. Index Terms—quantum noise modeling, few-shot transfer learning, cross-device adaptation, error mitigation, NISQ, IBM Quantum, residual neural network, calibration features

I. I NTRODUCTION The noisy intermediate-scale quantum (NISQ) era of quantum computing is constrained by the hardware noise caused by decoherence, gate and measurement error [1]. Such noise patterns are not generic and vary across devices, over time (due to calibration drift) and across qubit registers of the same physical chip [2]. This makes it challenging to develop noise models transferable across different devices. Data-driven approaches to quantum error mitigation have seen growing interest. Methods such as zero-noise extrapolation (ZNE) [3], probabilistic error cancellation (PEC) [4], and Clifford data regression [5] can reduce the effect of noise on expectation values. However, these techniques typically require per-device calibration data or assume that noise characteristics are stable and transferable—an assumption our results directly challenge. More recent machine learning approaches have modeled noise using circuit structure and calibration features [6], but cross-device generalization remains largely unaddressed. The challenge of adapting a pre-trained model to a new domain with minimal data is well studied in classical machine learning under the names transfer learning and few-shot learning [7], [8]. We ask whether this paradigm applies to

quantum noise: can a model trained to predict ideal circuit outputs from noisy measurements on one IBM quantum device adapt to a different device using only a small number of targetdevice samples? We propose a data-driven framework for few-shot crossdevice noise adaptation and make the following concrete contributions: 1) We construct a real-hardware paired dataset of 170 (noisy, ideal) circuit output distributions across two IBM quantum devices (ibm_fez and ibm_marrakesh), paired with device calibration features spanning four hardware parameters. 2) We train a residual neural network on the source device and demonstrate that zero-shot transfer to the target device increases KL divergence by 5.5× relative to the in-domain baseline, confirming that noise profiles are strongly device-specific. 3) We show that few-shot fine-tuning with K = 5, 10, 20 target-device samples yields monotonic improvement: at K = 20, KL divergence falls from 1.6706 to 1.1924—a 28.6% reduction relative to the zero-shot baseline, or equivalently, a 34.9% recovery of the gap between zero-shot and in-domain performance (gap = 1.6706 − 0.3014 = 1.3692; recovered = 0.4782). 4) We perform a calibration drift analysis and a leave-oneout feature ablation study, identifying CX gate error as the strongest cross-device mismatch feature and readout error as a secondary mismatch signal. II. R ELATED W ORK A. Quantum Error Mitigation The limitations of quantum computing in the NISQ (noisy intermediate-scale quantum) era stem from hardware noise such as decoherence, imperfect gates and measurements [1]. Various quantum error mitigation (QEM) strategies have been suggested to reduce their impact without achieving fault tolerance. Zero-noise extrapolation (ZNE) introduces artificial noise and extrapolates back to zero noise to offer hardware-independent error mitigation [3]. Probabilistic error cancellation (PEC), on the other hand, learns an inverse noise model via quasiprobability sampling, allowing for unbiased results with a higher sample cost [4]. Clifford data regression also uses

classically simulable circuits to learn correction functions from noisy to ideal outputs, showing impressive results on singledevice quantum computers [5]. Recently, machine learning methods have shown potential. These approaches leverage classical machine learning models to model the noise process or directly learn the correction from noisy to ideal outcomes, reducing the need for detailed physical models of noise [6], [9]. However, current methods either assume a single device or need to be retrained for each physical implementation, making them challenging to scale across diverse quantum devices. B. Device Variability and Noise Drift A primary difficulty in quantum computing is that noise processes are not universal and change over time due to calibration drift. Recent empirical research has demonstrated that even seemingly identical quantum devices can have vastly different noise characteristics, which affects the portability of models [2]. This suggests that noise mitigation techniques acquired on one device may not perform well on another. This poses a problem for many current approaches, which rely on devicespecific calibration or repeated characterization, resulting in significant additional cost, and preventing their use in practical quantum workflows.

III. DATASET AND E XPERIMENTAL S ETUP A. Circuit Generation We generate a controlled set of 85 quantum circuits spanning four structural families to ensure coverage of diverse noise regimes (Table I). TABLE I C IRCUIT T YPE D ISTRIBUTION Circuit Type

Count

Random circuits

40

Bell state circuits

15

GHZ state circuits

15

QFT circuits

15

Primary Purpose Structural diversity; generalization Two-qubit entanglement; CX error sensitivity Multi-qubit entanglement; error accumulation Layered gate accumulation; coherent errors

All circuits are parameterized with 2–5 qubits and circuit depth 2–8. Circuit generation uses a fixed random seed (seed = 42) for full reproducibility.

C. Transfer Learning and Few-Shot Adaptation The challenge of transferring knowledge from one domain to another with scarce data is a well-studied problem in classical machine learning (ML) under the paradigms of transfer learning and few-shot learning. Transfer learning allows the knowledge acquired from one domain to be used to enhance learning in another domain [7]. Meta-learning methods like Model-Agnostic Meta-Learning (MAML) also build on this concept, learning initializations of model parameters that can quickly adapt to new tasks with few training samples [8]. These approaches have seen remarkable success in vision, language and science applications, but in the context of quantum noise modeling, they have yet to be extensively explored. D. Gap in Existing Work While there have been considerable advances in both quantum error mitigation (QEM) and transfer learning, the combination of these techniques is still in its infancy. Current QEM methods typically aim to enhance performance on a single device, while classical transfer learning methods have not yet been rigorously investigated for adapting to different quantum noise patterns. Specifically, there is a lack of empirical evidence that indicates whether patterns of noise learned from one device can be transferred to another (or quickly adapted) using a few additional data points. This is essential for realizing scalable, data-driven quantum error mitigation that can be applied across different devices.

Fig. 1. Dataset composition. (a) Sample counts by backend: 85 per device. (b) Circuit type distribution: 40 random, 15 Bell, 15 GHZ, 15 QFT. (c) Qubit count distribution across 2–5 qubits. The balanced structure across circuit types ensures the dataset covers a representative range of noise regimes.

B. Data Collection For each circuit we collect three data sources: Noisy output distribution. Each circuit is executed on real IBM quantum hardware via the Qiskit IBM Runtime service. All circuits for a given backend are submitted as a single batch job to minimize calibration drift within a backend session. Empirical probability distributions are computed from hardware measurement outcomes. Ideal output distribution. Each circuit is simulated using Qiskit’s noiseless statevector simulator, giving the ground-truth ideal probability distribution. Calibration features. Device calibration data is retrieved from the IBM Quantum calibration API at the time of circuit execution, capturing: mean T1 (qubit relaxation time), mean T2 (qubit dephasing time), mean readout error, and mean CX gate error, averaged across all active qubits. We run all 85 circuits on two IBM quantum backends: • Backend A — ibm_fez (source device): used exclusively for model training.

•

Backend B — ibm_marrakesh (target device): reserved for zero-shot and few-shot evaluation.

The final dataset contains 170 paired samples (85 per backend). We do not control for temporal drift between backend executions; instead, we treat each backend snapshot as representative of a distinct device state, which is consistent with practical usage of cloud-based quantum hardware. C. Feature Representation Each sample is encoded as a fixed-length feature vector x ∈ R41 . The first 9 dimensions are scalar features (Table II): TABLE II I NPUT F EATURE V ECTOR (I NDICES 0–8) Index 0 1 2 3 4 5 6 7 8

IV. M ETHOD A. Problem Formulation We model noise mitigation as supervised distribution regression. Given a feature vector x encoding the noisy output distribution, circuit structure, and device calibration, we learn: fθ : x −→ ŷ ≈ yideal

(1)

Training minimizes KL divergence between the predicted and true ideal distributions:   L(θ) = DKL yideal softmax(fθ (x)) (2) computed via PyTorch’s F.kl_div with reduction="batchmean". Given a source device Ds and a target device Dt, we study whether a model trained on Ds can be adapted to Dt using K labeled samples.

Feature Number of qubits Circuit depth CX gate count H gate count X gate count Mean T1 (standardized) Mean T2 (standardized) Mean readout error (standardized) Mean CX gate error (standardized)

Dimensions 9–40 are the noisy output distribution over computational basis states, padded to a fixed size of 32 = 25 (supporting circuits up to 5 qubits; unused entries are zeropadded). The 9 scalar features are standardized to zero mean and unit variance using statistics computed from Backend A training data only. Backend B samples are standardized with the same Backend A statistics at inference time, so calibration feature differences between devices remain interpretable by the model. Target y ∈ R32 is the ideal output distribution over computational basis states, padded to size 32.

Fig. 2. Device calibration drift between ibm_fez (Backend A) and ibm_marrakesh (Backend B). Left: coherence times T1 and T2 in microseconds. Right: readout error and CX gate error rates. Backend B has longer coherence times but higher gate and readout error rates—a qualitatively distinct noise profile that motivates the need for explicit adaptation.

B. Model Architecture: Residual Noise Adapter We design a Residual Noise Adapter (RNA), a multilayer perceptron that learns a residual correction over the noisy input distribution rather than predicting the ideal distribution from scratch: ŷ = softmax(xnoisy + fθ (x)) (3) where xnoisy = x[9:] ∈ R32 is the noisy distribution subvector and fθ (x) ∈ R32 is the learned per-state correction. The backbone fθ consists of: Linear(41 → 128) → LayerNorm(128) → GELU → Dropout(0.10) Linear(128 → 128) → LayerNorm(128) → GELU → Dropout(0.10) Linear(128 → 64) → LayerNorm(64) → GELU Linear(64 → 32)

[head]

Model hyperparameters are summarized in Table III. TABLE III M ODEL H YPERPARAMETERS Parameter

Value

Input dimension Output dimension Hidden dimensions Activation Normalization Dropout Head Residual connection

41 32 128 → 128 → 64 GELU LayerNorm after each hidden layer 0.10 (after first two blocks) Linear(64 → 32), no activation adds x[9:] to head output before softmax

The residual formulation provides two key benefits. First, it encourages near-identity initialization: when the backbone weights are small, the correction fθ (x) ≈ 0 and the model outputs approximately the noisy input—a more stable starting point than an arbitrary mapping. Second, it constrains the model to learn a correction over the existing noisy distribution, an inductive bias that aligns with how physical noise distorts ideal distributions.

C. Training Protocol The model is trained exclusively on Backend A (ibm_fez) data. Data split. Backend A’s 85 samples are split 80/20 into training (68 samples) and validation (17 samples) using a fixed generator seed (seed = 42). Optimization settings are summarized in Table IV. The best model checkpoint is saved based on minimum validation KL divergence. TABLE IV O PTIMIZATION S ETTINGS Setting

Value

Optimizer Learning rate Weight decay LR scheduler Batch size Max epochs Early stopping patience

AdamW 1 × 10−3 1 × 10−4 ReduceLROnPlateau (factor=0.5, patience=12) 16 (train), 32 (validation) 250 25 epochs (on validation KL)

TABLE V F EW-S HOT A DAPTATION S ETTINGS Setting

K ≤ 10

Trainable layers Learning rate Max epochs Early stopping patience Replay buffer

Head only Last hidden block + head 1 × 10−4 5 × 10−5 60 80 12 epochs 12 epochs 24 randomly sampled Backend A training samples

K = 20

The adaptation procedure is detailed in Table V. Replay. 24 Backend A training samples are mixed into each fine-tuning batch alongside the K target samples. This prevents catastrophic forgetting of source-domain structure while adapting to the target device. Layer freezing strategy. For small K (≤ 10), only the output head is updated, limiting the degrees of freedom to avoid overfitting. For K = 20, the final hidden block (Linear 128 → 64, LayerNorm, GELU) and head are unfrozen, allowing deeper adaptation while the backbone’s earlier feature representations remain fixed. Results are averaged over 5 random seeds (seeds 0–4) controlling the K-sample selection. E. Why Residual Distribution Learning for Quantum Noise

Fig. 3. Training convergence curve (KL divergence, log scale) on Backend A. Both training and validation loss decrease monotonically before early stopping. The gap between training and validation curves is small, indicating limited overfitting despite the small dataset size (68 training samples). Best val KL = 0.4605 at epoch 27; early stopping at epoch 52.

D. Few-Shot Adaptation Protocol

In our approach, rather than directly learning to regress from features to the desired output, we make the design decision to learn the residual of the probability distributions. This is driven by both statistical and physical properties of quantum noise processes. Statistically, the noisy output distribution already holds a strong component of the ideal distribution. The majority of quantum noise channels (such as amplitude damping, depolarizing noise and readout errors) correspond to structured distortions. Hence, training a residual correction function fθ (x) enables the model to learn to correct the noisy input distribution instead of learning the entire distribution over again. This simplifies the learning task, making it more sample-efficient, an essential feature in few-shot learning. From a physical standpoint, many noise processes exhibit approximately additive or redistributive behavior in the probability simplex. For example, readout errors tend to redistribute probability mass between neighboring bitstrings, while gate errors introduce systematic distortions correlated with circuit structure. The residual formulation

After training on Backend A, we evaluate the model in three settings: ŷ = softmax (xnoisy + fθ (x)) (4) In-domain (A→A). The model is evaluated on a heldencodes an inductive bias that the ideal distribution is a out split of Backend A data (same train/val split, seed = 42). This serves as an upper-bound reference for achievable corrected version of the observed noisy distribution, rather than an unrelated target. performance. Zero-shot (A→B). The trained Backend A model is applied This approach also leads to a stable training landscape. When directly to all 85 Backend B samples without any modification. the network is first initialized, the network weights are small, This quantifies the cost of cross-device noise mismatch. fθ (x) ≈ 0, and the model prediction is close to the noisy input. Few-shot (A→B, K shots). The pre-trained model is fine- This prevents instability that may be observed when predicting tuned on K randomly sampled circuits from Backend B, then entire probability distributions without some prior knowledge evaluated on the remaining (85 − K) Backend B samples. of the output structure. During training, the model gradually

learns adjustments to redistribute probability mass towards the target distribution. For transfer learning across devices, the residual formulation is beneficial. Patterns of noise (e.g., entanglement-induced distortions) are shared between devices, but magnitudes are device-dependent. The residual network can leverage structure learned on the source device and adapt only the magnitude and direction of adjustments for few-shot transfer learning. This is why it is effective to freeze the early layers and update just the final layers or "head": early layers learn device-invariant patterns while later layers learn device-specific calibration effects. To conclude, residual distribution learning offers a principled and efficient way of modeling quantum noise, leading to effective performance within and across devices even with limited data.

Fig. 4. Results summary table. Rows: in-domain, zero-shot, and K=5/10/20 few-shot conditions. Columns: KL divergence (mean ± std), TV distance, and KL improvement percentage. Note that TV increases slightly (+0.0221), indicating that improvements in low-probability states (KL-sensitive) may come at the cost of small deviations in dominant states.

V. R ESULTS A. Main Results Table VI reports cross-device transfer performance in terms of KL divergence and Total Variation distance. TABLE VI C ROSS -D EVICE T RANSFER P ERFORMANCE (KL DIVERGENCE AND T OTAL VARIATION DISTANCE ). B EST FEW- SHOT RESULT IN BOLD . Condition In-domain (A→A) Zero-shot (A→B) Few-shot K=5 Few-shot K=10 Few-shot K=20

KL Div.↓

TV Dist.↓

KL Improv.

0.3014 1.6706 1.5874±0.0849 1.5172±0.0669 1.1924±0.0630

0.5023 0.5282 0.5287±0.0081 0.5290±0.0088 0.5503±0.0095

— baseline −5.0% −9.2% −28.6%

The zero-shot KL of 1.6706 represents a 5.5× degradation relative to the in-domain baseline of 0.3014. This confirms that the noise structure of ibm_marrakesh is fundamentally different from that of ibm_fez, even though both are IBM superconducting processors of the same generation. Few-shot adaptation recovers a substantial fraction of this gap. The improvement is monotonically increasing with K: 5.0% at K=5, 9.2% at K=10, and 28.6% at K=20—all measured as percentage reduction relative to the zero-shot baseline. Expressed as recovery of the gap to in-domain performance (gap = 1.6706 − 0.3014 = 1.3692), K=20 recovers (1.6706 − 1.1924)/1.3692 = 34.9% of the total transfer deficit. The standard deviations (over 5 random seeds) remain stable across K values, indicating robustness to the particular choice of K calibration samples. KL divergence is more sensitive to low-probability states, while TV distance weights all states uniformly. At K = 20, improvements in low-probability regions reduce KL, while small deviations in dominant states lead to a slight increase in TV. This demonstrates that KL and TV capture complementary aspects of distributional alignment. B. Example Prediction To qualitatively verify model behavior, we select the Backend B circuit with the highest noisy-to-ideal KL divergence (the

Fig. 5. KL divergence as a function of few-shot sample count K. Dashed red line: zero-shot baseline (1.6706). Dotted green line: in-domain reference (0.3014). Blue curve with shaded ±1 std confidence band: few-shot fine-tuning over 5 seeds. Percentage annotations indicate per-K improvement over zeroshot. The monotonic improvement with K confirms that the pre-trained source model provides a useful initialization for adaptation.

hardest example in the test set) and compare the noisy input, ideal target, and model prediction distributions. VI. C ALIBRATION D RIFT A NALYSIS A necessary condition for cross-device transfer to be difficult is that the two devices have measurably different noise profiles. Table VII reports the mean calibration properties of each backend, extracted from the IBM Quantum calibration API at the time of circuit execution. The two devices present a counterintuitive pattern: Backend B has longer coherence times (T1 : +35.4%, T2 : +9.6%) but higher error rates (readout: +17.5%, CX gate: +70.7%). This indicates that the devices have qualitatively distinct noise profiles—not merely a uniform scaling of the same noise structure. A model trained on Backend A must learn a fundamentally different error correction to succeed on Backend B. The 70.7% difference in CX gate error is particularly striking,

First, prediction error is systematically higher for highly multi-qubit entangled circuits, such as GHZ and Quantum Fourier Transform (QFT) circuits. These circuits magnify the impact of multi-qubit gate errors, particularly errors on the controlled-NOT (CX) gates, which are shown to have the largest drift across devices in our calibration analysis. In these instances, the mapping from calibration features to distributional corrections learned from the training data may be partially mismatched to the noise regime of the target device, and cannot be fully corrected by few-shot learning. Second, the model is less effective at predicting distributions with strong peaks (high-probability states) and long tails (lowprobability states). The Kullback–Leibler (KL) divergence metric is heavily weighted by low-probability regions, and thus a reduction in KL divergence can be achieved despite a slight decrease in accuracy in high-probability states. This Fig. 6. Total Variation distance as a function of K. Unlike KL divergence, accounts for the observed discrepancy between KL and total TV distance does not decrease monotonically: it remains approximately flat for K ≤ 10 and increases slightly at K = 20 (0.5282 → 0.5503). This variation (TV) distance metrics: although the KL error usually divergence from the KL trend is discussed in Section V-A. decreases as the number of adaptation samples K increases, TV distance can sometimes increase due to slight changes in high-probability events. Third, zero-shot transfer errors demonstrate that summary features of device calibrations don’t entirely capture device noise characteristics. Although average T1 and T2 times, readout errors, and CX gate errors offer a succinct summary of the device, they exclude spatial and qubit-to-qubit interactions. This is especially the case for circuits that map onto different sets of qubits on different devices, where noise characteristics are highly variable. Fourth, low-shot adaptation is dependent on the variability of the adaptation data. If the adaptation set lacks diversity in Fig. 7. Probability distribution comparison for a representative circuit on Backend B (circuit type and qubit count shown in panel title). Grouped bar circuit structures (for instance, contains mainly circuits with low chart: red = noisy input, blue = ideal target, green = model prediction over entanglement), the learned corrections may not be applicable computational basis states. Side panel: KL and TV metrics for each sample, to new circuits. Random seed averaging helps to smooth out for all three pairs. The model effectively redistributes mass to the correct distribution, bringing down the noisy-to-ideal KL. variance in the results, but variability is still an issue in the extremely low-shot setting. Despite these failure modes, the model shows improvement and it directly explains the large zero-shot KL divergence for all adaptation sizes, suggesting that the learned representa(1.6706 vs. 0.3014 in-domain). tion generalises well for device adaptation. These failure modes can be mitigated by future work through the inclusion of qubitVII. E RROR A NALYSIS : W HEN AND W HY D OES THE specific calibration data, circuit structure encodings and more M ODEL FAIL ? sophisticated model architectures such as graph neural networks Despite the effectiveness of few-shot adaptation for crossor attention mechanisms. device prediction, it is essential to identify and understand the model’s limitations. We examine errors in predictions for VIII. F EATURE A BLATION S TUDY different circuits and different distributions to understand the To identify which calibration features drive cross-device systematic shortcomings and inform future research. adaptation, we perform a leave-one-out ablation study. Each calibration scalar (feature indices 5–8 in the input vector) is zeroed out individually, and the zero-shot KL divergence on TABLE VII D EVICE C ALIBRATION C OMPARISON (T1 AND T2 IN MICROSECONDS ; Backend B is re-evaluated. Only the input features are modified; ERRORS ARE DIMENSIONLESS PROBABILITIES ) the model weights remain unchanged. We consider effects with |∆| < 0.001 to be within numerical Property ibm_fez (A) ibm_marrakesh (B) ∆ (B−A) noise and not statistically meaningful. T1 (µs) 142.4 192.8 +50.5 (+35.4%) Finding 1 — CX gate error exhibits the strongest effect T2 (µs) 104.1 114.0 +10.0 (+9.6%) Readout error 0.0285 0.0335 +0.0050 (+17.5%) under ablation. Removing CX gate error produces the largest CX gate error 0.0328 0.0560 +0.0232 (+70.7%) KL reduction (∆ = −0.2935), indicating that it introduces the

TABLE VIII C ALIBRATION F EATURE A BLATION ( BASELINE KL = ZERO - SHOT KL = 1.6706) Ablation Condition

KL Div.

∆ vs. Baseline

All features — baseline Remove T1 (index 5) Remove T2 (index 6) Remove Readout Error (idx 7) Remove CX Gate Error (idx 8)

1.6706 1.6708 1.6705 1.6151 1.3771

— +0.0002 −0.0001 −0.0555 −0.2935

IX. D ISCUSSION A. Why Does Few-Shot Adaptation Succeed? The residual architecture offers an explanation. The backbone network already captures patterns in how noise affects distributions (e.g. amplitude damping shifts mass towards the |0⟩ state, readout errors symmetrically shift mass between bitstrings). This structure is common across devices, albeit to different degrees. To adapt to new devices, we only need to calibrate the calibration-dependent elements of this correction. The layer-freezing strategy reflects this: for small K, only the output head (which maps 64-dimensional backbone features to per-state corrections) is updated, limiting the adaptation to a 64 × 32 linear transformation. For K = 20, one additional hidden block is unfrozen. The replay buffer of 24 Backend A samples prevents catastrophic forgetting of this shared structural knowledge. This suggests that calibration features are not universally beneficial; their utility depends on alignment between source and target device regimes. B. Implications for Scalable Quantum Error Mitigation

Fig. 8. Feature ablation study. Bar heights show KL divergence when each calibration feature is zeroed out at inference time (model weights unchanged). Red bar: removing this feature increases KL (feature is informative under zero-shot transfer). Green bar: removing this feature decreases KL, indicating distribution mismatch rather than benefit—the model’s learned association is miscalibrated for the target device’s regime. Both readout error and CX gate error exhibit cross-device mismatch (negative ∆), with CX gate error having the dominant effect.

most significant cross-device mismatch. The large distributional shift in CX error between devices (+70.7%, Table VII) likely causes the model to misapply its learned CX-error-todistortion mapping: the model was trained under ibm_fez’s CX error regime and has learned to associate that regime’s magnitude with specific distributional distortions. When applied to ibm_marrakesh’s very different CX error magnitude, this learned association introduces systematic mismatch rather than meaningful correction. Under few-shot adaptation, the CXsensitive layers would be updated to reflect the target device’s regime, likely restoring or improving the feature’s contribution. Finding 2 — Readout error exhibits weaker cross-device mismatch than CX gate error. Readout error exhibits a weaker mismatch effect (∆ = −0.0555), consistent with the 17.5% difference in readout error between the two devices (Table VII) and with prior work on readout error mitigation [10]: readout errors produce state-independent additive noise on measurement distributions, making them the most directly observable signature distinguishing the two devices. Finding 3 — T1 and T2 contribute minimally. Both T1 and T2 ablations produce negligible changes (|∆| < 0.001). While coherence times differ between devices (Table VII), their mean-aggregated values do not encode the per-qubit spatial variation that determines local gate fidelity at the circuit level.

The 28.6% KL improvement (relative to zero-shot) at K = 20—equivalently, 34.9% recovery of the gap to in-domain performance—is achieved with only 20 real-hardware circuit executions: a negligible resource cost compared to full perdevice data collection (85 circuits). This suggests a practical deployment strategy for quantum error mitigation at scale: train once on a well-characterized reference device, then adapt to new hardware with a small calibration set. The cost is proportional to K, not to the number of devices or circuit types. C. Comparison to Classical Error Mitigation Our approach differs structurally from ZNE and PEC. ZNE requires noise amplification circuits and extrapolation to the zero-noise limit—it does not use cross-circuit training data and cannot leverage a pre-trained prior. PEC requires quasi-probability sampling whose cost scales exponentially in circuit depth. In contrast, our approach requires K real circuit executions for adaptation and then applies the corrected model with a single forward pass at test time. A direct quantitative comparison requires matching the circuit classes and evaluation metrics used in ZNE/PEC benchmarks, which we defer to future work. D. Practical Deployment Considerations One of the key applications for cross-device adaptation of noise is to support scalable deployment of quantum applications across different devices. In real-world cloud-based quantum computing systems, users may run jobs on multiple devices and the device calibrations may drift between sessions. Full retraining or large calibration efforts for each new device will cause high computational and operational costs. Hence, techniques allowing for fast adaptation with small datasets are critical for deployment. The proposed approach enables an efficient deployment process. We first train a base model on a reference device with a large amount of data. This can be done offline and be

periodically updated as new data is collected. To deploy on 5) Simple architecture. We adopt a lightweight MLP ara different device, one takes a small set of K circuits from chitecture to isolate cross-device transfer effects without the device of interest. This is followed by adaptation of the introducing confounding architectural complexity. Graph model using the few-shot adaptation protocol, resulting in a neural networks operating on the circuit’s connectivity model for the new device. The adapted model can then be used graph, or attention-based models over gate sequences, to correct shots for any circuit, without the need for further may better capture circuit-topology-dependent noise calibration at runtime. patterns. We do not include classical regression baselines (e.g., linear models or random forests); evaluating such The adaptation procedure is not computationally expensive. baselines is an important direction for future work. Adaptation typically requires retraining only a small number of model parameters (such as the final layers or head) while XI. C ONCLUSION keeping the other layers frozen. This speeds up training and reduces memory usage, making it feasible to incorporate within We demonstrate that quantum noise is learnable, devicea quantum software pipeline. The inference step involves specific, and can be adapted with limited data. A residual neural a single pass through a small neural network, leading to network trained on IBM ibm_fez exhibits a 5.5× increase in low overhead during inference compared to re-execution KL divergence under zero-shot transfer to ibm_marrakesh, approaches. confirming that hardware-specific noise profiles do not generalUnlike classical error mitigation strategies based on repeated ize directly across devices. Few-shot fine-tuning with K = 20 sampling or re-execution of circuits, the proposed approach target-device samples reduces this gap by 28.6% relative to the amortizes the cost of adaptation over many subsequent execu- zero-shot baseline, corresponding to a 34.9% recovery toward tions of circuits. The cost of inference is proportional to the in-domain performance, using a layer-selective adaptation number of adaptation samples K rather than the number of strategy with replay to mitigate catastrophic forgetting. circuits that are executed in a deployment. This is especially Calibration drift analysis reveals qualitatively distinct noise attractive in a large workload scenario, where the same backend profiles between the two devices, with the target device may be used to execute hundreds or thousands of circuits. exhibiting longer coherence times but higher gate and readout Moreover, the approach can easily be extended to multiple error rates. Feature ablation indicates that CX gate error is devices and time-varying scenarios. As more backends are seen, the primary source of cross-device mismatch, while readout a common representation can be learned across devices, which error contributes a smaller but consistent effect. These findings may lead to better transfer learning capabilities in the future. indicate that a modest number of calibration samples can be The use of temporal training data may also enable adaptation used to calibrate a pre-trained model to new devices. over time as devices change, enabling the system to continue Future directions include extending the method to larger to perform satisfactorily without retraining. sets of devices and deeper circuits, incorporating per-qubit These deployment scenarios indicate that few-shot cross- and topology-specific features to the calibration, potentially device adaptation is both an interesting research challenge and using meta-learning algorithms like MAML [8] to improve a practical approach to enhancing quality and scalability in initialisation, and extending the method to capture temporal near-term quantum devices. variations in noise. Overall, these results indicate that crossdevice adaptation is a promising approach to scalable dataX. L IMITATIONS driven quantum error mitigation strategies. 1) Dataset scale. The dataset contains 170 samples across two devices and five random seeds. Conclusions about generalizability to the broader IBM fleet, to trapped-ion or photonic hardware, or to deeper and wider circuits should be drawn with caution. 2) Circuit scope. Circuits are limited to 2–5 qubits and depth 2–8. Behavior under circuits approaching or exceeding coherence time limits (deeper circuits with thousands of gates) remains unstudied. 3) Mean-aggregated calibration features. We use devicelevel mean values for T1 , T2 , readout error, and CX error. Per-qubit, per-gate, and topological calibration information would likely improve adaptation quality, particularly for spatially heterogeneous noise. 4) No temporal drift modeling. Both device snapshots are single-point calibrations. IBM Quantum calibration data drifts substantially over hours to days [2]. A temporallyaware noise model is an important future direction.

ACKNOWLEDGMENTS The authors acknowledge use of IBM Quantum services through the IBM Quantum Network. Circuit execution and calibration data were retrieved via the Qiskit IBM Runtime service. The views expressed are those of the authors and do not reflect the official policy of IBM or the IBM Quantum team. R EFERENCES [1] J. Preskill, “Quantum computing in the NISQ era and beyond,” Quantum, vol. 2, p. 79, 2018, arXiv:1801.00862. [Online]. Available: https://doi.org/10.22331/q-2018-08-06-79 [2] S. Dasgupta and T. S. Humble, “Stability of noisy quantum computing devices,” 2021, arXiv:2105.09472. [Online]. Available: https://arxiv.org/abs/2105.09472 [3] Y. Li and S. C. Benjamin, “Efficient variational quantum simulator incorporating active error minimization,” Physical Review X, vol. 7, p. 021050, 2017, arXiv:1611.09301. [Online]. Available: https: //doi.org/10.1103/PhysRevX.7.021050

[4] K. Temme, S. Bravyi, and J. M. Gambetta, “Error mitigation for short-depth quantum circuits,” Physical Review Letters, vol. 119, p. 180509, 2017, arXiv:1612.02058. [Online]. Available: https: //doi.org/10.1103/PhysRevLett.119.180509 [5] P. Czarnik, A. Arrasmith, P. J. Coles, and L. Cincio, “Error mitigation with clifford quantum-circuit data,” Quantum, vol. 5, p. 592, 2021, arXiv:2005.10189. [Online]. Available: https://doi.org/10.22331/ q-2021-11-26-592 [6] Z. Du et al., “From noise modeling to layout optimization: A framework for quantum circuit fidelity enhancement with machine learning,” Advanced Quantum Technologies, vol. 9, no. 3, p. e00464, 2026. [Online]. Available: https://doi.org/10.1002/qute.202500464 [7] S. J. Pan and Q. Yang, “A survey on transfer learning,” IEEE Transactions on Knowledge and Data Engineering, vol. 22, no. 10, pp. 1345–1359, 2010, IEEE Xplore: 5288526. [Online]. Available: https://doi.org/10.1109/TKDE.2009.191 [8] C. Finn, P. Abbeel, and S. Levine, “Model-agnostic meta-learning for fast adaptation of deep networks,” in Proceedings of the 34th International Conference on Machine Learning (ICML), ser. Proceedings of Machine Learning Research, vol. 70. PMLR, 2017, pp. 1126–1135, arXiv:1703.03400. [Online]. Available: https: //proceedings.mlr.press/v70/finn17a.html [9] A. Strikis, D. Qin, Y. Chen, S. C. Benjamin, and Y. Li, “Learning-based quantum error mitigation,” PRX Quantum, vol. 2, p. 040330, 2021, arXiv:2005.07601. [Online]. Available: https: //doi.org/10.1103/PRXQuantum.2.040330 [10] P. D. Nation and M. Treinish, “Suppressing quantum circuit errors due to system variability,” PRX Quantum, vol. 4, p. 010327, 2023. [Online]. Available: https://doi.org/10.1103/PRXQuantum.4.010327

A PPENDIX All experiments use IBM Quantum real hardware accessed via Qiskit IBM Runtime. All 85 circuits per backend are submitted as a single batch job to minimize intra-session calibration drift. Each circuit is executed with 8192 shots. Calibration data is retrieved at the time of job submission via backend.properties(). Model training: seed = 42 for all random number generators (Python random, NumPy, PyTorch). Few-shot adaptation: averaged over seeds 0, 1, 2, 3, 4 for K-sample selection. All code is implemented in Python 3 using Qiskit, PyTorch, and NumPy. A complete reproducible pipeline is provided in the accompanying Jupyter notebook.

Record · ID 138946 · SHA-256 37fc0873584cf08e
Retrieved via Conceptio — every document is proof-bundled with source, license, and retrieval metadata.