Portuguese
Idiomas
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.opflow.gradients.Hessian.get_hessian

Hessian.get_hessian(operator, params=None)[código fonte]

Get the Hessian for the given operator w.r.t. the given parameters

Parâmetros
Retorno

Operator which represents the gradient w.r.t. the given params.

Levanta
  • ValueError – If params contains a parameter not present in operator.

  • ValueError – If operator is not parameterized.

  • OpflowError – If the coefficient of the operator could not be reduced to 1.

  • OpflowError – If the differentiation of a combo_fn requires JAX but the package is not installed.

  • TypeError – If the operator does not include a StateFn given by a quantum circuit

  • TypeError – If the parameters were given in an unsupported format.

  • Exception – Unintended code is reached

  • MissingOptionalLibraryError – jax not installed

Tipo de retorno

OperatorBase