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 mainbutton.
-
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
Installbutton. -
When python has finished installing, close the
Extension: Pythontab to return to thepart1_zne.ipynbnotebook.
-
On the right side of the notebook, click
Select Kerneland then chooseInstall/Enable suggested extensions Python + Jupyter
-
After the extensions finish installing, select
Python Environments...and thenPython 3.12.1 ~/.python/current/bin/pythonfrom theSelect Another Kernelwindow. -
With the Python environment setup, run the
%pip install mitiqcode block to install Mitiq into the Python environment.

