qutip / qutip-tensorflow

TensorFlow linear-algebra backend for QuTiP
BSD 3-Clause "New" or "Revised" License
15 stars 9 forks source link

Example notebook for qutip tensorflow. #25

Closed AGaliciaMartinez closed 3 years ago

AGaliciaMartinez commented 3 years ago

Example notebook for qutip-tensorflow showcasing how to optimize a unitary gate.

The notebook has been written to work with colab. A badge has been included but I have not been able to test it properly yet. I need to merge the notebook first for that.

I am not sure how well git diff will work with notebooks. Nevertheless, you can take a look at the notebook in my fork at the branch example_notebook.

coveralls commented 3 years ago

Pull Request Test Coverage Report for Build 1308525478


Totals Coverage Status
Change from base Build 1303008077: 0.0%
Covered Lines: 310
Relevant Lines: 324

💛 - Coveralls
quantshah commented 3 years ago

@AGaliciaMartinez I tidied up the notebook by getting all imports at the top and dividing the example in sections. Also removed redefining things and adding some more explanations. Please have a look.

This is extremely cool btw to be able to use qutip and tensor flow together in this seamless manner. The data layer + qutip-TensorFlow makes me very excited about various possibilities @hodgestar @jakelishman

I look forward to adding some more examples and documentation.

hodgestar commented 3 years ago

Reviewing here (since I can't open the notebook in the review page):

AGaliciaMartinez commented 3 years ago

Thank you for reviewing @quantshah and @hodgestar! I implemented the changes suggested and will merge once the checks finish.