def str2tuple(s):
    """
    Returns tuple representation of product state.

    Parameters
    ----------
    s : str
        Product state.

    """
    return tuple( pos for pos, char in enumerate(s) if char == "1" )