Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make GridInteractionLayer a JSON serializable dataclass #2779

Merged
merged 6 commits into from
Feb 20, 2020

Conversation

kevinsung
Copy link
Collaborator

I refrained from using json_serializable_dataclass because it caused mypy errors in the definition of the grid patterns (see #2769), and fixing those errors would have made the code much less readable because the grid patterns have comments I want to preserve.

@googlebot googlebot added the cla: yes Makes googlebot stop complaining. label Feb 19, 2020
Copy link
Collaborator

@mpharrigan mpharrigan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a real shame about the decorator and mypy, but looks good

@kevinsung kevinsung merged commit 0915f94 into quantumlib:master Feb 20, 2020
@kevinsung kevinsung deleted the grid_layer_json branch February 20, 2020 20:07
ajhanus pushed a commit to ajhanus/Cirq that referenced this pull request Mar 25, 2020
)

* make GridInteractionLayer a JSON serializable dataclass

* fix

* format

* fix

* cov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Makes googlebot stop complaining.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants