Last active
August 24, 2020 15:45
-
-
Save stevenheidel/61c48376b958b96e4d427057af62998c to your computer and use it in GitHub Desktop.
medium-braket-2.py
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
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