pauli_expansion_get_num_terms#

cuquantum.bindings.cupauliprop.pauli_expansion_get_num_terms(
intptr_t handle,
intptr_t pauli_expansion,
) int64_t[source]#

Gets the number of terms in the Pauli operator expansion.

Parameters:
  • handle (intptr_t) – Library handle.

  • pauli_expansion (intptr_t) – Pauli operator expansion.

Returns:

Number of terms.

Return type:

int64_t