cirq.Gate.validate_args¶
-
Gate.validate_args(qubits: Sequence[cirq.ops.raw_types.QubitId]) → None[source]¶ Checks if this gate can be applied to the given qubits.
Does no checks by default. Child classes can override.
Parameters: qubits – The collection of qubits to potentially apply the gate to. - Throws:
- ValueError: The gate can’t be applied to the qubits.