EstimatorStateVector#

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

Bases: EstimatorBackend

The estimator class for calculating the expectation value using statevector simulation.

Methods

estimate(qaoa_object)

Calculates the expectation value of the Hamiltonian from running state-vector simulation in qiskit.

estimate(qaoa_object)[source]#

Calculates the expectation value of the Hamiltonian from running state-vector simulation in qiskit.

Builds a QuantumCircuit for the QAOA and runs the statevector simulation of the circuit, calculating the expectation value of the energy from the statevector. The calculation includes a constant term (coming from the translation of a QUBO problem to a Hamiltonian).

Parameters:

qaoa_object (QAOA) – The instance of QAOA whose expectation value is to be calculated.

Returns:

The expectation value of the energy of the QAOA state using angles.

Return type:

float