Skip to main content

sequence icon

Quantum Networking in SeQUeNCe: Customizable, Scalable, Easy Debugging

PyPi pyversions Documentation QuTiP Stim Paper 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.12 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 either pip or uv:

Editable installations let Python use your local source tree directly, so changes you make to the SeQUeNCe code are available without reinstalling the package after each edit. The pip option is a lightweight way to install the local package into an environment you already manage, while uv can create and synchronize a reproducible virtual environment from the project's dependency files.

(1) Using pip

git clone https://github.com/sequence-toolbox/SeQUeNCe.git
cd SeQUeNCe
make install_editable

In the Makefile, install_editable will run the following:

pip install --editable . --config-settings editable_mode=strict

The --config-settings editable_mode=strict setting makes the editable install behaves more like a real packaged install.

(2) Using 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},
}

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.

Here is the updated table with the Code column populated:

Papers that Used and/or Extended SeQUeNCe

Year Authors Title Venue Code
2026 S. Pantage et al. Realistic Simulation of Quantum Repeater with Encoding and Classical Error Correction arXiv preprint GitHub
2026 A. Pirker et al. Centralizing Task-based Approach to Quantum Network Control arXiv preprint GitHub
2026 A. Amlou et al. Physics-Informed Discrete-Event Simulation of Polarization-Encoded Quantum Networks arXiv preprint
2026 H. Miller et al. Simulation of a Heterogeneous Quantum Network IEEE QCNC GitHub
2026 A. Zang et al. Quantum Advantage in Distributed Sensing with Noisy Quantum Networks Physical Review Research
2025 C. Zhan et al. Design and Simulation of the Adaptive Continuous Entanglement Generation Protocol IEEE QCNC GitHub
2025 F. Mazza et al. Simulation of Entanglement-Enabled Connectivity in QLANs using SeQUeNCe IEEE ICC
2025 L. d'Avossa et al. Simulation of Quantum Transduction Strategies for Quantum Networks IEEE QCE
2025 V. S. Mai et al. Towards Optimal Orders for Entanglement Swapping in Path Graphs: A Greedy Approach IEEE QCE
2024 C. Howe et al. Towards Scalable Quantum Repeater Networks arXiv preprint
2024 X. Wu et al. Parallel Simulation of Quantum Networks with Distributed Quantum State Management ACM TOMACS
2024 L. Vinci Quantum Key Distribution Performance: Extending the Sequence simulator to Estimate the Speed of free-space Optic Links Master's Thesis, Ca’ Foscari University of Venice GitHub
2023 R. Zhou et al. A Simulator of Atom-Atom Entanglement with Atomic Ensembles and Quantum Optics IEEE QCE
2023 M.G. Davis et al. Towards Distributed Quantum Computing by Qubit and Gate Graph Partitioning Techniques IEEE QCE
2022 A. Zang et al. Simulation of Entanglement Generation between Absorptive Quantum Memories IEEE QCE
2022 V. Semenenko et al. Entanglement generation in a quantum network with finite quantum memory lifetime AVS Quantum Science
2021 X. Wu et al. SeQUeNCe: A Customizable Discrete-Event Simulator of Quantum Networks IOP Quantum Science and Technology
2019 X. Wu et al. Simulations of Photonic Quantum Networks for Performance Analysis and Experiment Design IEEE/ACM PHOTONICS

Please do a Pull Request to add your paper here!

Metadata

Release files for sequence 1.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sequence 1.3.1
File Size Uploaded Provenance
sequence-1.3.1.tar.gz 189.3 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for sequence 1.3.1
File Interpreter ABI Platform
sequence-1.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 436.1 kB

Release files / sequence-1.3.1.tar.gz

Download URL sequence-1.3.1.tar.gz
Size 189.3 kB
Tags Source
SHA-256 checksum
How to use checksums
be01ded1ccd56faef9e99d02ff84024e33b7b6635a8d98449b183452761d887d
BLAKE2b-256 checksum
How to use checksums
4f668a2e29c44c9a68ab2a5cce8b80232f8a95915bca5e6c5e5ffde61a98d905
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Release files / sequence-1.3.1-py3-none-any.whl

Download URL sequence-1.3.1-py3-none-any.whl
Size 246.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b4e05c4e54d7ddd4db7f3c568d944b6a4613dc81732a18efe82f8ce6af59b959
BLAKE2b-256 checksum
How to use checksums
660686164063f1b7bd0c25ed252b9e182993137623bfa6afa3b28be890ff453e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Security for sequence 1.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sequence-1.3.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

1.3.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page