Skip to content

Instantly share code, notes, and snippets.

@stevenheidel
Last active August 24, 2020 01:57
Show Gist options
  • Save stevenheidel/dad85b65ccff0570f849b3ef31a844ca to your computer and use it in GitHub Desktop.
Save stevenheidel/dad85b65ccff0570f849b3ef31a844ca to your computer and use it in GitHub Desktop.
medium-braket-1.py
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