cirq.GateOperation.transform_qubits

GateOperation.transform_qubits(func: Callable[cirq.Qid, cirq.Qid]) → cirq.ops.raw_types.Operation

Returns the same operation, but with different qubits.

Parameters

func – The function to use to turn each current qubit into a desired new qubit.

Returns

The receiving operation but with qubits transformed by the given

function.