IQMNaiveResonatorMoving

IQMNaiveResonatorMoving#

Module: iqm.qiskit_iqm.iqm_naive_move_pass

class iqm.qiskit_iqm.iqm_naive_move_pass.IQMNaiveResonatorMoving(*args, **kwargs)#

Bases: TransformationPass

Naive transpilation pass for resonator moving.

The logic of this pass is deferred to transpile_insert_moves(). This pass is a wrapper that converts the circuit into the IQM circuit format, runs the transpile_insert_moves function, and then converts the result back to a Qiskit circuit.

Parameters:
  • target – Transpilation target.

  • existing_moves_handling – How to handle existing MOVE gates in the circuit.

Attributes

Methods

run

Run the pass on a circuit.

run(dag: DAGCircuit) DAGCircuit#

Run the pass on a circuit.

Parameters:

dag (DAGCircuit) – DAG to insert MOVE gates into.

Returns:

The new dag now including MOVE gates as needed.

Raises:

TranspilerError – The layout is not compatible with the DAG, or if something goes wrong during transpilation.

Return type:

DAGCircuit

Inheritance

Inheritance diagram of iqm.qiskit_iqm.iqm_naive_move_pass.IQMNaiveResonatorMoving