UnitaryMatrix.is_qubit_only

UnitaryMatrix.is_qubit_only()

Return true if this unitary can only act on qubits.