Skip to content
This repository was archived by the owner on Aug 21, 2024. It is now read-only.

Commit 3a72faa

Browse files
authored
Add warning on IQ# version to the Notebooks (#107)
1 parent 2e2fbff commit 3a72faa

File tree

4 files changed

+80
-0
lines changed

4 files changed

+80
-0
lines changed

BasicGates/BasicGates.ipynb

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,26 @@
3939
"%package Microsoft.Quantum.Katas"
4040
]
4141
},
42+
{
43+
"cell_type": "markdown",
44+
"metadata": {},
45+
"source": [
46+
"> The package versions in the output of the cell above should always match. If you are running the Notebooks locally and the versions do not match, please install the IQ# version that matches the version of the `Microsoft.Quantum.Katas` package.\n",
47+
"> <details>\n",
48+
"> <summary><u>How to install the right IQ# version</u></summary>\n",
49+
"> For example, if the version of `Microsoft.Quantum.Katas` package above is 0.5.1904.1302, the installation steps are as follows:\n",
50+
">\n",
51+
"> 1. Stop the kernel.\n",
52+
"> 2. Uninstall the existing version of IQ#:\n",
53+
"> dotnet tool uninstall microsoft.quantum.iqsharp -g\n",
54+
"> 3. Install the matching version:\n",
55+
"> dotnet tool install microsoft.quantum.iqsharp -g --version 0.5.1904.1302\n",
56+
"> 4. Reinstall the kernel:\n",
57+
"> dotnet iqsharp install\n",
58+
"> 5. Restart the Notebook.\n",
59+
"> </details>\n"
60+
]
61+
},
4262
{
4363
"cell_type": "markdown",
4464
"metadata": {},

DeutschJozsaAlgorithm/DeutschJozsaAlgorithm.ipynb

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,26 @@
3737
"%package Microsoft.Quantum.Katas"
3838
]
3939
},
40+
{
41+
"cell_type": "markdown",
42+
"metadata": {},
43+
"source": [
44+
"> The package versions in the output of the cell above should always match. If you are running the Notebooks locally and the versions do not match, please install the IQ# version that matches the version of the `Microsoft.Quantum.Katas` package.\n",
45+
"> <details>\n",
46+
"> <summary><u>How to install the right IQ# version</u></summary>\n",
47+
"> For example, if the version of `Microsoft.Quantum.Katas` package above is 0.5.1904.1302, the installation steps are as follows:\n",
48+
">\n",
49+
"> 1. Stop the kernel.\n",
50+
"> 2. Uninstall the existing version of IQ#:\n",
51+
"> dotnet tool uninstall microsoft.quantum.iqsharp -g\n",
52+
"> 3. Install the matching version:\n",
53+
"> dotnet tool install microsoft.quantum.iqsharp -g --version 0.5.1904.1302\n",
54+
"> 4. Reinstall the kernel:\n",
55+
"> dotnet iqsharp install\n",
56+
"> 5. Restart the Notebook.\n",
57+
"> </details>\n"
58+
]
59+
},
4060
{
4161
"cell_type": "code",
4262
"execution_count": null,

Measurements/Measurements.ipynb

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,26 @@
3535
"%package Microsoft.Quantum.Katas"
3636
]
3737
},
38+
{
39+
"cell_type": "markdown",
40+
"metadata": {},
41+
"source": [
42+
"> The package versions in the output of the cell above should always match. If you are running the Notebooks locally and the versions do not match, please install the IQ# version that matches the version of the `Microsoft.Quantum.Katas` package.\n",
43+
"> <details>\n",
44+
"> <summary><u>How to install the right IQ# version</u></summary>\n",
45+
"> For example, if the version of `Microsoft.Quantum.Katas` package above is 0.5.1904.1302, the installation steps are as follows:\n",
46+
">\n",
47+
"> 1. Stop the kernel.\n",
48+
"> 2. Uninstall the existing version of IQ#:\n",
49+
"> dotnet tool uninstall microsoft.quantum.iqsharp -g\n",
50+
"> 3. Install the matching version:\n",
51+
"> dotnet tool install microsoft.quantum.iqsharp -g --version 0.5.1904.1302\n",
52+
"> 4. Reinstall the kernel:\n",
53+
"> dotnet iqsharp install\n",
54+
"> 5. Restart the Notebook.\n",
55+
"> </details>\n"
56+
]
57+
},
3858
{
3959
"cell_type": "code",
4060
"execution_count": null,

Superposition/Superposition.ipynb

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,26 @@
3636
"%package Microsoft.Quantum.Katas"
3737
]
3838
},
39+
{
40+
"cell_type": "markdown",
41+
"metadata": {},
42+
"source": [
43+
"> The package versions in the output of the cell above should always match. If you are running the Notebooks locally and the versions do not match, please install the IQ# version that matches the version of the `Microsoft.Quantum.Katas` package.\n",
44+
"> <details>\n",
45+
"> <summary><u>How to install the right IQ# version</u></summary>\n",
46+
"> For example, if the version of `Microsoft.Quantum.Katas` package above is 0.5.1904.1302, the installation steps are as follows:\n",
47+
">\n",
48+
"> 1. Stop the kernel.\n",
49+
"> 2. Uninstall the existing version of IQ#:\n",
50+
"> dotnet tool uninstall microsoft.quantum.iqsharp -g\n",
51+
"> 3. Install the matching version:\n",
52+
"> dotnet tool install microsoft.quantum.iqsharp -g --version 0.5.1904.1302\n",
53+
"> 4. Reinstall the kernel:\n",
54+
"> dotnet iqsharp install\n",
55+
"> 5. Restart the Notebook.\n",
56+
"> </details>\n"
57+
]
58+
},
3959
{
4060
"cell_type": "markdown",
4161
"metadata": {},

0 commit comments

Comments
 (0)