pygsti.tools.slicetools.shift

Contents

pygsti.tools.slicetools.shift#

shift(s, offset)#

Returns a new slice whose start and stop points are shifted by offset.

Parameters:
  • s (slice) – The slice to operate upon.

  • offset (int) – The amount to shift the start and stop members of s.

Return type:

slice