cirq.ControlledGate.validate_args¶
-
ControlledGate.validate_args(qubits) → 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.