Skip to content

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

Merged
merged 7 commits into from
Jun 26, 2025

Conversation

cqc-alec
Copy link
Collaborator

No description provided.

@cqc-alec cqc-alec requested a review from CalMacCQ June 25, 2025 14:50
@cqc-alec cqc-alec marked this pull request as ready for review June 25, 2025 14:50
@cqc-alec cqc-alec requested a review from yao-cqc as a code owner June 25, 2025 14:50
Copy link
Contributor

@CalMacCQ CalMacCQ left a 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 (
Copy link
Contributor

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?

Copy link
Collaborator Author

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(
Copy link
Contributor

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?

Copy link
Collaborator Author

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):
Copy link
Contributor

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.

Copy link
Collaborator Author

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?

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.

Copy link
Contributor

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.

@cqc-alec cqc-alec requested a review from CalMacCQ June 26, 2025 12:31
@cqc-alec cqc-alec merged commit f811cb1 into main Jun 26, 2025
8 of 9 checks passed
@cqc-alec cqc-alec deleted the ae/nol4 branch June 26, 2025 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants