-
Notifications
You must be signed in to change notification settings - Fork 135
Spectroscopy and calibrations integration V3 #88
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
Changes from 21 commits
19f8899
a19c821
71553c7
4904e42
9c6ef7f
299c959
43a00cf
383fc08
61c0920
c1e29db
4f2f40f
c7a4b71
f276c7b
991f8ea
9a76125
f6f2d83
3fea5a4
722ba59
4e31847
ae4a7c9
f032b5d
0d8fc79
ff9d254
9f72426
8cd5c89
e0e3bfd
db00f3b
a9a38b9
c3f5907
468af33
d9d47df
864f3af
744bb17
b818297
8e65eef
23b3a04
d4c792d
fac68ec
c2b4109
90b5617
762ded0
ce9b9fc
cac9706
e1e5a72
4bb5861
1262246
206baa1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # This code is part of Qiskit. | ||
| # | ||
| # (C) Copyright IBM 2021. | ||
| # | ||
| # This code is licensed under the Apache License, Version 2.0. You may | ||
| # obtain a copy of this license in the LICENSE.txt file in the root directory | ||
| # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. | ||
| # | ||
| # Any modifications or derivative works of this code must retain this | ||
| # copyright notice, and modified files need to carry a notice indicating | ||
| # that they have been altered from the originals. | ||
|
|
||
| """Types used by the calibration module.""" | ||
|
|
||
| from typing import Union | ||
| from collections import namedtuple | ||
|
|
||
| from qiskit.circuit import ParameterExpression | ||
|
|
||
|
|
||
| ParameterKey = namedtuple("ParameterKey", ["parameter", "qubits", "schedule"]) | ||
| ScheduleKey = namedtuple("ScheduleKey", ["schedule", "qubits"]) | ||
| ParameterValueType = Union[ParameterExpression, float, int, complex] | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,6 +17,7 @@ | |
| import os | ||
| import uuid | ||
| from collections import OrderedDict | ||
| from datetime import datetime | ||
|
|
||
| from qiskit.result import Result | ||
| from qiskit.providers import Backend | ||
|
|
@@ -108,6 +109,16 @@ def job_ids(self) -> List[str]: | |
| """ | ||
| return list(self._jobs.keys()) | ||
|
|
||
| @property | ||
| def completion_times(self) -> Dict[str, datetime]: | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Once
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for pointing this out @yaelbh . Which PR is
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| """Returns the completion times of the jobs.""" | ||
| job_times = {} | ||
| for job_id, job in self._jobs.items(): | ||
| if job is not None and "COMPLETED" in job.time_per_step(): | ||
| job_times[job_id] = job.time_per_step().get("COMPLETED") | ||
|
|
||
| return job_times | ||
|
|
||
| @property | ||
| def backend(self) -> Backend: | ||
| """Return backend. | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.