[unitaryHACK] Added BB84 protocol example using QuNetSim #90#102
[unitaryHACK] Added BB84 protocol example using QuNetSim #90#102stephendiadamo merged 3 commits intotqsd:masterfrom
Conversation
stephendiadamo
left a comment
There was a problem hiding this comment.
Looks pretty good so far!
I would suggest the following as a start to the review:
- Can you run this code through a PEP8 Linter to get the styling aligned with the rest of the project?
- In QuNetSim, data is generally routed through other nodes. I would suggest removing the connection from Alice to Bob so that all data goes through Eve. You can then use the built in eavesdropping features of QuNetSim to get a cleaner implementation.
|
Hi, |
|
In the qubit measure, you can use the flag 'non_destructive=True' so they qubit isn't destroyed. |
|
Thanks! I'll review the code this week if you want to make that change mentioned above. |
|
Hi, |
Issue: #90
I have added the BB84 protocol example using the QuNetSim components. Here we have two host which can communicate with each other (Alice and Bob). They have bidirectional classical and quantum communication network. Their communication is intercepted by Eve host and retransmitted so that the packets looks normal.
The BB84 protocol helps to find out whether there is an interceptor. The protocol is implemented and when there is no interception ,it then encodes and sends the message which can be decoded at other end. If there is an interception it stops without sending the message and we can start the protocol once again and check.
If you want to discuss any of this, feel free to reach out to me on the Unitary Fund Discord server.