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

Better error message when using local detuning without experimental capabilities enabled #1070

Open
yitchen-tim opened this issue Mar 11, 2025 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@yitchen-tim
Copy link
Contributor

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

@yitchen-tim yitchen-tim added the documentation Improvements or additions to documentation label Mar 11, 2025
@yitchen-tim yitchen-tim changed the title Better error messaging when using local detuning without experimental capabilities enabled Better error message when using local detuning without experimental capabilities enabled Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant