cuquantum.bindings.cudensitymat.operator_append_term¶
- cuquantum.bindings.cudensitymat.operator_append_term(intptr_t handle, intptr_t superoperator, intptr_t operator_term, int32_t duality, double complex coefficient, coefficient_callback, coefficient_gradient_callback)[source]¶
Appends an operator term to the operator.
- Parameters
handle (intptr_t) – Library handle.
superoperator (intptr_t) – Operator.
operator_term (intptr_t) – Operator term.
duality (int32_t) – Duality status of the operator term action as a whole. If not zero, the duality status of each mode action inside the operator term will be flipped, that is, action from the left will be replaced by action from the right, and vice versa.
coefficient (complex) – Constant (static) complex scalar coefficient associated with the operator term.
coefficient_callback (object) – Optional user-defined complex scalar callback function which can be called later to update the scalar coefficient associated with the operator term, or NULL. The total coefficient associated with the operator term is a product of the constant coefficient and the result of the scalar callback function, if defined.
coefficient_gradient_callback (object) – Optional user-defined scalar gradient callback function which can be called later to compute the gradients of the complex scalar coefficient with respect to the user-defined real parameters, or NULL.
See also