QasmVersion Type
OpenQASM language version.
QASM 2.0 is required by Quokka, older Qiskit, and many hardware backends. QASM 3.0 is the modern standard with richer control flow and typing. Gate names (h, cx, rz, s, sdg) are identical across both versions.
Union cases
| Union case |
Description
|
Full Usage:
V2
|
OpenQASM 2.0 — uses |
Full Usage:
V3
|
OpenQASM 3.0 — uses |