AivexaNewsSearch
AI news for builders and product teamsChecked every hour

Integrating QPUs into Supercomputing Centers Using Slurm HRES Plugins

Collected Nov 17, 2026

Slurm 26.11, the next release of the widely used HPC workload manager, introduces a Hierarchical Resources (HRES) plugin interface that treats a quantum processing unit as a native, cluster-level schedulable resource. NVIDIA's developer blog describes the design, its API and the first community plugins built on it. HRES itself arrived in Slurm 25.05 as a beta feature; 26.11 opens a plugin slot so that the HPC and quantum communities can wire in devices without patching Slurm.

The problem being solved is structural. Slurm's generic resources (GRES), the mechanism used for GPUs, belong to individual compute nodes, so modeling a QPU as a GRES pins it to one node and hides it from jobs elsewhere; a node failure can leave the device unreachable until an administrator reconfigures the cluster. The common workaround has been to count the QPU as a license, which is cluster-wide, and use a SPANK plugin for the user interface and node setup. That works but has drawbacks the post lists: jobs can hold compute nodes idle while waiting for the QPU, a job can pass device options without holding the license, several QPUs on one cluster compete for the same command-line options, SPANK plugins often bind third-party code to Slurm internals that change every release, and Slurm has no way to know when a device is recalibrating or offline.

HRES is described as the evolution of licenses. Like a license, an HRES is a count of a resource that belongs to no single node; unlike a license, the count is associated with a specific set of nodes allowed to use it. A QPU is defined in resources.yaml, stored beside slurm.conf, as a resource with one or more layers, each carrying a name, a node list and a count. The simplest QPU definition is a single layer over the nodes that can reach the device with a count of one. A plugin block attaches the Lua script and site settings such as the gateway endpoint and a maintenance_cycle interval. A job requests the device with --resources=qpu:1, and the request is satisfied when a layer overlapping the job's allocated nodes has enough of the resource left.

Slurm treats the QPU as a single schedulable unit: it decides whether the unit is free, which job holds it, for how long and from which nodes. It does not orchestrate anything inside the unit. Calibration, error correction and device control stay inside the QPU and its own runtime, which is why the authors expect the model to fit both today's noisy intermediate-scale quantum devices and future error-corrected systems. Between Slurm and the hardware sits third-party access middleware, which presents a unified interface over different quantum vendors' APIs; neither Slurm nor the Lua script talks to the QPU directly.

The current implementation runs a Lua script written by a community project or a device vendor. Lua was chosen partly because it is fast, embeds cleanly in C, is already used by Slurm's job submit and CLI filter plugins, and does not link against libslurm, whose API shifts each release, so a script avoids rebuilding on every upgrade. The file must sit at the same path on the controller and every node, and because most callbacks run as root or SlurmUser, only root should be able to write it.

The API callbacks in order include health checks, admission before nodes are allocated, setup and teardown. Every maintenance_cycle seconds a maintenance callback asks the middleware whether the device is ready and sets or clears disable_layer to stop or resume allocation. Once a job is scheduled but before its nodes are allocated, a controller prerun can admit or hold it, preventing the idle-node problem; because prerun holds the controller's job lock, slow work such as reserving the QPU belongs in an optional asynchronous prerun whose payload travels to the job's nodes. A revoke callback undoes the reservation if the job does not start, and a controller epilog releases it at the end. A callback can return ESLURM_HRES_REMOTE_FAIL to signal that an external service is unavailable rather than broken, leaving the job pending instead of draining nodes.

Plugins are stackable: slurmctld creates a separate context for each resource with a plugin, so one cluster can host several QPUs and QPU types without the option collisions seen with SPANK. Users append name=value arguments to the resource request, for example --resources='qpu:1[shot=1000]', and Slurm forwards them uninterpreted, so a second command-line flag is unnecessary. Site configuration lives in the plugin's config list and is handed to the plugin untouched. One caveat the post stresses: configuration, job arguments and payloads travel with the job and are readable by the job's user, so none of them may hold secrets.

Two open source middleware communities, QRMI and QDMI, have released HRES plugins on the 26.11 APIs. Both admit jobs only while the QPU is available, and in both the layer count caps how many jobs can use a device concurrently. The QRMI plugin books access with the user's own credentials before a job runs, in a separate thread outside the scheduler's critical path, and releases it afterwards; depending on the backend that booking is a reservation or a session. Existing applications keep working because jobs see the same environment variables as with the QRMI SPANK plugin. The QDMI plugin reserves nothing: it checks device status and admits jobs while the device reports idle or busy, then each job submits work through QDMI and the provider's queue schedules it. With either, a site running Slurm 26.11 can reach quantum computers from multiple providers.

From the user's side the integrations look alike: a job script requests the QPU by resource name alongside nodes and time, runs in the partition holding the HRES nodes, and Slurm holds it until the plugin reports the device available and, where middleware supports it, reserved. The post names Alice & Bob, IBM, IQM, MQSC, Pasqal and Quantinuum as organizations integrating HRES plugins, and points to the QRMI HRES plugin repository, the MQSC Orchestrator for the QDMI example, and the HRES documentation and resources.yaml reference.

Why it matters: Sites and middleware teams get a scheduler-level contract that replaces per-site custom glue, so a vendor can write one Lua plugin and ship it to every Slurm 26.11 deployment while administrators keep policies in their own resources.yaml. For product teams building quantum access layers, the split between portable device logic and site configuration is the integration point to target, and the QRMI and QDMI plugins are working reference designs. The trade-off, as I read it, is that the middleware still owns provisioning and queuing behavior, so the quality of a site's setup depends heavily on the plugin it chooses.

Read at NVIDIA Developer Blog

Based on reporting from the original publisher. Visit the source for full context and later updates.

Publisher excerpt

Quantum processors are being integrated into supercomputing centers worldwide. National programs in North America, Europe, and Asia are driving the installation...