qbraid.passes.qasm3
Module for appyling transformations to OpenQASM 3 programs.
Functions
|
Rebases an OpenQASM 3 program according to a given basis gate set. |
|
Decompose an OpenQASM 3 program. |
|
Add gate definitions to an Open0QASM 3 string. |
|
Replace occurrences of a specified gate name in a QASM program string with a new gate name, while optionally enforcing the replacement even if the new gate name isn't in the predefined gate map. |
|
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. |
|
|
Remove unused gate definitions from a QASM string. |