Expectation Value

Calculate the expectation-value of an arbitrary Operator with regard to an arbitrary state. 

for input $\hat{O}$ and $\psi$ calculates $\langle \psi | \hat{O} | \psi \rangle$.

Inputs

  • $\hat{O}$: Operator - the operator to calculate the expectation-value of
  • $\psi$: state - the state the with regard to which to calculate the expectation-value.

Outputs

  • Scalar: real number - the resulting expectation-value¬†$\langle \hat{O} \rangle =\langle \psi | \hat{O} | \psi \rangle$

Content

For convenience, the node displays its result directly.