cuquantum.cutensornet.state_configure

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

Configures computation of the tensor network state.

Parameters
  • handle (intptr_t) – The library handle.

  • state (intptr_t) – The tensor network state.

  • attr (StateAttribute) – 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 state_get_attribute_dtype().