cuquantum.custatevec.sampler_preprocess

cuquantum.custatevec.sampler_preprocess(intptr_t handle, intptr_t sampler, intptr_t workspace, size_t workspace_size)[source]

Preprocess the statevector to prepare for sampling.

Parameters
  • handle (intptr_t) – The library handle.

  • sampler (intptr_t) – The pointer address (as Python int) to the sampler descriptor.

  • workspace (intptr_t) – The pointer address (as Python int) to the workspace (on device).

  • workspace_size (size_t) – The workspace size (in bytes).