cda-tum / mqt-qecc

MQT QECC - Tools for Quantum Error Correcting Codes
MIT License
100 stars 13 forks source link

Add representation for general stabilizer codes to the python side. #278

Closed pehamTom closed 1 week ago

pehamTom commented 1 week ago

Description

Currently QECC only has support for CSS codes. This PR adds general stabilizer codes and reactors the current classes to reflect this structure.

Checklist:

codecov[bot] commented 1 week ago

Codecov Report

Attention: Patch coverage is 96.79144% with 6 lines in your changes missing coverage. Please review.

Project coverage is 83.4%. Comparing base (28075c7) to head (cf2e5eb). Report is 33 commits behind head on main.

Files with missing lines Patch % Lines
src/mqt/qecc/codes/stabilizer_code.py 95.7% 6 Missing :warning:
Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/cda-tum/mqt-qecc/pull/278/graphs/tree.svg?width=650&height=150&src=pr&token=OAw9kgumkt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum)](https://app.codecov.io/gh/cda-tum/mqt-qecc/pull/278?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum) ```diff @@ Coverage Diff @@ ## main #278 +/- ## ======================================= + Coverage 82.7% 83.4% +0.6% ======================================= Files 46 47 +1 Lines 3978 4100 +122 Branches 353 353 ======================================= + Hits 3292 3420 +128 + Misses 686 680 -6 ``` | [Flag](https://app.codecov.io/gh/cda-tum/mqt-qecc/pull/278/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum) | Coverage Δ | | *Carryforward flag | |---|---|---|---| | [cpp](https://app.codecov.io/gh/cda-tum/mqt-qecc/pull/278/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum) | `83.3% <ø> (ø)` | | Carriedforward from [444be7b](https://app.codecov.io/gh/cda-tum/mqt-qecc/commit/444be7b28c36f6c64404fdad6d21d8002f3c5880?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum) | | [python](https://app.codecov.io/gh/cda-tum/mqt-qecc/pull/278/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum) | `83.4% <96.7%> (+1.0%)` | :arrow_up: | | *This pull request uses carry forward flags. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum) to find out more. | [Files with missing lines](https://app.codecov.io/gh/cda-tum/mqt-qecc/pull/278?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum) | Coverage Δ | | |---|---|---| | [src/mqt/qecc/\_\_init\_\_.py](https://app.codecov.io/gh/cda-tum/mqt-qecc/pull/278?src=pr&el=tree&filepath=src%2Fmqt%2Fqecc%2F__init__.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum#diff-c3JjL21xdC9xZWNjL19faW5pdF9fLnB5) | `100.0% <100.0%> (ø)` | | | [src/mqt/qecc/codes/\_\_init\_\_.py](https://app.codecov.io/gh/cda-tum/mqt-qecc/pull/278?src=pr&el=tree&filepath=src%2Fmqt%2Fqecc%2Fcodes%2F__init__.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum#diff-c3JjL21xdC9xZWNjL2NvZGVzL19faW5pdF9fLnB5) | `100.0% <100.0%> (ø)` | | | [src/mqt/qecc/codes/css\_code.py](https://app.codecov.io/gh/cda-tum/mqt-qecc/pull/278?src=pr&el=tree&filepath=src%2Fmqt%2Fqecc%2Fcodes%2Fcss_code.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum#diff-c3JjL21xdC9xZWNjL2NvZGVzL2Nzc19jb2RlLnB5) | `87.5% <100.0%> (+6.6%)` | :arrow_up: | | [src/mqt/qecc/codes/hexagonal\_color\_code.py](https://app.codecov.io/gh/cda-tum/mqt-qecc/pull/278?src=pr&el=tree&filepath=src%2Fmqt%2Fqecc%2Fcodes%2Fhexagonal_color_code.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum#diff-c3JjL21xdC9xZWNjL2NvZGVzL2hleGFnb25hbF9jb2xvcl9jb2RlLnB5) | `100.0% <100.0%> (ø)` | | | [src/mqt/qecc/codes/square\_octagon\_color\_code.py](https://app.codecov.io/gh/cda-tum/mqt-qecc/pull/278?src=pr&el=tree&filepath=src%2Fmqt%2Fqecc%2Fcodes%2Fsquare_octagon_color_code.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum#diff-c3JjL21xdC9xZWNjL2NvZGVzL3NxdWFyZV9vY3RhZ29uX2NvbG9yX2NvZGUucHk=) | `97.2% <100.0%> (ø)` | | | [src/mqt/qecc/codes/stabilizer\_code.py](https://app.codecov.io/gh/cda-tum/mqt-qecc/pull/278?src=pr&el=tree&filepath=src%2Fmqt%2Fqecc%2Fcodes%2Fstabilizer_code.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum#diff-c3JjL21xdC9xZWNjL2NvZGVzL3N0YWJpbGl6ZXJfY29kZS5weQ==) | `95.7% <95.7%> (ø)` | |