@@ -3,8 +3,8 @@ Interactive tutorial notebooks for pyQuil and Forest
3
3
4
4
[ ![ Binder] ( https://mybinder.org/badge_logo.svg )] [ binder ]
5
5
[ ![ pipeline status] [ gitlab-badge ]] [ gitlab-project ]
6
- [ ![ github release] [ github-badge ]] [ github-release ]
7
6
[ ![ docker pulls] [ docker-badge ]] [ docker-image ]
7
+ [ ![ github release] [ github-badge ]] [ github-release ]
8
8
9
9
This is a Binder repository containing tutorial notebooks for learning about [ pyQuil] [ pyquil ] and
10
10
the Forest SDK ([ quilc] [ quilc ] and the [ QVM] [ qvm ] ). If you'd like to add a notebook, or change an
@@ -29,6 +29,38 @@ http://127.0.0.1:8888/?token=TOKEN
29
29
Copy paste the above URL into your browser, replacing 8888 with ` PORT ` . This will bring up the
30
30
JupyterLab interface.
31
31
32
+ Running the notebooks without using Docker
33
+ ------------------------------------------
34
+
35
+ We recommend using the Binder link above, or following the Docker-based instructions, if all
36
+ you want to do is run the notebooks. This is because it requires no setup on your end (except
37
+ for maybe [ installing Docker] [ docker-docs ] ). However, if you'd like to run the notebooks locally
38
+ without Docker, or if you'd like to make a pull request and contribute your own tutorial, you'll
39
+ have to set up a Python environment with the necessary requirements installed. Normally, these are
40
+ defined in a ` requirements.txt ` file, but adding one to this repo would cause Binder to use that
41
+ for its configuration instead of the ` Dockerfile ` . Thus, we provide the requirements for the
42
+ tutorials as a convenient ` extras_require ` extension to pyQuil's [ setup.py] [ pyquil-setup ] file.
43
+ Thus, run the following command in your Python environment to install all the necessary
44
+ requirements:
45
+
46
+ ``` bash
47
+ pip install " pyquil[tutorials]"
48
+ ```
49
+
50
+ Then, assuming you've cloned this repository and you're in its top-level directory, running
51
+ ` jupyter notebook ` should be all you need to get started!
52
+
53
+ Contributing your own tutorial notebook
54
+ ---------------------------------------
55
+
56
+ As mentioned above, if you'd like to contribute your own tutorial, or improve an existing one,
57
+ you can make a pull request to this repository. The only caveat to this is that, if you add a
58
+ notebook that depends on a third-party library that is not currently installed in the
59
+ [ ` rigetti/forest-notebook ` ] [ forest-notebook ] Docker image (see the next section for more info),
60
+ you will have to add the requirement to the ` tutorials ` entry of the ` extras_require ` section
61
+ in pyQuil's [ setup.py] [ pyquil-setup ] file, and wait for the changes to take effect in the
62
+ following release.
63
+
32
64
Building your own Forest-backed Binder repository
33
65
-------------------------------------------------
34
66
@@ -43,6 +75,7 @@ bottom of the README of the [rigetti/forest-notebook][forest-notebook-repo] repo
43
75
[ benchmarking ] : https://github.com/rigetti/forest-benchmarking
44
76
[ binder ] : https://mybinder.org/v2/gh/rigetti/forest-tutorials/master?urlpath=lab/tree/Welcome.ipynb
45
77
[ docker-badge ] : https://img.shields.io/docker/pulls/rigetti/forest-tutorials.svg
78
+ [ docker-docs ] : https://docs.docker.com/
46
79
[ docker-image ] : https://hub.docker.com/r/rigetti/forest-tutorials
47
80
[ forest-notebook ] : https://hub.docker.com/r/rigetti/forest-notebook
48
81
[ forest-notebook-repo ] : https://github.com/rigetti/forest-notebook
@@ -51,5 +84,6 @@ bottom of the README of the [rigetti/forest-notebook][forest-notebook-repo] repo
51
84
[ gitlab-badge ] : https://gitlab.com/rigetti/forest/forest-tutorials/badges/master/pipeline.svg
52
85
[ gitlab-project ] : https://gitlab.com/rigetti/forest/forest-tutorials/commits/master
53
86
[ pyquil ] : https://github.com/rigetti/pyquil
87
+ [ pyquil-setup ] : https://github.com/rigetti/pyquil/blob/master/setup.py
54
88
[ qvm ] : https://github.com/rigetti/qvm
55
89
[ quilc ] : https://github.com/rigetti/quilc
0 commit comments