forked from quantumlib/Cirq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mark ProjectorSum class as unhashable (quantumlib#6701)
ProjectorSum stores data in a mutable LinearDict which is not hashable. LinearDict also does not pickle, because by default it has a lambda-function attribute. This excludes ProjectorSum from the `test_hash_from_pickle` test. Resolves quantumlib#6674
- Loading branch information
1 parent
60714e4
commit f89faea
Showing
2 changed files
with
1 addition
and
3 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