amazon-braket / amazon-braket/BraketSimulator.jl

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

Đang mở
#15 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
good first issue
Ngôn ngữ chính
Julia
Star
16
Fork
7
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**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`/`Variance`s 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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.