File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
cirq-core/cirq/transformers/analytical_decompositions Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -254,8 +254,8 @@ def test_kak_decomposition_depth_partial_cz():
254
254
@pytest .mark .parametrize (
255
255
"v" ,
256
256
[
257
- cirq . unitary ( random_two_qubit_circuit_with_czs (3 )),
258
- cirq . unitary ( random_two_qubit_circuit_with_czs (2 )),
257
+ random_two_qubit_circuit_with_czs (3 ). unitary ( dtype = np . complex128 ),
258
+ random_two_qubit_circuit_with_czs (2 ). unitary ( dtype = np . complex128 ),
259
259
np .diag (np .exp (1j * np .pi * np .random .random (4 ))),
260
260
],
261
261
)
@@ -265,4 +265,4 @@ def test_decompose_to_diagonal_and_circuit(v):
265
265
assert cirq .is_diagonal (diagonal )
266
266
combined_circuit = cirq .Circuit (cirq .MatrixGate (diagonal )(b , c ), ops )
267
267
circuit_unitary = combined_circuit .unitary (qubits_that_should_be_present = [b , c ])
268
- cirq .testing .assert_allclose_up_to_global_phase (circuit_unitary , v , atol = 1e -5 )
268
+ cirq .testing .assert_allclose_up_to_global_phase (circuit_unitary , v , atol = 5e -5 )
You can’t perform that action at this time.
0 commit comments