def compute_blade_representation(bitmap, firstIdx):
    """
    Takes a bitmap representation and converts it to the tuple
    blade representation
    """
    bmp = bitmap
    blade = []
    n = firstIdx
    while bmp > 0:
        if (bmp & 1):
            blade.append(n)
        bmp = bmp >> 1
        n = n + 1
    return tuple(blade)