38 lines
1.5 KiB
Plaintext
38 lines
1.5 KiB
Plaintext
---
|
||
title: EstimatorResult (v1.2)
|
||
description: API reference for qiskit.primitives.EstimatorResult in qiskit v1.2
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: class
|
||
python_api_name: qiskit.primitives.EstimatorResult
|
||
---
|
||
|
||
# EstimatorResult
|
||
|
||
<Class id="qiskit.primitives.EstimatorResult" isDedicatedPage={true} github="https://github.com/Qiskit/qiskit/tree/stable/1.2/qiskit/primitives/base/estimator_result.py#L27-L46" signature="qiskit.primitives.EstimatorResult(values, metadata)" modifiers="class">
|
||
Bases: `_BasePrimitiveResult`
|
||
|
||
Result of Estimator V1.
|
||
|
||
```python
|
||
result = estimator.run(circuits, observables, params).result()
|
||
```
|
||
|
||
where the i-th elements of `result` correspond to the circuit and observable given by `circuits[i]`, `observables[i]`, and the parameter values bounds by `params[i]`. For example, `results.values[i]` gives the expectation value, and `result.metadata[i]` is a metadata dictionary for this circuit and parameters.
|
||
|
||
**Parameters**
|
||
|
||
* **values** (*np.ndarray*) – The array of the expectation values.
|
||
* **metadata** ([*list*](https://docs.python.org/3/library/stdtypes.html#list "(in Python v3.13)")*\[*[*dict*](https://docs.python.org/3/library/stdtypes.html#dict "(in Python v3.13)")*]*) – List of the metadata.
|
||
|
||
## Attributes
|
||
|
||
### values
|
||
|
||
<Attribute id="qiskit.primitives.EstimatorResult.values" attributeTypeHint="np.ndarray[Any, np.dtype[np.float64]]" />
|
||
|
||
### metadata
|
||
|
||
<Attribute id="qiskit.primitives.EstimatorResult.metadata" attributeTypeHint="list[dict[str, Any]]" />
|
||
</Class>
|
||
|