UnrollCustomDefinitions

class UnrollCustomDefinitions(*args, **kwargs)[source]

Unrolls instructions with custom definitions.

Unrolls instructions with custom definitions.

Parameters
  • equivalence_library (EquivalenceLibrary) – The equivalence library which will be used by the BasisTranslator pass. (Instructions in this library will not be unrolled by this pass.)

  • basis_gates (list[str]) – Target basis names to unroll to, e.g. [‘u3’, ‘cx’].

Attributes

UnrollCustomDefinitions.is_analysis_pass

Check if the pass is an analysis pass.

UnrollCustomDefinitions.is_transformation_pass

Check if the pass is a transformation pass.

Methods

UnrollCustomDefinitions.name()

Return the name of the pass.

UnrollCustomDefinitions.run(dag)

Run the UnrollCustomDefinitions pass on dag.