SDK User Guide
SDK API Reference
convert_qasm_pi_to_decimal()
Convert all instances of ‘pi’ in the QASM string to their decimal value.
str