-
Notifications
You must be signed in to change notification settings - Fork 65
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
Enhanced ValueError
messages
#148
Comments
Hi @romainfd , thanks for the suggestion! I will tag it as a "good first issue" for whoever wants to tackle it. |
Hi! I've been doing so for the new functions Fortunately, some of them already do, like Anyhow, this will be a good opportunity to:
By the way, I found almost no checks for Do we want to add checks and throw an explicit ValueError with a message rather than this default behavior ? This is already the case in |
@LaurentAjdnik thanks! I agree with your suggestions, although I think it would be better to do them in a separate PR if possible, otherwise the one you're currently working on might get too big. Regarding checks for |
…), Enhanced `ValueError` messages (#148), Type hinting for `Register` (#16) (#155) * Update register.py * Add max_connectivy() * Test * Adding hexagon() and max_connectivity() * Type hinting and parameters checks * Shift atom generation in full layers for consistency * Remove unused variables to avoid flake8 warnings * Corrections for PR #155
@HGSilveri: You can assign this one to me, as it is related to #157. |
@LaurentAjdnik If you're satisfied with the changes from your last PR, I'll close this, just let me know. |
Yup, let's close this one. We might PR a few adjustments in the future but no need to keep this issue open. |
When using values out of range (examples below for qubit positions and pulse detuning), the
ValueError
exception could indicate the minimum/maximum authorized value to make fixing the issue faster. The value is used in the test just above so printing it looks easy at first glance.Illustration for min qubits distance
Illustration for max pulse detuning
The text was updated successfully, but these errors were encountered: