#5275 Template library [unitaryhack]#8191
#5275 Template library [unitaryhack]#8191grageragarces wants to merge 37 commits intoQiskit:mainfrom
Conversation
|
Thank you for opening a new pull request. Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient. While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone. One or more of the the following people are requested to review this: |
|
all templates have now been added to the library |
|
please let me know if there is a need for any additional commits or changes to the current proposal :) |
|
hi @mgg39 it looks like you have some linting issues, you should be able to fix these by running |
| @@ -0,0 +1,18 @@ | |||
| # This code is part of Qiskit. | |||
There was a problem hiding this comment.
I think this file is missing a .py extension
There was a problem hiding this comment.
also the naming convention should match the other template library file. so either both should be templates or template not one of each :)
There was a problem hiding this comment.
Hi! Thanks will change both of those
|
Hi @javabster ! Thank you so much for your help! I changed the ran tox -eblack, added the .py extension, and eliminated the s from templates (hopefully everywhere in the files) . Hopefully there won't be any issues now :) |
|
Thank you very much @mgg39 for your contribution! A few comments:
|
|
Hi @ShellyGarion ! |
|
Please see the contributing guidelines about tests, code style, documentation and release notes: |
|
Moving it to Draft, as it seems there is still in progress. |
|
hi! I believe the remaining conflict is associated with a slightly moved indentation at the end of " qiskit/circuit/init.py " |
|
hi @mgg39 I resolved the merge conflict but you'll probably need to run |
1ucian0
left a comment
There was a problem hiding this comment.
hi @mgg39 It seems that, there still some black issues:
Running black, any errors reported can be fixed with 'tox -eblack'
would reformat qiskit/circuit/library/__init__.py
would reformat qiskit/circuit/library/standard_gates/templates.py
would reformat test/python/circuit/test_templates.py
Oh no! 💥 💔 💥
3 files would be reformatted, 1733 files would be left unchanged.
|
hopefully they are resolved now! |
There was a problem hiding this comment.
I think #5275 expects something like test/python/circuit/test_equivalence.py, where templetes are test to be equivalent to identity.
|
The branch |
Summary
Proposed template library, that Closes #5275 .
Details and comments
I am currently actively working on this, please let me know if it requires reformatting.