amazon-braket / amazon-braket/amazon-braket-sdk-python

Better error message when using local detuning without experimental capabilities enabled

Đang mở
#1,070 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
documentation
Ngôn ngữ chính
Python
Star
373
Fork
195
Merge trung bình
4 ngày 15 giờ
Pull request đã merge (30 ngày)
8

Mô tả

**What did you find confusing? Please describe.**
If local detuning is not enabled, the `local_detuning_parameters` is `None`, and [the discretization is not performed](https://github.com/amazon-braket/amazon-braket-sdk-python/blob/58593bcb4338f51615d2410aa72244b59399fcb1/src/braket/ahs/local_detuning.py#L143). When running a program with local detuning, one would get error `All driving and local detuning time series must cover the same time span. (type=value_error)"` because discretization is done in driving but not in local detuning. However, the fundamental reason is that local detuning is not enabled. The current error message is confusing and not actionable.

**Describe how documentation can be improved**
Inform about the experimental capabilities, rather than only throwing error related discretization at a later stage.

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.