-
Notifications
You must be signed in to change notification settings - Fork 35
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 mutex to KernelMap Cache #382
Conversation
Hello. You may have forgotten to update the changelog!
|
…lane-lightning into add_mutex_getkernelmap
Codecov Report
@@ Coverage Diff @@
## master #382 +/- ##
=======================================
Coverage 99.88% 99.88%
=======================================
Files 49 49
Lines 4458 4471 +13
=======================================
+ Hits 4453 4466 +13
Misses 5 5
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @chaeyeunpark
Looks good, but just a few queries before approving.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @chaeyeunpark.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work @chaeyeunpark
Please wait for PR #383 to be merged before merging this PR. |
Thanks all for cool reviews! |
Before submitting
Please complete the following checklist when submitting a PR:
All new features must include a unit test.
If you've fixed a bug or added code that should be tested, add a test to the
tests
directory!All new functions and code must be clearly commented and documented.
If you do make documentation changes, make sure that the docs build and
render correctly by running
make docs
.Ensure that the test suite passes, by running
make test
.Add a new entry to the
.github/CHANGELOG.md
file, summarizing thechange, and including a link back to the PR.
Ensure that code is properly formatted by running
make format
.When all the above are checked, delete everything above the dashed
line and fill in the pull request template.
Context: KernelMap class provides the best kernel to use based on [number of qubits], [threading], and memory alignment. To generate the kernel information quickly, it uses an internal cache mechanism. However, this violated const correctness and raised a multithreading bug. This PR fixes this bug.
Description of the Change:
Benefits:
Possible Drawbacks:
Related GitHub Issues: