state_projection_mps_configure#

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

Configures computation of the requested tensor network state MPS projection.

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

  • tensor_network_projection (intptr_t) – Tensor network state MPS projection.

  • attribute (StateProjectionMPSAttribute) – Configuration attribute.

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

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

Note

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