def make_inverse_map(lst):
    """
    Make a map from Lin index to a state index.

    Parameters
    ----------
    lst : list
        List containing Lin indices.

    Returns
    -------
    rez : list
        List containing a map from Lin index to a state index.
    """
    rez = [0] * len(lst)
    for j1 in range(len(lst)):
        rez[lst[j1]] = j1
    return rez
