marginal_get_info#

cuquantum.bindings.cutensornet.marginal_get_info(
intptr_t handle,
intptr_t tensor_network_marginal,
int attribute,
intptr_t attribute_value,
size_t attribute_size,
)[source]#

Retrieves an attribute related to computation of the requested tensor network state marginal tensor.

Parameters:
  • handle (intptr_t) – cuTensorNet library handle.

  • tensor_network_marginal (intptr_t) – Tensor network state marginal representation.

  • attribute (MarginalAttribute) – Information attribute.

  • attribute_value (intptr_t) – Pointer to the information attribute value (type-erased).

  • attribute_size (size_t) – The size of the information attribute value.

Note

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