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.
Fix FSim serialization for zeros and ints (quantumlib#4646)
* Fix FSim serialization for zeros and ints - Conversion of float args changes 0.0 to a int of 0, so this fails validation, since the current code checks isinstance float. - This PR adds ints to the type checking to fix this.
- Loading branch information
1 parent
2c4da0d
commit 22dbb8c
Showing
2 changed files
with
38 additions
and
1 deletion.
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