def num_args(self):
        """
        :return: The number of qubit arguments the gate takes.
        :rtype: int
        """
        rows = len(self.matrix)
        return int(np.log2(rows))
def num_args ( self ) : rows = len ( self . matrix ) return int ( np . log2 ( rows ) )
:return: The number of qubit arguments the gate takes.
        :rtype: int