Loading [MathJax]/jax/output/CommonHTML/jax.js

Expectation values

Expectation values are calculated as ψi|O|ψj. For an n electron wave-function this represents the 3n dimensional integral over the position coordinates of all electrons: ψi|O|ψj=r1r2...rnψi(r1,r1,...rn)O(r1,r1,...rn)ψj(r1,r1,...rn)dr1dr2...drn In Quanty the complex conjugates of the first wavefunction is automatically assumed and expectation values are implemented as multiplication of wavefunctions and operators.

Example.Quanty
-- expectation values of operators are 
-- calculated by multiplying a wavefunction times 
-- an operator times a wavefunction
val = psi1 * Opp * psi2

Index

Print/export