PennyCoder: Efficient Domain-Specific LLMs for PennyLane-Based Quantum Code Generation
Not on the map. Why?
Abstract (arXiv)
The growing demand for robust quantum programming frameworks has unveiled a critical limitation: current large language model (LLM) based quantum code assistants heavily rely on remote APIs, introducing challenges related to privacy, latency, and excessive usage costs. Addressing this gap, we propose PennyCoder, a novel lightweight framework for quantum code generation, explicitly designed for local and embedded deployment to enable on-device quantum programming assistance without external API dependence. PennyCoder leverages a fine-tuned version of the LLaMA 3.1-8B model, adapted through parameter-efficient Low-Rank Adaptation (LoRA) techniques combined with domain-specific instruction tuning optimized for the specialized syntax and computational logic of quantum programming in PennyLane, including tasks in quantum machine learning and quantum reinforcement learning. Unlike prior work focused on cloud-based quantum code generation, our approach emphasizes device-native operability while maintaining high model efficacy. We rigorously evaluated PennyCoder over a comprehensive quantum programming dataset, achieving 44.3% accuracy with our fine-tuned model (compared to 33.7% for the base LLaMA 3.1-8B and 40.1% for the RAG-augmented baseline), demonstrating a significant improvement in functional correctness.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 15 of its 27 references that are in the map. First posted on arXiv 25 Jul 2025.
Builds on
15 of 27 references.
References · 15
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,585
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2023StarCoder: may the source be with you!cited by 799
- 2020Quantum Long Short-Term Memorycited by 120
- 2024Qiskit HumanEval: An Evaluation Benchmark For Quantum Code Generative Modelscited by 30
- 2023A Survey on Quantum Machine Learning: Current Trends, Challenges, Opportunities, and the Road Aheadcited by 29
- 2024Qiskit Code Assistant: Training LLMs for generating Quantum Computing Codecited by 25
- 2023The power and limitations of learning quantum dynamics incoherentlycited by 12
Built on by
Citing papers per year: 2025: 1; 2026: 5.
6 papers.
- 2025Quantum Verifiable Rewards for Post-Training Qiskit Code Assistantcited by 6
- 2026QuanBench+: A Unified Multi-Framework Benchmark for LLM-Based Quantum Code Generationcited by 2
- 2026Qiskit QuantumKatas: Adapting Microsoft's Quantum Computing exercises for LLM evaluationcited by 2
- 2026QBugLM: An Agentic Benchmarking Framework for LLM-based Quantum Software Debuggingcited by 2
- 2026PennySynth: RAG-Driven Data Synthesis for Automated Quantum Code Generationcited by 1
- 2026Fine-Tuning Large Language Models for Quantum Reasoningcited by 0
- 2026Fine-Tuning Large Language Models for Quantum Reasoning20 Jun 2026
- 2026QBugLM: An Agentic Benchmarking Framework for LLM-based Quantum Software Debugging5 Jun 2026
- 2026Qiskit QuantumKatas: Adapting Microsoft's Quantum Computing exercises for LLM evaluation26 May 2026
- 2026PennySynth: RAG-Driven Data Synthesis for Automated Quantum Code Generation25 May 2026
- 2026QuanBench+: A Unified Multi-Framework Benchmark for LLM-Based Quantum Code Generation25 Mar 2026
- 2025Quantum Verifiable Rewards for Post-Training Qiskit Code Assistant28 Aug 2025
Similar, not cited
Close in wording, no citation either way
- 2025Enhancing LLM-based Quantum Code Generation with Multi-Agent Optimization and Quantum Error Correction
- 2026Revisiting Quantum Code Generation: Where Should Domain Knowledge Live?
- 2025QUASAR: Quantum Assembly Code Generation Using Tool-Augmented LLMs via Agentic RL
- 2025LLM-Powered Quantum Code Transpilation
- 2025QAgent: An LLM-based Multi-Agent System for Autonomous OpenQASM programming
- 2025Model-Driven Quantum Code Generation Using Large Language Models and Retrieval-Augmented Generation
- 2025Agent-Q: Fine-Tuning Large Language Models for Quantum Circuit Generation and Optimization
- 2026Beyond Rules: LLM-Powered Linting for Quantum Programs ↗