Commit 08b1efb
authored
Streamline proto serialization of circuits with duplicate operations (#6991)
* Streamline proto serialization of circuits with duplicate operations
- Some circuits, such as randomized benchmarking circuits, have many
repeated operations.
- Streamline the proto serialization of these circuits so that these
operations are stored only once (in the constants table).
Note that this PR only adds deserialization by default and hides serialization behind a feature flag. Once this is deployed everywhere, then we can enable serialization.
* fix type
* Addressed some of the comments.
* coverage1 parent 6ebc78b commit 08b1efb
File tree
5 files changed
+208
-137
lines changed- cirq-google/cirq_google
- api/v2
- serialization
5 files changed
+208
-137
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
| |||
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
90 | 100 | | |
91 | 101 | | |
92 | 102 | | |
| |||
0 commit comments