Bengali
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

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.

প্যারামিটার

base (Optional[EquivalenceLibrary]) -- Base equivalence library to will be referenced if an entry is not found in this library.

Methods

add_equivalence

Add a new equivalence to the library.

draw

Draws the equivalence relations available in the library.

get_entry

Gets the set of QuantumCircuits circuits from the library which equivalently implement the given Gate.

has_entry

Check if a library contains any decompositions for gate.

set_entry

Set the equivalence record for a Gate.