-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Remove CrossEntropyResult and CrossEntropyResultDict #5687
Remove CrossEntropyResult and CrossEntropyResultDict #5687
Conversation
- Change Foxtail to Sycamore since Foxtail is deprecated. - Add some clarification that instructions are for linux.
- Also remove the whole cross_entropy_benchmarking.py since those were the last exposed objects from it. - Note that these were JSON serializable objects and the replacements are in reCirq. Thus, we just deserialize to a dictionary of values instead.
purity_data = kwargs.get('purity_data', None) | ||
if purity_data is not None: | ||
purity_data = [(d, f) for d, f in purity_data] | ||
return { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be a named tuple instead? that wa they actually mimic the way they are used for the previous data class? This is also works for the result dict.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, everything is deserialized into a NamedTuple now. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Automerge cancelled: A required status check is not present. Missing statuses: ['Pytest MacOS (3.7)', 'Pytest MacOS (3.8)', 'Pytest MacOS (3.9)', 'Pytest Ubuntu (3.7)', 'Pytest Ubuntu (3.8)', 'Pytest Ubuntu (3.9)', 'Pytest Windows (3.7)', 'Pytest Windows (3.8)', 'Pytest Windows (3.9)', 'Typescript lint check', 'Typescript tests', 'Typescript tests coverage'] |
- Also remove the whole cross_entropy_benchmarking.py since those were the last exposed objects from it. - Note that these were JSON serializable objects and the replacements are in reCirq. Thus, we just deserialize to a dictionary of values instead.
- Also remove the whole cross_entropy_benchmarking.py since those were the last exposed objects from it. - Note that these were JSON serializable objects and the replacements are in reCirq. Thus, we just deserialize to a dictionary of values instead.
since those were the last exposed objects from it.
replacements are in reCirq. Thus, we just deserialize to
a dictionary of values instead.