-
Notifications
You must be signed in to change notification settings - Fork 330
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
update pypi package #866
Comments
Hopefuly, version 0.8.1 will solve this issue, thank you for the feedback. |
Version 0.8.1 is out now - is this issue persisting @thepineapplepirate? |
I will try to test it. I can see that the installed package now does have the pass_manager in the sampler_qnn class in sampler_qnn.py. There are still differences in sampler_qnn..py, between this pypi version and what is in this github repo, however. I also notice that when installed directly from the github repo, the version is 0.9, rather than 0.8.1 -- is this expected? |
Pypi installs the latest stable version from the branch
|
@thepineapplepirate could you please point me to where version 0.9 appears? Are you directly installing from PS: If so, we could flag this behaviour in another issue, as it would not be linked to Pypi, which appears to be correctly in sync with the release history: https://pypi.org/project/qiskit-machine-learning/#history |
Environment
What is happening?
The version of this codebase seems to be different that what is currently on pypi. I found out about this when trying to pass the pass_manager argument to samplerQNN.py (as seen in the documentation https://qiskit-community.github.io/qiskit-machine-learning/stubs/qiskit_machine_learning.neural_networks.SamplerQNN.html) and it did not exist.
How can we reproduce the issue?
What should happen?
you will get an error that looks like this
TypeError: SamplerQNN.init() got an unexpected keyword argument 'pass_manager'
Any suggestions?
I would make sure that the latest version of the codebase that is downloadable via pip, is actually reflecting the source code on github. This is in part preventing running these algorithms on actual hardware since the backend needs to be passed through the pass_manager.
I only noticed this with estimator_qnn.py and sampler_qnn.py, but I would imagine other parts of the code could also need updated.
The text was updated successfully, but these errors were encountered: