AQGD.deriv

AQGD.deriv(j, params, obj)[source]

Obtains the analytical quantum derivative of the objective function with respect to the jth parameter.

Parameters
  • j (int) – Index of the parameter to compute the derivative of.

  • params (array) – Current value of the parameters to evaluate the objective function at.

  • obj (callable) – Objective function.

Returns

The derivative of the objective function w.r.t. j

Return type

float