Quantum Information Science Examples
This folder contains example code and explanations of foundational quantum algorithms often appearing in Quantum Information Science courses. It is intended to complement quantum information science textbooks and courses, rather than being self-contained.
Pre-requisites
Learners should have familiarity with Jupyter notebooks and programming in Python and CUDA-Q. It is assumed the reader has some familiarity already with quantum computation and is comfortable with braket notation and the concepts of qubits, quantum circuits, measurement, and circuit sampling. The CUDA-Q Academic course entitled "Quick Start to Quantum Computing with CUDA-Q" provide a walkthrough of this prerequisite knowledge if the reader is new to quantum computing and CUDA-Q or needs refreshing.
Notebooks
The Jupyter notebooks in this folder are designed to run in an environment with CUDA-Q and Python. For instructions on how to install CUDA-Q on your machine, check out this guide. A Dockerfile and requirements.txt are also included in the main directory of the repository to help get you set up.
Otherwise, if you have set up an account in any of the platforms listed below, simply log in to the account, then click on the icons below to run the notebooks on the listed platform.
Notebook | qBraid[^1] | CoCalc[^2] | Google Colab[^3] |
---|---|---|---|
Grover's Algorithm | ![]() | ||
Check back here as new notebooks are added |
[^1]:If using qBraid Lab, use the Environment Manager to install the CUDA-Q environment and then activate it in your notebook. In qBraid Lab you can switch to a GPU instance using the Compute Manager. [^2]:After following the link, select the "Edit your own copy" button, and either select or create a project. Use the run icon in the upper toolbar to execute Python cells. [^3]:You will need to run the command !pip install cudaq
in a python code block in each notebook to run on Google CoLab.