arXiv:2609.09270quant-phSep 2026

Manuscript Offprint

arXiv:2609.09270

Python in the front, party in the Backline: compiling quantum workloads across CPUs, GPUs, and FPGAs

Joseph K. L. Lee, Mehrdad Malekmohammadi, Hong-Sheng Zheng, Shuli Shu, Cheick Doumbia, Kalman Szenes, Mehran Zamani Abnili, Thomas Ainsworth, Matthew Seymour, Thomas Germain, Leonhard Neuhaus, Josh Izaac, Lee J. O'Riordan

Joseph K. L. Lee, Mehrdad Malekmohammadi, Hong-Sheng Zheng, Shuli Shu, Cheick Doumbia, Kalman Szenes, Mehran Zamani Abnili, Thomas Ainsworth, Matthew Seymour, Thomas Germain, Leonhard Neuhaus, Josh Izaac, and Lee J. O'Riordan

Abstract—Moving from quantum research and development to production-grade, fault-tolerant quantum workload execution remains one of the most significant challenges facing quantum platform builders. While Python frameworks have enabled an easy entry point for quantum algorithm design, the low-latency requirements for real-time quantum error correction (QEC) demand performance that traditional interpreted environments cannot provide. FPGAs and ASICs play a central role at these layers, but their specialized programming models make development rigid and time-consuming. CPUs, GPUs, and other accelerators introduce a different challenge: as infrastructure becomes increasingly heterogeneous, programming across different devices and their associated abstractions becomes more complex. Designing abstractions that allow researchers to write workloads in high-level languages that map to low-latency execution across diverse distributed target platforms will enable the development of key infrastructure for utility-scale quantum systems. For this, we introduce Backline, a heterogeneous compilation and runtime framework built within PennyLane and Catalyst. Backline allows us to design and build quantum-classical workloads for high-performance and low-latency devices, with compilation directly from a Python interface through MLIR. We demonstrate the compilation and execution of several quantum workloads with low-latency data movement across a mix of CPUs, GPUs, and FPGAs, efficiently handled for both local and distributed remote hardware targets, all from a vendor-agnostic Python frontend. With an AMD VPK120 FPGA board as the controller, issuing each round from its hardware-handshake engine, we measured median steady-state round-trip latencies over RoCE v2 of 2.305 μ\mus to an AMD Ryzen Threadripper PRO CPU and 4.5 μ\mus to an AMD Instinct MI210 GPU across 106−110^{6}-1 rounds per path, demonstrating microsecond-scale synchronous co-processing.

Index Terms—Quantum, RDMA, GPU, HPC, Compiler

I. INTRODUCTION

Across many domains of scientific computing and research software, writing performant and expressive systems is a complex endeavour. Allowing domain experts to work at the right layer of abstraction enables them to efficiently design, prototype, and build out workloads that move their research forward. A quantum computing algorithm researcher should not need to understand memory access optimizations to implement their algorithms, as such low-level details can and should be abstracted away. Similarly, an HPC performance engineer should not need to understand the complex mathematical formalism of the special unitary group, only that the data is handled efficiently on the underlying hardware.

In the field of quantum system design, we have been able to avoid such targeted complexities in the past with noisy intermediate-scale quantum (NISQ) machines, since fast feedforward from measurement outcomes to subsequent corrections was never a part of the execution paradigm. For fault-tolerant quantum hardware environments we now need to take this into consideration, as the application of gates based on branched pathways is a fundamental part of the execution paradigm. Quantum error correction (QEC) for fault-tolerant quantum computing (FTQC) has extremely tight communication and feedback loops. Additionally, as we require quantum devices to be programmable and controllable in such low-latency environments, FPGAs and ASICs become paramount components of the stack. Writing software for devices at these layers remains hard and rigid, as ASICs are often built to serve a specific singular purpose, and resynthesizing FPGA bitstreams can be a time-consuming process for large workloads [1]. As QEC requires researchers and quantum control-system developers to interact with these devices, appropriate software abstractions can help hide unnecessary implementation complexity. At the same time, researchers designing algorithms and applications often have heavy computational requirements, which on the spectrum of quantum workloads can be compute-bound, communication-bound, and everything in between [2].

Since FTQC systems remain under active development across all quantum hardware platforms, there remains significant R&D for software, hardware, QEC, and architecture, with many identifying various requirements across the stack for both applications and infrastructure [3]. For fast progress, we need stacks that support this R&D and co-design end-to-end with layered interfaces for everyone involved, from application developers to system engineers. This means supporting users who are prototyping FTQC workloads with QEC in high-level languages (e.g. Python), and allowing them to progressively compile and optimize these workloads onto local and distributed heterogeneous devices matching the real-world environments and components in which large-scale FTQC systems will operate.

As these systems scale, developing software that spans both distributed computing and quantum computing becomes increasingly complex, and this complexity is a recognized challenge [3]–[7]. Within fast-moving technical fields, two disparate approaches are often taken: i) aim to lock down and standardize the stack to allow multiple parties to unify around a common base, or ii) move fast with less-than-optimal designs to unblock important ecosystem research work [8].

All authors are affiliated with Xanadu Quantum Technologies Inc., Toronto, Ontario M5G 2C8, Canada (e-mail: backline@xanadu.ai).

While both have their merits, stability and performance can often be at odds, requiring a nuanced approach in research and design, and standardizing a fast-moving field too early can entrench suboptimal solutions [9], [10]. Platforms for QEC infrastructure (both hardware and software) remain highly bespoke, with limited access to interface layers allowing development against multiple hardware variants. While efforts like NVQLink [11] are a move in the right direction, the lack of variety in target platforms is a recognized constraint. Indeed, having multiple vendor-agnostic platforms would be valuable to the community [12]. Therefore, we favour a moving-design specification that evolves with the field, rather than a rigid standard, unlocking the best of both approaches above. We approach these systems with “best effort” compatibility, similar to the LLVM ecosystem’s approach to stability and compatibility between releases [13], letting us move quickly with researcher and ecosystem needs while still offering compatibility guarantees across changes.

Recent trends in software development for quantum ecosystems follow the early days of building expansive machine-learning pipelines, with increasing development, abstraction, and sophistication across the stack. As workload complexity expands, the need for managed device interactions and distributed environments is becoming central to the ecosystem's design. The need for communication across multiple hardware and system-level components, and doing so with minimal overheads, is at the core of many such ecosystems. For example, consider machine learning inference workloads, where disaggregated computing environments assign dedicated devices to dedicated functions and behaviours [14], [15]. In this scenario, a variety of device types with unique responsibilities are treated as resources, and are engaged according to behaviour that matches a given workload's needs.

Frameworks like TensorFlow, PyTorch, and JAX [16]–[18] have enabled rapid progress in abstracting away much of the related machinery and configuration needed to scale up and scale out ML workloads. In each of these, Python is the frontend, with support for both eager (Python interpreter) and compiled workloads, allowing execution on local and remote CPUs, GPUs, TPUs, and custom devices. As these frameworks follow a familiar NumPy-API design for writing user algorithms, applications, and end-to-end workloads, they have also expanded the infrastructure to support extensibility and customization across the ecosystem. Kernel-development tooling like Pallas [19] and Triton [20] expand the above SDKs to allow explicit definition of complex accelerator kernels, directly from Python. The usability and performance of these tools, relative to bare C-style extensions, have proven to be advantageous for compute-heavy workloads as well as for productivity [21]. As workloads expressed in such frameworks scale, additional consideration must be given to data locality and availability for all devices in the system. Many frameworks utilize an explicit data-placement model, allowing data to be manually migrated between devices as dictated by the workflow needs. To reduce bottlenecks in such workloads, this migration needs to happen as efficiently as possible. Key technologies to support this are the commonly used direct memory access (DMA) abstractions, where direct local communication between devices can happen on a given node, and remote memory access via RDMA [22], [23] where communication between devices across different nodes is enabled by efficient device-to-NIC communication. While programming with low-level abstractions is common in HPC ecosystem design, application developers should not need to understand, or even be aware of, these complex system layers. Given that quantum workloads will largely run on mixtures of commodity, HPC, and bespoke hardware across various component types, it is necessary to create well-designed abstractions for the stack across all layers.

For programming quantum devices, the use of high-level Python programming APIs backed by MLIR/LLVM compiler infrastructure is becoming the de facto design of choice to abstract away the complexity of the executing environment from the user-facing layers [24]–[28]. In PennyLane, a program is written in Python, and compiled by the Catalyst compiler through an MLIR and LLVM pipeline to progressively lower the classical and quantum program to device-native operations. While MLIR and LLVM are expansive compilation tools, they complement the Python-first designs, helping to keep the complex system and compilation layers abstracted away from quantum application developers. This compilation-first approach unlocks many abilities that have limited exposure in NISQ-first stacks, such as preservation of program structure [29], complex targeted decompositions, and hierarchical optimization, as well as integration of existing classical code in the same program.

Given the separation between high-level algorithmic research for optimal program representations, and high-performance low-latency workload execution, marrying both across a variety of device types can be a daunting challenge. Our manuscript will address this exact scenario. We will explore how to provide accessible high-level programmability while maintaining best-in-class low-latency performance for quantum workloads through a heterogeneous compilation and runtime layer we call Backline.

The manuscript is structured as follows:

• Section II provides a snapshot of fault-tolerant quantum computing, hardware constraints, and R&D requirements.

• Section III describes the open-source software PennyLane for quantum programming and Catalyst for compiling the resulting programs to heterogeneous hardware devices.

• Section IV focuses on the design of Backline’s interoperability between heterogeneous devices and low-latency communication abstractions from PennyLane through Catalyst.

• Section V demonstrates usage of Backline abstractions via PennyLane and Catalyst through examples of low-latency workloads running across asymmetric heterogeneous devices.

• Section VI examines the applicability of the infrastructure for both current and future FTQC workloads.

References (61)