qbraid.programs
Module containing quantum circuit wrapper classes providing uniform suite of methods and functionality for supported program types.
Data Types
- QPROGRAM
alias of
str
|QuantumTape
|Circuit
|Program
|Circuit
|Circuit
|QuantumCircuit
|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. |
|
Registers a user-defined program type under the specified alias. |
Classes
|
Abstract class for qbraid program wrapper objects. |
Exceptions
|
Class for errors raised due to unsupported quantum frontend package |
|
Exception raised for errors encountered with 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. |