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_significand,
- intptr_t trace_exponent,
- intptr_t workspace,
- intptr_t stream,
Computes the trace of the product 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_significand (intptr_t) – Pointer to CPU-accessible memory where the trace’s significand will be written. The numerical type must match the data type of the views’ coefficients.
trace_exponent (intptr_t) – Pointer to CPU-accessible memory where the trace’s exponent will be stored. The numerical type is always
double.workspace (intptr_t) – Allocated workspace descriptor.
stream (intptr_t) – CUDA stream to be used for the operation.