From 12facee4521596ec9b5a8e10ebc15f3da3539b12 Mon Sep 17 00:00:00 2001 From: Yao Tang Date: Tue, 31 Oct 2023 14:34:30 +0000 Subject: [PATCH] relax deadline for hypothesis test --- tests/test_qulacs_backend.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_qulacs_backend.py b/tests/test_qulacs_backend.py index b739bd0..bcf72c7 100644 --- a/tests/test_qulacs_backend.py +++ b/tests/test_qulacs_backend.py @@ -16,7 +16,8 @@ from typing import List, Sequence, Union, Optional, Dict, Any import warnings import math -from hypothesis import given, strategies +from datetime import timedelta +from hypothesis import given, strategies, settings import numpy as np import pytest from openfermion.ops import QubitOperator # type: ignore @@ -338,6 +339,7 @@ def test_backend_with_circuit_permutation() -> None: n_shots=strategies.integers(min_value=1, max_value=10), # type: ignore n_bits=strategies.integers(min_value=0, max_value=10), ) +@settings(deadline=timedelta(seconds=1)) def test_shots_bits_edgecases(n_shots, n_bits) -> None: c = Circuit(n_bits, n_bits)