Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SerializableGateSet.is_supported (#3410)
This method checks if a given object containing operations (a circuit, moment, or other arbitrary op tree) is supported by a gateset. Note that this does not address separating the notions of belonging to a gateset from serializability, but at it provides a way to check if a circuit is supported without actually serializing, which can be expensive.
- Loading branch information
Showing
2 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