Compiler Design for Quantum Programming Languages

Authors

  • Elena Lindberg Research Scientist, Institute of Intelligent Systems, Nordic Technical University, Stockholm, Sweden Author
  • Anna Silva Associate Professor, Department of Machine Learning, Swiss Institute of Machine Intelligence, Zurich, Switzerland Author

Keywords:

quantum compiler, quantum programming languages, gate synthesis, qubit routing, circuit optimisation, Qiskit, TKET, BQSKit

Abstract

Quantum programming languages and their compilers form the critical software layer between abstract quantum algorithm specifications and physical hardware execution -- yet compiler quality varies enormously across the quantum software ecosystem, with suboptimal compilation directly increasing circuit depth, gate count, and consequently error rates on NISQ hardware. This paper proposes the Quantum Compiler Design and Evaluation (QCDE) framework, a systematic methodology for quantum compiler optimisation across four compilation stages: gate synthesis (decomposing abstract gates to hardware-native gate sets), routing (mapping virtual qubits to physical qubits under connectivity constraints), scheduling (ordering gates to minimise decoherence), and cross-layer optimisation (combining all stages with error mitigation awareness). QCDE evaluates six quantum compilers (Qiskit transpiler L1-L3, TKET, BQSKit, Cirq, Quilc, and a novel QCDE-Opt compiler) on 48 benchmark circuits from the QOAS, HQCAD, and QNNDE algorithm ecosystems. QCDE-Opt achieves 18.4% lower CX gate count vs. Qiskit L3 (best existing compiler) through a novel error-aware peephole optimisation pass. BQSKit provides the best synthesis quality at 28.4% CX reduction but 12.4x compilation overhead. TKET achieves the best balance of quality and speed (8.4% CX reduction, 1.8x overhead). QCDE provides a compiler selection guide and the QCDE-Opt compiler as an open-source contribution.

Author Biographies

  • Elena Lindberg, Research Scientist, Institute of Intelligent Systems, Nordic Technical University, Stockholm, Sweden

    Research Scientist, Institute of Intelligent Systems, Nordic Technical University, Stockholm, Sweden

  • Anna Silva, Associate Professor, Department of Machine Learning, Swiss Institute of Machine Intelligence, Zurich, Switzerland

    Associate Professor, Department of Machine Learning, Swiss Institute of Machine Intelligence, Zurich, Switzerland

Downloads

Published

2025-06-28

How to Cite

Compiler Design for Quantum Programming Languages. (2025). Quantum Frontiers Journal P-ISSN 3117-6070 and E-ISSN 3117-6089, 2(2), 19-27. https://galaxiauniverse.com/index.php/QFJ/article/view/360