Shuttling Compiler for Trapped-Ion Quantum Computers Based on Large Language Models
Fabian Kreppel, Reza Salkhordeh, Ferdinand Schmidt-Kaler, André Brinkmann
TL;DR
The paper introduces a layout-independent shuttling compiler for trapped-ion quantum computers, leveraging fine-tuned large language models to generate hardware-level shuttling sequences. It proposes a three-phase pipeline (dataset generation in Alpaca format, Axolotl-based fine-tuning, and vLLM-based inference) and demonstrates results on linear and branched 1D trap architectures, with partial success on unseen layouts. While some small circuits see improved shuttling efficiency over classical compilers, robustness and generalization decline as circuit size grows, underscoring the need for advanced training strategies like direct preference optimization and reinforcement learning with human feedback. Overall, the work establishes a foundational step toward flexible, architecture-agnostic shuttling software for trapped-ion devices and outlines concrete paths for improving performance and generalization.
Abstract
Trapped-ion quantum computers based on segmented traps rely on shuttling operations to establish connectivity between multiple sub-registers within a quantum processing unit. Several architectures of increasing complexity have already been realized, including linear arrays, racetrack loops, and junction-based layouts. As hardware capabilities advance, the need arises for flexible software layers within the control stack to manage qubit routing$\unicode{x2014}$the process of dynamically reconfiguring qubit positions so that all qubits involved in a gate operation are co-located within the same segment. Existing approaches typically employ architecture-specific heuristics, which become impractical as system complexity grows. To address this challenge, we propose a layout-independent compilation strategy based on large language models (LLMs). Specifically, we fine-tune pretrained LLMs to generate the required shuttling operations. We evaluate this approach on both linear and branched one-dimensional architectures, demonstrating that it provides a foundation for developing LLM-based shuttling compilers for trapped-ion quantum computers.
