Run product state functions inplace to avoid copies where possible#6396
Merged
tanujkhattar merged 4 commits intoquantumlib:mainfrom Feb 3, 2024
Merged
Run product state functions inplace to avoid copies where possible#6396tanujkhattar merged 4 commits intoquantumlib:mainfrom
tanujkhattar merged 4 commits intoquantumlib:mainfrom
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6396 +/- ##
=======================================
Coverage 97.81% 97.81%
=======================================
Files 1111 1111
Lines 97121 97167 +46
=======================================
+ Hits 95000 95047 +47
+ Misses 2121 2120 -1 ☔ View full report in Codecov by Sentry. |
tanujkhattar
approved these changes
Jan 8, 2024
harry-phasecraft
pushed a commit
to PhaseCraft/Cirq
that referenced
this pull request
Oct 31, 2024
…uantumlib#6396) * Run product state merges inplace to avoid copies * rename to merged_state * comment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A few places were not running inplace. This PR has them run inplace so to avoid unnecessary copies.