Quanlse/Utils/Benchmark.py
def evolutionList(state: ndarray, unitaryList: List) -> list:
    """
    Return the intermediate states with given initial states and the list of unitary matrices.

    :param state: the numpy.ndarray representing the initial state
    :param unitaryList: the list containing different unitary matrices at different times
    :return stateList: the list of intermediate states for the given unitary matrices
    """
    stateList = []
    for unitaryItem in unitaryList:
        stateList.append(dot(unitaryItem, state))
    return stateList

    Return the intermediate states with given initial states and the list of unitary matrices.

    :param state: the numpy.ndarray representing the initial state
    :param unitaryList: the list containing different unitary matrices at different times
    :return stateList: the list of intermediate states for the given unitary matrices
    
Return the intermediate states with given initial states and the list of unitary matrices.
Return the intermediate states with given initial states and the list of unitary matrices .
def evolutionList(state: ndarray, unitaryList: List) -> list:
    stateList = []
    for unitaryItem in unitaryList:
        stateList.append(dot(unitaryItem, state))
    return stateList
def evolutionList ( state : ndarray , unitaryList : List ) -> list : stateList = [ ] for unitaryItem in unitaryList : stateList . append ( dot ( unitaryItem , state ) ) return stateList
Return the intermediate states with given initial states and the list of unitary matrices.
Return the intermediate states with given initial states and the list of unitary matrices .
"""
    Return the intermediate states with given initial states and the list of unitary matrices.

    :param state: the numpy.ndarray representing the initial state
    :param unitaryList: the list containing different unitary matrices at different times
    :return stateList: the list of intermediate states for the given unitary matrices
    """
the list of intermediate states for the given unitary matrices
the list of intermediate states for the given unitary matrices
stateList
state
ndarray
the numpy.ndarray representing the initial state
the numpy . ndarray representing the initial state
unitaryList
List
the list containing different unitary matrices at different times
the list containing different unitary matrices at different times