Getting started with PyQuil: Quantum Dice example
These examples are based on Dave Yen's blog post: "How to write a quantum program in 10 lines of code (for beginners)".
To run these example notebooks using http://mybinder.org, go to http://go.rigetti.com/quantum-dice.
You can also install run the notebooks on your laptop. To create a virtual environment, run:
conda env create -n pyquil-demo -f environment.yml
This will install all dependencies, such as pyquil
.
To activate the environment, run:
conda ativate pyquil-demo
To start the jupyter notebook server, run:
jupyter notebook
This starts the notebook server, so you can run the example code in the notebooks. Have fun!