qiskit.algorithms.MaximumLikelihoodAmplitudeEstimation.compute_mle¶
- MaximumLikelihoodAmplitudeEstimation.compute_mle(circuit_results, estimation_problem, num_state_qubits=None, return_counts=False)[source]¶
Compute the MLE via a grid-search.
This is a stable approach if sufficient gridpoints are used.
- Parameters
circuit_results – A list of circuit outcomes. Can be counts or statevectors.
estimation_problem – The estimation problem containing the evaluation schedule and the number of likelihood function evaluations used to find the minimum.
num_state_qubits – The number of state qubits, required for statevector simulations.
return_counts – If True, returns the good counts.
- Returns
The MLE for the provided result object.