tqsd / QuNetSim

A quantum network simulation framework.
https://tqsd.github.io/QuNetSim/
MIT License
118 stars 52 forks source link

Generate simple topologies [unitaryHACK] #100

Closed andre-a-alves closed 3 years ago

andre-a-alves commented 3 years ago

Address #88 As discussed, this is a substantial rewrite of the original generate_topology which adds a lot of flexibility to the method(s).

Worth highlighting/mentioning:

  1. Having a background in networking but being new to quantum information, I included the classical network types of ring, star, tree, and mesh, and I added linear because it was already there. If the names are different from those generally used in quantum networking, that can be easily changed.
  2. I did not include bipartite, Erdos Renyi, or one-to-many, all of which you had mentioned you would like to see. All connections are currently bidirectional.
  3. As requested, tests use the connection lists for each Host in a network. The tests all work right now with a simple 5-host network, but that's easily modifiable in the test class setup.
  4. I left the missing items off so the original author could have a chance to finish what he started (I mentioned him in a comment a couple days ago asking if he wanted me to just merge the changes into his branch, but he has not responded, yet). What's in here is what I felt I needed for a robust, interactive templater, which I will be working on today and probably submitting a PR for tomorrow.

If there are any changes you would like to see in this or if the original author does not want to finish it, please let me know and I have no problem completing it.

crazy4pi314 commented 3 years ago

Hi all! I am working on awarding the bounties, and it seems like @MrRobot2211 you are not registered! If you could sign up here so I can send you swag? unitaryHACK registration