mlsanityData to 7 Oct 2026

QHackBench: Benchmarking Large Language Models for Quantum Code Generation Using PennyLane Hackathon Challenges

arXiv 2506.20008 ↗First posted 24 Jun 2025cs.AI cs.PL cs.SEcited by 7

Not on the map. Why?

Abstract (arXiv)

Recent advances in Large Language Models (LLMs) have demonstrated strong potential in code generation, yet their effectiveness in quantum computing remains underexplored. This paper benchmarks LLMs for PennyLane-based quantum code generation using real-world challenges from the Quantum Hackathon (QHack). We introduce QHackBench, a novel benchmark dataset derived from QHack competitions, and evaluate model performance under vanilla prompting and Retrieval-Augmented Generation (RAG). Our structured evaluation framework assesses functional correctness, syntactic validity, and execution success across varying challenge difficulties. Results indicate that RAG-enhanced models, supplemented with an augmented PennyLane dataset, approximately generate similar results as the standard prompting, particularly in complex quantum algorithms. Additionally, we introduce a multi-agent evaluation pipeline that iteratively refines incorrect solutions, further enhancing execution success rates. To foster further research, we commit to publicly releasing QHackBench, along with our evaluation framework and experimental results, enabling continued advancements in AI-assisted quantum programming.

Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 12 of its 32 references that are in the map. First posted on arXiv 24 Jun 2025.

Builds on

12 of 32 references.

References · 12

  1. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  3. 2021Program Synthesis with Large Language Modelscited by 3,509
  4. 2023StarCoder: may the source be with you!cited by 790
  5. 2016Quantum Machine Learningcited by 325
  6. 2024Survey of different Large Language Model Architectures: Trends, Benchmarks, and Challengescited by 31
  7. 2023A Survey on Quantum Machine Learning: Current Trends, Challenges, Opportunities, and the Road Aheadcited by 29
  8. 2024Qiskit HumanEval: An Evaluation Benchmark For Quantum Code Generative Modelscited by 29
  9. 2024Qiskit Code Assistant: Training LLMs for generating Quantum Computing Codecited by 24
  10. 2024COAST: Enhancing the Code Debugging Ability of LLMs through Communicative Agent Based Data Synthesiscited by 13
  11. 2024RGD: Multi-LLM Based Agent Debugger via Refinement and Generation Guidancecited by 12
  12. 2025A PennyLane-Centric Dataset to Enhance LLM-based Quantum Code Generation using RAGcited by 7

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 2; 2026: 5.

7 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Enhancing LLM-based Quantum Code Generation with Multi-Agent Optimization and Quantum Error Correction
  2. 2025Model-Driven Quantum Code Generation Using Large Language Models and Retrieval-Augmented Generation
  3. 2026Revisiting Quantum Code Generation: Where Should Domain Knowledge Live?
  4. 2025Agent-Q: Fine-Tuning Large Language Models for Quantum Circuit Generation and Optimization
  5. 2026Generative AI for Quantum Circuits and Quantum Code: A Technical Review and Taxonomy
  6. 2025QAgent: An LLM-based Multi-Agent System for Autonomous OpenQASM programming
  7. 2025QUASAR: Quantum Assembly Code Generation Using Tool-Augmented LLMs via Agentic RL
  8. 2026Position: Quantum Program Generation Must Prioritize Validity Over Probabilistic Scaling