Expand description
Shared OpenQASM syntax for small Clifford+T components and Pauli feedback.
This module parses instructions; it does not execute a circuit or depend on
a quantum engine. Conditions use OpenQASM 2 register equality. Nested ifs
express conjunctions; several conditional Paulis can express XOR.
Structs§
- Qasm
Program - Parsed registers and instructions, in declaration/program order.
Enums§
- Qasm
Error - Errors in the supported OpenQASM subset.
- Qasm
Gate - Gates accepted by the shared parser, without an execution representation.
- Qasm
Instruction - One parsed instruction. Indices address
QasmProgram::qubitsandbits.
Functions§
- parse_
qasm - Parses the supported OpenQASM 2 subset.