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

Better error message when using local detuning without experimental capabilities enabled

未关闭
#1,070 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
documentation
主要语言
Python
星标
373
派生
195
平均合并
4 天 15 小时
30 天内合并 PR
8

描述

**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.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。