qbraid.passes.qasm
Module for transforming and extracting data from OpenQASM programs.
Functions
|
Return the depth of a list of given qasm statements. |
|
Rebases an OpenQASM 3 program according to a given basis gate set. |
|
Returns a QASM copy with custom gates deconstructed and unsupported operations decomposed. |
|
Decompose an OpenQASM 3 program. |
|
Replace edge-case qelib1 gates with equivalent decomposition. |
|
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. |
|
Check if the program has any measurement operations. |
|
Remove all measurement operations from the program. |
|
Remove all include statements from the program. |