cuquantum.cutensornet.sampler_configure

cuquantum.cutensornet.sampler_configure(intptr_t handle, intptr_t sampler, int attr, intptr_t buf, size_t size)[source]

Configures the tensor network state sampler.

Parameters
  • handle (intptr_t) – The library handle.

  • sampler (intptr_t) – The tensor network sampler handle.

  • attr (SamplerAttribute) – The attribute to configure.

  • buf (intptr_t) – The pointer address (as Python int) for storing the returned attribute value.

  • size (size_t) – The size of buf (in bytes).

Note

To compute size, use the itemsize of the corresponding data type, which can be queried using sampler_get_attribute_dtype().