cuquantum.custatevec.accessor_set

cuquantum.custatevec.accessor_set(intptr_t handle, intptr_t accessor, intptr_t buf, _Index begin, _Index end)[source]

Copy elements from an external buffer to the statevector.

Parameters
  • handle (intptr_t) – The library handle.

  • accessor (intptr_t) – The accessor descriptor.

  • buf (intptr_t) – The external buffer to copy elements from.

  • begin (int) – The beginning index.

  • end (int) – The end index.