Skip to content

Commit

Permalink
Fix hypothesis testing settings
Browse files Browse the repository at this point in the history
  • Loading branch information
SimoneGasperini committed Jan 2, 2024
1 parent 5573b3e commit 3a88438
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_standard_gates.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Test standard gates module"""

import numpy
from hypothesis import given, strategies
from hypothesis import given, strategies, settings
from qiskit.quantum_info import random_unitary
from qiskit.circuit.library import (
IGate, XGate, YGate, ZGate,
Expand Down Expand Up @@ -127,6 +127,7 @@ def test_ecr():
assert numpy.allclose(arr1, arr2)


@settings(deadline=None, max_examples=10)
@given(num_qubits=strategies.integers(min_value=1, max_value=3),
seed=strategies.integers(min_value=0))
def test_unitary(num_qubits, seed):
Expand Down

0 comments on commit 3a88438

Please sign in to comment.