Skip to content

Conversation

@verult
Copy link
Collaborator

@verult verult commented Jun 16, 2022

GateFamily has existed prior to the last release, while GateFamily tag support has not gone into a release yet. Removing empty lists in serialized JSON before the next release as recommended to ensure backward compatibility.

@95-martin-orion

@verult verult requested a review from 95-martin-orion June 16, 2022 00:13
@verult verult requested review from a team, cduck, vtomole and wcourtney as code owners June 16, 2022 00:13
@CirqBot CirqBot added the size: M 50< lines changed <250 label Jun 16, 2022
@95-martin-orion
Copy link
Collaborator

What motivates this change? It's generally only necessary to omit empty field when trying to maintain backwards compatibility with old versions of a class - is that what's happening here?

@verult
Copy link
Collaborator Author

verult commented Jun 16, 2022

That's right, similar to the situation in GridDevice. Updated the PR description to be more specific.

Copy link
Collaborator

@95-martin-orion 95-martin-orion left a comment

Choose a reason for hiding this comment

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

Cool, this all checks out.

@verult
Copy link
Collaborator Author

verult commented Jun 17, 2022

CI failures look similar to precision issues here: https://github.com/quantumlib/Cirq/runs/6926154638?check_suite_focus=true

cc @dabacon @MichaelBroughton

@verult verult force-pushed the gatefamily-tag-serialization branch from a0aafcf to f25d6cb Compare June 24, 2022 03:43
@verult verult added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Jun 24, 2022
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Jun 24, 2022
@CirqBot CirqBot merged commit 60714d4 into quantumlib:master Jun 24, 2022
@CirqBot CirqBot removed automerge Tells CirqBot to sync and merge this PR. (If it's running.) front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. labels Jun 24, 2022
rht pushed a commit to rht/Cirq that referenced this pull request May 1, 2023
… empty (quantumlib#5532)

GateFamily has existed prior to the last release, while GateFamily tag support has not gone into a release yet. Removing empty lists in serialized JSON before the next release as recommended to ensure backward compatibility.

@95-martin-orion
harry-phasecraft pushed a commit to PhaseCraft/Cirq that referenced this pull request Oct 31, 2024
… empty (quantumlib#5532)

GateFamily has existed prior to the last release, while GateFamily tag support has not gone into a release yet. Removing empty lists in serialized JSON before the next release as recommended to ensure backward compatibility.

@95-martin-orion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: M 50< lines changed <250

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants