Skip to main content

Module qasm

Module qasm 

Source
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§

QasmProgram
Parsed registers and instructions, in declaration/program order.

Enums§

QasmError
Errors in the supported OpenQASM subset.
QasmGate
Gates accepted by the shared parser, without an execution representation.
QasmInstruction
One parsed instruction. Indices address QasmProgram::qubits and bits.

Functions§

parse_qasm
Parses the supported OpenQASM 2 subset.