Commit 913e68b
authored
Add methods to serialize multi-programs in cirq_google (#7678)
- Adds a new Message in the Program proto for KeyedCircuit which can
store multiple circuits indexed by parameters.
- This also adds a pair of functions in CircuitSerializer called
serialize_multi_program and deserialize_multi_program.
- These can serialize a list of circuits, a map of circuits with string
keys, or a function that returns a circuit (with a corresponding sweep
object that specifies how to call the function).1 parent 3317377 commit 913e68b
File tree
5 files changed
+552
-211
lines changed- cirq-google/cirq_google
- api/v2
- serialization
5 files changed
+552
-211
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
31 | 37 | | |
32 | 38 | | |
33 | 39 | | |
| |||
54 | 60 | | |
55 | 61 | | |
56 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
57 | 86 | | |
58 | 87 | | |
59 | 88 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments