mlsanityData to 24 Nov 2026

When Does Fine-Tuning Beat Prompting for Qiskit-to-CUDA-Q Translation? An Execution-Verified Study

arXiv 2611.29793 ↗Submitted 22 Nov 2026Announced 24 Nov 2026quant-ph cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Moving quantum code from Qiskit to NVIDIA CUDA-Q is a practical adoption cost that language models are starting to automate. We ask whether a small open model can learn this translation, and how to measure it so that the result can be trusted. Both programs can be executed and their state vectors compared, so a kernel counts as correct only if it prepares the same state as the Qiskit reference (fidelity >= 0.999), with no text matching and no LLM judge. We build a 640-task benchmark with three test sets (larger circuits, an unseen circuit family, an unseen Qiskit coding style) and a QuantumKatas regression probe, and we test the evaluator before training. Measurement counts miss every phase-only error; a surface rule-based translator solves two of three original splits (text substitution); a converter that executes the Qiskit input and maps the circuit solves all 640 tasks -- so the benchmark measures source-level translation, not whether a circuit can be ported after running it. No base model emits a valid CUDA-Q kernel zero-shot. On Nemotron 3 Nano 4B, LoRA reaches 83.9%, tying a 4-shot prompt (83.1%), but generalizes worse to unseen style (48.5% vs. 65.5%) and cuts QuantumKatas from 23.8% to 8.9%; on Qwen2.5-Coder 7B, LoRA beats the prompt overall (92.0% vs. 82.8%) and on unseen style (78.5% vs. 65.0%), and on the 1.5B model as well, so whether fine-tuning pays off depends on the base model, while the Qiskit regression appears in all three. Mixing two replay formats is the best mitigation trade-off (84.4% translation, Katas 21.5%). On 48 parametric functions that must become kernels with arguments -- where executing the input cannot yield a parametric kernel -- models reach up to 83%; on 27 real QED-C kernels, every model scores 0%. Language models can do source-level translation of simple parametric code, but not yet of real programs.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 12 of its 30 references that are in the map. Submitted 22 Nov 2026, announced 24 Nov 2026.

Builds on

12 of 30 references.

References · 12

  1. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 15,591
  2. 2025RL's Razor: Why Online Reinforcement Learning Forgets Lesscited by 217
  3. 2023Mitigating the Alignment Tax of RLHFcited by 191
  4. 2025Enhancing Code Generation for Low-Resource Languages: No Silver Bulletcited by 12
  5. 2026QCalEval: Benchmarking Vision-Language Models for Quantum Calibration Plot Understandingcited by 12
  6. 2025QHackBench: Benchmarking Large Language Models for Quantum Code Generation Using PennyLane Hackathon Challengescited by 9
  7. 2025PennyCoder: Efficient Domain-Specific LLMs for PennyLane-Based Quantum Code Generationcited by 8
  8. 2025Quantum Verifiable Rewards for Post-Training Qiskit Code Assistantcited by 8
  9. 2025QCoder Benchmark: Bridging Language Generation and Quantum Hardware through Simulator-Based Feedbackcited by 8
  10. 2025The Effectiveness of Approximate Regularized Replay for Efficient Supervised Fine-Tuning of Large Language Modelscited by 4
  11. 2026QuanBench+: A Unified Multi-Framework Benchmark for LLM-Based Quantum Code Generationcited by 4
  12. 2026QEncodeBench: Can Large Language Models Encode Classical Problems into Verified Quantum Oracles?cited by 1

Built on by

Not cited yet.