Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generalize expectation value and variance to all model moments #1008

Open
WrathfulSpatula opened this issue May 22, 2024 · 0 comments
Open
Labels
enhancement unitaryhack-bounty Unitary Fund Hackathon

Comments

@WrathfulSpatula
Copy link
Collaborator

WrathfulSpatula commented May 22, 2024

Methods that return expectation values or variance can be thought of as on a continuum of "model moments." Expectation value (mean) is "the first model moment"; variance (centered on mean) is "the second model moment"; besides the first model moment, for a general real "x", "the x model moment" is the x-th power of the per-dimension eigenvalue less the first model moment or mean, like $y _x= \sum_n (v_n - y_1)^x$.

Expectation value and variance methods should be generalized as instances of statistical "moment", in unified output methods. This entails QInterface implementation, shared library wrapping, and maintenance of existing ad hoc optimizations on expectation value and variance queries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement unitaryhack-bounty Unitary Fund Hackathon
Projects
None yet
Development

No branches or pull requests

1 participant