[Paper Review] cQASM v1.0: Towards a Common Quantum Assembly Language
This paper introduces cQASM v1.0, a standardized, hardware-agnostic quantum assembly language designed to unify disparate QASM dialects across quantum tools. By abstracting low-level hardware details and enabling interoperability, cQASM facilitates seamless compilation, simulation, and execution of quantum circuits across diverse platforms, forming a foundational toolbox for the quantum computing community.
The quantum assembly language (QASM) is a popular intermediate representation used in many quantum compilation and simulation tools to describe quantum circuits. Currently, multiple different dialects of QASM are used in different quantum computing tools. This makes the interaction between those tools tedious and time-consuming due to the need for translators between theses different syntaxes. Beside requiring a multitude of translators, the translation process exposes the constant risk of loosing information due to the potential incompatibilities between the different dialects. Moreover, several tools introduce details of specific target hardware or qubit technologies within the QASM syntax and prevent porting the code to other hardwares. In this paper, we propose a common QASM syntax definition, named cQASM, which aims to abstract away qubit technology details and guarantee the interoperability between all the quantum compilation and simulation tools supporting this standard. Our vision is to enable an extensive quantum computing toolbox shared by all the quantum computing community.
Motivation & Objective
- Address the fragmentation of quantum assembly languages (QASM) across tools, which hinders tool interoperability and risks information loss during translation.
- Create a common, hardware-agnostic quantum assembly language to serve as a standardized intermediate representation for quantum circuits.
- Support diverse quantum computing needs, including variational algorithms, error correction, and feedforward operations, through a modular and extensible syntax.
- Enable long-term tool compatibility and code portability by abstracting qubit technology-specific details.
- Lay the foundation for a shared quantum computing ecosystem where tools can interoperate via a single, standardized language
Proposed method
- Define a minimal, hardware-agnostic QASM syntax that abstracts from specific qubit technologies and micro-architectures.
- Introduce structured syntax for qubit definition, measurement registers, quantum gates, and circuit definition to ensure clarity and consistency.
- Incorporate optional extensions for advanced features such as gate-level parallelism (SGMQ), loops, and dynamic measurement averaging.
- Support variational quantum algorithms through dedicated commands for estimating expectation values of non-commuting observables.
- Design the language to be extensible, allowing future support for classical control flow, conditional operations, and sub-circuit reuse.
- Integrate feedback from diverse stakeholders (e.g., IBM, Intel, academic researchers) to ensure broad community alignment and practical usability.
Experimental results
Research questions
- RQ1How can a common quantum assembly language be designed to unify existing, incompatible QASM dialects across quantum tools?
- RQ2What syntax and semantic features are necessary to support near-term quantum algorithms like variational quantum eigensolvers and quantum sampling?
- RQ3How can hardware-agnostic quantum circuit representation be achieved while preserving support for low-level optimizations and scheduling?
- RQ4What mechanisms are required to enable interoperability between quantum compilers, simulators, and hardware back-ends?
- RQ5What extensions are needed to support future evolution of quantum algorithms, including classical-quantum interaction and dynamic circuit control?
Key findings
- cQASM v1.0 provides a standardized, hardware-agnostic quantum assembly language that unifies disparate QASM dialects, reducing translation overhead and information loss.
- The language supports key near-term quantum workloads, including variational quantum algorithms, through dedicated commands for measuring expectation values of non-commuting observables.
- cQASM enables compact expression of quantum circuits with support for gate-level parallelism via SGMQ instructions, improving scheduling and simulation efficiency.
- The language includes a minimal core syntax for basic quantum circuits and extensible features for advanced use cases, such as loops and measurement averaging.
- The specification is designed to evolve, with future support planned for classical control flow, conditional operations, and sub-circuit reuse.
- The community-driven design process has already incorporated input from major quantum research institutions and industry labs, ensuring broad relevance and adoption potential.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.