-
Notifications
You must be signed in to change notification settings - Fork 21
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
Implement direct-access API #164
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements the direct-access API. This API allows evaluating quantum circuits on AQT devices by communicating with the device directly.
The
AQTProvider.get_direct_access_backend()
method retrieves a Qiskit backend using the direct-access API. The returned object is mostly compatible with the instances targeting cloud resources returned byAQTProvider.get_backend()
.The API reference in the documentation was modified to include the direct-access APIs and datastructures. Adding those to the user guide should be done in a later step, once the use case stabilizes.
Details and comments
Compatibility and differences between
AQTResource
andAQTDirectAccessResource
BackendV2
interface.run()
method differ (AQTJob
vsAQTDirectAccessJob
). Both job types implement Qiskit'sJobV1
.submit()
andresult()
in the job types differ. ForAQTJob
, the circuit batch is submitted when callingsubmit()
. ForAQTDirectAccessJob
, the job batch is iteratively submitted when callingresult()
.test_execution
, where most test cases are run with both backend types.Offline simulators
Since there would (should!) be no behavior difference between a direct-access offline simulator and a cloud-like one, only the latter (historically first) kind is provided. The former is only available in tests, to ensure the common behavior.
Authentication
The provider forwards its token on the direct-access API, whether used or not.