pauli_expansion_get_contiguous_range#

cuquantum.bindings.cupauliprop.pauli_expansion_get_contiguous_range(
intptr_t handle,
intptr_t pauli_expansion,
int64_t start_ind_ex,
int64_t end_ind_ex,
) intptr_t[source]#

Creates a non-owning view of a contiguous range of Pauli operator terms inside a Pauli operator expansion.

Parameters:
  • handle (intptr_t) – Library handle.

  • pauli_expansion (intptr_t) – Pauli operator expansion.

  • start_ind_ex (int64_t) – Start index of the range (inclusive, first element in the range).

  • end_ind_ex (int64_t) – End index of the range (exclusive, one past the last element).

Returns:

View to a range of Pauli terms inside the Pauli operator expansion.

Return type:

intptr_t