cirq.CCXPowGate.validate_args

CCXPowGate.validate_args(qubits: Sequence[cirq.ops.raw_types.Qid]) → None

Checks if this gate can be applied to the given qubits.

By default checks if input is of type Qid and qubit count.
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.