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, coefficient, wrapped_coefficient_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 complex scalar coefficient associated with the operator term.
coefficient_callback (object) – 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.
See also