cuquantum.cutensornet.marginal_configure¶
- cuquantum.cutensornet.marginal_configure(intptr_t handle, intptr_t marginal, int attr, intptr_t buf, size_t size)[source]¶
Configures computation of the tensor network state marginal distribution.
- Parameters
handle (intptr_t) – The library handle.
marginal (intptr_t) – The tensor network marginal computation handle.
attr (MarginalAttribute) – 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 usingmarginal_get_attribute_dtype().See also