-
Notifications
You must be signed in to change notification settings - Fork 92
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
Add Pasqal support #511
Merged
Merged
Add Pasqal support #511
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
azure-quantum/tests/unit/recordings/test_job_submit_pasqal_default_input_params.yaml
Dismissed
Show resolved
Hide resolved
azure-quantum/tests/unit/recordings/test_job_submit_pasqal_dict_input_params.yaml
Dismissed
Show dismissed
Hide dismissed
azure-quantum/tests/unit/recordings/test_job_submit_pasqal_typed_input_params.yaml
Dismissed
Show dismissed
Hide dismissed
Could you add a code example to show how user will use qdk to submit job to pasqal in the PR description? |
shenyingjun
reviewed
Oct 20, 2023
@masenol could you review the PR and confirm parameters are all set correctly |
masenol
reviewed
Oct 23, 2023
Looks good to me @shenyingjun @tncc |
masenol
approved these changes
Oct 23, 2023
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.
Example code:
from azure.quantum import Workspace
from azure.quantum.target.rigetti import Result, Rigetti, RigettiTarget, InputParams
from azure.quantum.target.pasqal import Result, Pasqal, PasqalTarget, InputParams
import cirq
workspace = Workspace(
resource_id="WORKSPACE_RESOURCE_ID_HERE",
location="LOCATION_HERE"
)
target = Pasqal(
workspace=workspace,
name=PasqalTarget.SIM_EMU_FREE
)
with open("pasqal.sim", "r") as f:
test_pulser = f.read()
job = target.submit(
input_data=test_pulser,
name="test_pulser",
)
print(f"Queued job: {job.id}")
job.wait_until_completed()
print(f"Job completed with state: {job.details.status}")
result = Result(job) # This throws an exception if the job failed
print(result.data)