cuquantum.cutensornet.sampler_sample

cuquantum.cutensornet.sampler_sample(intptr_t handle, intptr_t sampler, int64_t n_shots, intptr_t workspace, intptr_t samples, intptr_t stream)[source]

Computes the tensor network state marginal distribution.

Parameters
  • handle (intptr_t) – The library handle.

  • sampler (intptr_t) – The tensor network sampler.

  • n_shots (int64_t) – The number of shots.

  • workspace (intptr_t) – The workspace descriptor.

  • samples (intptr_t) – The pointer address (as Python int) for storing the computed samples.

  • stream (intptr_t) – The CUDA stream handle (cudaStream_t as Python int).