pygsti.tools.slicetools.length

Contents

pygsti.tools.slicetools.length#

length(s)#

Returns the length (the number of indices) contained in a slice.

Parameters:

s (slice) – The slice to operate upon.

Return type:

int