|
170 | 170 | " 'url': 'http://www.i_love_hadamard.com',\n", |
171 | 171 | " 'simulator': True,\n", |
172 | 172 | " 'local': True,\n", |
| 173 | + " 'coupling_map': None,\n", |
173 | 174 | " 'description': 'Simulates only Hadamard gates',\n", |
174 | 175 | " 'basis_gates': ['h', 'x'], # basis_gates must contain at least two gates\n", |
175 | 176 | " 'memory': True,\n", |
|
237 | 238 | " 'success': True, \n", |
238 | 239 | " 'shots': shots, \n", |
239 | 240 | " 'data': {'counts': formatted_counts},\n", |
240 | | - " 'header': circuit.header.as_dict()\n", |
| 241 | + " 'header': circuit.header.to_dict()\n", |
241 | 242 | " })\n", |
242 | 243 | " \n", |
243 | 244 | " hadamard_job._result = Result.from_dict({\n", |
|
270 | 271 | "name": "stdout", |
271 | 272 | "output_type": "stream", |
272 | 273 | "text": [ |
273 | | - "{'0000': 256, '0010': 256, '0100': 256, '0110': 256}\n" |
| 274 | + "{'0110': 256, '0000': 256, '0010': 256, '0100': 256}\n" |
274 | 275 | ] |
275 | 276 | } |
276 | 277 | ], |
|
351 | 352 | "output_type": "stream", |
352 | 353 | "text": [ |
353 | 354 | "Hadamard simulator:\n", |
354 | | - "{'0000': 256, '0010': 256, '0100': 256, '0110': 256}\n", |
| 355 | + "{'0110': 256, '0000': 256, '0010': 256, '0100': 256}\n", |
355 | 356 | "Aer simulator:\n", |
356 | | - "{'0000': 270, '0010': 263, '0100': 253, '0110': 238}\n" |
| 357 | + "{'0110': 263, '0000': 247, '0010': 270, '0100': 244}\n" |
357 | 358 | ] |
358 | 359 | } |
359 | 360 | ], |
|
376 | 377 | "print('Aer simulator:')\n", |
377 | 378 | "print(aer_result.get_counts(qc))" |
378 | 379 | ] |
| 380 | + }, |
| 381 | + { |
| 382 | + "cell_type": "code", |
| 383 | + "execution_count": null, |
| 384 | + "metadata": {}, |
| 385 | + "outputs": [], |
| 386 | + "source": [] |
379 | 387 | } |
380 | 388 | ], |
381 | 389 | "metadata": { |
|
395 | 403 | "name": "python", |
396 | 404 | "nbconvert_exporter": "python", |
397 | 405 | "pygments_lexer": "ipython3", |
398 | | - "version": "3.7.3" |
| 406 | + "version": "3.7.4" |
399 | 407 | }, |
400 | 408 | "varInspector": { |
401 | 409 | "cols": { |
|
0 commit comments