num_qubits
, num_clbits
, and depth
num_qubits
, num_clbits
, and depth
methods.
has_measurements
and remove_measurements
has_barriers
and remove_barriers
methods
to check for barriers and remove them, respectively.
populate_idle_qubits
remove_idle_qubits
reverse_qubit_order
rebase
pyqasm.elements.BasisSet
class. Currently we
support conversion to the following basis sets:
BasisSet.CLIFFORD_T
: {"h", "t", "s", "cx", "tdg", "sdg"}
BasisSet.ROTATIONAL_CX
: {"rx", "ry", "rz", "cx"}
rebase
functionality is useful for converting a program to a basis set that is supported by a specific
quantum device. This conversion can be extended to new custom basis sets by adding the required gate decompositions
to the pyqasm.maps.decomposition_rules
module.
Currently we have complete conversion support for the BasisSet.ROTATIONAL_CX
basis set,
whereas only non-parameterized gate conversion is available for BasisSet.CLIFFORD_T
.
Refer to the PyQASM API Documentation
for more details on the available methods and their usage.