pauli_expansion_view_compute_trace_with_zero_state_backward_diff#

cuquantum.bindings.cupauliprop.pauli_expansion_view_compute_trace_with_zero_state_backward_diff(
intptr_t handle,
intptr_t view,
intptr_t cotangent_trace_significand,
intptr_t cotangent_trace_exponent,
intptr_t cotangent_expansion,
intptr_t workspace,
intptr_t stream,
)[source]#

Computes the backward differentiation of the trace of a Pauli expansion view with the zero state.

Parameters:
  • handle (intptr_t) – Library handle.

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

  • cotangent_trace_significand (intptr_t) – Pointer to host-accessible memory holding the scalar cotangent of traceSignificand. The numerical type must match the data type of the view’s coefficients.

  • cotangent_trace_exponent (intptr_t) – Pointer to host-accessible memory holding the scalar cotangent of traceExponent. This argument is currently a dead branch for coefficient cotangents, since traceExponent presently carries no parameter dependence, though beware that this may change in the future. The numerical type is always double.

  • cotangent_expansion (intptr_t) – Output Pauli expansion populated with coefficient cotangents corresponding to view. The numerical type must match the data type of the view’s coefficients.

  • workspace (intptr_t) – Allocated workspace descriptor.

  • stream (intptr_t) – CUDA stream to be used for the operation.