1
1
"""Test how features defined in :class:`qibo.models.circuit.Circuit` work during circuit execution."""
2
2
3
- import platform
3
+ import sys
4
4
from collections import Counter
5
5
6
6
import numpy as np
@@ -308,6 +308,7 @@ def test_repeated_execute_with_pauli_noise(backend):
308
308
)
309
309
310
310
311
+ @pytest .mark .skipif (sys .platform == "darwin" , reason = "Mac tests" )
311
312
@pytest .mark .parametrize ("nqubits" , [1 , 2 ])
312
313
def test_repeated_execute_probs_and_freqs (backend , nqubits ):
313
314
circuit = Circuit (nqubits )
@@ -330,18 +331,11 @@ def test_repeated_execute_probs_and_freqs(backend, nqubits):
330
331
else Counter ({"11" : 674 , "10" : 155 , "01" : 154 , "00" : 41 })
331
332
)
332
333
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
+ )
345
339
else :
346
340
test_frequencies = (
347
341
Counter ({"1" : 790 , "0" : 234 })
0 commit comments