Skip to content

Commit e768193

Browse files
reduce the size of test_gf2mulmod_classical_action_slow (#1611)
1 parent ed6170e commit e768193

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

qualtran/bloqs/gf_arithmetic/gf2_multiplication_test.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,9 @@ def test_gf2mulmod_classical_action(m_x):
309309
def test_gf2mulmod_classical_action_slow():
310310
m_x = [8, 4, 3, 1, 0]
311311
blq = GF2MulViaKaratsuba(m_x)
312-
qlt_testing.assert_consistent_classical_action(blq, x=blq.gf.elements, y=blq.gf.elements)
312+
xs = blq.gf.elements[np.random.choice(2**8, 10)]
313+
ys = blq.gf.elements[np.random.choice(2**8, 10)]
314+
qlt_testing.assert_consistent_classical_action(blq, x=xs, y=ys)
313315

314316

315317
@pytest.mark.parametrize('m_x', [[2, 1, 0], [3, 1, 0], [5, 2, 0]])

0 commit comments

Comments
 (0)