-
Notifications
You must be signed in to change notification settings - Fork 10
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
Chores/qiskit 1.0.2 #275
Chores/qiskit 1.0.2 #275
Conversation
The qiskit-ibm-provider dependency needs to be replaced by qiskit_ibm_runtime: |
Need to test connection to real backend. |
requirements.txt
Outdated
@@ -2,10 +2,10 @@ numpy<1.27 | |||
cython | |||
scikit-learn==1.3.2 | |||
git+https://github.com/pyRiemann/pyRiemann#egg=pyriemann | |||
qiskit==0.46.1 | |||
qiskit==1.0.2 |
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.
Consider pinning to ==1.*
. One of the features of the 1.0 release is the stability guarantee that no versions of Qiskit 1.x will break compatibility. Same for the setup.py
.
I am testing the connection to real backend with the code from this PR and I get: from pyriemann_qiskit.utils.quantum_provider import get_quantum_kernel I have Qiskit 1.0.2 currently installed and qiskit-terra 0.46.1. |
Also I did switch return provider.least_busy( |
@toncho11 simulator is False by default. |
There is no regression in scores. Light benchmark is failing because qiskit-terra and qiskit got installed in the same container: On local, to solve this error, you have to go into your environment folder and delete all On Ci, this happen because main is on qiskit-terra and the PR on qiskit 1.0. This will solve itself when we will merge. |
Sorry, I set simulator=True in this case where I would like to use a simulated backend. |
Ok, the test dataset corresponds to 64620 circuits, and the capacity of the quantum computer is only 300 circuits per job, so I guess it is why we have so many jobs. Changing the optimization_level for the transpiler doesn't help that much, we just need to provide less data - but this is another problem we need to address. Here is a snapshot of the three first jobs executed in the quantum computer: I think we are ready to merge. @toncho11 @frankharkins |
Currently I am getting:
|
Yeah. There is some namespace conflict I think between qiskit-terra and qiskit.
What worked for me was
to go to my environment site-packages
Delete all qiskit folders
Reinstall qiskit 1.0.2
Envoyé à partir de Outlook pour Android<https://aka.ms/AAb9ysg>
…________________________________
From: toncho11 ***@***.***>
Sent: Tuesday, May 7, 2024 10:34:20 PM
To: pyRiemann/pyRiemann-qiskit ***@***.***>
Cc: gcattan ***@***.***>; Author ***@***.***>
Subject: Re: [pyRiemann/pyRiemann-qiskit] Chores/qiskit 1.0.2 (PR #275)
Currently I am getting:
from . import hyper_params_factory, filtering, preprocessing
File "C:\Work\PythonCode\pyRiemann-qiskit\pyq_env\Lib\site-packages\pyriemann_qiskit\utils\hyper_params_factory.py", line 1, in <module>
from qiskit.circuit.library import ZZFeatureMap, ZFeatureMap, PauliFeatureMap
ImportError: cannot import name 'ZZFeatureMap' from 'qiskit.circuit.library' (unknown location)
—
Reply to this email directly, view it on GitHub<#275 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABPQYJZCTN5I6DICPZC6G6TZBE3EZAVCNFSM6AAAAABHAEX65GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJZGI3DEMRQG4>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
If you start from a clean env, it should work right away I believe.
Envoyé à partir de Outlook pour Android<https://aka.ms/AAb9ysg>
…________________________________
From: toncho11 ***@***.***>
Sent: Tuesday, May 7, 2024 10:34:20 PM
To: pyRiemann/pyRiemann-qiskit ***@***.***>
Cc: gcattan ***@***.***>; Author ***@***.***>
Subject: Re: [pyRiemann/pyRiemann-qiskit] Chores/qiskit 1.0.2 (PR #275)
Currently I am getting:
from . import hyper_params_factory, filtering, preprocessing
File "C:\Work\PythonCode\pyRiemann-qiskit\pyq_env\Lib\site-packages\pyriemann_qiskit\utils\hyper_params_factory.py", line 1, in <module>
from qiskit.circuit.library import ZZFeatureMap, ZFeatureMap, PauliFeatureMap
ImportError: cannot import name 'ZZFeatureMap' from 'qiskit.circuit.library' (unknown location)
—
Reply to this email directly, view it on GitHub<#275 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABPQYJZCTN5I6DICPZC6G6TZBE3EZAVCNFSM6AAAAABHAEX65GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJZGI3DEMRQG4>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Yes. It worked. |
Punctuation fix.
Follow-up for #272
Part of: #265