-
Notifications
You must be signed in to change notification settings - Fork 204
Unite Session from qiskit_ibm_provider with Session in this repository
#1280
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
Closed
Closed
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
f5eecd7
Moved provider session from qiskit_ibm_provider to here
merav-aharoni 07e8e10
black
merav-aharoni 0877423
Added import for Session in IBMBackend
merav-aharoni 3f899f6
Changed use of session from qiskit_ibm_provider to Session here
merav-aharoni d25e219
Removed warnings about 2 different session types
merav-aharoni 167e05d
Cleaning up
merav-aharoni 2d92d1b
Fixed issues related to opening Session with backend.open_session()
merav-aharoni b899dfe
Removed session.py that was copied from qiskit_ibm_provider
merav-aharoni b7c83d2
disable cyclic import message
merav-aharoni 8274905
Merge branch 'main' into unite_sessions
merav-aharoni 610d78d
Release note
merav-aharoni aa5349f
Merge branch 'unite_sessions' of github.com:merav-aharoni/qiskit-ibm-…
merav-aharoni 3eb50f2
Merge branch 'main' into unite_sessions
merav-aharoni 7beb8e8
Merge branch 'main' into unite_sessions
merav-aharoni 422f7b7
Merge branch 'main' into unite_sessions
kt474 5b930ef
Merge branch 'main' into unite_sessions
merav-aharoni eeabf5b
Merge branch 'main' into unite_sessions
kt474 8f6f69a
Added test
merav-aharoni 40b4501
Merge branch 'main' into unite_sessions
kt474 3a4af3a
Merge branch 'main' into unite_sessions
kt474 4e072fe
Merge branch 'main' into unite_sessions
kt474 592bcdf
update integration tests & allow non session backend.run
kt474 0924318
Merge branch 'main' into unite_sessions
kt474 3dd7230
fix lint
kt474 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| --- | ||
| features: | ||
| - | | ||
| Session in `qiskit_ibm_runtime` and in `qiskit_ibm_provider` are now the same. | ||
| It is possible now to run a primitive and backend.run() in the same session. | ||
| For example: | ||
|
|
||
| .. code-block:: | ||
|
|
||
| backend = self.service.get_backend("ibmq_qasm_simulator") | ||
| with Session(backend=backend) as session: | ||
| sampler = Sampler(session=session) | ||
| job1 = sampler.run(circuits=ReferenceCircuits.bell()) | ||
| job2 = backend.run(circuits=ReferenceCircuits.bell(), session=session) | ||
| # both jobs will be run in the same session | ||
| print(job1.session_id) | ||
| print(job2.session_id) | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.