paper-with-me

홈 › Papers

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

2025-06-24 · Abdul Basit, Minghao Shao, Haider Asif, Nouhaila Innan, Muhammad Kashif, Alberto Marchisio, Muhammad Shafique

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.

📄 PDF Abstract BibTeX arXiv:2506.20008

Code (0)

등록된 구현이 없습니다.

Tasks

BenchmarkingCode GenerationRAGRetrieval-augmented Generation

Similar Papers 제목 키워드 기반

QuantumChem-200K: A Large-Scale Open Organic Molecular Dataset for Quantum-Chemistry Property Screening and Language Model Benchmarking

2025-11-23 · Yinqi Zeng, Renjie Li arxiv

The discovery of next-generation photoinitiators for two-photon polymerization (TPP) is hindered by the absence of large, open datasets containing the quantum-chemical and photophysical properties required to model photo…

Vectorized Attention with Learnable Encoding for Quantum Transformer

2025-08-25 · Ziqing Guo, Ziwen Pan, Alex Khan, Jan Balewski arxiv

Vectorized quantum block encoding provides a way to embed classical data into Hilbert space, offering a pathway for quantum models, such as Quantum Transformers (QT), that replace classical self-attention with quantum ci…

Featuremetric benchmarking: Quantum computer benchmarks based on circuit features

2025-04-17 · Timothy Proctor, Anh Tran, Xingxin Liu, Aditya Dhumuntarao 외

Benchmarks that concisely summarize the performance of many-qubit quantum computers are essential for measuring progress towards the goal of useful quantum computation. In this work, we present a benchmarking framework t…

Benchmarking

KetGPT -- Dataset Augmentation of Quantum Circuits using Transformers

2024-02-20 · Boran Apak, Medina Bandic, Aritra Sarkar, Sebastian Feld

Quantum algorithms, represented as quantum circuits, can be used as benchmarks for assessing the performance of quantum systems. Existing datasets, widely utilized in the field, suffer from limitations in size and versat…

Benchmarking

Benchmarking API Drift in LLM-Generated Quantum Code Across Successive SDK Versions

2026-07-05 · Mohammad Arif Rasyidi, Syahirul Faiz arxiv

Large language models can generate plausible quantum code, but it is unclear whether they can reliably target the specific software development kit (SDK) version requested by the user. We study this problem as API drift …

Code Generation