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
Closes #10
This removes the numpy constraints to < 1.25. The failure noted in #10 was the treatment of deprecation warnings as errors by the test base class brought over when the code was migrated here. That base class was changed. Deprecation warnings are now simply collected by CI and should be remedied, if caused by qiskit-algorithms code, by do not cause errors especially if these are emitted by 3rd party libraries. Running
test_imfil
indeed causes some deprecation messages to be emitted but code still works for now and passes the unit test.When I was looking at the code I noticed the
snobfit.py
numpy version was how things were in the unit tests before #70 was done. So I updated this file along with the change which was basically to remove the constraint for numpy fromcontraints.txt
. This left the file empty and while removing it completely would be an option I chose to leave it with a single line comment in there.Details and comments
Given this closes #10 I will create another issue to consider removing the scikit-quant optimizers here as the repo seems pretty much unmaintained with last activity 2 years ago and the snobfit issue /scikit-quant/scikit-quant#24, for which unit tests here are skipped, has been open and without any activity since it was created at the end of last year . Unlike when these optimizer "wrappers" were added, to conform to the base Optimizer class, there is now also Minimizer protocol and the optimizers can still be used directly via that say with a partial.
Update: Created following new issue for scikit-quant optimizers as outlined above