This repository contains the materials for the NetSquid tutorial, specifically:
- Tutorial notebooks
- Exercise
To install and use the NetSquid package, please ensure the following prerequisites are met:
-
Operating System Compatibility NetSquid is officially supported on Linux and macOS. Windows users are recommended to use Windows Subsystem for Linux (WSL).
-
NetSquid Forum Account Access to the tutorial requires a NetSquid forum account. If you don’t have one, register here.
-
Python Installation Ensure you have Python 3.9, 3.10, 3.11, or 3.12 installed.
Set your NetSquid account credentials as environment variables by running the following commands (replace your_username and your_password with your actual credentials):
export NETSQUIDPYPI_USER=your_username
export NETSQUIDPYPI_PWD=your_passwordUsing a virtual environment ensures that the tutorial’s Python packages are installed in an isolated directory, preventing conflicts with other Python projects on your system.
To create and activate a virtual environment:
python3 -m venv .venv # Create the virtual environment
source .venv/bin/activate # Activate the virtual environmentInstall all required dependencies, including NetSquid, by running:
make installStart the Jupyter Notebook environment with:
jupyter notebookThis will launch Jupyter Notebook in your default web browser.
For WSL Users: If you see the message "Couldn't find a suitable web browser!", look for an address in the console output, such as:
//localhost:8888/tree?token=XXXXXXXXXXXX
Copy and paste this address into a Windows browser to access the Jupyter Notebook interface.