cirq.Operation.transform_qubits¶
-
Operation.transform_qubits(func: Callable[cirq.ops.raw_types.QubitId, cirq.ops.raw_types.QubitId]) → TSelf_Operation[source]¶ 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.