Ran
|
Files
81
|
Run time
1s
|
Badge
Embed ▾
README BADGES
|
push
github
Support session (#699) * Initial support for session * Added test for session. Cleaned up some of the unnecessary code * Added max_execution_time parameter when calling program_run * Added hms_to_seconds * Placeholder for session close * Updated example in documentation. Removed Session._circuits_map. * New test file for session in unit test * More unit tests * Added more tests, unit and integration * Changed tests to use FakeProvider * Added support to closing a session * lint and black * Adding runtime_session.py * Moved tests from unit to integration * lint * Updated documentation * Added test * Added Session to __init__ * Fixed tab of documentation * Added newline * Added test for session as a parameter * Revised session to be a member of IBMBackend * Added support for Session as context manager * Updated Session documentation * Improved the tests * Added a session property to IBMBackend * Release note * Removed code related to default session * Revert "Removed code related to default session" This reverts commit eacbe383d. * Fixed import * Fixed mistake in type hints * Fixes in type hints * black, lint and mypy fixes * Fixed tests for CI * lint * Fixed provider in tests * lint * Added a test and improved others * Update releasenotes/notes/session_support-90c41a3c3f58a46b.yaml Co-authored-by: Kevin Tian <kt474@cornell.edu> * Added code-block to release note, from code review * Set backend._session to None after closing session * Modfied tests so that after close_session, backend will run without session * lint * Fixed bug where session was always started * Added handling of session_id in ibm_job * black * Added test_session to integration-test-3 --------- Co-authored-by: Kevin Tian <kt474@cornell.edu> Co-authored-by: Kevin Tian <kevin.tian@ibm.com>
3211 of 6562 relevant lines covered (48.93%)
0.49 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|