tqsd / QuNetSim

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

Send of entangled W state implementation #72

Closed AleMuzzi closed 3 years ago

AleMuzzi commented 3 years ago

I have implemented the send of an entangled W state (https://en.wikipedia.org/wiki/W_state). It has been developed analyzing the Qiskit code provided at this link generalizing it to a dynamic n-qubit W state generator and writing it accordingly to the already existing GHZ and EPR state exchange. I have already discussed it a bit with Stephen DiAdamo when I asked him via mail for some informations. I have already tested the protocol comparing the system density matrix with the ones I found here at page 6.

I look forward to hearing from you soon, Alessandro Muzzi

AleMuzzi commented 3 years ago

I added the fidelity commit by error, I would have done a separate pull request but I don't know how to remove the last commit from this request.

AleMuzzi commented 3 years ago

The fidelity implementation follows the implementation given here for Wolfram Mathematica

stephendiadamo commented 3 years ago

Thanks for the PR. I'll review it this week.

AleMuzzi commented 3 years ago

Of course, how can I do that?

stephendiadamo commented 3 years ago

Of course, how can I do that?

We're using Sphinx to generate documentation, you can see some samples in the docs folder . I'm going to clone your fork in a second and I can set up a template for you, I'll just need a few minutes and I'll make a push on your branch when it's ready

stephendiadamo commented 3 years ago

On this branch I added a template. https://github.com/tqsd/QuNetSim/tree/AleBestia/master It's in docs/source/examples/send_w.rst. It uses RST style. Once you're done I'll rebuild the docs and push everything on master.

AleMuzzi commented 3 years ago

Ok, I'll commit all the changes in these days