Skip to content

Instantly share code, notes, and snippets.

@stevenheidel
Last active August 24, 2020 15:45
Show Gist options
  • Save stevenheidel/61c48376b958b96e4d427057af62998c to your computer and use it in GitHub Desktop.
Save stevenheidel/61c48376b958b96e4d427057af62998c to your computer and use it in GitHub Desktop.
medium-braket-2.py
from braket.aws import AwsDevice
# tuple of S3 bucket name and folder name to use for results
s3_folder = ("[insert s3 bucket name]", "simulation-output")
device = AwsDevice("arn:aws:braket:::device/qpu/rigetti/Aspen-8")
task = device.run(coin_flip_circuit, s3_folder, shots=1000)
task.state()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment