iqm.iqm_client.transpile.transpile_remove_moves

iqm.iqm_client.transpile.transpile_remove_moves#

iqm.iqm_client.transpile.transpile_remove_moves(circuit)#

Transpile method that 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