TeamGraphix / graphix

measurement-based quantum computing (MBQC) compiler and simulator
https://graphix.readthedocs.io
Apache License 2.0
55 stars 20 forks source link

Quantum Neural Network Demo #57

Closed Gopal-Dahale closed 1 year ago

Gopal-Dahale commented 1 year ago

Context

Quantum neural network demo using Graphix.

Description of the change

In the Jupyter notebook, I have used the Data re-uploading quantum circuit from this paper to perform binary classification of circles dataset from sklearn. I have also added the qubit resource plot at the end.

Related issue

Resolves #46

shinich1 commented 1 year ago

@Gopal-Dahale I moved your code to a python file so that sphinx gallery can generate html. I hope this looks ok. I would appreciate if you could also add a little bit more explanations of the code, as in other examples. Thanks!

Gopal-Dahale commented 1 year ago

Sure will add some explanation

Gopal-Dahale commented 1 year ago

Can you share the tool you are using to convert it to a Python file? Can latex get converted successfully?

shinich1 commented 1 year ago

@Gopal-Dahale I simply copied and pasted into python file from your ipynb, so I think it's easiest if you add descriptions to the python file I added as comments (which will be converted to markdown-cell-like description part; once you install pip install -r docs/requirements.txt you can build the docs by make html at docs/ to check locally.). you can use latex expressions, just like jupyter notebook markdown cells.

Gopal-Dahale commented 1 year ago

Hi @shinich1, I have made the necessary changes.

shinich1 commented 1 year ago

@Gopal-Dahale could you comment on issue #46, so I can assign you to it? something like @shinich1 please see #57 should be fine.

btw, I'd appreciate if you could star the repo, if not done yet :)