42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
---
|
||
title: HessianBase
|
||
description: API reference for qiskit.opflow.gradients.HessianBase
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: class
|
||
python_api_name: qiskit.opflow.gradients.HessianBase
|
||
---
|
||
|
||
# HessianBase
|
||
|
||
<Class id="qiskit.opflow.gradients.HessianBase" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.19/qiskit/opflow/gradients/hessian_base.py" signature="HessianBase(hess_method='param_shift', **kwargs)" modifiers="class">
|
||
Bases: `qiskit.opflow.gradients.derivative_base.DerivativeBase`
|
||
|
||
Base class for the Hessian of an expected value.
|
||
|
||
**Parameters**
|
||
|
||
* **hess\_method** (`Union`\[`str`, `CircuitGradient`]) – The method used to compute the state/probability gradient. Can be either `'param_shift'` or `'lin_comb'` or `'fin_diff'`. Ignored for gradients w\.r.t observable parameters.
|
||
* **kwargs** (*dict*) – Optional parameters for a CircuitGradient
|
||
|
||
**Raises**
|
||
|
||
**ValueError** – If method != `fin_diff` and `epsilon` is not None.
|
||
|
||
## Attributes
|
||
|
||
### hess\_method
|
||
|
||
<Attribute id="qiskit.opflow.gradients.HessianBase.hess_method">
|
||
Returns `CircuitGradient`.
|
||
|
||
**Return type**
|
||
|
||
`CircuitGradient`
|
||
|
||
**Returns**
|
||
|
||
`CircuitGradient`.
|
||
</Attribute>
|
||
</Class>
|
||
|