feat(PhyslibAlpha): Robertson–Schrödinger for density states and ofDensity_rankOne - #1676
Conversation
…nsity_rankOne Add expectation_ofDensity, covariance_ofDensity, variance_ofDensity, robertson_schrodinger_ofDensity, trace_rankOne_self and ofDensity_rankOne in HilbertSpace/State/DensityUncertainty.lean. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thank you for this pull-request (PR). If this is your first PR, welcome to the community! Below is what will happen next. Please read carefully if you are not familiar with the process. You may open other PRs while this one is being reviewed, and can stack PRs on top of each other, so don't let these steps slow you down.
Tip: The easiest way to get have a fast review is to submit a PR that is small and self-contained, and has clear documentation explaining why things are the way they are in your chages. If you have any problems or questions, please reach out to the community on the Zulip. |
|
hy guys i finish timeroot and joseph observation inside this one new PR, let this one describes the robertson-schroedinguer clasical inequality, mixed states with "p" density. this isn'a new poove, acctualy rehuse the Robertson-Schroedinguer canonical, becouse any "p" possitive with trace one all ready it's an state (ofDensity) |
jstoobysmith
left a comment
There was a problem hiding this comment.
This looks good to me. I've approved. Many thanks.
Following the discussion on #1587: the algebraic
robertson_schrodingeralready covers mixed states, sinceofDensityis a state onH →L[ℂ] H. This PR makes that explicit, writing the uncertainty quantities of a density state as traces againstρ, and connects it to the vector-state file from #1660 by showing that vector states are the rank-one density states. Everything goes through the existingCStarAlgebra.UncertaintyAPI; no new definitions.Reviewer map, in file order (
PhyslibAlpha/AlgebraicFramework/HilbertSpace/State/DensityUncertainty.lean, new):expectation_ofDensity,covariance_ofDensity,variance_ofDensity:⟨a⟩ = Re Tr(a ρ)andCov/Var = Re Tr(δa δb ρ)withδa = centered a.robertson_schrodinger_ofDensity:robertson_schrodingerforofDensity, stated entirely in traces.trace_rankOne_self,ofDensity_rankOne(finite-dimensionalH):Tr |ψ⟩⟨ψ| = 1for a unit vector, andofDensityof|ψ⟩⟨ψ|equalsofVec.PhyslibAlpha.lean: registers the new module. No declarations removed.AI assistance: developed with Claude (Anthropic). I have reviewed every statement and certify it.