Spanish
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.quantum_info.Statevector.expectation_value

Statevector.expectation_value(oper, qargs=None)[fuente]

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.

Devuelve

the expectation value.

Tipo del valor devuelto

complex