cuquantum.custatevec.accessor_get

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

Copy elements from the statevector to an external buffer.

Parameters
  • handle (intptr_t) – The library handle.

  • accessor (intptr_t) – The accessor descriptor.

  • buf (intptr_t) – The external buffer to store the copied elements.

  • begin (int) – The beginning index.

  • end (int) – The end index.