iqm.qiskit_iqm.iqm_transpilation.IQMReplaceGateWithUnitaryPass#
- 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(dag)Run a pass on the DAGCircuit.
- run(dag)#
 Run a pass on the DAGCircuit. This is implemented by the pass developer.
- Parameters:
 dag – the dag on which the pass is run.
- Raises:
 NotImplementedError – when this is left unimplemented for a pass.