qbraid.programs
Module containing quantum circuit wrapper classes providing uniform suite of methods and functionality for supported program types.
Data Types
- QPROGRAM
alias of
Union
[Circuit
,QuantumCircuit
,QuantumTape
,Program
,Circuit
,Circuit
,Program
]
Functions
|
Gets OpenQASM program version, either qasm2 or qasm3. |
|
Get the type of a quantum program. |
|
Apply qbraid quantum program wrapper to a supported quantum program. |
|
Returns a copy of the input QASM with all barriers removed. |
|
Recursively expands gate definitions in the input OpenQASM string. |
|
Returns a copy of the input QASM compatible with the |
|
Replace edge-case qelib1 gates with equivalent decomposition. |
|
Convert all instances of 'pi' in the QASM string to their decimal value. |
Classes
|
Abstract class for qbraid program wrapper objects. |
Exceptions
|
Class for errors raised due to unsupported quantum frontend package |
|
Class for errors raised when processing unsupported quantum programs |
For errors raised while processing OpenQASM programs. |
Submodules
Module containing sub-modules for interfacing with various quantum software libraries and program types. |