quri_parts.core.estimator.hessian module#

parameter_shift_hessian_estimates(op, state, params, estimator)#

Estimate a hessian of an expectation value of a given operator for a parametric state with respect to the state parameter by the parameter shift rule.

The hessian estimates are configured with arguments as follows.

Parameters:
  • op (Estimatable) – An operator of which expectation value is estimated.

  • state (_ParametricStateT) – A parametric quantum state on which the operator expectation is evaluated.

  • params (Sequence[float]) – Parameter values for which the hessian is estimated.

  • estimator (ConcurrentParametricQuantumEstimator[_ParametricStateT]) – An estimator that estimates expectation values of the operator for the parametric states.

Returns:

The estimated values (can be accessed with values) with errors of estimation (can be accessed with error_tensor). Currently, error_tensor returns None.

Return type:

MatrixEstimates[complex]

create_parameter_shift_hessian_estimator(parametric_estimator)#
Parameters:

parametric_estimator (ConcurrentParametricQuantumEstimator[_ParametricStateT]) –

Return type:

HessianEstimator[_ParametricStateT]