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

Infrastructure for superpositions #47

Open
cscherrer opened this issue May 3, 2022 · 0 comments
Open

Infrastructure for superpositions #47

cscherrer opened this issue May 3, 2022 · 0 comments

Comments

@cscherrer
Copy link
Collaborator

Users can build a SuperpositionMeasure in a few ways. We need a + b and sum((a,b)) to result in the same thing. I think we should have one method to handle both cases. Whether that's a method on Tuples or a ... method mostly comes down to performance and which is more natural to code.

There's a fair amount more to do for general superpositions. In the end we need a data structure that encodes how the base measures are related, storing everything in a tree structure. That will make it easy to compute things efficiently, since it will let us share log-density computations. It will also make it easier to fold more measures into an existing superposition.

We'll also need to build the logmass API we've talked about before.

Originally posted by @cscherrer in #46 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant