cirq.TwoQubitGate.num_qubits

TwoQubitGate.num_qubits() → int

The number of qubits this gate acts on.