qiskit.opflow.gradients.DerivativeBase.parameter_expression_grad¶
- static DerivativeBase.parameter_expression_grad(param_expr, param)[ソース]¶
Get the derivative of a parameter expression w.r.t. the given parameter.
バージョン 0.18.0 で非推奨: The method
qiskit.opflow.gradients.derivative_base.DerivativeBase.parameter_expression_grad()
is deprecated as of qiskit-terra 0.18.0. It will be removed no earlier than 3 months after the release date. Instead, use the ParameterExpression.gradient method.- パラメータ
param_expr (ParameterExpression) – The Parameter Expression for which we compute the derivative
param (ParameterExpression) – Parameter w.r.t. which we want to take the derivative
- 戻り値
ParameterExpression representing the gradient of param_expr w.r.t. param
- 戻り値の型
Union[ParameterExpression, float]