def binary_codes(number_qubits):
    """
    Convenience function to get a list of numbers from 0 to 2**number_qubits - 1
    :param number_qubits: exponent
    :return: list of numbers
    """
    N = int(2 ** number_qubits)
    return list(range(N))
