LLM-Powered Quantum Code Transpilation
By: Nazanin Siavash, Armin Moin
Potential Business Impact:
Lets quantum programs run on any computer.
There exist various Software Development Kits (SDKs) tailored to different quantum computing platforms. These are known as Quantum SDKs (QSDKs). Examples include but are not limited to Qiskit, Cirq, and PennyLane. However, this diversity presents significant challenges for interoperability and cross-platform development of hybrid quantum-classical software systems. Traditional rule-based transpilers for translating code between QSDKs are time-consuming to design and maintain, requiring deep expertise and rigid mappings in the source and destination code. In this study, we explore the use of Large Language Models (LLMs) as a flexible and automated solution. Leveraging their pretrained knowledge and contextual reasoning capabilities, we position LLMs as programming language-agnostic transpilers capable of converting quantum programs from one QSDK to another while preserving functional equivalence. Our approach eliminates the need for manually defined transformation rules and offers a scalable solution to quantum software portability. This work represents a step toward enabling intelligent, general-purpose transpilation in the quantum computing ecosystem.
Similar Papers
Quantum Program Linting with LLMs: Emerging Results from a Comparative Study
Software Engineering
Helps fix mistakes in quantum computer programs.
Automatic Qiskit Code Refactoring Using Large Language Models
Software Engineering
Helps fix old quantum computer programs automatically.
Taxonomy of migration scenarios for Qiskit refactoring using LLMs
Software Engineering
Helps quantum programs update without breaking.