qbraid_qir.qasm3.BasicQasmVisitor
- class BasicQasmVisitor(initialize_runtime=True, record_output=True, check_only=False)[source]
A visitor for basic OpenQASM program elements.
This class is designed to traverse and interact with elements in an OpenQASM program.
- Parameters:
initialize_runtime (bool) – If True, quantum runtime will be initialized. Defaults to True.
record_output (bool) – If True, output of the circuit will be recorded. Defaults to True.
Methods
__init__
([initialize_runtime, ...])bitcode
()finalize
()ir
()record_output
(module)visit_qasm3_module
(module)Visit a Qasm3 module.
visit_register
(register)Visit a register element.
visit_statement
(statement)Visit a statement element.
Attributes
entry_point