This repository contains two Jupyter Notebooks focused on quantum computing concepts and implementations using Qiskit, IBM's open-source quantum computing software development framework.
-
Project Notebook: This notebook provides a detailed exploration of Deutsch's Algorithm, a foundational quantum computing algorithm. It includes an introduction to the problem solved by Deutsch's Algorithm, a comparison of quantum and classical approaches, implementation details using Qiskit, and simulation results.
-
Tasks Notebook: This notebook contains various tasks dedicated to exploring fundamental tasks in quantum computing.
The following is a step by step guide on how you can clone this repository down on to your own machine and get it running. Please ensure you have the following prerequisites installed before continuing.
Should you just wish to view the notebooks without installing any software please select the links below:
Installation of git
Installation of Python 3 (versions 3+)
or
Installation of Anaconda
Installation of Visual Studio Code, with extension Jupyter & notebook
In order to clone the github repository, use the following command:
git clone https://github.com/The-Mad-Ryanosaurus/Emerging-Technologies.git
This link can be found in the code button at the top of this page under the HTTPS tab.
In the same terminal window you used to clone the repository, do the following step by step:
- cd Emerging-Technologies
pip install notebookpip install qiskitpip install qiskit-aerpip install matplotlibpip install pylatexencpip install qiskit-ibmq-providerthen dopip install qiskit-ibm-runtime: This is so you can connect to IBM Quantum devices to create and visualize circuits and execute them both on simulations and real quantum devices. You can see an example of this in my project notebook. Step 4pip install qiskit[visualization]
Remember to restart the Jupyter kernel if you encounter any import errors after installation.
Should the installs fail, run your command prompt as an administrator and try again from Step 1. If you do not have administration permissions on your machine, try adding '--user' after each 'pip install'. Ex: pip install --user "dependency"
Still in the same terminal window do the following:
code .
This will open VS code and you can now access and run both jupyter notebooks.
The following is a guide to setup IBM Quantum Platform so you can simulate the Deutsch's Algorithm in a real world IBM Quantum Computer.
- Obtain an IBM Quantum Platform API:
- You will need to create an account at IBM Quantum Lab
- Once you have an account you can navigate to the
IBM Quantum Platform Dashboardand copy yourAPI Tokenfrom the top right of your screen.
- API Token Update:
- In the project notebook, users should replace the placeholder
api_token = 'placeholder'with their own API token from IBM Quantum Platform.
- In the project notebook, users should replace the placeholder
- Run the IBM Quantum Simulation:
- In the project notebook select
|>|> Run All. This will run all cells in a linear fashion ensuring the connection to an IBM quantum computer is successful and runs the Deutsch's Algorithm on a real quantum device
These steps are crucial for users who wish to interact with IBM Quantum Computers and run the Deutsch's Algorithm in my Jupyter notebook.
- In the project notebook select