from typing import List


def index_to_basis_state(index: int, number_qubits: int) -> List[int]:
    """Convert index to basis state.

    Converts an index of the basis to the up/down representation of a basis state
    depending on the Endian convention of the system

    Args:
        index: the basis index
        number_qubits: The number of qubits

    Returns:
        List[ingt]: A list of 0 and one representing the qubit basis state

    """
    b_list = list()
    for k in range(0, number_qubits):
        b_list.append((index // 2**k) % 2)
    basis_state = b_list
    return basis_state