qbraid.programs.circuits.qasm

Module defining OpenQasm2Program and OpenQasm3Program classes.

Functions

auto_reparse(func)

Decorator that ensures the quantum circuit's state is reparsed from QASM after method execution.

depth(qasm_statements, counts)

Return the depth of a list of given qasm statements.

expression_value(expression)

Return the size of an expression.

expression_value_option(expression)

Return the size of an expression.

Classes

OpenQasm2Program(program)

Wrapper class for OpenQASM 2 strings.

OpenQasm3Program(program)

Wrapper class for OpenQASM 3 strings.