EquivalenceLibrary¶
-
class
EquivalenceLibrary
(*, base=None)[source]¶ Bases:
object
A library providing a one-way mapping of Gates to their equivalent implementations as QuantumCircuits.
Create a new equivalence library.
- Parameters
base (Optional[EquivalenceLibrary]) – Base equivalence library to will be referenced if an entry is not found in this library.
Methods
Add a new equivalence to the library.
Draws the equivalence relations available in the library.
Gets the set of QuantumCircuits circuits from the library which equivalently implement the given Gate.
Check if a library contains any decompositions for gate.
Set the equivalence record for a Gate.