-
Notifications
You must be signed in to change notification settings - Fork 67
Conversation
Pull Request Test Coverage Report for Build 5750015310
💛 - Coveralls |
Items that need to be addressed:
|
@kt474 - this PR is not quite ready for review, however it would be great if you could do a preliminary review over what I did until now, just to see if I am in the right direction. |
Looks good so far! To answer some of your questions:
|
…-provider into support_session
See also related issue: Qiskit/qiskit-ibm-runtime#969. |
@kt474 - I think this is ready for review. Please also see my comments above again, as I made some additions there. |
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.
Looks pretty good!
Running backend.run()
jobs in a session seems to be working correctly but there seems to be an issue with jobs not in sessions
- It would be good to double check the integration tests are still passing (they seem to be timing out for me right now)
backend = provider.get_backend('ibmq_qasm_simulator')
circuit = ReferenceCircuits.bell()
with Session(backend_name=backend) as session:
job = backend.run(circuit)
print(job.result())
session.close()
job2 = backend.run(circuit) # this is in a new session but should not be in any session
|
||
def __init__( | ||
self, | ||
backend_name: Optional[str] = None, |
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.
To be consistent with runtime, we should probably use backend
here instead of backend_name
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.
I could, but I wanted to stress that here it is only a string and not an actual backend. In runtime, it can be either.
Actually, both jobs here are running without a session. The way I implemented it, |
This PR is replaced by #699. |
Summary
Adding support for
Session
inqiskit-ibm-provider
.Details and comments
This update introduces duplications between this repo and
qiskit-ibm-runtime
. They should be addressed after this one is merged. See linked issue below.Fixes #588.