paper-with-me

Papers

Automatic Qiskit Code Refactoring Using Large Language Models

2025-06-17 · José Manuel Suárez, Luis Mariano Bibbó, Joaquin Bogado, Alejandro Fernandez

As quantum software frameworks evolve, developers face increasing challenges in maintaining compatibility with rapidly changing APIs. In this work, we present a novel methodology for refactoring Qiskit code using large language models (LLMs). We begin by extracting a taxonomy of migration scenarios from the different sources of official Qiskit documentation (such as release notes), capturing common patterns such as migration of functionality to different modules and deprecated usage. This taxonomy, along with the original Python source code, is provided as input to an LLM, which is then tasked with identifying instances of migration scenarios in the code and suggesting appropriate refactoring solutions. Our approach is designed to address the context length limitations of current LLMs by structuring the input and reasoning process in a targeted, efficient manner. The results demonstrate that LLMs, when guided by domain-specific migration knowledge, can effectively assist in automating Qiskit code migration. This work contributes both a set of proven prompts and taxonomy for Qiskit code migration from earlier versions to version 0.46 and a methodology to asses the capabilities of LLMs to assist in the migration of quantum code.

📄 PDF Abstract BibTeX arXiv:2506.14535

Code (0)

등록된 구현이 없습니다.

Methods 이 논문이 사용한 방법론

SET Dynamic Sparse Training method where weight mask is updated randomly periodically

Similar Papers 제목 키워드 기반

Taxonomy of migration scenarios for Qiskit refactoring using LLMs

2025-06-08 · José Manuel Suárez, Luís Mariano Bibbó, Joaquín Bogado, Alejandro Fernandez

As quantum computing advances, quantum programming libraries' heterogeneity and steady evolution create new challenges for software developers. Frequent updates in software libraries break working code that needs to be r…

Refactoring with LLMs: Bridging Human Expertise and Machine Understanding

2025-10-04 · Yonnel Chen Kuang Piao, Jean Carlors Paul, Leuson Da Silva, Arghavan Moradi Dakhel 외 arxiv

Code refactoring is a fundamental software engineering practice aimed at improving code quality and maintainability. Despite its importance, developers often neglect refactoring due to the significant time, effort, and r…

RefAgent: A Multi-agent LLM-based Framework for Automatic Software Refactoring

2025-11-05 · Khouloud Oueslati, Maxime Lamothe, Foutse Khomh arxiv

Large Language Models (LLMs) have substantially influenced various software engineering tasks. Indeed, in the case of software refactoring, traditional LLMs have shown the ability to reduce development time and enhance c…

Proof-Refactor: Refactoring Generated Formal Proofs into Modular Artifacts

2026-06-02 · Yiming Fu, Peixuan Liu, Zichen Wang, Kun yuan arxiv

While Large Language Models (LLMs) have shown strong performance in generating formal proofs, their outputs often remain less readable, modular, maintainable, and reusable than proofs in mature formal mathematics librari…

Teaching Code Refactoring Using LLMs

2025-08-12 · Anshul Khairnar, Aarya Rajoju, Edward F. Gehringer arxiv

This Innovative Practice full paper explores how Large Language Models (LLMs) can enhance the teaching of code refactoring in software engineering courses through real-time, context-aware feedback. Refactoring improves c…