Expectation values and centered vectors #
For a partial linear map T on a complex inner product space and ψ ∈ T.domain, this file
defines the expectation value and the centered vector Tψ - ⟨T⟩_ψ ψ.
Main definitions #
LinearPMap.expectedValue: the real part of⟪ψ, Tψ⟫_ℂ.LinearPMap.centered: the centered vectorTψ - ⟨T⟩ψ.
Main statements #
LinearPMap.expectedValue_eq_inner: for symmetricT, the complex inner product is real and equals the real expectation value coerced toℂ.
References #
Expectation value re ⟪ψ, Tψ⟫_ℂ for ψ ∈ T.domain.
For symmetric T, this agrees with ⟪ψ, Tψ⟫_ℂ after coercion from ℝ;
see expectedValue_eq_inner.
Equations
- T.expectedValue ψ = (inner ℂ (↑ψ) (↑T ψ)).re
Instances For
The expectation value, unfolded as a real part.
If T is symmetric, ⟪ψ, Tψ⟫_ℂ is the expectation value, coerced to ℂ.
Reverse orientation of LinearPMap.expectedValue_eq_inner.
The centered vector Tψ - ⟨T⟩_ψ ψ.
Equations
- T.centered ψ = ↑T ψ - ↑(T.expectedValue ψ) • ↑ψ
Instances For
The centered vector, unfolded to its raw expression.
A centered vector vanishes exactly when Tψ = ⟨T⟩_ψ ψ.
For a unit vector and symmetric T, the centered vector is orthogonal to the state.
The conjugate orientation of LinearPMap.inner_state_centered_eq_zero.