qiboteam / qibo

A framework for quantum computing
https://qibo.science
Apache License 2.0
287 stars 58 forks source link

Pytorch advanced examples #1427

Open Simone-Bordoni opened 1 month ago

Simone-Bordoni commented 1 month ago

Add examples in pytorch as requested in #1423

Checklist:

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 97.11%. Comparing base (1b6eb8a) to head (4837b6a).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1427 +/- ## ======================================= Coverage 97.11% 97.11% ======================================= Files 81 81 Lines 11679 11680 +1 ======================================= + Hits 11342 11343 +1 Misses 337 337 ``` | [Flag](https://app.codecov.io/gh/qiboteam/qibo/pull/1427/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/qiboteam/qibo/pull/1427/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam) | `97.11% <100.00%> (+<0.01%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Simone-Bordoni commented 1 week ago

@BrunoLiegiBastonLiegi working at this example I found the problem of the weights not updating... I will address it in a new PR in order to make this example work