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

ProjectorSum object for TFQ #4364

Merged
merged 67 commits into from
Aug 19, 2021
Merged

Conversation

tonybruguier
Copy link
Contributor

This is a follow-up on #4331 which introduced ProjectorString objects. The present PR aims at adding ProjectorSum objects.

@CirqBot CirqBot added size: XL lines changed >1000 size: L 250< lines changed <1000 and removed size: XL lines changed >1000 labels Aug 12, 2021
@tonybruguier
Copy link
Contributor Author

@MichaelBroughton
Now with the ability to add ProjectorString objects to ProjectorSum objects as you had suggested, I think.

Copy link
Collaborator

@MichaelBroughton MichaelBroughton left a comment

Choose a reason for hiding this comment

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

This is looking pretty good. Just a few minor nits and expanding some of the tests a little bit then we should be good to merge.

cirq-core/cirq/ops/linear_combinations_test.py Outdated Show resolved Hide resolved
cirq-core/cirq/ops/linear_combinations.py Outdated Show resolved Hide resolved
cirq-core/cirq/ops/linear_combinations.py Outdated Show resolved Hide resolved
@tonybruguier
Copy link
Contributor Author

Thanks, @MichaelBroughton . PTAL when you have the time?

Copy link
Collaborator

@MichaelBroughton MichaelBroughton left a comment

Choose a reason for hiding this comment

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

LGTM

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

CirqBot commented Aug 19, 2021

Automerge cancelled: A required status check is not present.

Missing statuses: ['cla/google']

@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 Aug 19, 2021
@MichaelBroughton MichaelBroughton added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Aug 19, 2021
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Aug 19, 2021
@CirqBot CirqBot merged commit 739808d into quantumlib:master Aug 19, 2021
@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 Aug 19, 2021
@tonybruguier tonybruguier deleted the projector_sums branch August 19, 2021 03:20
rht pushed a commit to rht/Cirq that referenced this pull request May 1, 2023
This is a follow-up on quantumlib#4331 which introduced ProjectorString objects. The present PR aims at adding ProjectorSum objects.
harry-phasecraft pushed a commit to PhaseCraft/Cirq that referenced this pull request Oct 31, 2024
This is a follow-up on quantumlib#4331 which introduced ProjectorString objects. The present PR aims at adding ProjectorSum objects.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/expectation-value cla: yes Makes googlebot stop complaining. size: L 250< lines changed <1000
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants