Abstract
Quantum computing is a quickly growing field with great potential for future technology. Quantum computers in the current noisy intermediate-scale quantum (NISQ) era face two major limitations - qubit count and error vulnerability. Although quantum error correction (QEC) methods exist, they are not applicable to the current size of computers, requiring thousands of qubits, while current NISQ systems have hundreds at most. It is therefore imperative to improve the reliability of the circuits as much as possible to make them robust to the errors that will occur. One common approach is to adjust the compilation process of a circuit to create a final circuit with improved reliability. However, there are many decisions to be made when compiling that affect the final performance of the circuit, two of the most critical ones being the mapping of logical to physical qubits (the qubit allocation problem) and the movement of qubits to satisfy two-qubit gate adjacency requirements (the qubit routing problem). We focus on solving the qubit allocation problem and identifying initial layouts that reduce error. To identify these layouts, we combine reinforcement learning with a graph neural network (GNN)-based Q-network for analyzing both the connections and error rates of the graph-like backend of superconducting quantum computers to make mapping decisions, creating a Graph Neural Network Assisted Compilation (GNAQC) strategy. We provide both the circuit and the properties of the target backend as input to guide the decision-making process. We work with the IBM Qiskit API to compile and simulate our quantum circuits. We train the architecture using a set of four backends and six circuits and find that GNAQC generally outperforms pre-existing qubit allocation algorithms, increasing final relative output fidelity by roughly 12.7%.
Introduction: The Challenge of NISQ Reliability
We are currently in the Noisy Intermediate-Scale Quantum (NISQ) era. While quantum hardware is advancing, physical qubits remain highly susceptible to environmental noise and decoherence. Current systems lack the qubit overhead required for full Quantum Error Correction (QEC), making it essential to optimize circuit reliability during the compilation phase.
A critical step in compilation is the qubit allocation problem: determining which physical qubit on a chip should represent each logical qubit in a program. Because physical qubits vary in error rates and connectivity, poor allocation necessitates additional "SWAP" gates to satisfy hardware constraints. These extra gates introduce more noise, often degrading the final output fidelity.
The GNAQC Methodology
The researchers developed Graph Neural Network Assisted Compilation (GNAQC), a strategy that leverages reinforcement learning (RL) and graph neural networks (GNNs) to optimize qubit mapping.
Graph-Based Hardware Representation
Quantum processors are naturally represented as graphs where nodes are qubits and edges are physical connections. GNAQC uses GNNs to process hardware calibration data, including error rates, relaxation times ($T_1$), and dephasing times ($T_2$). This allows the model to understand the spatial quality of the chip, identifying high-performance clusters.
Reinforcement Learning for Allocation
The system employs a Q-network acting as an RL agent. The agent makes sequential decisions to place logical qubits onto physical ones. The training is guided by a reward function based on Hellinger fidelity, comparing noisy simulation outputs to ideal, error-free results.
Experimental Setup and Results
The study evaluated GNAQC using calibration data from IBM Quantum processors (ibm_nairobi and ibm_algiers) across several months to account for daily hardware fluctuations. Benchmarks included standard algorithms such as Grover’s Search, Quantum Fourier Transform (QFT), and Quantum Phase Estimation (QPE).
Key findings include:
- Fidelity Improvement: GNAQC achieved a 12.7% average increase in relative fidelity over standard Qiskit allocation methods (e.g., Sabre, Noise-Adaptive).
- Robustness to Drift: By ingesting daily calibration data, GNAQC adapts to hardware fluctuations that static algorithms miss.
- Scalability: The inference time scales linearly with qubit count, making it suitable for larger NISQ devices.
Conclusion and Future Directions
GNAQC demonstrates that intelligent initial layout selection is a primary bottleneck for circuit reliability. While currently limited by the computational cost of noisy simulations for very large systems, future work aims to integrate qubit routing directly into the RL framework. Representing the quantum circuit itself as a graph within the GNN could further enhance the model's ability to capture complex gate interactions.
Summary updated