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

Remove CrossEntropyResult and CrossEntropyResultDict #5687

Merged
merged 16 commits into from Jul 11, 2022

Conversation

dstrain115
Copy link
Collaborator

  • 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.

- 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.
@dstrain115 dstrain115 requested review from mrwojtek, a team, vtomole and cduck as code owners July 8, 2022 18:07
@dstrain115 dstrain115 requested a review from viathor July 8, 2022 18:07
@CirqBot CirqBot added the size: L 250< lines changed <1000 label Jul 8, 2022
purity_data = kwargs.get('purity_data', None)
if purity_data is not None:
purity_data = [(d, f) for d, f in purity_data]
return {
Copy link
Collaborator

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.

Copy link
Collaborator Author

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?

Copy link
Collaborator

@dabacon dabacon left a comment

Choose a reason for hiding this comment

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

LGTM

@dstrain115 dstrain115 added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Jul 11, 2022
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Jul 11, 2022
@CirqBot
Copy link
Collaborator

CirqBot commented Jul 11, 2022

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']

@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 Jul 11, 2022
@dstrain115 dstrain115 added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Jul 11, 2022
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Jul 11, 2022
@CirqBot CirqBot merged commit e1f7cb7 into quantumlib:master Jul 11, 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 Jul 11, 2022
rht pushed a commit to rht/Cirq that referenced this pull request May 1, 2023
- 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: L 250< lines changed <1000
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants