pyFM.optimize.base_functions.oplist_commutation_grad¶
- pyFM.optimize.base_functions.oplist_commutation_grad(C, op_list)¶
Compute the gradient of the operator commutativity constraint for a list of pairs of operators.
Can be used with a list of descriptor multiplication operators.
- Parameters:
- Returns:
gradient – Gradient of the sum of the operators commutativity squared norms.
- Return type:
(K2, K1) np.ndarray