def allChains(noInitChains, initial_partitions):
    """Returns list of of chains with parameters of noInitChain and initial_state
    of each of initial_partitions."""
    chains = [[] for i in range(len(noInitChains))]
    for i, chain in enumerate(noInitChains):
        for partition in initial_partitions:
            chains[i].append(chain.toChain(partition))

    return chains