Skip to content

Commit 9057285

Browse files
build: merge master
2 parents 267cad3 + 75c026a commit 9057285

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

tests/test_models_circuit_features.py

+7-13
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Test how features defined in :class:`qibo.models.circuit.Circuit` work during circuit execution."""
22

3-
import platform
3+
import sys
44
from collections import Counter
55

66
import numpy as np
@@ -308,6 +308,7 @@ def test_repeated_execute_with_pauli_noise(backend):
308308
)
309309

310310

311+
@pytest.mark.skipif(sys.platform == "darwin", reason="Mac tests")
311312
@pytest.mark.parametrize("nqubits", [1, 2])
312313
def test_repeated_execute_probs_and_freqs(backend, nqubits):
313314
circuit = Circuit(nqubits)
@@ -330,18 +331,11 @@ def test_repeated_execute_probs_and_freqs(backend, nqubits):
330331
else Counter({"11": 674, "10": 155, "01": 154, "00": 41})
331332
)
332333
elif backend.__class__.__name__ == "PyTorchBackend":
333-
if platform.system() not in ("Linux", "Windows"):
334-
test_frequencies = (
335-
Counter({"1": 810, "0": 214})
336-
if nqubits == 1
337-
else Counter({"11": 685, "01": 160, "10": 144, "00": 35})
338-
)
339-
else:
340-
test_frequencies = (
341-
Counter({"1": 817, "0": 207})
342-
if nqubits == 1
343-
else Counter({"11": 664, "01": 162, "10": 166, "00": 32})
344-
)
334+
test_frequencies = (
335+
Counter({"1": 817, "0": 207})
336+
if nqubits == 1
337+
else Counter({"11": 664, "01": 162, "10": 166, "00": 32})
338+
)
345339
else:
346340
test_frequencies = (
347341
Counter({"1": 790, "0": 234})

0 commit comments

Comments
 (0)