-
Notifications
You must be signed in to change notification settings - Fork 401
Add EstimatorQNN class using terra primitives
#470
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EstimatorQNN class using terra primitivesEstimatorQNN class using terra primitives
Pull Request Test Coverage Report for Build 3357361719
💛 - Coveralls |
adekusar-drl
reviewed
Oct 7, 2022
Collaborator
adekusar-drl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I have run a first pass of the code review.
Can you please:
- Update
VQRto make use ofEstimatorQNN. - Update the tests for
VQR. - If you find that
VQRdoes not really needTwoLayerQNN, then maybe it is easier to deprecateTwoLayerQNNinstead of updating it. - Depending on the previous outcome: add tests for
TwoLayerQNNwhen both branches (old and new) of the code are tested.
ElePT
reviewed
Oct 7, 2022
woodsp-ibm
reviewed
Oct 10, 2022
woodsp-ibm
reviewed
Oct 27, 2022
Contributor
Author
|
Thank you @woodsp-ibm! I reflected your comments. |
ElePT
reviewed
Oct 28, 2022
ElePT
reviewed
Oct 28, 2022
ElePT
reviewed
Oct 28, 2022
This was referenced Oct 28, 2022
Merged
woodsp-ibm
approved these changes
Oct 31, 2022
oscar-wallis
pushed a commit
that referenced
this pull request
Feb 16, 2024
* wip estimator qnn * wip * added estimator qnn * wip added unittests * added unittests * reno * fix reno * support estimator qnn in two_layer_qnn * updated * make codes simpler with numpy * fix two_layer_qnn.py * wip unittests * update vqr * fix pylint * use kwargs * simplify reno code block * refactorings * unit tests, reno, spelling * vqr properties test * vectorize forward post processing * some refactorings * Update qiskit_machine_learning/algorithms/regressors/vqr.py Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com> * Update qiskit_machine_learning/algorithms/regressors/vqr.py Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com> * Update qiskit_machine_learning/algorithms/regressors/vqr.py Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com> * docstrings * added more unittests * Update releasenotes/notes/add-estimator-qnn-270b31662988bef9.yaml Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com> * code review * updated * fix lint * fix * fix spelling mistake * fix backward pass with no weight params * fix * reflected comments * fix spell * fix * add torch tests * update docstring * added a code snippet * fix spell * fix spell * fix pylint, fix condition Co-authored-by: Anton Dekusar <adekusar@ie.ibm.com> Co-authored-by: Anton Dekusar <62334182+adekusar-drl@users.noreply.github.com> Co-authored-by: Manoel Marques <Manoel.Marques@ibm.com> Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduce a new NeuralNetwork class,
EsitmatorQNN, that uses theEstimatorprimitive inside.close #401
Details and comments