Skip to content
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 6 commits into from
Oct 23, 2023
Merged

Add Pasqal support #511

merged 6 commits into from
Oct 23, 2023

Conversation

tncc
Copy link
Contributor

@tncc tncc commented Sep 12, 2023

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)

@tncc tncc changed the title First pass of pasqal checkin Add Pasqal support Oct 18, 2023
@shenyingjun
Copy link
Contributor

Could you add a code example to show how user will use qdk to submit job to pasqal in the PR description?

@shenyingjun
Copy link
Contributor

@masenol could you review the PR and confirm parameters are all set correctly

@tncc tncc enabled auto-merge (squash) October 20, 2023 23:30
@tncc tncc disabled auto-merge October 20, 2023 23:31
@masenol masenol closed this Oct 23, 2023
@masenol masenol reopened this Oct 23, 2023
@masenol masenol self-requested a review October 23, 2023 17:31
@masenol
Copy link
Contributor

masenol commented Oct 23, 2023

@masenol could you review the PR and confirm parameters are all set correctly

Looks good to me @shenyingjun @tncc

@tncc tncc merged commit f8e053b into main Oct 23, 2023
8 checks passed
@tncc tncc deleted the timcook/pasqal branch October 23, 2023 22:40
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.

3 participants