Last active
August 24, 2020 01:57
-
-
Save stevenheidel/dad85b65ccff0570f849b3ef31a844ca to your computer and use it in GitHub Desktop.
medium-braket-1.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.circuits import Circuit | |
from braket.devices import LocalSimulator | |
coin_flip_circuit = Circuit().h(0) | |
simulator = LocalSimulator() | |
result = simulator.run(coin_flip_circuit, shots=1000).result() | |
result.measurement_counts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment