qiskit-documentation/docs/api/qiskit/0.35/qiskit.primitives.Estimator...

28 lines
1.0 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: EstimatorResult
description: API reference for qiskit.primitives.EstimatorResult
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/0.20/qiskit/primitives/estimator_result.py" signature="EstimatorResult(values, metadata)" modifiers="class">
Bases: `object`
Result of Estimator
```python
result = estimator(circuits, observables, params)
```
where the i-th elements of `result` correspond to the circuit and observable given by `circuit_indices[i]`, `observable_indices[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\[dict]*) list of the metadata.
</Class>