Korean
언어
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.quantum_info.Statevector.expectation_value

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

Compute the expectation value of an operator.

매개변수
  • oper (Operator) – an operator to evaluate expval of.

  • qargs (None or list) – subsystems to apply operator on.

반환

the expectation value.

반환 형식

complex