def prepare_basis_state(state):
    """
    Find the algorithm to create the basis state.
    
    state: str, ie "0010".
    return: list of strs, algorithm to create the state.
    """
    return ["X(%d)" % i for i in range(len(state)) if state[i] == "1"]