Open
Description
pprint(ast)
prints a nice colored version of OpenQASM to the terminal or notebook but there is no function that simply prints (or writes to a file) the actual QASM code.
Should add a function like this alongside pprint:
def dumps(qasm_ast):
# These Console configurations seem to be necessary to get the correct output
return spprint(qasm_ast, console=Console(no_color=True, force_jupyter=False, force_interactive=False, force_terminal=False))