qiskit.algorithms.MaximumLikelihoodAmplitudeEstimation.compute_confidence_interval¶
- static MaximumLikelihoodAmplitudeEstimation.compute_confidence_interval(result, alpha, kind='fisher', apply_post_processing=False)[소스]¶
Compute the alpha confidence interval using the method kind.
The confidence level is (1 - alpha) and supported kinds are 〈fisher〉, 〈likelihood_ratio〉 and 〈observed_fisher〉 with shorthand notations 〈fi〉, 〈lr〉 and 〈oi〉, respectively.
- 매개변수
result (
MaximumLikelihoodAmplitudeEstimationResult
) – A maximum likelihood amplitude estimation result.alpha (
float
) – The confidence level.kind (
str
) – The method to compute the confidence interval. Defaults to 〈fisher〉, which computes the theoretical Fisher information.apply_post_processing (
bool
) – If True, apply post-processing to the confidence interval.
- 반환 형식
Tuple
[float
,float
]- 반환
The specified confidence interval.
- 예외 발생
AlgorithmError – If run() hasn’t been called yet.
NotImplementedError – If the method kind is not supported.