On Refactoring Quantum Programs

06/18/2023
by   Jianjun Zhao, et al.
0

Refactoring is a crucial technique for improving the efficiency and maintainability of software by restructuring its internal design while preserving its external behavior. While classical programs have benefited from various refactoring methods, the field of quantum programming lacks dedicated refactoring techniques. The distinct properties of quantum computing, such as quantum superposition, entanglement, and the no-cloning principle, necessitate specialized refactoring techniques. This paper bridges this gap by presenting a comprehensive set of refactorings specifically designed for quantum programs. Each refactoring is carefully designed and explained to ensure the effective restructuring of quantum programs. Additionally, we highlight the importance of tool support in automating the refactoring process for quantum programs. Although our study focuses on the quantum programming language Q#, our approach is applicable to other quantum programming languages, offering a general solution for enhancing the maintainability and efficiency of quantum software.

READ FULL TEXT
research
12/02/2018

A Logic for Recursive Quantum Programs

Most modern (classical) programming languages support recursion. Recursi...
research
04/11/2023

Static Entanglement Analysis of Quantum Programs

Quantum entanglement plays a crucial role in quantum computing. Entangli...
research
07/04/2023

Equivalence, Identity, and Unitarity Checking in Black-Box Testing of Quantum Programs

Quantum programs exhibit inherent non-deterministic behavior, which pose...
research
05/04/2022

Twist: Sound Reasoning for Purity and Entanglement in Quantum Programs

Quantum programming languages enable developers to implement algorithms ...
research
06/30/2023

Testing Multi-Subroutine Quantum Programs: From Unit Testing to Integration Testing

Quantum computing has emerged as a promising field with the potential to...
research
08/18/2020

Just another quantum assembly language (Jaqal)

The Quantum Scientific Computing Open User Testbed (QSCOUT) is a trapped...
research
12/03/2020

Quantum Hoare Type Theory

As quantum computers become real, it is high time we come up with effect...

Please sign up or login with your details

Forgot password? Click here to reset