Package Details: python-qiskit-ibmq-provider 0.20.2-2

Git Clone URL: (read-only, click to copy)
Package Base: python-qiskit-ibmq-provider
Description: (DEPRECATED) Module for accessing the quantum devices and simulators at IBMQ
Upstream URL:
Licenses: Apache
Submitter: iyanmv
Maintainer: None
Last Packager: iyanmv
Votes: 1
Popularity: 0.000000
First Submitted: 2019-11-28 16:38 (UTC)
Last Updated: 2023-08-09 09:42 (UTC)

Latest Comments

iyanmv commented on 2021-12-13 11:38 (UTC)

See this:

iyanmv commented on 2019-12-11 10:41 (UTC) (edited on 2019-12-18 23:54 (UTC) by iyanmv)

Glad to hear that is working! Yes, you are right, cryptography is required by requests-ntlm by it is not include in the PKGBUILD. I will open a bug since that package is in Community repo. I didn't have this problem since I had python-cryptography before as a dependency of cerbot.

harmonica commented on 2019-12-11 10:35 (UTC)

We managed to get it to work! Somehow, I mass missing the python cryptography module, which is a dependency of requests_ntlm which is used by ibmq-providers.

''' $ python import qiskit.providers.ibmq '''

I got the same deprecation warnings as before, but also a more revealing error traceback

''' Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.8/site-packages/qiskit/providers/ibmq/", line 20, in <module> from .ibmqfactory import IBMQFactory File "/usr/lib/python3.8/site-packages/qiskit/providers/ibmq/", line 21, in <module> from .accountprovider import AccountProvider File "/usr/lib/python3.8/site-packages/qiskit/providers/ibmq/", line 27, in <module> from .ibmqbackend import IBMQBackend, IBMQSimulator File "/usr/lib/python3.8/site-packages/qiskit/providers/ibmq/", line 35, in <module> from .credentials import Credentials File "/usr/lib/python3.8/site-packages/qiskit/providers/ibmq/credentials/", line 21, in <module> from .credentials import Credentials, HubGroupProject File "/usr/lib/python3.8/site-packages/qiskit/providers/ibmq/credentials/", line 20, in <module> from requests_ntlm import HttpNtlmAuth File "/usr/lib/python3.8/site-packages/requests_ntlm/", line 1, in <module> from .requests_ntlm import HttpNtlmAuth File "/usr/lib/python3.8/site-packages/requests_ntlm/", line 5, in <module> from cryptography import x509 ModuleNotFoundError: No module named 'cryptography' '''

I pacman installed python-cryptography and now it all works.

iyanmv commented on 2019-12-10 10:43 (UTC)

Can you do this without error?

$ python
>>> from qiskit import __qiskit_version__
>>> __qiskit_version__
{'qiskit-terra': '0.11.0', 'qiskit-aer': '0.3.4', 'qiskit-ignis': '0.2.0', 'qiskit-ibmq-provider': '0.4.4', 'qiskit-aqua': '0.6.1', 'qiskit': None}

Note that I didn't create a python-qiskit PKGBUILD because it would be just a meta package forcing to install certain versions of each component of the framework, that's why it says 'qiskit': None. I prefer to have last version of each component.

Did you try installing with pip before using the PKGBUILDs?

I just tried installing in a different computer, to check in case I forgot some dependencies, and it's working. I don't know what can be wrong...

harmonica commented on 2019-12-10 10:30 (UTC)

@iyanmv I forgot to mention that I did manually chase all the dependencies that were only in the AUR and installed them asdeps. I tried with yay too as you recommended but it does not fix my problem.

iyanmv commented on 2019-12-10 09:43 (UTC)

@harmonica those warnings are expected. I will try to removed them in the future, but I think it's an issue from upstream. When using python build, those dynamic library files (.so) contain references to the source directory. If you go to the folder where you clone the repo, do the following (read also this):

grep -R "$(pwd)/src" pkg/

That command will show the same files that makepkg detected and that's why we get the warning. Pick one and use strings to see the actual reference:

strings pkg/python-qiskit-aer/usr/lib/python3.8/site-packages/qiskit/providers/aer/backends/ | grep $USER

As you can see it is a mention to wrappers/qasm_controller_wrapper.pyx.

Nevertheless, that is not the problem. By the way, makepkg -s will only install dependencies available in official repos and install them using pacman, but there are some dependencies only available in AUR.

I would recommend you using an AUR helper, for example yay. Install it the usual way, and then try:

yay -aS python-qiskit-ibmq-provider

harmonica commented on 2019-12-10 09:18 (UTC)

@iyanmv Yes, it's strange. I just pacman removed all qiskit packages, and removed the directories that I had cgit cloned.

I then git cloned the qiskit terra aer and ibmq-provider and makepkg -csi them in that order. I get the same error message when I try to import qiskit in python.

The makepkg process is very verbose, so I'm not sure I caught all the error messages, but while doing aer I got

==> WARNING: Package contains reference to $srcdir




thanks for the support!

iyanmv commented on 2019-12-10 07:12 (UTC)

@harmonica new versions of Terra, Aer and IBMQ-provider were released tonight. Please try again, although there are not big changes, so if it not working before probably this upgrade won't fix anything.

iyanmv commented on 2019-12-09 21:22 (UTC)

@harmonica I cannot replicate your error, and I have send several jobs to IBMq machines using this PKGBUILD. Can you try to rebuild the package and reinstall? Check if there are any error messages.

First warnings are normal till they fix it upstream for python 3.8. Last error it looks like you didn't install the package.

And no, source is not old, it is the last version released 18 days ago.

harmonica commented on 2019-12-09 15:20 (UTC) (edited on 2019-12-09 15:21 (UTC) by harmonica)

I have successfully installed all the other qiskit packages using your packages, but this one does not work for me. When I try

from qiskit import IBMQ

I get the following error messages

/usr/lib/python3.8/site-packages/qiskit/providers/ibmq/api/clients/ DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead def _connect(self, url: str) -> Generator[Any, None, WebSocketClientProtocol]:

/usr/lib/python3.8/site-packages/qiskit/providers/ibmq/api/clients/ DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead def get_job_status(

/usr/lib/python3.8/site-packages/qiskit/ RuntimeWarning: Could not import the IBMQ provider from the qiskit-ibmq-provider package. Install qiskit-ibmq-provider or check your installation. warnings.warn('Could not import the IBMQ provider from the '

Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: cannot import name 'IBMQ' from 'qiskit' (/usr/lib/python3.8/site-packages/qiskit/

maybe the source is old?