pauli_expansion_view_compute_trace_with_zero_state#

cuquantum.bindings.cupauliprop.pauli_expansion_view_compute_trace_with_zero_state(
intptr_t handle,
intptr_t view,
intptr_t trace,
intptr_t workspace,
)[source]#

Traces a Pauli expansion view with the zero state, i.e. computes Tr(view * |0...0⟩) .

Parameters:
  • handle (intptr_t) – Library handle.

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

  • trace (intptr_t) – Pointer to CPU-accessible memory where the trace value will be written. The numerical type must match the data type of the views’ coefficients.

  • workspace (intptr_t) – Allocated workspace descriptor.