qbraid.passes.qasm
Module for transforming and extracting data from OpenQASM programs.
Functions
|
Rebases an OpenQASM 3 program according to a given basis gate set. |
|
Add gate definitions to an Open0QASM 3 string. |
|
Replace occurrences of specified gate names in a QASM program string. |
|
Add 'include "stdgates.inc";' to the QASM string if it is missing. |
|
Remove 'include "stdgates.inc";' from the QASM string. |
Convert all instances of 'pi' in the QASM string to their decimal value. |
|
Normalize the parameters of the gates in the QASM string using function composition. |