qiskit.algorithms.MaximumLikelihoodAmplitudeEstimation.compute_mle¶
- MaximumLikelihoodAmplitudeEstimation.compute_mle(circuit_results, estimation_problem, num_state_qubits=None, return_counts=False)[fuente]¶
Compute the MLE via a grid-search.
This is a stable approach if sufficient gridpoints are used.
- Parámetros
circuit_results (list[dict[str, int] | np.ndarray]) – A list of circuit outcomes. Can be counts or statevectors.
estimation_problem (EstimationProblem) – The estimation problem containing the evaluation schedule and the number of likelihood function evaluations used to find the minimum.
num_state_qubits (int | None) – The number of state qubits, required for statevector simulations.
return_counts (bool) – If True, returns the good counts.
- Devuelve
The MLE for the provided result object.
- Tipo del valor devuelto
float | tuple[float, list[float]]