pygsti.tools.slicetools.to_array

Contents

pygsti.tools.slicetools.to_array#

to_array(slc_or_list_like)#

Returns slc_or_list_like as an index array (an integer numpy.ndarray).

Parameters:

slc_or_list_like (slice or list) – A slice, list, or array.

Return type:

numpy.ndarray