TeamGraphix / graphix

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

136 application of tensor network mbqc simulation #162

Closed Barnald closed 3 weeks ago

Barnald commented 1 month ago

Goal was to implement an example that demonstrates TN backend usage and application

This commit adds a new example that aims to demonstrate TN backend application by solving a max cut problem on a graph. The purpose of the example is to show the TN backend usage, TN construction, how to change parameters for path contraction and how to apply it as a tool for solving a practical problem. Additionally, fixed a tiny typo in another example too.

Related issue: FIXES #136

shinich1 commented 4 weeks ago

@Barnald added a few final comments. Once these are resolved, this is ready to merge. thanks!

Barnald commented 4 weeks ago

@shinich1 thank you for the feedback! I will make the recommended changes in the following commits.

codecov[bot] commented 4 weeks ago

Codecov Report

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

Project coverage is 71.72%. Comparing base (5194a88) to head (9cf8ab4). Report is 1 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #162 +/- ## ========================================== - Coverage 71.84% 71.72% -0.12% ========================================== Files 30 30 Lines 5359 5359 ========================================== - Hits 3850 3844 -6 - Misses 1509 1515 +6 ```

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

shinich1 commented 3 weeks ago

all looks good, this should be ready to merge - will squash and merge later.

May I ask you star the repo, if not done so yet? thanks for your contribution!

Barnald commented 3 weeks ago

@shinich1 Thank you for the reviews and being so helpful!