A Quantum Network Simulation Framework
Project description
QuNetSim
QuNetSim is a quantum-enabled network simulator that adds common quantum networking tasks like teleportation, superdense coding, sharing EPR pairs, etc. With QuNetSim, one can design and test robust quantum network protocols under various network conditions.
Installation and Documentation
See https://tqsd.github.io/QuNetSim/ for documentation. To install the latest release via pip:
pip install qunetsim
Quick Start Guide
Templater
The QuNetSim pip package comes with a templater. After installing the library, simply type template
and follow the instructions. A template QuNetSim example will be generated.
Quick Example
from qunetsim.components import Host, Network
network = Network.get_instance()
network.start()
alice = Host('Alice')
bob = Host('Bob')
alice.add_connection(bob.host_id)
bob.add_connection(alice.host_id)
alice.start()
bob.start()
network.add_hosts([alice, bob])
# Block Alice to wait for qubit arrive from Bob
alice.send_epr(bob.host_id, await_ack=True)
q_alice = alice.get_epr(bob.host_id)
q_bob = bob.get_epr(alice.host_id)
print("EPR is in state: %d, %d" % (q_alice.measure(), q_bob.measure()))
network.stop(True)
Contributing
Feel free to contribute by adding Github issues and pull requests. Adding test cases for any contributions is a requirement for any pull request to be merged.
Citation
@article{diadamo2020qunetsim,
title={QuNetSim: A Software Framework for Quantum Networks},
author={DiAdamo, Stephen and N{\"o}tzel, Janis and Zanger, Benjamin and Be{\c{s}}e, Mehmet Mert},
journal={IEEE Transactions on Quantum Engineering},
year={2021},
doi={10.1109/TQE.2021.3092395}
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file qunetsim-0.1.3.post1.tar.gz
.
File metadata
- Download URL: qunetsim-0.1.3.post1.tar.gz
- Upload date:
- Size: 45.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 313e5e27f3bd75d2175d328493d8f7c0324daedea8671924a1468f299e977a73 |
|
MD5 | 712a87243e1596ac51d3a3ce3d171d98 |
|
BLAKE2b-256 | 2e7731079e8fbed081ae53f05c5de93b2a838360d9a0e0e10373bc6a336bc15d |
File details
Details for the file qunetsim-0.1.3.post1-py3-none-any.whl
.
File metadata
- Download URL: qunetsim-0.1.3.post1-py3-none-any.whl
- Upload date:
- Size: 60.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b482fe6814741b2bee24e56e976e9dadc3ce47d7b4285380748b6f15964b3d4 |
|
MD5 | 5ca76838b30e07cf00e22d6ba2f4b4d1 |
|
BLAKE2b-256 | 522e98e3cd67d83dc7bfaedfb309385e6bdd5d75a3f2ff0582753e23577e08d3 |