qiskit-documentation/docs/api/qiskit/0.31/qiskit.algorithms.Amplitude...

117 lines
3.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: AmplitudeEstimatorResult (v0.31)
description: API reference for qiskit.algorithms.AmplitudeEstimatorResult in qiskit v0.31
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit.algorithms.AmplitudeEstimatorResult
---
# AmplitudeEstimatorResult
<Class id="qiskit.algorithms.AmplitudeEstimatorResult" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.18/qiskit/algorithms/amplitude_estimators/amplitude_estimator.py" signature="AmplitudeEstimatorResult" modifiers="class">
Bases: `qiskit.algorithms.algorithm_result.AlgorithmResult`
The results object for amplitude estimation algorithms.
## Methods
<span id="qiskit-algorithms-amplitudeestimatorresult-combine" />
### combine
<Function id="qiskit.algorithms.AmplitudeEstimatorResult.combine" signature="AmplitudeEstimatorResult.combine(result)">
Any property from the argument that exists in the receiver is updated. :type result: `AlgorithmResult` :param result: Argument result with properties to be set.
**Raises**
**TypeError** Argument is None
**Return type**
`None`
</Function>
## Attributes
### circuit\_results
<Attribute id="qiskit.algorithms.AmplitudeEstimatorResult.circuit_results">
Return the circuit results. Can be a statevector or counts dictionary.
**Return type**
`Union`\[`ndarray`, `Dict`\[`str`, `int`], `None`]
</Attribute>
### confidence\_interval
<Attribute id="qiskit.algorithms.AmplitudeEstimatorResult.confidence_interval">
Return the confidence interval for the amplitude (95% interval by default).
**Return type**
`Tuple`\[`float`, `float`]
</Attribute>
### confidence\_interval\_processed
<Attribute id="qiskit.algorithms.AmplitudeEstimatorResult.confidence_interval_processed">
Return the post-processed confidence interval (95% interval by default).
**Return type**
`Tuple`\[`float`, `float`]
</Attribute>
### estimation
<Attribute id="qiskit.algorithms.AmplitudeEstimatorResult.estimation">
Return the estimation for the amplitude in $[0, 1]$.
**Return type**
`float`
</Attribute>
### estimation\_processed
<Attribute id="qiskit.algorithms.AmplitudeEstimatorResult.estimation_processed">
Return the estimation for the amplitude after the post-processing has been applied.
**Return type**
`float`
</Attribute>
### num\_oracle\_queries
<Attribute id="qiskit.algorithms.AmplitudeEstimatorResult.num_oracle_queries">
Return the number of Grover oracle queries.
**Return type**
`int`
</Attribute>
### post\_processing
<Attribute id="qiskit.algorithms.AmplitudeEstimatorResult.post_processing">
Return a handle to the post processing function.
**Return type**
`Callable`\[\[`float`], `float`]
</Attribute>
### shots
<Attribute id="qiskit.algorithms.AmplitudeEstimatorResult.shots">
Return the number of shots used. Is 1 for statevector-based simulations.
**Return type**
`int`
</Attribute>
</Class>