cuquantum.custatevec.accessor_get

cuquantum.custatevec.accessor_get(intptr_t handle, intptr_t accessor, intptr_t external_buffer, int64_t begin, int64_t end)[source]

Copy state vector elements to an external buffer.

Parameters
  • handle (intptr_t) – the handle to the cuStateVec library.

  • accessor (intptr_t) – the accessor descriptor.

  • external_buffer (intptr_t) – pointer to a host or device buffer to receive copied elements.

  • begin (int64_t) – index in the permuted bit ordering for the first elements being copied to the state vector.

  • end (int64_t) – index in the permuted bit ordering for the last elements being copied to the state vector (non-inclusive).