SamplingMinimumEigensolver#

class qiskit.algorithms.minimum_eigensolvers.SamplingMinimumEigensolver[ソース]#

ベースクラス: ABC

The Sampling Minimum Eigensolver Interface.

Methods

abstract compute_minimum_eigenvalue(operator, aux_operators=None)[ソース]#

Compute the minimum eigenvalue of a diagonal operator.

パラメータ:
  • operator (BaseOperator | PauliSumOp) – Diagonal qubit operator.

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

戻り値:

A SamplingMinimumEigensolverResult containing the optimization result.

戻り値の型:

SamplingMinimumEigensolverResult

classmethod supports_aux_operators()[ソース]#

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.

戻り値:

True if aux_operator expectations can be evaluated, False otherwise

戻り値の型:

bool