qiskit.quantum_info.Statevector.expectation_value¶
- Statevector.expectation_value(oper, qargs=None)[código fonte]¶
Compute the expectation value of an operator.
- Parâmetros
oper (Operator) – an operator to evaluate expval of.
qargs (None or list) – subsystems to apply operator on.
- Retorno
the expectation value.
- Tipo de retorno
complex