cda-tum / mqt-core

MQT Core - The Backbone of the Munich Quantum Toolkit
https://mqt.readthedocs.io/projects/core
MIT License
62 stars 31 forks source link

🏷️ providing a convenient `CircuitInputType` #661

Closed burgholzer closed 3 months ago

burgholzer commented 3 months ago

Description

This PR provides a convenient type that summarizes the default circuit inputs to the load method. Special care is taken that this type is only defined in type checking environments and does not require importing optional dependencies that might not be available at runtime (such as qiskit).

Checklist:

codecov[bot] commented 2 weeks ago

Codecov Report

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

Project coverage is 91.7%. Comparing base (4363502) to head (6a4b2c5). Report is 128 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/cda-tum/mqt-core/pull/661/graphs/tree.svg?width=650&height=150&src=pr&token=MqstsRKdqp&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-core/pull/661?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 #661 +/- ## ===================================== Coverage 91.7% 91.7% ===================================== Files 148 148 Lines 14832 14832 Branches 2386 2386 ===================================== Hits 13603 13603 Misses 1229 1229 ``` | [Flag](https://app.codecov.io/gh/cda-tum/mqt-core/pull/661/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-core/pull/661/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum) | `91.4% <ø> (ø)` | | Carriedforward from [4363502](https://app.codecov.io/gh/cda-tum/mqt-core/commit/4363502cda0de4b795a467c544da0026a07416d6?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-core/pull/661/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum) | `99.7% <100.0%> (ø)` | | | *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-core/pull/661?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/core/load.py](https://app.codecov.io/gh/cda-tum/mqt-core/pull/661?src=pr&el=tree&filepath=src%2Fmqt%2Fcore%2Fload.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cda-tum#diff-c3JjL21xdC9jb3JlL2xvYWQucHk=) | `100.0% <100.0%> (ø)` | |