GateOperation(gate: cirq.Gate, qubits: Sequence[cirq.Qid])¶
An application of a gate to a sequence of qubits.
__init__(gate: cirq.Gate, qubits: Sequence[cirq.Qid]) → None¶
gate – The gate to apply.
qubits – The qubits to operate on.
controlled_by(*control_qubits[, control_values])Returns a controlled version of this operation. If no control_qubits
Returns the same operation, but with different qubits.
validate_args(qubits)Raises an exception if the
qubitsdon’t match this operation’s qid
Returns the same operation, but applied to different qubits.
The gate applied by the operation.
The qubits targeted by the operation.