IEEE International Conference on Quantum Software (QSW)
qScheduler: A Hybrid Reservation–Dispatch System for Integrating QPUs into Slurm-Managed HPC Workflows
Abhishek Nautiyal, Amit Saxena
Abstract
We present qScheduler, a prototype software system for integrating quantum processing units (QPUs) into Slurmmanaged HPC workflows. qScheduler implements a cooperative hybrid reservation-dispatch architecture in which Slurm remains the top-level scheduler for classical jobs, while qScheduler manages QPU reservation admission, fine-grained task dispatch, and cross-tier state synchronization. A Slurm job proceeds only after successfully acquiring a QPU reservation during the prolog phase, establishing a fail-closed binding between classical execution and quantum resource availability. Within each reservation, qScheduler uses an asyncio-based scheduler with credit-governed admission, priority dispatch, anti-starvation aging, and backfill to manage quantum tasks. To prevent allocation drift, the system combines persistent reservation heartbeats, restart-safe idle-reservation garbage collection, and epilog-driven cancellation semantics that promptly refund credits on job failure. We deploy qScheduler on the Param-Shavak cluster with three heterogeneous Qiskit Aer backends [1]: FakeTorino (133 qubits), FakeSherbrooke (127 qubits), and an ideal 20-qubit backend. Experimental results demonstrate correct resource binding, hard admission denial at configured capacity limits, proportional credit fairness across jobs, and sub-10-second credit refund after cancellation. A 55-test validation suite exercises all 17 targeted openQSE requirements together with adversarial robustness fixes for non-deterministic race conditions, executor-slot deadlocks, restart recovery, and ownership-safe state transitions.