Skip to content

Commit d32ba61

Browse files
dabaconrht
authored andcommitted
Speed up a slow transformer test (quantumlib#5146)
This test was the slowest that we run, 45 seconds, so I cut down on the parameterized range. @tanujkhattar
1 parent edea718 commit d32ba61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cirq-core/cirq/transformers/analytical_decompositions/two_qubit_to_sqrt_iswap_test.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,8 @@ def test_fsim_gate_with_symbols():
294294
c_new_sqrt_iswap_inv = cirq.Circuit(
295295
cirq.parameterized_2q_op_to_sqrt_iswap_operations(op, use_sqrt_iswap_inv=True)
296296
)
297-
for theta_val in np.linspace(0, 2 * np.pi, 12):
298-
for phi_val in np.linspace(0, 2 * np.pi, 12):
297+
for theta_val in np.linspace(0, 2 * np.pi, 4):
298+
for phi_val in np.linspace(0, 2 * np.pi, 6):
299299
cirq.testing.assert_allclose_up_to_global_phase(
300300
cirq.unitary(cirq.resolve_parameters(op, {'theta': theta_val, 'phi': phi_val})),
301301
cirq.unitary(

0 commit comments

Comments
 (0)