Quantum Program Linting with LLMs: Emerging Results from a Comparative Study
By: Seung Yeob Shin, Fabrizio Pastore, Domenico Bianculli
Potential Business Impact:
Helps fix mistakes in quantum computer programs.
Ensuring the quality of quantum programs is increasingly important; however, traditional static analysis techniques are insufficient due to the unique characteristics of quantum computing. Quantum-specific linting tools, such as LintQ, have been developed to detect quantum-specific programming problems; however, they typically rely on manually crafted analysis queries. The manual effort required to update these tools limits their adaptability to evolving quantum programming practices. To address this challenge, this study investigates the feasibility of employing Large Language Models (LLMs) to develop a novel linting technique for quantum software development and explores potential avenues to advance linting approaches. We introduce LintQ-LLM, an LLM-based linting tool designed to detect quantum-specific problems comparable to those identified by LintQ. Through an empirical comparative study using real-world Qiskit programs, our results show that LintQ-LLM is a viable solution that complements LintQ, with particular strengths in problem localization, explanation clarity, and adaptability potential for emerging quantum programming frameworks, thus providing a basis for further research. Furthermore, this study discusses several research opportunities for developing more advanced, adaptable, and feedback-aware quantum software quality assurance methods by leveraging LLMs.
Similar Papers
QuanBench: Benchmarking Quantum Code Generation with Large Language Models
Software Engineering
Tests how well computers write quantum computer code.
Automatic Qiskit Code Refactoring Using Large Language Models
Software Engineering
Helps fix old quantum computer programs automatically.
LLM-Powered Quantum Code Transpilation
Software Engineering
Lets quantum programs run on any computer.