-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'qiskit_patterns' of github.com:eggerdj/qopt-best-practi…
…ces into qiskit_patterns
- Loading branch information
Showing
19 changed files
with
1,297 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Qiskit Patterns Lab Prep Work | ||
|
||
## Requirements | ||
|
||
- Laptop (Windows, MacOS or Linux), access to a terminal | ||
|
||
## Instructions | ||
|
||
1. Follow the instructions on https://docs.quantum.ibm.com/start/install#install-and-set-up-qiskit-with-the-qiskit-runtime-client | ||
to install and set up a Python environment with Qiskit. Activate your environment. | ||
2. Download the lab material, unzip the folder | ||
3. Navigate to the `demo` directory using the terminal | ||
4. run `pip install -r requirements.txt` | ||
5. Activate your jupyter environment running `jupyter notebook`, this should open a browser window that shows the contents of | ||
the `demo` directory | ||
6. Open `test_installation.ipynb` and follow the instructions to test that the installation was successful |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
qiskit>=1.0.0 | ||
qiskit_ibm_runtime>=0.18.0 | ||
qiskit_optimization>=0.6.0 | ||
qiskit_aer | ||
matplotlib | ||
notebook | ||
ipykernel | ||
pylatexenc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": { | ||
"pycharm": { | ||
"name": "#%% md\n" | ||
} | ||
}, | ||
"source": [ | ||
"# Installation Test\n", | ||
"\n", | ||
"Run the cell below (press `Shift` + `Enter`) to check that all the imports work correctly. If you see the 🎉 emoji as the cell output, your installation was successful." | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 1, | ||
"metadata": { | ||
"pycharm": { | ||
"name": "#%%\n" | ||
} | ||
}, | ||
"outputs": [ | ||
{ | ||
"name": "stdout", | ||
"output_type": "stream", | ||
"text": [ | ||
"Your installation works 🎉!\n" | ||
] | ||
} | ||
], | ||
"source": [ | ||
"import matplotlib.pyplot\n", | ||
"import networkx as nx\n", | ||
"from demo_src.map import map_qubo_to_ising\n", | ||
"from qiskit_ibm_runtime.fake_provider import FakeVigoV2\n", | ||
"from qiskit import qpy\n", | ||
"from qiskit_aer import Aer\n", | ||
"from qiskit_optimization.applications import Maxcut\n", | ||
"print(\"Your installation works 🎉!\")" | ||
] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "ibm_tech_clean", | ||
"language": "python", | ||
"name": "ibm_tech_clean" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.10.0" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 1 | ||
} |