From 72f14376cd3bb903d40c6868365e3685d26f8cf7 Mon Sep 17 00:00:00 2001 From: 3yakuya <3yakuya@outlook.com> Date: Wed, 24 Jun 2020 23:07:13 +0100 Subject: [PATCH 1/3] Re-stating that MSQubit is indexed with 0. I found it confusing when reading initially, and hence wanted to reiterate that the qubit representing the MSB is left-most, indexed with 0. --- tutorials/circuits/1_getting_started_with_qiskit.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/circuits/1_getting_started_with_qiskit.ipynb b/tutorials/circuits/1_getting_started_with_qiskit.ipynb index 974240216..3f2619b69 100755 --- a/tutorials/circuits/1_getting_started_with_qiskit.ipynb +++ b/tutorials/circuits/1_getting_started_with_qiskit.ipynb @@ -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", "
\n", - "Note: 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", + "Note: 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", "
\n", "\n", "Recall the probability of obtaining outcome $xyz$ is given by\n", From eff5e816fcd062e946974f5338954f1592d0ca19 Mon Sep 17 00:00:00 2001 From: 3yakuya <3yakuya@outlook.com> Date: Wed, 24 Jun 2020 23:29:54 +0100 Subject: [PATCH 2/3] Adding spacing around operator and argument. --- tutorials/circuits/1_getting_started_with_qiskit.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/circuits/1_getting_started_with_qiskit.ipynb b/tutorials/circuits/1_getting_started_with_qiskit.ipynb index 3f2619b69..fefff63d0 100755 --- a/tutorials/circuits/1_getting_started_with_qiskit.ipynb +++ b/tutorials/circuits/1_getting_started_with_qiskit.ipynb @@ -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()" From 586684e39d366072cdafb6c6a4bc922800b4e053 Mon Sep 17 00:00:00 2001 From: 3yakuya <3yakuya@outlook.com> Date: Mon, 29 Jun 2020 23:27:52 +0100 Subject: [PATCH 3/3] Spaces around operator --- tutorials/circuits/2_plotting_data_in_qiskit.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/circuits/2_plotting_data_in_qiskit.ipynb b/tutorials/circuits/2_plotting_data_in_qiskit.ipynb index 853bce0d4..10e56de3f 100755 --- a/tutorials/circuits/2_plotting_data_in_qiskit.ipynb +++ b/tutorials/circuits/2_plotting_data_in_qiskit.ipynb @@ -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)"