cirq.GateOperation.with_qubits

GateOperation.with_qubits(*new_qubits: cirq.Qid) → cirq.Operation[source]

Returns the same operation, but applied to different qubits.

Parameters

new_qubits – The new qubits to apply the operation to. The order must exactly match the order of qubits returned from the operation’s qubits property.