Skip to content

Commit

Permalink
Reduce atol in two qubit isometry analytical decompositions to fix …
Browse files Browse the repository at this point in the history
  • Loading branch information
tanujkhattar authored and rht committed May 1, 2023
1 parent 1ee3a9b commit a9074e6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ def test_two_qubit_matrix_to_cz_isometry(
decomposed_final_state_vector = sim.simulate(decomposed_circuit).final_state_vector

assert (
cirq.allclose_up_to_global_phase(original_final_state_vector, decomposed_final_state_vector)
cirq.allclose_up_to_global_phase(
original_final_state_vector, decomposed_final_state_vector, atol=1e-6
)
is is_valid
)

0 comments on commit a9074e6

Please sign in to comment.