-
Notifications
You must be signed in to change notification settings - Fork 15
Add support for QuantinuumBackend
constructed with offline data
#605
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks nice, just have a few questions.
@@ -20,6 +20,12 @@ | |||
from .api_wrappers import ( | |||
QuantinuumAPIOffline as QuantinuumAPIOffline, # noqa: PLC0414 | |||
) | |||
from .data import ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this aliasing needed here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was following the existing pattern, but I can't see a reason for it. Will change these files.
|
||
|
||
"""Data characterizing H2 devices and emulators""" | ||
H2 = QuantinuumBackendData( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty sure they do but do H2-1
and H2-2
have identical data fields?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes.
@@ -260,6 +261,12 @@ class _LocalEmulatorConfiguration: | |||
noisy_simulation: bool | |||
|
|||
|
|||
class BackendOfflineError(Exception): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So just to check will this error be given when the user attempts to make a call to process_circuits
or something without specifying local_emulator=False
in QuantinuumBackendData
?
Could be worth adding an error message saying that L4 submisson is no longer supported and directing the user to Nexus instead.
Maybe thats a change for a follow up PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So just to check will this error be given when the user attempts to make a call to
process_circuits
or something without specifyinglocal_emulator=False
inQuantinuumBackendData
?
Yes, if the user provided a data
parameter (and local_emulator=False
).
Could be worth adding an error message saying that L4 submisson is no longer supported and directing the user to Nexus instead.
There is already a warning message given in this case; we do still want to support it for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me. Thanks Alec.
No description provided.