Skip to content

Commit

Permalink
relax deadline for hypothesis test
Browse files Browse the repository at this point in the history
  • Loading branch information
yao-cqc committed Oct 31, 2023
1 parent 5c0ad12 commit 12facee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_qulacs_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 12facee

Please sign in to comment.