cuquantum.cutensornet.create_slice_group_from_id_range

cuquantum.cutensornet.create_slice_group_from_id_range(intptr_t handle, int64_t slice_start, int64_t slice_stop, int64_t slice_step) intptr_t[source]

Create a slice group that contains a sequence of slice IDs from slice_start (inclusive) to slice_stop (exclusive) by slice_step.

This version of the slice group constructor works similarly to the Python range.

Parameters
  • handle (intptr_t) – The library handle.

  • slice_start (int64_t) – The start of the ID sequence (inclusive).

  • slice_stop (int64_t) – The stop value of the ID sequence (exclusive).

  • slice_step (int64_t) – The step size of the ID sequence.

Returns

An opaque slice group descriptor.

Return type

intptr_t