Skip to content

Commit

Permalink
move timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
nonhermitian committed Sep 20, 2024
1 parent 1d59d78 commit 8b5f38a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mthree/mitigation.py
Original file line number Diff line number Diff line change
Expand Up @@ -892,9 +892,9 @@ def _job_thread(jobs, mit, qubits, num_cal_qubits, cal_strings):
counts.extend(_counts)
else:
counts.append(_counts)
# attach timestamp
timestamp = job.metrics()["timestamps"]["running"]
logger.info("All jobs are done.")
# attach timestamp
timestamp = job.metrics()["timestamps"]["running"]
# Timestamp can be None
if timestamp is None:
timestamp = datetime.datetime.now()
Expand Down

0 comments on commit 8b5f38a

Please sign in to comment.