Skip to content

Commit

Permalink
Notebook fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
HNorlen committed Sep 22, 2019
1 parent 9b99f9f commit b1432e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
},
"outputs": [],
"source": [
"print(result)"
"print(job.result())"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@
"if n_qubits > backend.configuration().n_qubits:\n",
" print(\"Your circuit contains too many qubits (\",n_qubits,\"). Start over!\")\n",
"else:\n",
" job = execute(qc, backend, shots=1000)\n",
" job = execute(qc2, backend, shots=1000)\n",
" job_monitor(job)"
]
},
Expand All @@ -405,7 +405,7 @@
"outputs": [],
"source": [
"result = job.result()\n",
"counts = result.get_counts(qc)\n",
"counts = result.get_counts(qc2)\n",
"print(counts)\n",
"plot_histogram(counts)"
]
Expand Down

0 comments on commit b1432e2

Please sign in to comment.