qiskit.chemistry.algorithms.AdaptVQE.evaluate_operators¶
-
AdaptVQE.
evaluate_operators
(state, operators)¶ Evaluates additional operators at the given state.
- Parameters
state (
Union
[str
,dict
,Result
,list
,ndarray
,Statevector
,QuantumCircuit
,Instruction
,OperatorBase
]) – any kind of input that can be used to specify a state. See alsoStateFn
for more details.operators (
Union
[WeightedPauliOperator
,OperatorBase
,list
,dict
]) – either a single, list or dictionary ofWeightedPauliOperator``s or any kind of operator implementing the ``OperatorBase
.
- Return type
Union
[float
,None
,List
[Optional
[float
]],Dict
[str
,List
[Optional
[float
]]]]- Returns
The expectation value of the given operator(s). The return type will be identical to the format of the provided operators.