Adds qBraid as a remote REST target in CUDA-Q#4328
Open
TheGupta2012 wants to merge 8 commits intoNVIDIA:mainfrom
Open
Adds qBraid as a remote REST target in CUDA-Q#4328TheGupta2012 wants to merge 8 commits intoNVIDIA:mainfrom
TheGupta2012 wants to merge 8 commits intoNVIDIA:mainfrom
Conversation
* working implementation using openQasm * modified and added test files(incomplete) * fix emulate command alignment * update polling + format * update polling interval and make code more readable * remove ionq fields from target-arguments * fix formatting * Add qBraid mock python server for testing Signed-off-by: Ryan Hill <ryanjh88@gmail.com> * Update __init__.py Signed-off-by: Ryan Hill <ryanjh88@gmail.com> * QbraidTester running correctly * added documentation for qbraid --------- Signed-off-by: Ryan Hill <ryanjh88@gmail.com> Co-authored-by: feelerx <superfeelerxx@gmail.com>
This file contains hidden or 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
Adds qBraid as a remote REST target in CUDA-Q. Kernels authored via
cudaq.set_target("qbraid", ...) are lowered to OpenQASM 2.0, submitted to the qBraid v2
API, and results are parsed back into cudaq::sample_result — with zero dependency on
the external qbraid-sdk Python package.
What's included
qbraid__creg__[N];. Required to unblock hardware routes (Rigetti, IQM Garnet,
IonQ-via-Braket); see helper comment for the per-backend failure modes fixed.
race.
Testing
future serialization, api_key-via-target-arg, job failure, result retry, retry
exhaustion
against the mock
backends