Skip to content
This repository was archived by the owner on Aug 21, 2023. It is now read-only.

Commit fdcb792

Browse files
authored
Merge branch 'master' into master
2 parents 221bfaf + 7cd2533 commit fdcb792

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

qiskit/advanced/terra/creating_a_provider.ipynb

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@
170170
" 'url': 'http://www.i_love_hadamard.com',\n",
171171
" 'simulator': True,\n",
172172
" 'local': True,\n",
173+
" 'coupling_map': None,\n",
173174
" 'description': 'Simulates only Hadamard gates',\n",
174175
" 'basis_gates': ['h', 'x'], # basis_gates must contain at least two gates\n",
175176
" 'memory': True,\n",
@@ -237,7 +238,7 @@
237238
" 'success': True, \n",
238239
" 'shots': shots, \n",
239240
" 'data': {'counts': formatted_counts},\n",
240-
" 'header': circuit.header.as_dict()\n",
241+
" 'header': circuit.header.to_dict()\n",
241242
" })\n",
242243
" \n",
243244
" hadamard_job._result = Result.from_dict({\n",
@@ -270,7 +271,7 @@
270271
"name": "stdout",
271272
"output_type": "stream",
272273
"text": [
273-
"{'0000': 256, '0010': 256, '0100': 256, '0110': 256}\n"
274+
"{'0110': 256, '0000': 256, '0010': 256, '0100': 256}\n"
274275
]
275276
}
276277
],
@@ -351,9 +352,9 @@
351352
"output_type": "stream",
352353
"text": [
353354
"Hadamard simulator:\n",
354-
"{'0000': 256, '0010': 256, '0100': 256, '0110': 256}\n",
355+
"{'0110': 256, '0000': 256, '0010': 256, '0100': 256}\n",
355356
"Aer simulator:\n",
356-
"{'0000': 270, '0010': 263, '0100': 253, '0110': 238}\n"
357+
"{'0110': 263, '0000': 247, '0010': 270, '0100': 244}\n"
357358
]
358359
}
359360
],
@@ -376,6 +377,13 @@
376377
"print('Aer simulator:')\n",
377378
"print(aer_result.get_counts(qc))"
378379
]
380+
},
381+
{
382+
"cell_type": "code",
383+
"execution_count": null,
384+
"metadata": {},
385+
"outputs": [],
386+
"source": []
379387
}
380388
],
381389
"metadata": {
@@ -395,7 +403,7 @@
395403
"name": "python",
396404
"nbconvert_exporter": "python",
397405
"pygments_lexer": "ipython3",
398-
"version": "3.7.3"
406+
"version": "3.7.4"
399407
},
400408
"varInspector": {
401409
"cols": {

0 commit comments

Comments
 (0)