cuquantum.custatevec.sampler_preprocess

cuquantum.custatevec.sampler_preprocess(intptr_t handle, intptr_t sampler, intptr_t extra_workspace, size_t extra_workspace_size_in_bytes)[source]

Preprocess the state vector for preparation of sampling.

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

  • sampler (intptr_t) – the sampler descriptor.

  • extra_workspace (intptr_t) – extra workspace.

  • extra_workspace_size_in_bytes (size_t) – size of the extra workspace.