iqm.qiskit_iqm.iqm_naive_move_pass.IQMNaiveResonatorMoving

iqm.qiskit_iqm.iqm_naive_move_pass.IQMNaiveResonatorMoving#

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 iqm-client.transpile_insert_moves. This pass is a wrapper that converts the circuit into the IQMClient 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(dag)

Run the pass on a circuit.

run(dag: DAGCircuit) DAGCircuit#

Run the pass on a circuit.

Parameters:

dag (DAGCircuit) – DAG to map.

Returns:

Mapped dag.

Raises:

TranspilerError – The layout is not compatible with the DAG, or if the input gate set is incorrect.

Return type:

DAGCircuit