tweedledum: A Compiler Companion for Quantum Computing

Bruno Schmitt and Giovanni De Micheli
Integrated Systems Laboratory (LSI), EPFL, Switzerland

ABSTRACT


This work presents tweedledum—an extensible open-source library aiming at narrowing the gap between highlevel algorithms and physical devices by enhancing the expressive power of existing frameworks. For example, it allows designers to insert classical logic (defined at a high abstraction level, e.g., a Python function) directly into quantum circuits. We describe its design principles, concrete implementation, and, in particular, the library's core: An intuitive and flexible intermediate representation (IR) that supports different abstraction levels across the same circuit structure.

Keywords: Quantum, Design Automation, Compilation.



Full Text (PDF)