The readme of this repo contains instructions for how to setup your code environment. The slides for both parts of the tutorial are available here.
To set up the environment for the Jupyter notebooks, please choose from one of the following options:
-
Clone this repository to your local machine.
git clone https://github.com/unitaryfund/qce24-tutorial.git cd qce24-tutorial
-
Install the necessary requirements into an existing Python environment or create a new Python environment and then install the requirements.
pip install mitiq
To run the notebooks virtually, you can use Codespaces: To use Codespaces, an active Github account is required.
- In the repository, select the green Code button, switch to the Codespaces tab, and click the
Create codespace on main
button.
-
When Codespaces has loaded, select the first Jupyter notebook, part1_zne.ipynb from the repository files on the left.
-
At the bottom of the screen a pop-up will recommend installing Python. Click the
Install
button. -
When python has finished installing, close the
Extension: Python
tab to return to thepart1_zne.ipynb
notebook.
-
On the right side of the notebook, click
Select Kernel
and then chooseInstall/Enable suggested extensions Python + Jupyter
-
After the extensions finish installing, select
Python Environments...
and thenPython 3.12.1 ~/.python/current/bin/python
from theSelect Another Kernel
window. -
With the Python environment setup, run the
%pip install mitiq
code block to install Mitiq into the Python environment.