arXiv:2610.39824cs.DCOct 2026

Manuscript Offprint

arXiv:2610.39824

Enabling Dynamic Resource Scaling in Quantum Circuit Simulations

Íñigo Aréjula-Aísa, Sergio Iserte, Petter Sandås, Ricard S. Raigada-García, Oliver Brown, James Richings, Antonio J. Peña

1 st^{st} Íñigo Aréjula-Aísa

Barcelona Supercomputing Center

(BSC)

0009-0006-7354-0915

2 nd^{nd} Sergio Iserte

Barcelona Supercomputing Center

(BSC)

0000-0003-3654-7924

3 rd^{rd} Petter Sandås

Barcelona Supercomputing Center

(BSC)

0009-0009-2028-7719

3 th^{th} Ricard. S. Raigada-García

Universitat Politècnica de Catalunya

(UPC)

Barcelona, Spain

0009-0009-2028-7719

4 th^{th} Oliver Brown

Edinburgh Parallel Computing Centre

(EPCC)

Edinburgh, UK

email address or ORCID

5 th^{th} James Richings

Edinburgh Parallel Computing Centre

(EPCC)

Edinburgh, UK

email address or ORCID

8 th^{th} Antonio J. Peña

Barcelona Supercomputing Center

(BSC)

Barcelona, Spain

0000-0002-3575-4617

Abstract—Studies of quantum algorithms often simulate sequences of circuits whose number of qubits changes from one circuit to the next, such as instances of increasing size of the same problem. Since each additional qubit doubles the state-vector, every circuit needs a different number of nodes, which a fixed allocation on a shared High-Performance Computing (HPC) system cannot provide: a job sized for the largest circuit leaves most of its nodes idle, and one job per circuit adds scheduler interactions and queue waits. We make the QuEST state-vector simulator malleable with the Dynamic Management of Resources (DMR) framework, so that a single job resizes between circuits. Because no state-vector exists between circuits, reconfigurations require no data redistribution and no changes to the simulation kernels, and a checkpoint holding the index of the next circuit is enough to resume. A right-sizing policy derives the number of nodes from the number of qubits, and the circuit_executor API hides reconfigurations from the user. We evaluate the reconfiguration overhead on MareNostrum 5 and show that a single job can run a batch of circuits of different sizes, adapting its allocation to each of them with negligible overhead.

Index Terms—HPC-QC, Dynamic Resource Management, Quantum Circuit Simulation, MPI Malleability, State-vector

I. INTRODUCTION

Quantum computing (QC) is expected to speed up certain problems in chemistry, materials science, and optimization [1]. However, current and near-term quantum processors are limited by noise, small qubit counts, and shallow circuit depths, a regime known as Noisy Intermediate-Scale Quantum (NISQ) [2].

Until fault-tolerant hardware becomes available, quantum circuit simulators allow researchers to design, benchmark, and refine quantum algorithms on classical computers. Simulations show how algorithms scale, how robust they are to noise, and how the constraints of real hardware affect them. Results from independent simulators are also cross-checked to validate complex circuits [3].

These studies often require many simulations, for instance to sweep parameters or noise models, and the cost of each simulation grows exponentially with the number of qubits. Simulators therefore rely on multithreading, distributed memory, and GPU acceleration, and run on platforms ranging from laptops to supercomputers.

QuEST (Quantum Exact Simulation Toolkit) [4] is an open-source simulator of this kind. It simulates both state-vectors and density matrices, and thus both ideal and noisy circuits. It combines OpenMP multithreading, GPU acceleration with CUDA, and distribution with the Message Passing Interface (MPI), which allows it to simulate large circuits on supercomputers.

Moreover, the size of the simulated circuits often changes and later circuits can depend on the results of earlier ones. A common pattern is to optimize the parameters of a variational algorithm on small instances and reuse them on larger ones. For instance, the scaling of the Quantum Approximate Optimization Algorithm (QAOA) [5] on the low autocorrelation binary sequences (LABS) problem has been studied with exact state-vector simulations of 24 to 40 qubits on up to 1,024 GPUs per simulation, using a single set of parameters obtained by optimizing on small instances and rescaled to every problem size [6]. Similarly, QAOA parameters optimized on small graphs can be transferred to much larger ones [7]. Since each additional qubit doubles the size of the state-vector, the resources needed by a distributed simulation change with every circuit in the sequence. Static allocations on shared High-Performance Computing (HPC) systems fit such sequences poorly: a job sized for the largest circuit keeps most of its nodes idle while the smaller circuits run, whereas one job per circuit multiplies the interactions with the scheduler and exposes every circuit to its own queue wait. This becomes worse when the system operates under restrictions, for instance by limiting the number of nodes per user or allowing only one running job at a time, since these jobs then cannot run concurrently and their queue waits add up one after another.

Malleability, the ability of applications to adjust their resources at runtime, addresses this mismatch by allowing a simulation to expand or shrink its footprint as the sequence progresses. Malleable jobs can improve system utilization and reduce wait times [8]; a malleable job waits in the queue once, at submission, and although later expansions still depend on the availability of free nodes, shrinkages return idle nodes to the system. However, QuEST, like other distributed simulators, runs on an allocation fixed at launch.

To close this gap, we integrate QuEST with the Dynamic Management of Resources (DMR) framework [9], which allows MPI applications to expand and shrink at runtime in coordination with the resource manager. We present a case study in which a single QuEST job runs a sequence of circuits of different sizes and adapts its number of nodes to each of them. We measure the reconfiguration overhead and discuss the usability benefits of this approach.

The contributions of this paper are: (i) the design and implementation of a malleable version of QuEST that reconfigures at circuit boundaries, using the checkpoint-restart mode of DMR; (ii) a right-sizing policy that maps the number of qubits of each circuit to a number of nodes; (iii) the circuit_executor API, which hides reconfigurations from the user; and (iv) an evaluation of the reconfiguration overhead on MareNostrum 5.

The rest of the paper is organized as follows. Section II provides background on QuEST and DMR. Section III reviews related work on malleability, distributed quantum simulation, and resource management for HPC-QC integration. Section IV describes the design of the integration, Section V evaluates it, Section VI discusses our findings and their limitations, and Section VII concludes the paper.

References (38)