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

Small fixes of 1_getting_started_with_qiskit.ipynb #1383

Merged
merged 2 commits into from
Jan 12, 2023
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
8 changes: 4 additions & 4 deletions tutorials/circuits/1_getting_started_with_qiskit.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Now that we have chosen the backend, it's time to compile and run the quantum circuit. In Qiskit we provide the `execute` function for this. ``execute`` returns a ``job`` object that encapsulates information about the job submitted to the backend.\n",
"Now that we have chosen the backend, it's time to compile and run the quantum circuit. In Qiskit we provide the `run` method for this. `run` returns a `job` object that encapsulates information about the job submitted to the backend.\n",
"\n",
"\n",
"<div class=\"alert alert-block alert-info\">\n",
Expand Down Expand Up @@ -463,7 +463,7 @@
"meas.measure(range(3), range(3))\n",
"\n",
"# The Qiskit circuit object supports composition using\n",
"# the addition operator.\n",
"# the compose method.\n",
"circ.add_register(meas.cregs[0])\n",
"qc = circ.compose(meas)\n",
"\n",
Expand All @@ -477,7 +477,7 @@
"source": [
"This circuit adds a classical register, and three measurements that are used to map the outcome of qubits to the classical bits. \n",
"\n",
"To simulate this circuit, we use the ``qasm_simulator`` in Qiskit Aer. Each run of this circuit will yield either the bitstring 000 or 111. To build up statistics about the distribution of the bitstrings (to, e.g., estimate $\\mathrm{Pr}(000)$), we need to repeat the circuit many times. The number of times the circuit is repeated can be specified in the ``execute`` function, via the ``shots`` keyword."
"To simulate this circuit, we use the `qasm_simulator` in Qiskit Aer. Each run of this circuit will yield either the bitstring 000 or 111. To build up statistics about the distribution of the bitstrings (to, e.g., estimate $\\mathrm{Pr}(000)$), we need to repeat the circuit many times. The number of times the circuit is repeated can be specified in the `run` method, via the `shots` keyword."
]
},
{
Expand Down Expand Up @@ -571,7 +571,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The estimated outcome probabilities $\\mathrm{Pr}(000)$ and $\\mathrm{Pr}(111)$ are computed by taking the aggregate counts and dividing by the number of shots (times the circuit was repeated). Try changing the ``shots`` keyword in the ``execute`` function and see how the estimated probabilities change."
"The estimated outcome probabilities $\\mathrm{Pr}(000)$ and $\\mathrm{Pr}(111)$ are computed by taking the aggregate counts and dividing by the number of shots (times the circuit was repeated). Try changing the `shots` keyword in the `run` method and see how the estimated probabilities change."
]
},
{
Expand Down