Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

uuid kwarg of Parameter() not available in qiskit 0.44 #782

Closed
aeddins-ibm opened this issue Jan 4, 2024 · 2 comments
Closed

uuid kwarg of Parameter() not available in qiskit 0.44 #782

aeddins-ibm opened this issue Jan 4, 2024 · 2 comments
Labels
type: bug Something isn't working

Comments

@aeddins-ibm
Copy link

aeddins-ibm commented Jan 4, 2024

Version: qiskit-ibm-provider 0.7.3

What is the current behavior?

Currently, the qiskit version in the qiskit-ibm-provider requirements.txt is 0.44.1:

In this version of qiskit (aka qiskit-terra 0.25), Parameter.__init__() does not have the kwarg uuid:
https://github.com/Qiskit/qiskit/blob/a9a41309427b56a7956b03ee67bda95ef8a89636/qiskit/circuit/parameter.py#L75

(not to be confused with Parameter.__new__(), which does have this kwarg, but is not relevant here AFAICT).

Howver, qiskit-ibm-provider passes the uuid kwarg to qiskit's Parameter.__init__() here:

param = Parameter(name, uuid=param_uuid)

This errors during deserialization when one tries to e.g. load a job result.

I was able to resolve this issue locally by upgrading to qiskit 0.45, so maybe we can just put that version in the requirements.txt?

@aeddins-ibm aeddins-ibm added the type: bug Something isn't working label Jan 4, 2024
@kt474
Copy link
Member

kt474 commented Jan 4, 2024

Should be fixed by #736, planning on doing a release tomorrow.

@aeddins-ibm aeddins-ibm changed the title Update required qiskit version uuid kwarg of Parameter() not available in qiskit 0.44 Jan 4, 2024
@kt474
Copy link
Member

kt474 commented Jan 5, 2024

Fixed by #736

@kt474 kt474 closed this as completed Jan 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants