arXiv Science⌕ Search

arXiv · 2610.12187

Autonomous Code Migration for Quantum Programming Languages: A Case Study with QED-C Benchmarks

Abstract

Quantum programming requires concepts and intuition that differ substantially from those used in traditional programming languages. Multiple quantum programming frameworks address these requirements through different abstractions and execution models, creating tradeoffs in programmability, portability, and performance. Because quantum software is less prevalent in the training data available to large language models, autonomous coding agents might be expected to face additional challenges when working with these frameworks. We present a case study in autonomous migration of the QED-C Application-Oriented Benchmarks from Qiskit to CUDA-Q. Opus, GPT, and Gemini models were each tasked with porting thirteen benchmark methods spanning foundational algorithms, amplitude estimation, Monte Carlo methods, variational optimization, linear-system solving, and factoring. In all cases, the models were able to generate satisfactory ports with little direct coding help and there was a drastic reduction in the time required compared to a human engineer. However, in all cases, the agents resorted to shortcuts when implementation challenges surfaced and multiple prompts were required to force appropriate coding directions. Assessment of the generated implementations showed that no single model consistently produced the best port across all benchmarks, indicating that multi-agent ensemble strategies could mitigate challenges associated with quantum software. The effort resulted in publicly available, near-complete CUDA-Q support in the QED-C benchmarks along with model-generated skills designed to improve agent performance when implementing CUDA-Q applications. When tested on an unseen benchmark, these skills reduced the required model turns by up to 85% and token usage by up to 96%. We conclude by distilling lessons from the case study.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

W. Michael Brown, Thien Nguyen, Avimita Chatterjee, Thomas Lubinski. 2026-10-08. Autonomous Code Migration for Quantum Programming Languages: A Case Study with QED-C Benchmarks. https://arxiv.org/abs/2610.12187

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

Cavity-mediated cross-cross-resonance gate

We propose a cavity-mediated gate between two transmon qubits or other nonlinear superconducting elements. The gate is realized by driving both qubits at a frequency that is near-resonant with the frequency of the cavity. Since both qubits are subject to a cross-resonant drive, we call this gate a cross-cross-resonance gate. In close analogy with gates between trapped-ion qubits, in phase space, the state of the cavity makes a circle whose area depends on the state of the two qubits, realizing a controlled-phase gate. We propose two schemes for canceling the dominant error, which is the qubit-cavity dispersive coupling. We also show that this cross-cross-resonance gate allows one to realize simultaneous gates between multiple pairs of qubits coupled via the same metamaterial composed of an array of coupled cavities or other linear mediators.

quant-ph↗

Tensors, entanglement, separability, and their complexity

The aim of this paper is to show how to characterize the entanglement and separability of d-partite states, and to obtain both known and new results using the modern theory of tensors. The geometric measure of entanglement of a pure state is one of most natural ways to quantify the entanglement, which is simply related to the spectral norm of a tensor state. On the other hand, the logarithm of the nuclear norm of the state and density tensors can be considered as its ``energy''. We first show that the most geometric measure entangled $d$-partite state has the minimum spectral norm and maximum nuclear norm. Second, we introduce the notion of Hermitian and density tensors, and the subspaces of bi-symmetric and bi-skew-symmetric Hermitian tensors, which correspond to Bosons and Fermions respectively. We show that separable density tensors, and strongly separable bi-symmetric density tensors are characterized by the value (equal to one) of their corresponding nuclear norms. In general, these characterizations are NP-hard to verify. Third, the main result of this paper to show that the above quantities are computed in polynomial time when we restrict our attention to Bosons: symmetric $d$-qubits, or more generally to symmetric $d$-qunits in $\mathbb{C}^n$, and the corresponding bi-symmetric Hermtian density tensors, for a fixed value of $n$.

quant-ph↗

Many-Body Effects in Dark-State Laser Cooling

We develop a unified many-body theory of two-photon dark-state laser cooling, the workhorse for preparing trapped ions close to their motional quantum ground state. For ions with a $Λ$ level structure, driven by Raman lasers, we identify an ion-number-dependent crossover between weak and strong coupling where both the cooling rate and final temperature are simultaneously optimized. We obtain simple analytic results in both extremes: In the weak coupling limit, we show a Lorentzian spin-absorption spectrum determines the cooling rate and final occupation of the motional state, which are both independent of the number of ions. We also highlight the benefit of including an additional spin dependent force in this case. In the strong coupling regime, our theory reveals the role of collective dynamics arising from phonon exchange between dark and bright states, allowing us to explain the enhancement of the cooling rate with increasing ion number. Our analytic results agree closely with exact numerical simulations and provide experimentally accessible guidelines for optimizing cooling in large ion crystals, a key step toward scalable, high-fidelity trapped-ion quantum technologies.

quant-ph↗