qlat_utils.get_chunk_list¶
- qlat_utils.get_chunk_list(total_list, *, chunk_size=None, chunk_number=None, rng_state=None)[source]¶
Split
total_list
intochunk_number
chunks or chunks withchunk_size
. One (and only one) ofchunk_size
andchunk_number
should not beNone
. # Returns a list of chunks. Number of chunks is less or equal tochunk_number
. Chunk sizes are less or equal tochunk_size
. if rng_state is None:Do not randomly permute the list