Skip to content

Commit

Permalink
Update qiskit/primitives/primitive_job.py
Browse files Browse the repository at this point in the history
Co-authored-by: Takashi Imamichi <31178928+t-imamichi@users.noreply.github.com>
  • Loading branch information
kt474 and t-imamichi authored Dec 17, 2024
1 parent fac959a commit 7c4cc23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qiskit/primitives/primitive_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def _submit(self):
self._future = executor.submit(self._function, *self._args, **self._kwargs)
executor.shutdown(wait=False)

def _prepare_dump(self): # This method allows PrimitiveJob to be serialized
def _prepare_dump(self):
"""This method allows PrimitiveJob to be serialized"""
_ = self.result()
_ = self.status()
self._future = None
Expand Down

0 comments on commit 7c4cc23

Please sign in to comment.