QXel.transpiler.passes.eliminator module¶
- class QXel.transpiler.passes.eliminator.Eliminator¶
Bases:
BasePassRemove operators that do not affect the simulated state.
- elimination_set = {QXel._C.types.UnitaryOperatorType.Id, QXel._C.types.UnitaryOperatorType.Noop}¶
- static unnecessary(op)¶
Return whether
opcan be dropped without changing semantics.
- optimize(circuit)¶
Filter out no-op operators from
circuit.