Language¶
OpenQASM refers to the extended language we now describe, specifically OpenQASM Version 3.0.
The human-readable form of OpenQASM is a simple, case-sensitive textual language. Statements are separated by semicolons and whitespace is ignored.
In other respects, OpenQASM possesses a dual nature as an assembly language and as a hardware description language.
The OpenQASM grammar specifications can be found at [OpenQASM 3.0 Grammar].
- Comments
- Version string
- Included files
- Types and Casting
- Gates
- Built-in quantum instructions
- Classical instructions
- Subroutines
- Scoping of variables
- Directives
- Input/output
- Standard library
- Circuit timing
- Pulse-level descriptions of gates and measurement
- OpenPulse Grammar