qiskit.algorithms.AmplitudeEstimation.compute_confidence_interval¶
-
static
AmplitudeEstimation.
compute_confidence_interval
(result, alpha=0.05, kind='likelihood_ratio')[source]¶ Compute the (1 - alpha) confidence interval.
- Parameters
result (
AmplitudeEstimationResult
) – An amplitude estimation result for which to compute the confidence interval.alpha (
float
) – Confidence level: compute the (1 - alpha) confidence interval.kind (
str
) – The method to compute the confidence interval, can be ‘fisher’, ‘observed_fisher’ or ‘likelihood_ratio’ (default)
- Return type
Tuple
[float
,float
]- Returns
The (1 - alpha) confidence interval of the specified kind.
- Raises
AquaError – If ‘mle’ is not in self._ret.keys() (i.e. run was not called yet).
NotImplementedError – If the confidence interval method kind is not implemented.