Converts an AST program to OpenQASM
ast (ast.Program) – The AST program.
str – a str representing the OpenPulse program encoding the program.