LinguaQuanta: Towards a Quantum Transpiler Between OpenQASM and Quipper (Extended)
Scott Wesley
TL;DR
LinguaQuanta addresses the interoperability problem between quantum programming languages by building a principled, category-inspired transpiler between Quipper and OpenQASM. The approach uses a modular, UNIX-style pipeline with reflexive-inverse and semantic-preservation properties, enabling stable round-trip translations despite decompositions. The paper develops concrete decomposition techniques, ancilla-management strategies, and shadow-memory instrumentation, and demonstrates the workflow with a Quantum Phase Estimation example to illustrate practical translation and provenance tracking. This work advances quantum software tooling by providing a formal, compositional framework for language interoperability and by outlining concrete future directions for verification and broader language support.
Abstract
As quantum computing evolves, many important questions emerge, such as how best to represent quantum programs, and how to promote interoperability between quantum program analysis tools. These questions arise naturally in the design of quantum transpilers, which translate between quantum programming languages. In this paper, we take a step towards answering these questions by identifying challenges and best practices in quantum transpiler design. We base these recommendations on our experience designing LinguaQuanta, a quantum transpiler between Quipper and OpenQASM. First, we provide categorical specifications for quantum transpilers, which aim to encapsulate the core principles of the UNIX philosophy. We then identify quantum circuit decompositions which we expect to be useful in quantum transpilation. With these foundations in place, we then discuss challenges faced during the implementation of LinguaQuanta, such as ancilla management and stability under round translation. To show that LinguaQuanta works in practice, a short tutorial is given for the example of quantum phase estimation. We conclude with recommendations for the future of LinguaQuanta, and for quantum software development tools more broadly.
