Skip to content
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

add SamplerResult / EstimatorResult serialization #1074

Merged
merged 2 commits into from
Nov 3, 2023

Conversation

akihikokuroda
Copy link
Collaborator

@akihikokuroda akihikokuroda commented Nov 2, 2023

Summary

fix: #1066

Details and comments

This should work:

sampler = Sampler(...)
job = sampler.run(...)
result = job.result()
save_result(result)
estimator = Estimator(...)
job = estimator.run(...)
result = job.result()
save_result(result)

Signed-off-by: Akihiko Kuroda <[email protected]>
@akihikokuroda akihikokuroda changed the title add SamplerResult serialization add SamplerResult / EstimatorResult serialization Nov 3, 2023
Copy link
Member

@IceKhan13 IceKhan13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@akihikokuroda akihikokuroda merged commit b2a28c8 into Qiskit:main Nov 3, 2023
7 checks passed
@akihikokuroda akihikokuroda deleted the sampleresult branch November 3, 2023 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Serialization: add support of JobResult object
2 participants