qbraid.programs.flatten_qasm_program

flatten_qasm_program(qasm_str)[source]

Returns a copy of the input QASM compatible with the QasmParser. Conversion includes deconstruction of custom defined gates, and decomposition of unsupported gates/operations.