-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes gpindices initialization issue in TPPOVM.
Plumbs the 'called_from_reduce' argument of TPPOVM.__init__ into ComplementPOVMEffect and ConjugatedStatePOVMEffect so that effect gpindices aren't allocated during the intialization of a TPPOVM that originates via a __reduce__ call. Also adds logic to BasePOVM to avoid copying effect vectors, which would reset their gpindices and cause allocation down the line. This bugfix may also fix issues with copying TPPOVM objects via, e.g., deepcopy, as this uses the same control path as pickle. Lightly tested on a 1Q TP-parameterized model.
- Loading branch information
Showing
3 changed files
with
16 additions
and
7 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