Expectation Value

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

for input $\hat{O}$ and $\psi$ calculates $< \psi | \hat{O} | \psi>$.

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 $<\hat{O}> = < \psi | \hat{O} | \psi>$

Content

For convenience, the node displays its result directly.