Skip to main content
QUICK REVIEW

[Paper Review] OpenQL : A Portable Quantum Programming Framework for Quantum Accelerators

N. Khammassi, I. Ashraf|arXiv (Cornell University)|May 27, 2020
Quantum Computing Algorithms and ArchitectureComputer Science10 citations
TL;DR

OpenQL is a portable quantum programming framework that enables high-level quantum algorithm implementation in C++ or Python, compiling them into optimized, hardware-specific code via a modular compiler stack. It achieves cross-platform portability across superconducting and Si-Spin qubit technologies by abstracting hardware details through a technology-independent cQASM intermediate representation and adaptive scheduling that accounts for device-specific latencies and connectivity constraints.

ABSTRACT

With the potential of quantum algorithms to solve intractable classical problems, quantum computing is rapidly evolving and more algorithms are being developed and optimized. Expressing these quantum algorithms using a high-level language and making them executable on a quantum processor while abstracting away hardware details is a challenging task. Firstly, a quantum programming language should provide an intuitive programming interface to describe those algorithms. Then a compiler has to transform the program into a quantum circuit, optimize it and map it to the target quantum processor respecting the hardware constraints such as the supported quantum operations, the qubit connectivity, and the control electronics limitations. In this paper, we propose a quantum programming framework named OpenQL, which includes a high-level quantum programming language and its associated quantum compiler. We present the programming interface of OpenQL, we describe the different layers of the compiler and how we can provide portability over different qubit technologies. Our experiments show that OpenQL allows the execution of the same high-level algorithm on two different qubit technologies, namely superconducting qubits and Si-Spin qubits. Besides the executable code, OpenQL also produces an intermediate quantum assembly code (cQASM), which is technology-independent and can be simulated using the QX simulator.

Motivation & Objective

  • Enable quantum algorithm development independent of underlying hardware by abstracting low-level control details.
  • Address the challenge of mapping high-level quantum algorithms to diverse quantum processor architectures with varying gate sets, connectivity, and control electronics.
  • Provide a portable compilation stack that supports multiple qubit technologies, including superconducting and semiconducting qubits.
  • Facilitate execution of the same high-level code on different quantum processors by dynamically adapting to hardware configuration files.
  • Support both simulation and execution on real quantum accelerators through a standardized intermediate representation (cQASM).

Proposed method

  • Implement a high-level quantum programming interface in C++ and Python for writing quantum algorithms without low-level hardware knowledge.
  • Design a modular compiler stack that decomposes quantum operations into elementary gates using a gate decomposition section in the hardware configuration.
  • Use a technology-independent cQASM intermediate representation to decouple algorithm description from target-specific execution.
  • Apply hardware-aware scheduling that accounts for instruction latencies, durations, and qubit connectivity constraints across different control channels.
  • Integrate microarchitecture-specific properties such as microwave, flux, and readout control into the configuration file to guide code generation.
  • Support automatic code adaptation by reusing the same high-level source code across different quantum processors through configuration-driven compilation.

Experimental results

Research questions

  • RQ1How can a quantum programming framework achieve portability across diverse qubit technologies such as superconducting and Si-Spin qubits?
  • RQ2What compiler architecture enables efficient mapping of high-level quantum algorithms to heterogeneous quantum processor microarchitectures?
  • RQ3To what extent can a single high-level quantum program be executed on different quantum hardware platforms with minimal modification?
  • RQ4How can hardware-specific constraints—such as qubit connectivity, gate set, and control electronics latencies—be abstracted while preserving quantum coherence and performance?
  • RQ5Can a unified intermediate representation (cQASM) enable both simulation and target-specific compilation across multiple quantum accelerator platforms?

Key findings

  • OpenQL successfully compiled and executed the same high-level quantum algorithm on both superconducting and Si-Spin qubit platforms using only a change in the hardware configuration file.
  • The framework enabled coherent control across devices by automatically rescheduling operations to compensate for differences in signal generator and measurement unit latencies.
  • Experiments including Randomized Benchmarking, AllXY, Rabi oscillations, and variational quantum eigensolvers were successfully ported across platforms with no source code changes.
  • The cQASM intermediate representation enabled accurate simulation using the QX simulator and served as a portable, technology-agnostic compilation target.
  • The compiler stack achieved effective optimization and mapping by leveraging topology, gate decomposition, and latency-aware scheduling for diverse quantum microarchitectures.
  • OpenQL demonstrated practical portability in real-world quantum experiments, including 3-qubit parity checks and energy derivative calculations in quantum chemistry.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.