feat(PhyslibAlpha/QuantumMechanics): product states of a product of finite targets - #1717
Conversation
…inite targets 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. |
jstoobysmith
left a comment
There was a problem hiding this comment.
Approved - will merge shortly
da58032
hello guys joseph, timeroot, another short one. what this one does?
it adds "FiniteTarget/ProductState.lean" (236 lines), it comes directly from #1699 (operators on one coordinate). the product state (psy * phi)(a,b) = psy a * phi b describes two uncorrelated coordinates, and an observable acting on one coordinate only sees that coordinate.
1.- "prodVec", "norm_prodVec": the product vector, ||psy * phi|| = ||psy|| ||phi||.
2.- "onFst_prodVec", "onSnd_prodVec": (A * 1)(psy * phi) = A psy * phi and (1 * B)(psy * phi) = psy * B phi.
3.- "onFstObservable", "onSndObservable": an observable acting on one coordinate alone.
4.- "variance", "covariance", "centeredGramDefect": on a product state, the mean, variance, covariance and centered Gram defect of a one-coordinate observable are exactly the ones of the factor state.
why? with this one the uncertainty of one chain can be lifted to a product of chains, one axis at a time.
tks a lot, have a nice day guys, im waiting for the review and happy to make any changes¡