Skip to content

Pulled out Cirq proto dependency. #590

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

Merged
merged 4 commits into from
Jun 14, 2021
Merged

Pulled out Cirq proto dependency. #590

merged 4 commits into from
Jun 14, 2021

Conversation

MichaelBroughton
Copy link
Collaborator

People with L + 3 foresight (@dabacon, @balopat ) independently predicted we might run into issues with our dependency on the "pre-compiled never re-built" cirq ***_pb2.py files as well as their associated serialization logic. Despite these predictions being over a year old, the first warning signs have come through here (quantumlib/Cirq#4161).

This PR pulls out the original serialization logic we built on from Cirq v0.9.0 release tag (the one with the most minimal serialization that still supports everything we need) and moves it entirely into the TFQ repo. From here we can gradually trim off the things we don't need and cut down on proto size to get the code running even faster while removing our explicit proto version requirements as well as dependency on the pre-generated proto files. This will also make life for Cirq easier since they won't have to worry (as much) about proto issues and serialization logic downstream for us.

balopat
balopat previously approved these changes Jun 8, 2021
Copy link
Contributor

@balopat balopat left a comment

Choose a reason for hiding this comment

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

LGTM - however, don't we want to remove then the cirq dependency from WORKSPACE?

@MichaelBroughton MichaelBroughton merged commit 534f65d into master Jun 14, 2021
@MichaelBroughton MichaelBroughton deleted the proto_fix branch June 14, 2021 17:29
jaeyoo pushed a commit to jaeyoo/quantum that referenced this pull request Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants