NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Compiler for Distributed Quantum Computing: A Reinforcement Learning Approach

Panagiotis Promponas, Akrit Mudvari, Luca Della Chiesa, Paul Polakos, Louis G. Samuel, Leandros Tassiulas

TL;DR

This paper introduces a novel compiler for Distributed Quantum Computing (DQC) that uses Reinforcement Learning (RL) to minimize the execution time of quantum circuits. By jointly optimizing entanglement (EPR pair) generation, qubit routing, and gate scheduling, the compiler adapts to the stochastic nature of quantum networks to outperform traditional heuristic-based methods.

What Problem Does This Paper Address?

Individual Quantum Processing Units (QPUs) are currently limited in scale. Distributed Quantum Computing (DQC) offers a path to scalability by networking multiple small QPUs. However, executing a circuit across a network is incredibly complex: you must decide where to place qubits (mapping) and how to move them or teleport gates between processors (routing).

Existing compilers often treat these as separate problems or use static heuristics that don't account for the "real-time" state of the system—such as which qubits are currently entangled or the fact that entanglement generation is probabilistic (it often fails). The core challenge is minimizing the expected execution time (circuit depth) to finish the computation before the qubits decohere.

Methods

The authors frame the DQC compilation process as a Markov Decision Process (MDP) and solve it using a constrained Reinforcement Learning approach.

  • Joint Optimization: Unlike previous works that decouple routing from scheduling, this model simultaneously manages:
  • EPR Pair Generation: Creating the "quantum links" needed for teleportation.
  • Remote Operations: Scheduling gate and qubit teleportations.
  • Local Routing: Injecting SWAP gates within a single QPU to bring qubits together.
  • The RL Agent: They utilized Double Deep Q-Networks (DDQN). To handle the massive state space, they used a "reduced" state representation including qubit locations ($S_{loc}$), the remaining circuit graph ($S_{dag}$), and a binary action mask ($S_{msk}$) to prevent the agent from choosing illegal moves.
  • Reward Shaping: To guide the agent through the "sparse reward" problem (where you only win at the very end), they implemented a distance-based reward system. The agent is rewarded for moving qubits closer to their next required interaction point.

Datasets

The researchers evaluated their compiler using randomly generated quantum circuits consisting exclusively of CNOT gates (a universal basis for two-qubit operations).

  • Circuit Sizes: Training and testing were performed on circuits with 30, 40, and 50 gates.
  • Environment: A simulated DQC environment based on the IBM Q Guadalupe architecture (16 qubits) connected via quantum links.
  • Stochasticity: They tested the model under varying probabilities of successful entanglement generation ($p_{gen} \in \{0.95, 0.7, 0.5\}$) to simulate noisy quantum networks.

Key Insights and Ideas

  • The "Stop" Action: A clever addition to the action space is the "stop" action. This allows the compiler to advance the system clock, effectively waiting for entanglement generation to succeed or for qubits to finish their "cooldown" after a gate.
  • Joint vs. Decoupled: The authors argue that decoupling qubit routing from the compilation process limits the ability to respond to the dynamic state of a quantum network. Their RL approach proves that a holistic view leads to shorter, more efficient compiled circuits.
  • Teleportation as a Resource: The model treats EPR pairs as a finite, stochastic resource. The agent learns to "pre-generate" these pairs and store them in memory to reduce future latency.
  • Initial Mapping via Reverse Compilation: To solve the "initial mapping" problem, they suggest a "triple compilation" strategy: compile the circuit once, use the final positions to compile the reverse circuit, and use those final positions as the optimized starting point for the actual execution.

Key Results

  • Algorithm Comparison: DDQN significantly outperformed standard DQN and Proximal Policy Optimization (PPO). PPO, in particular, struggled to successfully compile circuits within the 1500-time-slot deadline.
  • Efficiency: The DDQN agent successfully learned policies that minimized the depth of the compiled circuit, which directly correlates to a higher likelihood of success before decoherence.
  • Robustness: The agent remained effective even when the probability of successful entanglement generation dropped to 50%, though it required larger neural networks (more neurons in hidden layers) to handle the increased uncertainty.
  • Scaling: While the agent was trained on 30-gate circuits, the authors demonstrated that it could learn to handle 40-gate circuits, though 50-gate circuits often hit the decoherence deadline before completion.

Limitations and Future Work

  • Gate Diversity: The current implementation focuses on CNOT gates. While CNOTs are a standard benchmark, real-world circuits include a variety of single-qubit and multi-qubit gates.
  • Circuit Size (Tokenization): The RL model is currently trained for specific circuit sizes ($G_{max}$). To handle massive, real-world algorithms, the authors propose "tokenizing" circuits into smaller blocks, which needs further empirical validation.
  • Noise Models: The current objective is minimizing time as a proxy for decoherence. Future work could incorporate heterogeneous gate errors (where some physical qubits are "noisier" than others) directly into the reward function to maximize final fidelity.

Summary updated

BibTeX
@inproceedings{promponas2025compiler,
  author = {Panagiotis Promponas and Akrit Mudvari and Luca Della Chiesa and Paul Polakos and Louis G. Samuel and Leandros Tassiulas},
  title = {{Compiler for Distributed Quantum Computing: A Reinforcement Learning Approach}},
  booktitle = {ICC},
  year = {2025},
  url = {https://openreview.net/forum?id=yg8Yr7ZdxV},
}
Figure