Skip to content

Instantly share code, notes, and snippets.

@hariby
Last active June 6, 2022 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hariby/c584d32069fa653be1b120a15e65c7de to your computer and use it in GitHub Desktop.
Save hariby/c584d32069fa653be1b120a15e65c7de to your computer and use it in GitHub Desktop.
import boto3
region_name='us-east-1'
device_arn="arn:aws:braket:::device/quantum-simulator/amazon/sv1"
job_arn = 'arn:aws:braket:us-east-1:123456789012:job/my-hybrid-job-name' # update this line
braket = boto3.client('braket', region_name=region_name)
response = braket.search_quantum_tasks(filters=[{
'name': 'jobArn',
'operator': 'EQUAL',
'values': [job_arn]
}], maxResults=100)
# note: better to use Paginators
for task in response['quantumTasks']:
print(task['quantumTaskArn'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment