cuquantum.cutensornet.create_slice_group_from_ids

cuquantum.cutensornet.create_slice_group_from_ids(intptr_t handle, ids, size_t ids_size) intptr_t[source]

Create a slice group from a sequence of slice IDs.

Parameters
  • handle (intptr_t) – The library handle.

  • ids

    A host sequence of slice IDs (as Python int). It can be

    • an int as the pointer address to the array

    • a Python sequence of int

  • ids_size (size_t) – the length of the ID sequence.

Returns

An opaque slice group descriptor.

Return type

intptr_t