-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Manage edge case of pickling instmap. #9487
Manage edge case of pickling instmap. #9487
Conversation
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:
|
7af6f6b
to
988a179
Compare
Pull Request Test Coverage Report for Build 4054589799
💛 - Coveralls |
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> (cherry picked from commit 8af4045)
Summary
This is a followup PR of #8885 for (edge case) bug fix. When
InstructionScheduleMap.add
is called witharguments
and non-picklable value is specified (such as python dict key), parallel transpile will fail with the inst map due to this line.https://github.com/Qiskit/qiskit-terra/blob/a3b359b899d5d963272a7b424c8a283bc6bd4c0d/qiskit/compiler/transpiler.py#L365-L368
Details and comments
See new test case for code to reproduce the bug. This PR typecast
arguments
to python list so that any iterable is stored in the picklable format.