-
Notifications
You must be signed in to change notification settings - Fork 627
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
**Context:** The `argnum` kwarg of gradient transforms applied to a tape is supposed to index into the set of _trainable_ parameters, not all tape parameters. `stoch_pulse_grad` does not do this properly, as reported in #5457. **Description of the Change:** Changes the indexing to be consistent with other gradient transforms **Benefits:** Consistency across `gradients` module; Extend support of differentiable parameters **Possible Drawbacks:** N/A **Related GitHub Issues:** Fixes #5457. [sc-60286]
- Loading branch information
Showing
3 changed files
with
37 additions
and
4 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
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
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