@@ -237,18 +237,18 @@ def run(
237
237
... )
238
238
>>> print(batch_result)
239
239
BatchResult: 2 results
240
- Result: X CNOT circuit, AWSDevice, BRAKET_LOCAL_SIMULATOR
240
+ Result: X CNOT circuit, ATOSDevice, MYQLM_PYLINALG
241
241
Counts: [0, 0, 0, 1000]
242
242
Probabilities: [0, 0, 0, 1]
243
243
Samples:
244
244
State: 11, Index: 3, Count: 1000, Probability: 1.0
245
- Error: None
246
- Result: X CNOT circuit, ATOSDevice, MYQLM_PYLINALG
245
+ Error: 0.0
246
+ Result: X CNOT circuit, AWSDevice, BRAKET_LOCAL_SIMULATOR
247
247
Counts: [0, 0, 0, 1000]
248
248
Probabilities: [0, 0, 0, 1]
249
249
Samples:
250
250
State: 11, Index: 3, Count: 1000, Probability: 1.0
251
- Error: 0.0
251
+ Error: None
252
252
>>> c2 = QCircuit(
253
253
... [X(0), X(1), BasisMeasure([0, 1], shots=1000)],
254
254
... label="X circuit",
@@ -275,12 +275,12 @@ def run(
275
275
276
276
if isinstance (circuit , Iterable ):
277
277
if isinstance (device , Iterable ):
278
- return BatchResult ([_run_single (circ , device , values ) for circ in circuit for device in set ( device ) ])
278
+ return BatchResult ([_run_single (circ , dev , values ) for circ in circuit for dev in device ])
279
279
else :
280
280
return BatchResult ([_run_single (circ , device , values ) for circ in circuit ])
281
281
else :
282
282
if isinstance (device , Iterable ):
283
- return BatchResult ([_run_single (circuit , device , values ) for device in set ( device ) ])
283
+ return BatchResult ([_run_single (circuit , dev , values ) for dev in device ])
284
284
else :
285
285
return _run_single (circuit , device , values )
286
286
0 commit comments