pauli_expansion_is_sorted#
-
cuquantum.
bindings. cupauliprop. pauli_expansion_is_sorted( - intptr_t handle,
- intptr_t pauli_expansion,
Queries whether a Pauli operator expansion is sorted or not.
- Parameters:
handle (intptr_t) – Library handle.
pauli_expansion (intptr_t) – Pauli operator expansion.
- Returns:
Indicating whether the Pauli operator expansion is sorted. Sortedness is defined as the Pauli strings being sorted in ascending order according to the little-endian representation of the big integers formed by the X and Z bits. True (!= 0) if the Pauli operator expansion is sorted, false (0) otherwise.
- Return type:
int32_t
See also