Commit d39112e
Add tuples, ndarrays, and complex numbers to cirq_google proto (#7226)
* Add tuples, ndarrays, and complex numbers to cirq_google proto
- Adds support for (potentially nested) tuples of mismatched types
- Adds support for serializing ndarrays
- Adds support for serializing complex numbers
* my o my, it's mypy
* Fix all the review comments, add set support.
* Fix invert mask, which assumes list, so it can accept tuples.
* Update cirq-google/cirq_google/serialization/arg_func_langs.py
Co-authored-by: Pavol Juhas <pavol.juhas@gmail.com>
* Fix coverage.
---------
Co-authored-by: Pavol Juhas <pavol.juhas@gmail.com>1 parent 9fd4751 commit d39112e
6 files changed
Lines changed: 535 additions & 166 deletions
File tree
- cirq-google/cirq_google
- api/v2
- serialization
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
397 | 398 | | |
398 | 399 | | |
399 | 400 | | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
400 | 404 | | |
401 | 405 | | |
402 | 406 | | |
| |||
417 | 421 | | |
418 | 422 | | |
419 | 423 | | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
420 | 463 | | |
421 | 464 | | |
422 | 465 | | |
| |||
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