French
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

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.

Paramètres
  • 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.

Renvoie

The MLE for the provided result object.

Type renvoyé

float | tuple[float, list[float]]