IQMReplaceGateWithUnitaryPass#

Module: iqm.qiskit_iqm.iqm_transpilation

class iqm.qiskit_iqm.iqm_transpilation.IQMReplaceGateWithUnitaryPass(*args, **kwargs)#

Bases: TransformationPass

Transpiler pass that replaces all gates with given name in a circuit with a UnitaryGate.

Parameters:
  • gate – The name of the gate to replace.

  • unitary – The unitary matrix to replace the gate with.

Attributes

Methods

run

Run the pass on the given circuit.

run(dag: DAGCircuit) DAGCircuit#

Run the pass on the given circuit.

Parameters:

dag (DAGCircuit)

Return type:

DAGCircuit

Inheritance

Inheritance diagram of iqm.qiskit_iqm.iqm_transpilation.IQMReplaceGateWithUnitaryPass