pauli_expansion_view_compute_trace_with_expansion_view#

cuquantum.bindings.cupauliprop.pauli_expansion_view_compute_trace_with_expansion_view(
intptr_t handle,
intptr_t view1,
intptr_t view2,
int32_t take_adjoint1,
intptr_t trace,
intptr_t workspace,
)[source]#

Computes the trace of two Pauli expansion views.

Parameters:
  • handle (intptr_t) – Library handle.

  • view1 (intptr_t) – First Pauli expansion view.

  • view2 (intptr_t) – Second Pauli expansion view.

  • take_adjoint1 (int32_t) – Whether or not the adjoint of the first view is taken. True (!= 0) if the adjoint is taken, false (0) otherwise.

  • 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.