SamplingMinimumEigensolver#

class qiskit.algorithms.minimum_eigensolvers.SamplingMinimumEigensolver[código fonte]#

Bases: ABC

The Sampling Minimum Eigensolver Interface.

Methods

abstract compute_minimum_eigenvalue(operator, aux_operators=None)[código fonte]#

Compute the minimum eigenvalue of a diagonal operator.

Parâmetros:
  • operator (BaseOperator | PauliSumOp) – Diagonal qubit operator.

  • aux_operators (ListOrDict[BaseOperator | PauliSumOp] | None) – Optional list of auxiliary operators to be evaluated with the final state.

Retorno:

A SamplingMinimumEigensolverResult containing the optimization result.

Tipo de retorno:

SamplingMinimumEigensolverResult

classmethod supports_aux_operators()[código fonte]#

Whether computing the expectation value of auxiliary operators is supported.

If the minimum eigensolver computes an eigenstate of the main operator then it can compute the expectation value of the aux_operators for that state. Otherwise they will be ignored.

Retorno:

True if aux_operator expectations can be evaluated, False otherwise

Tipo de retorno:

bool