EstimatorBackend

EstimatorBackend#

class iqm.qaoa.backends.EstimatorBackend[source]#

Bases: ABC

The ABC for estimator backends, i.e., those calculating the expected value of the Hamiltonian.

Methods

estimate(qaoa_object)

The abstract method for estimate() of backends subclassed from EstimatorBackend.

abstract estimate(qaoa_object)[source]#

The abstract method for estimate() of backends subclassed from EstimatorBackend.

The input qaoa_object includes the training parameters (angles), which are typically used in estimation of the energy.

Parameters:

qaoa_object (QAOA) – The QAOA object whose energy is to be estimated.

Returns:

The estimated expected value of the Hamiltonian with the quantum state implied by the QAOA object.

Return type:

float