pyqasm.load

load(filename)[source]

Loads an OpenQASM program into a QasmModule object.

Parameters:

filename (str) – The filename of the OpenQASM program to validate.

Returns:

An object containing the parsed qasm representation along with

some useful metadata and methods

Return type:

QasmModule