EstimatorStateVector#
Module: iqm.qaoa.backends
- class iqm.qaoa.backends.EstimatorStateVector[source]#
Bases:
EstimatorBackendThe estimator class for calculating the expectation value using statevector simulation.
Methods
Calculates the expectation value of the Hamiltonian from running state-vector simulation in
qiskit.The method for estimating the exp.
- estimate(qaoa_object)[source]#
Calculates the expectation value of the Hamiltonian from running state-vector simulation in
qiskit.Builds a
QuantumCircuitfor 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).
- estimate_correlations_z(qaoa_object, target_qubits)[source]#
The method for estimating the exp. value of products of Z operators on
target_qubits.Using statevector simulator, calculating any expectation value exactly is relatively straightforward.
- Parameters:
- Returns:
The estimated expected value of product of Z operators on given
target_qubits. Or a list of those, iftarget_qubitswas given as a list.- Return type:
Inheritance
