IQMReplaceGateWithUnitaryPass#
Module: iqm.qiskit_iqm.iqm_transpilation
- class iqm.qiskit_iqm.iqm_transpilation.IQMReplaceGateWithUnitaryPass(*args, **kwargs)#
Bases:
TransformationPassTranspiler 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 the pass on the given circuit.
- run(dag: DAGCircuit) DAGCircuit#
Run the pass on the given circuit.
- Parameters:
dag (DAGCircuit)
- Return type:
Inheritance
