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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Zeng, Runjia, Senapati, Priyabrata, Tang, Ruixiang, Liu, Dongfang, Guan, Qiang
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911552304578560
author Zeng, Runjia
Senapati, Priyabrata
Tang, Ruixiang
Liu, Dongfang
Guan, Qiang
author_facet Zeng, Runjia
Senapati, Priyabrata
Tang, Ruixiang
Liu, Dongfang
Guan, Qiang
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2603_27836
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Q-Bridge: Code Translation for Quantum Machine Learning via LLMs
Zeng, Runjia
Senapati, Priyabrata
Tang, Ruixiang
Liu, Dongfang
Guan, Qiang
Quantum Physics
Computation and Language
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.
title Q-Bridge: Code Translation for Quantum Machine Learning via LLMs
topic Quantum Physics
Computation and Language
url https://arxiv.org/abs/2603.27836