On Refactoring Quantum Programs in Q#

Published: 2023, Last Modified: 07 Jan 2026QCE 2023EveryoneRevisionsBibTeXCC BY-SA 4.0
Abstract: Refactoring is the process of restructuring existing computer code without changing its external behavior. Refactoring aims to improve the design, structure, and implementation of software while preserving its functionality. While classical programs have benefited from various refactoring methods, the field of quantum programming lacks dedicated refactoring techniques. This paper bridges this gap by presenting a preliminary catalog of refactorings designed for quantum programs in Q#. The paper also highlights the importance of tool support in automating the refactoring process for quantum programs.
Loading