quant-phMar 29, 2026

Q-Bridge: Code Translation for Quantum Machine Learning via LLMs

Authors: Runjia Zeng, Priyabrata Senapati, Ruixiang Tang, Dongfang Liu, Qiang Guan

Organizations: Rochester Institute of Technology, USA · Kent State University, USA · Rutgers University, USA

Abstract

Large language models have recently shown potential in bridging the gap between classical machine learning and quantum machine learning. However, the lack of standardized, high-quality datasets and robust translation frameworks limits progress in this domain. We introduce Q-Bridge, an LLM-guided code translation framework that systematically converts CML implementations into executable QML variants. Our approach builds on a self-involving pipeline that iteratively expands a verified seed codebase into a large-scale dataset, CML-2-QML, integrating verifiable and unverifiable code pairs. The Q-Bridge model is fine-tuned using supervised LoRA adaptation for scalable and memory-efficient training, achieving faithful and interpretable quantum code generation across diverse architectures. Empirical analysis confirms the feasibility of direct CML-to-QML translation and reveals consistent structural alignment between classical and quantum paradigms. Case studies further demonstrate that Q-Bridge can maintain deterministic correctness and also enable creative architectural exploration. This work establishes the first reproducible framework and dataset for LLM-driven quantum code translation, offering a foundation for scalable quantum AI development.

Figures & tables

Explore similar work

CardsList
  1. QuanBench+: A Unified Multi-Framework Benchmark for LLM-Based Quantum Code Generation

    Mar 25, 2026Ali Slim, Haydar Hamieh, Jawad Kotaich +5Code Generation BenchmarksCode Generation Evaluation

  2. Aligning Quantum Operators with Large Language Models

    Jun 11, 2026Rogerio Feris, Yunchao Liu, Pengyuan Li +2Quantum Machine LearningQuantum Circuit Synthesis

  3. Eliminating Vendor Lock-In in Quantum Machine Learning via Framework-Agnostic Neural Networks

    Apr 6, 2026Poornima Kumaresan, Shwetha Singaravelu, Lakshmi Rajendran +1Quantum Neural NetworksHybrid Quantum-Classical ML