arXiv:2609.05814quant-phSep 2026

Manuscript Offprint

arXiv:2609.05814

Towards Continuous Profiling and Optimization of Quantum-Classical Pipelines

Ayush Bansal, Owen Cochell, Santiago Núñez-Corrales, Marcos Frenkel, Seetharami Seelam, Apoorve Mohan, Tianyin Xu

Ayush Bansal¹, Owen Cochell¹, Santiago Núñez-Corrales¹, Marcos Frenkel¹, Seetharami Seelam², Apoorve Mohan²*, Tianyin Xu¹

¹University of Illinois Urbana-Champaign ²IBM Research

Abstract—Quantum applications increasingly execute as multi-stage quantum-classical pipelines, interleaving QPU computation with classical stages such as circuit generation, transpilation, layout mapping, quantum error mitigation (QEM), and post-processing. These stages have diverse resource requirements and exhibit stochastic behavior under drifting hardware noise, yet existing workflow frameworks treat them as static, isolated components. We present LLQM (Low-Level Quantum Machine), a profiling-driven meta-framework for quantum-classical pipelines. LLQM decomposes pipelines into fine-grained tasks and continuously profiles their CPU/GPU, memory, QPU, and queue dependencies alongside real-time hardware states. This unified runtime abstraction captures cross-stage resource dependencies and reveals how classical and quantum decisions interact, enabling characterization of their impact on fidelity and resource consumption. We evaluate LLQM using QEM as a representative pipeline stage, on IBM 156-qubit Heron r2 processors with circuits up to 100 qubits and 10710^7 transpiled gates. Our results show that continuous profiling exposes runtime bottlenecks and enables hardware-, fidelity-, and workload-aware optimizations.

Index Terms—Quantum, quantum-classical pipelines, quantum error mitigation, profiling, resource optimization.

I. INTRODUCTION

Quantum applications have evolved from small-scale experiments to utility-scale computations for quantum chemistry [1, 2], drug discovery [3, 4], and many-body dynamics [5, 6, 7]. These applications span tens to hundreds of physical qubits [8, 9, 5] on quantum processors such as the IBM Nighthawk (120 qubits) [10], IBM Heron (156 qubits) [11], and Google's Willow (105 qubits) [12]. Current-generation Quantum Processing Units (QPUs) suffer from decoherence, gate imperfections, and readout errors that compound exponentially with circuit depth and width [13, 14, 15]. Producing a usable result therefore takes more than executing a circuit—an application runs as a multi-stage quantum-classical pipeline, where quantum computation is interleaved with classical stages, including circuit generation, transpilation, qubit mapping, error mitigation, and post-processing.

Different stages of quantum-classical pipelines exhibit distinct computational characteristics, resource requirements, and optimization objectives, which collectively determine the fidelity and the cost of computation. Moreover, stages are not fixed in their own behavior. As we demonstrate in this work using Quantum Error Mitigation (QEM) [16, 17, 18, 19], different techniques within the same pipeline stage exhibit

drastically different classical resource requirements, interact differently with the underlying quantum hardware, and produce different execution fidelity. In this paper, we focus on QEM, which is resource-demanding and tightly coupled to the quantum hardware state. Its optimization depends jointly on workload characteristics, classical resources, and the evolving hardware state, rather than on any single factor in isolation.

Decomposing a workload into phases and profiling them individually is a well-established practice in classical high-performance computing (HPC). There, a profile is taken against stationary hardware—the same code on the same node next week exhibits the same bottleneck; hence, one characterization serves many executions. However, these HPC practices do not directly apply to quantum workloads. QPU error rates drift on timescales of minutes [20]. A noise model learned at the start of a sampling campaign can be invalid by its end; a qubit layout scored against a calibration snapshot can be stale before the job leaves the queue. The cost to recover fidelity is a function of the noise it must cancel, so a change in device state propagates into the quantum-classical resource bill. The decision variables span quantum and classical resources, and the objective is non-stationary—which is why one characterization does not suffice, and why profiling must be continuous beyond a one-time calibration.

Unfortunately, many existing frameworks (e.g., [21, 22]) optimize the QPU, not the pipeline. Pipeline-aware frameworks [23, 24, 25, 26, 27, 28, 29, 30, 31] focus on orchestrating quantum-classical execution through scheduling, backend management, and job execution as part of the effort to integrate quantum devices with classical HPC infrastructure [32, 33, 34]. They provide relatively little visibility into the interactions between individual pipeline stages, classical resource behavior, and quantum hardware state. As a result, decisions such as qubit mapping, QEM selection, and resource provisioning are typically made independently or statically, despite being tightly coupled through both execution fidelity and resource consumption. Table III in Section VIII places existing systems along the axes this coupling implies.

Our empirical characterization, using QEM as the representative stage, makes the implications concrete. QEM techniques differ by orders of magnitude in classical compute and memory demand; the classical phases within a single mitigation run differ in kind (memory-bound vs. compute-bound) and no single average utilization describes them; the classical host

*Project Co-PI and co-advisor.

can sit idle in polling loops for up to 92% of wall-time while waiting on the device, then spend 25–290× longer in classical mitigation than the quantum execution itself; switching QEM techniques swings the fidelity of the same circuit by more than 50%; and qubit layout alone can collapse one technique's fidelity to near zero while inflating another's QPU time by 1.8×. Few of these behaviors are visible in the per-circuit measurements that current frameworks report, and few of the underlying choices can be fixed correctly ahead of execution. Section II elaborates these observations in detail.

In this paper, we present LLQM (Low-Level Quantum Machine), a profiling-driven meta-framework for quantum-classical pipelines. Rather than introducing another workflow runtime, LLQM provides a common profiling substrate that continuously characterizes pipeline stages together with the hardware state under which they execute. It decomposes each application into fine-grained typed tasks along a five-stage pipeline: classification, pre-processing, job queuing, execution, and post-processing. LLQM records each task's classical and quantum resource behavior against the calibration snapshot it uses as a reference, and feeds telemetry back through two loops: (1) an intra-job loop that revisits a decision when fidelity falls short, and (2) an inter-job loop that keeps the cost models updated with the latest device states for subsequent jobs. Since tasks are independent by construction, a resource profile can be attributed to one stage of one technique on specific circuits, rather than averaged across a job—which is what makes the task graph a measurement abstraction.

Atop the profiling substrate, LLQM defines common interfaces for decisions that consume real resources: hardware-aware qubit mapping via an Expected Success Probability (ESP) metric, QEM technique and configuration selection, and classical resource provisioning, taking fidelity targets and resource budgets as inputs. LLQM does not prescribe the policy behind any decision. It provides the runtime abstraction under which hardware-, fidelity-, and workload-aware policies can be implemented, evaluated, and compared on identical workloads, hardware states, and budgets. We discuss the LLQM architecture in Sections III and IV, and characterize the profiling substrate on QASMBench circuits [35] of up to 100 qubits and 10710^7 transpiled gates on IBM Heron r2 processors, using mirror circuits [36] to evaluate fidelity at circuit sizes beyond the reach of state-vector simulation.

The paper makes the following contributions:

  1. We identify continuous profiling as a missing runtime primitive for quantum-classical pipelines, and show why static optimizations are insufficient when stage behavior depends on dynamic device state;

  2. We develop LLQM, a profiling-driven meta-framework that decomposes a pipeline into typed tasks and records per-phase classical and quantum resource behavior alongside runtime device states, with common interfaces for hardware-, fidelity-, and workload-aware policies;

  3. Using LLQM, we present a characterization of QEM, exposing the interactions among hardware state, mitigation effectiveness, qubit layout, execution fidelity, and

Figure

(a) Fidelity of different techniques (ZNE/PEC/REM) on Ising and VQE circuits of different sizes.

(b) Fidelity of different techniques for the vqe_n4 circuit in different hardware states.

Fig. 1: QEM algorithm choice causes large workload- and noise-dependent fidelity swings: (a) A QEM algorithm's fidelity varies widely with the type and size of the workload and may even fall below the unmitigated baseline; (b) The fidelity of the QEM algorithms changes with a slightly different hardware state: PEC performs worse than REM on the circuit.

quantum-classical resource consumption.

  1. LLQM is maintained as an open-source project.

References (62)