Skip to content

Commit

Permalink
Add serialization of tokens (#3480)
Browse files Browse the repository at this point in the history
- Adds tokens as a seperate proto field.
- Adds a constant table for lookup of tokens.
- Constant is a symbol table where we can store constant strings.
It is its own message, so it could potentially be used for other
objects (such as gates) in the future, but for now, it is only used
to store tokens.

Note: symbol is already used for sympy symbols, so used the
phrase Constant instead.
  • Loading branch information
dstrain115 committed Nov 5, 2020
1 parent fcabf19 commit 4fc8a85
Show file tree
Hide file tree
Showing 18 changed files with 859 additions and 322 deletions.
68 changes: 39 additions & 29 deletions cirq/google/api/v1/operations_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4fc8a85

Please sign in to comment.