pygsti.tools.slicetools.intersect

Contents

pygsti.tools.slicetools.intersect#

intersect(s1, s2)#

Returns the intersection of two slices (which must have the same step).

Parameters:
  • s1 (slice) – First slice.

  • s2 (slice) – Second slice.

Return type:

slice