Welcome to QWorld's Silver!
Silver is QWorld's intermediate level tutorial on quantum computing and programming focusing on complex numbers, QFT and Shor's Algorithm
In order to work with these jupyter notebooks, you need a number of packages. The following instructions ensure that the python verson and package versions are consistent and work with the notebooks.
- Download this repository and extract it somewhere.
Then either use Conda, venv or virtualenv as follows.
The following two steps are for installing the required packages.
- Open a terminal or command prompt at the directory where you extracted the files.
- Run the following command to create a new Conda environment and install all necessary packages.
conda env create -f environment.ymlThe following steps should be followed every time you want to work on the notebooks.
- Activate the Conda environment.
conda activate qsilver28After activation, your command prompt or terminal prompt should change to indicate that you are now working within the virtual environment.
- You can now launch jupyter notebook.
jupyter notebook- Deactivate the Conda environment when you're done.
conda deactivate- Make sure you are using Python 3.11.8
- Open a terminal or command prompt at the directory where you extracted the files.
- Run one of the following commands (depending on whether you want to use venv or virtualenv) to create a virtual environment.
# create environment using venv
python -m venv silverenv
# OR create environment using virtualenv
pip install virtualenv
virtualenv silverenv- Activate the virtual environment.
On Windows
silverenv\Scripts\activateOn macOS or Linux:
source silverenv/bin/activateAfter activation, your command prompt or terminal prompt should change to indicate that you are now working within the virtual environment.
- Install packages using pip.
pip install -r requirements.txtIf you are a Mac OS user you might need to install the qiskit[visualization] in the following way
pip install 'qiskit[visualization]'- You can now launch jupyter notebook.
jupyter notebook- Deactivate the Conda environment when you're done.
conda deactivateEvery time you work on the notebooks, you should reexecute steps 4, 6 and 7, remembering to switch to the directory where you created the virtual environment.
Using Binder: You may launch Silver in the cloud with binder but please be aware of that
- each time a new session is created, which takes some time to be initiated, and all changes are lost when ending the session; and,
- the session might be terminated if a new tab is not opened within 10 minutes.
Most of the Silver is prepared under the project QPool2019 GitLab repository in 2019-2020 and it is expected to have contributions from public as well.
We would like to thank participants of the QSilver Revision Week organized in January 2021 and the participants of the QSilver Pilot Workshop organized in April 2021 for revising the material.
This part is developed by Dr. Maksim Dimitrijev(QLatvia). Dr. Aur�l G�bris (QCzech) contributed by providing additional content.
This section is developed by Dr. �zlem Salehi..
If you are interested, you are welcome to contribute to Silver. Please read QWorld's rules for developing projects.
The text and figures are licensed under the Creative Commons Attribution 4.0 International Public License (CC-BY-4.0), available at https://creativecommons.org/licenses/by/4.0/legalcode.
The code snippets in the notebooks are licensed under Apache License 2.0, available at http://www.apache.org/licenses/LICENSE-2.0.