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

Make primitives's key serializable #8796

Merged
merged 5 commits into from
Oct 17, 2022

Conversation

ikkoham
Copy link
Contributor

@ikkoham ikkoham commented Sep 27, 2022

Summary

Previously, since Qubits and Clbits were not serializable, the _circuit_key is not serializable. I made the key serializable by using their internal data directly.

Details and comments

@ikkoham ikkoham added Changelog: None Do not include in changelog mod: primitives Related to the Primitives module labels Sep 27, 2022
@ikkoham ikkoham added this to the 0.23.0 milestone Sep 27, 2022
@ikkoham ikkoham requested review from a team and t-imamichi as code owners September 27, 2022 01:06
@qiskit-bot
Copy link
Collaborator

Thank you for opening a new pull request.

Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient.

While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone.

One or more of the the following people are requested to review this:

@coveralls
Copy link

coveralls commented Sep 27, 2022

Pull Request Test Coverage Report for Build 3261861921

  • 3 of 3 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.005%) to 84.753%

Totals Coverage Status
Change from base Build 3255117739: 0.005%
Covered Lines: 61908
Relevant Lines: 73045

💛 - Coveralls

@ikkoham
Copy link
Contributor Author

ikkoham commented Oct 15, 2022

Can I merge this PR?

@mergify mergify bot merged commit fca8db6 into Qiskit:main Oct 17, 2022
ajavadia pushed a commit to ajavadia/qiskit that referenced this pull request Oct 18, 2022
* serializable key

* refactor (Imamichi-san's suggestion)

* refactoring (Imamichi-san's suggestion)

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
@ikkoham
Copy link
Contributor Author

ikkoham commented Nov 29, 2022

I want to make this PR stable backport potential to fix #9149.

@ikkoham ikkoham added the stable backport potential The bug might be minimal and/or import enough to be port to stable label Nov 29, 2022
mergify bot pushed a commit that referenced this pull request Nov 29, 2022
* serializable key

* refactor (Imamichi-san's suggestion)

* refactoring (Imamichi-san's suggestion)

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit fca8db6)
mergify bot added a commit that referenced this pull request Nov 29, 2022
* serializable key

* refactor (Imamichi-san's suggestion)

* refactoring (Imamichi-san's suggestion)

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit fca8db6)

Co-authored-by: Ikko Hamamura <ikkoham@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: None Do not include in changelog mod: primitives Related to the Primitives module stable backport potential The bug might be minimal and/or import enough to be port to stable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants