def get_scale(a_index, w_index):
    """
        Returns the proper scale for the BBQ multliplication index

        Parameters
        ----------
        a_index : Integer
            Current activation bit index
        w_index : Integer
            Current weight bit index
    """
    scale = pow(2, (a_index + w_index))
    return scale