iqm.iqm_client.transpile.transpile_remove_moves

iqm.iqm_client.transpile.transpile_remove_moves#

iqm.iqm_client.transpile.transpile_remove_moves(circuit: Circuit) Circuit#

Removes MOVE gates from a circuit.

The method assumes that these MOVE gates are moving the resonator state in and out the resonator register to reconstruct the CZ gates. If this is not the case, the semantic equivalence cannot be guaranteed.

Parameters:

circuit (Circuit) – The circuit from which the MOVE gates need to be removed.

Returns:

The circuit with the MOVE gates removed and the targets for all other gates updated accordingly.

Return type:

Circuit