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

Sets tolerance to 1.0e-8 by default in equivalence assertion #5017

Merged
merged 3 commits into from
Feb 23, 2022

Conversation

towynlin
Copy link
Contributor

As suggested in issue #4784

@towynlin towynlin requested review from a team, vtomole and cduck as code owners February 23, 2022 20:15
@towynlin towynlin requested a review from dabacon February 23, 2022 20:15
@CirqBot CirqBot added the Size: XS <10 lines changed label Feb 23, 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.

Thanks for opening this! Please modify a test in circuit_compare_test.py that keeps track of this change. For example, we can remove some of the explicit passes of atol from some of the tests in test_sensitive_to_measurement_but_not_measured_phase.

@towynlin
Copy link
Contributor Author

towynlin commented Feb 23, 2022

Any objections to removing all/most instances of atol=1e-8? There are 18 that could potentially be deleted in circuit_compare_test.py across 7 test functions.

@vtomole
Copy link
Collaborator

vtomole commented Feb 23, 2022

That sounds good.

@CirqBot CirqBot added the size: S 10< lines changed <50 label Feb 23, 2022
@vtomole vtomole added automerge Tells CirqBot to sync and merge this PR. (If it's running.) and removed size: S 10< lines changed <50 labels Feb 23, 2022
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Feb 23, 2022
@vtomole vtomole added size: S 10< lines changed <50 and removed front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. Size: XS <10 lines changed labels Feb 23, 2022
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Feb 23, 2022
@CirqBot CirqBot merged commit 32f319d into quantumlib:master Feb 23, 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 Feb 23, 2022
@towynlin towynlin deleted the default-atol-issue-4784 branch February 23, 2022 21:48
95-martin-orion pushed a commit to 95-martin-orion/Cirq that referenced this pull request Mar 2, 2022
rht pushed a commit to rht/Cirq that referenced this pull request May 1, 2023
harry-phasecraft pushed a commit to PhaseCraft/Cirq that referenced this pull request Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: S 10< lines changed <50
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants