Portuguese
Idiomas
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.opflow.gradients.DerivativeBase.gradient_wrapper

DerivativeBase.gradient_wrapper(operator, bind_params, grad_params=None, backend=None, expectation=None)[código fonte]

Get a callable function which provides the respective gradient, Hessian or QFI for given parameter values. This callable can be used as gradient function for optimizers.

Parâmetros
Tipo de retorno

Callable[[Iterable], ndarray]

Retorno

Function to compute a gradient, Hessian or QFI. The function takes an iterable as argument which holds the parameter values.