-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix performance of
ReverseEstimatorGradient
for partial gradients (…
…#9491) (#9492) * Use append over += * add reno (cherry picked from commit 729f7d1) Co-authored-by: Julien Gacon <[email protected]>
- Loading branch information
1 parent
61e5618
commit aaf9975
Showing
2 changed files
with
14 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
6 changes: 6 additions & 0 deletions
6
releasenotes/notes/fix-partial-reverse-gradient-f35fb1f30ee15692.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fix a performance bug in :class:`.ReverseEstimatorGradient` where the calculation | ||
did a large amount of unnecessary copies if the gradient was only calculated for | ||
a subset of parameters, or in a circuit with many unparameterized gates. |