Skip to content

Commit

Permalink
skip performance tests (Linq) in pytest (#319)
Browse files Browse the repository at this point in the history
Perrformance tests take time and should not be run systematically
  • Loading branch information
JamesB-1qbit authored Jun 22, 2023
1 parent 58e9031 commit 7a43afb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tangelo/linq/tests/test_translator_perf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import time

from itertools import product
import pytest

from tangelo.linq import Gate, Circuit
from tangelo.toolboxes.operators import QubitOperator
Expand Down Expand Up @@ -46,6 +47,7 @@

class PerfTranslatorTest(unittest.TestCase):

@pytest.mark.skip(reason="Takes a long time and doesn't print the desired information.")
def test_perf_operator(self):
""" Performance test with a reasonable large input for operator.
Symbolic backends are not included in this test.
Expand All @@ -71,6 +73,7 @@ def test_perf_operator(self):
except Exception:
continue

@pytest.mark.skip(reason="Takes a long time and doesn't print the desired information.")
def test_perf_circuit(self):
""" Performance test with a reasonable large input for quantum circuit.
Symbolic backends are not included in this test.
Expand All @@ -95,3 +98,7 @@ def test_perf_circuit(self):
print(f"\tFormat conversion from {f:12} to {'tangelo':12} :: {time.time()-tstart} s")
except Exception:
continue


if __name__ == "__main__":
unittest.main()

0 comments on commit 7a43afb

Please sign in to comment.