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

Minor improvements to Getting Started tutorials. #926

Merged
merged 3 commits into from
Jul 1, 2020
Merged
Show file tree
Hide file tree
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/1_getting_started_with_qiskit.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@
"and let $xyz$ denote the bitstring that results. Recall that, under the qubit labeling used by Qiskit, $x$ would correspond to the outcome on qubit 2, $y$ to the outcome on qubit 1, and $z$ to the outcome on qubit 0. \n",
"\n",
"<div class=\"alert alert-block alert-info\">\n",
"<b>Note:</b> This representation of the bitstring puts the most significant bit (MSB) on the left, and the least significant bit (LSB) on the right. This is the standard ordering of binary bitstrings. We order the qubits in the same way, which is why Qiskit uses a non-standard tensor product order.\n",
"<b>Note:</b> This representation of the bitstring puts the most significant bit (MSB) on the left, and the least significant bit (LSB) on the right. This is the standard ordering of binary bitstrings. We order the qubits in the same way (qubit representing the MSB has index 0), which is why Qiskit uses a non-standard tensor product order.\n",
"</div>\n",
"\n",
"Recall the probability of obtaining outcome $xyz$ is given by\n",
Expand Down Expand Up @@ -457,11 +457,11 @@
"meas = QuantumCircuit(3, 3)\n",
"meas.barrier(range(3))\n",
"# map the quantum measurement to the classical bits\n",
"meas.measure(range(3),range(3))\n",
"meas.measure(range(3), range(3))\n",
"\n",
"# The Qiskit circuit object supports composition using\n",
"# the addition operator.\n",
"qc = circ+meas\n",
"qc = circ + meas\n",
"\n",
"#drawing the circuit\n",
"qc.draw()"
Expand Down
2 changes: 1 addition & 1 deletion tutorials/circuits/2_plotting_data_in_qiskit.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"\n",
"# execute the quantum circuit \n",
"backend = BasicAer.get_backend('qasm_simulator') # the device to run on\n",
"circ = bell+meas\n",
"circ = bell + meas\n",
"result = execute(circ, backend, shots=1000).result()\n",
"counts = result.get_counts(circ)\n",
"print(counts)"
Expand Down