Skip to content

The number of exponents is too damn high #5456

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 5 commits into from
Jun 7, 2022

Conversation

dabacon
Copy link
Collaborator

@dabacon dabacon commented Jun 6, 2022

Just going to throw this out there for comment.

assist_consistent_protocols is used in a huge number of tests (many of which are themselves parameterized tests). We test all of the protocols for a large number of different powed versions of the gate. This ends up being something like 10% or our test time.

I've reduced this number down to what I think is a bit more reasonable, (0, itself, inverse, a non-zero float, a symbol).

@CirqBot CirqBot added the Size: XS <10 lines changed label Jun 6, 2022
@dabacon dabacon marked this pull request as ready for review June 6, 2022 21:12
@dabacon dabacon requested review from a team, vtomole and cduck as code owners June 6, 2022 21:12
@dabacon dabacon requested a review from viathor June 6, 2022 21:12
@dabacon dabacon changed the title The number of exponents is too damn high WIP (testing CI): The number of exponents is too damn high Jun 6, 2022
@dabacon dabacon changed the title WIP (testing CI): The number of exponents is too damn high The number of exponents is too damn high Jun 6, 2022
Copy link
Collaborator

@vtomole vtomole left a comment

Choose a reason for hiding this comment

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

LGTM given these are optional arguments.

@dabacon dabacon added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Jun 7, 2022
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Jun 7, 2022
@CirqBot CirqBot merged commit 66309e0 into quantumlib:master Jun 7, 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 7, 2022
rht pushed a commit to rht/Cirq that referenced this pull request May 1, 2023
Just going to throw this out there for comment.

`assist_consistent_protocols` is used in a huge number of tests (many of which are themselves parameterized tests).  We test all of the protocols for a large number of different `pow`ed versions of the gate.  This ends up being something like 10% or our test time.  

I've reduced this number down to what I think is a bit more reasonable, (0, itself, inverse, a non-zero float, a symbol).
harry-phasecraft pushed a commit to PhaseCraft/Cirq that referenced this pull request Oct 31, 2024
Just going to throw this out there for comment.

`assist_consistent_protocols` is used in a huge number of tests (many of which are themselves parameterized tests).  We test all of the protocols for a large number of different `pow`ed versions of the gate.  This ends up being something like 10% or our test time.  

I've reduced this number down to what I think is a bit more reasonable, (0, itself, inverse, a non-zero float, a symbol).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Size: XS <10 lines changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants