MatrixOperator.evaluate_with_result

MatrixOperator.evaluate_with_result(result, statevector_mode=True, use_simulator_snapshot_mode=None, circuit_name_prefix='')[source]

Use the executed result with operator to get the evaluated value.

Parameters
  • result (qiskit.Result) – the result from the backend

  • statevector_mode (bool) – mode

  • use_simulator_snapshot_mode (bool) – uses simulator operator mode

  • circuit_name_prefix (str, optional) – a prefix of circuit name

Returns

the mean value float: the standard deviation

Return type

float

Raises

AquaError – if Operator is empty