cuquantum.custatevec.sub_sv_migrator_migrate

cuquantum.custatevec.sub_sv_migrator_migrate(intptr_t handle, intptr_t migrator, int device_slot_idx, intptr_t src_sub_sv, intptr_t dst_sub_sv, _Index begin, _Index end)[source]

Performs state vector migration between device slots and given sub state vectors

Parameters
  • handle (intptr_t) – The library handle.

  • migrator (intptr_t) – The sub state vector migrator descriptor.

  • device_slot_idx (int) – The slot index of a device slot

  • src_sub_sv (intptr_t) – The pointer address (as Python int) to the src sub state vector pointer.

  • dst_sub_sv (intptr_t) – The pointer address (as Python int) to the dst sub state vector pointer.

  • begin (int64_t) – The index in a device slot to start sub state vector migration

  • end (int64_t) – The index in a device slot to end sub state vector migration