-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
State Preparation in MQT ✨ #543
base: main
Are you sure you want to change the base?
Conversation
Hey 👋🏼 The best place to put this would probably be in the I would advise you to also create a After the initial setup, it would be great to add some tests for the new functionality. These should probably placed here: https://github.com/cda-tum/mqt-core/tree/main/test/algorithms. Again, you can take lots of inspiration from the existing tests and should be able to use our own simulator for some experiments. Please don't hesitate to ask questions if anything pops up! |
Closing for now. Please feal free to reopen if you plan to continue working on this. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #543 +/- ##
=====================================
Coverage 92.1% 92.1%
=====================================
Files 125 124 -1
Lines 13828 13908 +80
Branches 2153 2178 +25
=====================================
+ Hits 12736 12810 +74
- Misses 1092 1098 +6
*This pull request uses carry forward flags. Click here to find out more.
|
Hi, sorry for the long wait, I finally got around to working on this again! I do have a question on the new constructor that should be implemented: I do not see any option to reopen this pull request and continue working on it. |
Hey 👋🏼 No worries. I just reopened the PR for you.
I'd imagine that your State Preparation functionality code can be implemented and integrated very similarly. |
I refactored both files to match the other algorithms style if you would like to give it a look! Next step would then be tests from what I can see right? |
Getting the CI to a state where it is all-green would be desirable. |
Co-authored-by: Lukas Burgholzer <[email protected]> Signed-off-by: M-J-Hochreiter <[email protected]>
they cannot really be represented with only alphanumericals
Description
As a part of my bachelor thesis I implemented the Qiskit State Preparation algorithm (https://github.com/Qiskit/qiskit/blob/main/qiskit/circuit/library/data_preparation/state_preparation.py#) in C++ using the MQT Framework.
My advisor Yannick Stade suggested I open a pull request, as it might be interesting to add into MQT.
The state preparation allows a user to create a circuit that initializes a quantum state from a list of complex amplitudes, sometime needed in various quantum algorithms.
I am not sure how/where to add this class, thus I just created a new file.
If you could give me feedback whether this functionality might be interesting to add/what to change I would gladly try my best to fulfill your requests.
I have not yet written any tests, apart from manually comparing outputs of qiskit and my algorithm, and simulating both circuits with qiskit. (can be added in the future)
Checklist: