Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow intercepting decomposer while preserving structure. (#4343)
This allows users to specify an intercepting decomposer (i.e. one that runs before default decomposition behavior) and use structure-preserving behavior (i.e. keeping `CircuitOperation`s but decomposing their contents) in the same `decompose` call. This is a prerequisite for allowing `CircuitOperation`s in `cirq.optimized_for_sycamore`.
- Loading branch information
1 parent
912110f
commit 055db68
Showing
2 changed files
with
13 additions
and
46 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