-
Notifications
You must be signed in to change notification settings - Fork 400
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize input constructor for
construct_inputs_qKG
(remove extrane…
…ous `current_value` computation) Summary: The input constructor for `construct_inputs_qKG` computes `current_value`, which is extraneous (it is an additive constant in KG). However, `construct_inputs_qMFKG`, which *does* require an explicit `current_value` (in the cost-aware setting) was piggy-backing off `construct_inputs_qKG` which I suspect is why it persisted. Having said that, `construct_inputs_qKG` computes `current_value` incorrectly for the purposes of `construct_inputs_qMFKG` anyway (as it failed to take fidelity input dimension into consideration), so it wasn't beneficial under any circumstance. With D62391106 which calculates `current_value` correctly for `construct_inputs_qMFKG`, we can safely remove this computation altogether from `construct_inputs_qKG` Differential Revision: D62415444
- Loading branch information
1 parent
167dcb7
commit 58e2ab0
Showing
2 changed files
with
44 additions
and
24 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