iqm.cirq_iqm.transpiler.transpile_insert_moves_into_circuit

iqm.cirq_iqm.transpiler.transpile_insert_moves_into_circuit#

iqm.cirq_iqm.transpiler.transpile_insert_moves_into_circuit(cirq_circuit: Circuit, device: IQMDevice, existing_moves: ExistingMoveHandlingOptions | None = None, qubit_mapping: dict[str, str] | None = None) Circuit#

Transpile the circuit to insert MOVE gates where needed.

Parameters:
  • cirq_circuit (Circuit) – Circuit to transpile.

  • device (IQMDevice) – Device to transpile for.

  • existing_moves (Optional[ExistingMoveHandlingOptions]) – How to handle existing MOVE gates, obtained from the IQM client library.

  • qubit_mapping (Optional[dict[str, str]]) – Mapping from qubit names in the circuit to the device.

Returns:

Transpiled circuit.

Return type:

Circuit