File tree 1 file changed +7
-10
lines changed
1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change 15
15
16
16
import itertools
17
17
import operator
18
- from unittest import skip
19
18
20
19
from ddt import ddt , data , idata , unpack
21
20
40
39
FAKE_PROVIDER = FakeProvider ()
41
40
42
41
43
- @skip ("Skip until Qiskit/11880 is released" )
44
42
@ddt
45
43
class TestFakeBackends (IBMTestCase ):
46
44
@classmethod
@@ -55,14 +53,13 @@ def setUpClass(cls):
55
53
cls .circuit .x (1 )
56
54
cls .circuit .measure_all ()
57
55
58
- # TODO re-enable when Qiskit/11880 is released
59
- # @idata(
60
- # itertools.product(
61
- # [be for be in FAKE_PROVIDER_FOR_BACKEND_V2.backends() if be.num_qubits > 1],
62
- # [0, 1, 2, 3],
63
- # )
64
- # )
65
- # @unpack
56
+ @idata (
57
+ itertools .product (
58
+ [be for be in FAKE_PROVIDER_FOR_BACKEND_V2 .backends () if be .num_qubits > 1 ],
59
+ [0 , 1 , 2 , 3 ],
60
+ )
61
+ )
62
+ @unpack
66
63
def test_circuit_on_fake_backend_v2 (self , backend , optimization_level ):
67
64
if not optionals .HAS_AER and backend .num_qubits > 20 :
68
65
self .skipTest ("Unable to run fake_backend %s without qiskit-aer" % backend .backend_name )
You can’t perform that action at this time.
0 commit comments