-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathinstallation.html
77 lines (62 loc) · 3.67 KB
/
installation.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<body style="font-family:Arial;">
<h1> Installation </h1>
<i><font size="-1">(updated on November 18, 2020)</font></i>
<br><br>
Bronze is a collection of <b>jupyter notebooks</b>.
<br><br>
We use <b>pyhton (3.6+)</b> as our programming language and <b>Qiskit library</b> to write our quantum programs.
<br><br>
<b>The instructions here are for beginners!</b>
<br><br>
<i> If you have qiskit installed, you may skip the instructions here.</li>
<br><br>
If you have Jupyter notebooks installed, you may install Qiskit library <a href="https://qiskit.org/documentation/install.html" target="blank">by yourself</a> or using the instructions here.</i>
<br><br>
<h2> Install Anaconda</h2>
<ol>
<li> The easiest way to install jupyter notebooks and many python libraries is to install anaconda. <br><br>
<a href="https://www.anaconda.com/products/individual#Downloads" target="_blank">Download anaconda</a> <br><br>
<img src="images/anaconda-download.png" width="600px" border="1"><br><br>
<li>We downloaded and installed the version for Windows (64-bit). <br><br>
<img src="images/anaconda-install1.png" width="300px" border="1">
<img src="images/anaconda-install2.png" width="300px" border="1">
<img src="images/anaconda-install3.png" width="305px" border="1"><br><br>
</ol>
<h2> Jupyter Notebooks</h2>
<ol>
<li> After installing Anaconda, execute Jupyter Notebooks from start menu. Then, the dashboard of Jupyter notebooks should be opened on the browser. <br><br>
<i>We suggest you to keep open the dashboard all the time!</i><br><br>
<img src="images/anaconda-jupyter1.png" width="220px" border="1">
<img src="images/anaconda-jupyter2.png" width="550px" border="1"> <br><br>
<li> The notebooks you will work with should be accesible from the dashboard, e.g., put them under a sub-directory of Desktop, Documents, Downloads, etc. <br><br>
In the following example, we downloaded our zip file under "Desktop/Bronze" and then extract the files there.
<br><br>
<i>Always extract the zip files before accessing from jupyter notebooks!</i><br><br>
<img src="images/anaconda-folder.png" width="500px" border="1"> <br><br>
</ol>
<h2>Install Qiskit</h2>
<ol>
<li> Open the notebook "before-workshop.ipynb" from the dashboard. <br><br>
<img src="images/qiskit-before-workshop.png" width="700px" border="1"> <br><br>
<li> Open "Qiskit installation and test". <br><br>
<img src="images/qiskit-install0.png" width="700px" border="1"> <br><br>
<li> When you execute the first cell, you should get an error if Qiskit is not installed on your system. <br><br>
<img src="images/qiskit-install1.png" width="700px" border="1"> <br><br>
<li> To install Qiskit, run the cell shown below. <br><br>
<img src="images/qiskit-install2.png" width="700px" border="1"> <br><br>
<li> We did not recieve any error during the installation. <br><br>
<img src="images/qiskit-install3.png" width="700px" border="1"> <br><br>
<li> The next step is to restart to kernel. (Otherwise, the changes in the system will not be reflected immedeately.) <br><br>
<img src="images/qiskit-install4.png" width="350px" border="1"> <img src="images/qiskit-install5.png" width="465px" border="1"> <br><br>
</ol>
<h2>Test</h2>
It is time to test the system.
<ol>
<li> Run the cell shown below to create a quantum circuit with two entangled quantum bits. <br><br>
<img src="images/qiskit-test1.png" width="700px" border="1"><br><br>
<li> Run the next two cells to draw the circuit and to execute the circuit on local simulator 1024 times.<br><br>
<img src="images/qiskit-test2.png" width="700px" border="1"><br><br>
</ol>
<br><br>
<i><font size="+1">The installation is completed. Enjoy Bronze :)</font></i>
<br><br><br><br><br><br><br><br>