pauli_expansion_view_prepare_trace_with_zero_state#

cuquantum.bindings.cupauliprop.pauli_expansion_view_prepare_trace_with_zero_state(
intptr_t handle,
intptr_t view,
int64_t max_workspace_size,
intptr_t workspace,
)[source]#

Prepares a Pauli expansion view for tracing with the zero state, i.e. computing Tr(view * |0...0⟩) .

Parameters:
  • handle (intptr_t) – Library handle.

  • view (intptr_t) – Pauli expansion view to be traced.

  • max_workspace_size (int64_t) – Maximum workspace size limit in bytes.

  • workspace (intptr_t) – Workspace descriptor with the required workspace buffer size.