pygsti.tools.mpitools.slice_up_range#
- slice_up_range(n, num_slices, start=0)#
Divides up range(start,start+n) into num_slices slices.
- Parameters:
n (int) – The number of (consecutive) indices in the range to be divided.
num_slices (int) – The number of slices to divide the range into.
start (int, optional) – The starting entry of the range, so that the range to be divided is range(start,start+n).
- Return type:
list of slices