Skip to main content

Simulator of QUantum Network Communication (SeQUeNCe) is an open-source tool that allows modeling of quantum networks including photonic network components, control protocols, and applications.

Project description

sequence icon

Quantum Networking in SeQUeNCe: Customizable, Scalable, Easy Debugging

PyPi pyversions Documentation Qutip Paper PyPI Downloads


SeQUeNCe: Simulator of QUantum Network Communication

SeQUeNCe is an open source, discrete-event simulator for quantum networks. As described in our paper, the simulator includes 5 modules on top of a simulation kernel:

  • Hardware
  • Entanglement Management
  • Resource Management
  • Network Management
  • Application

These modules can be edited by users to define additional functionality and test protocol schemes, or may be used as-is to test network parameters and topologies.

Installation

For Users

SeQUeNCe requires Python 3.11 or later. You can install SeQUeNCe using pip:

pip install sequence

Development Environment Setup

If you wish to modify the source code, use an editable installation with uv:

Install uv (Astral Instructions)

# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh

# Windows
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Clone the repository and create the virtual environment

Here we clone the repository and let uv configure the development environment with the target python version.

git clone https://github.com/sequence-toolbox/SeQUeNCe.git
cd sequence
uv sync

Activate the virtual environment

Now that the virtual environment is created with all dependencies installed, you can activate it using the following command.

source .venv/bin/activate # macOS/Linux
source .venv\Scripts\activate # Windows

Running the test suite

SeQUeNCe includes a comprehensive test suite, this can be ran with the following command

uv run pytest tests

Citation

Please cite us, thank you!

@article{sequence,
author = {Xiaoliang Wu and Alexander Kolar and Joaquin Chung and Dong Jin and Tian Zhong and Rajkumar Kettimuthu and Martin Suchara},
title = {SeQUeNCe: a customizable discrete-event simulator of quantum networks},
journal = {Quantum Science and Technology},
volume = {6},
year = {2021},
month = {sep},
doi = {10.1088/2058-9565/ac22f6},
url = {https://dx.doi.org/10.1088/2058-9565/ac22f6},
publisher = {IOP Publishing},
}

Running the GUI

Once SeQUeNCe has been installed as described above, run the gui.py script found in the root of the project directory

python gui.py

Usage Examples

Many examples of SeQUeNCe in action can be found in the example folder. The example includes jupyter notebook demos, and code used in published papers.

Additional Tools

Network Visualization

The example directory contains an example .json file starlight.json to specify a network topology, and the utils directory contains the script draw_topo.py to visualize json files. To use this script, the Graphviz library must be installed. Installation information can be found on the Graphviz website.

To view a network, run the script and specify the relative location of your .json file:

python utils/draw_topo.py example/starlight.json

This script also supports a flag -m to visualize BSM nodes created by default on quantum links between routers.

Contact

If you have questions, please contact Caitao Zhan at czhan@anl.gov.

Papers that Used and/or Extended SeQUeNCe

Please do a Pull Request to add your paper here!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sequence-0.8.5.tar.gz (531.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sequence-0.8.5-py3-none-any.whl (581.8 kB view details)

Uploaded Python 3

File details

Details for the file sequence-0.8.5.tar.gz.

File metadata

  • Download URL: sequence-0.8.5.tar.gz
  • Upload date:
  • Size: 531.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sequence-0.8.5.tar.gz
Algorithm Hash digest
SHA256 daf618323992c71f218b2a64d9bfe688c2c17fbd992ff77d63147a480a104272
MD5 fd5437ead3ebc7f11a53875926c0417f
BLAKE2b-256 d88e466cd36dc1a420441e9805e2d0069b9a3613ada90964c8fabf58d655af2c

See more details on using hashes here.

Provenance

The following attestation bundles were made for sequence-0.8.5.tar.gz:

Publisher: publish.yml on sequence-toolbox/SeQUeNCe

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sequence-0.8.5-py3-none-any.whl.

File metadata

  • Download URL: sequence-0.8.5-py3-none-any.whl
  • Upload date:
  • Size: 581.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sequence-0.8.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4a420140685f71f3eb2a5cc5ba168809ca14b908cb0d807c36f98d390fa606b5
MD5 1a53483a328e4ad98378b53f442b72e8
BLAKE2b-256 8182ce8d28a99dc7d5583c25944a9296a097e74a51843a4c89b870b16bf52c21

See more details on using hashes here.

Provenance

The following attestation bundles were made for sequence-0.8.5-py3-none-any.whl:

Publisher: publish.yml on sequence-toolbox/SeQUeNCe

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page