Skip to main content

Unitary Fund

QuNetSim

QuNetSim Tests

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}
}

Metadata

Release files for qunetsim 0.1.3.post1

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

Source distribution (sdist)

Source distribution for qunetsim 0.1.3.post1
File Size Uploaded
qunetsim-0.1.3.post1.tar.gz 45.5 kB Details

Built distribution (wheel)

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

Total release size: 106.0 kB

Release files / qunetsim-0.1.3.post1.tar.gz

Download URL qunetsim-0.1.3.post1.tar.gz
Size 45.5 kB
Tags Source
SHA-256 checksum
How to use checksums
313e5e27f3bd75d2175d328493d8f7c0324daedea8671924a1468f299e977a73
BLAKE2b-256 checksum
How to use checksums
2e7731079e8fbed081ae53f05c5de93b2a838360d9a0e0e10373bc6a336bc15d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Release files / qunetsim-0.1.3.post1-py3-none-any.whl

Download URL qunetsim-0.1.3.post1-py3-none-any.whl
Size 60.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7b482fe6814741b2bee24e56e976e9dadc3ce47d7b4285380748b6f15964b3d4
BLAKE2b-256 checksum
How to use checksums
522e98e3cd67d83dc7bfaedfb309385e6bdd5d75a3f2ff0582753e23577e08d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6
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