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_significand,
- intptr_t trace_exponent,
- intptr_t workspace,
- intptr_t stream,
Computes the trace of the Pauli expansion view with the zero state, i.e.
Tr(view * |0...0><0...0|).- Parameters:
handle (intptr_t) – Library handle.
view (intptr_t) – Pauli expansion view to be traced.
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.