cuquantum.bindings.cudensitymat.state_get_num_components

cuquantum.bindings.cudensitymat.state_get_num_components(intptr_t handle, intptr_t state) int32_t[source]

Queries the number of components (tensors) constituting the chosen quantum state representation (on the current process in multi-process runs).

Parameters
  • handle (intptr_t) – Library handle.

  • state (intptr_t) – Quantum state (or a batch of quantum states).

Returns

Number of components (tensors) in the quantum state representation (on the current process).

Return type

int32_t