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

Increase test tolerances on some analytical decomposition tests #5535

Merged
merged 1 commit into from
Jun 16, 2022

Conversation

maffoo
Copy link
Contributor

@maffoo maffoo commented Jun 16, 2022

Fixes #5533

I don't feel great about this, because we don't have a principled way of choosing these tolerances, some of which already seem quite generous (1e-4 is not enough in one case). But this should upblock other PRs.

@maffoo maffoo requested review from a team, vtomole and cduck as code owners June 16, 2022 17:23
@maffoo maffoo requested a review from mpharrigan June 16, 2022 17:23
@CirqBot CirqBot added the Size: XS <10 lines changed label Jun 16, 2022
@maffoo maffoo changed the title Increate test tolerances on some analytical decomposition tests Increase test tolerances on some analytical decomposition tests Jun 16, 2022
@maffoo maffoo added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Jun 16, 2022
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Jun 16, 2022
@dabacon dabacon merged commit 4e36288 into master Jun 16, 2022
@CirqBot
Copy link
Collaborator

CirqBot commented Jun 16, 2022

Automerge cancelled: Pull Request is not mergeable.

@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 16, 2022
@maffoo maffoo deleted the u/maffoo/test-tols branch June 16, 2022 17:38
CirqBot pushed a commit that referenced this pull request Jun 29, 2022
…final_state_vector (#5636)

Rolls back change in #5426 that set the default precision on `Circuit#unitary` to `np.complex128`.

Also sets the default on `Circuit#final_state_vector` to `np.complex128`.  There was a deprecation warning that this was going to be downgraded to `np.complex64`,, but this will now remain `np.complex128`.  This is breaking in that is someone explicitly passed `dtype=None` to this method it would now break.  

Rolls back #5426 #5616 #5537 #5535
rht pushed a commit to rht/Cirq that referenced this pull request May 1, 2023
…final_state_vector (quantumlib#5636)

Rolls back change in quantumlib#5426 that set the default precision on `Circuit#unitary` to `np.complex128`.

Also sets the default on `Circuit#final_state_vector` to `np.complex128`.  There was a deprecation warning that this was going to be downgraded to `np.complex64`,, but this will now remain `np.complex128`.  This is breaking in that is someone explicitly passed `dtype=None` to this method it would now break.  

Rolls back quantumlib#5426 quantumlib#5616 quantumlib#5537 quantumlib#5535
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.

Test failures in analytical decomposition transformers
3 participants