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

Basic circuit tutorial: backend should run transpiled circuit #1170

Merged
merged 2 commits into from
Apr 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tutorials/circuits/01_circuit_basics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@
"# Execute the circuit on the qasm simulator.\n",
"# We've set the number of repeats of the circuit\n",
"# to be 1024, which is the default.\n",
"job_sim = backend.run(qc, shots=1024)\n",
"job_sim = backend.run(qc_compiled, shots=1024)\n",
"\n",
"# Grab the results from the job.\n",
"result_sim = job_sim.result()"
Expand Down Expand Up @@ -467,7 +467,7 @@
}
],
"source": [
"counts = result_sim.get_counts(qc)\n",
"counts = result_sim.get_counts(qc_compiled)\n",
"print(counts)"
]
},
Expand Down Expand Up @@ -580,7 +580,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.8"
"version": "3.7.9"
},
"varInspector": {
"cols": {
Expand Down