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

Support for Sum observable type in Expectation, Variance, AdjointGradient result types for shots=0 #15

Open
kshyatt-aws opened this issue May 8, 2024 · 0 comments
Labels
good first issue Good for newcomers

Comments

@kshyatt-aws
Copy link
Member

Describe the feature you'd like
Currently, Amazon Braket's on-demand state vector simulator only supports the Sum observable type for AdjointGradient results. However, this is a natural construct for Expectation and Variance when shots=0 (for exact, non-sampled workloads).

How would this feature be used? Please describe.
Users would be able to construct Sum observables and measure them in Expectation and Variance when shots=0.

Describe alternatives you've considered
Right now, users have to explicitly create Expectation/Variances for each term in the sum and combine them by hand.

Additional context
This is another opportunity to carefully use dynamic threading for smaller circuits for a performance improvement.

@kshyatt-aws kshyatt-aws added the good first issue Good for newcomers label May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant