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

Commit 4d36662

Browse files
committed
fix spacing around equations in circuits_1
1 parent 26c80cd commit 4d36662

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

tutorials/circuits/1_getting_started_with_qiskit.ipynb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,15 +398,20 @@
398398
"The simulators above are useful because they provide information about the state output by the ideal circuit and the matrix representation of the circuit. However, a real experiment terminates by _measuring_ each qubit (usually in the computational $|0\\rangle, |1\\rangle$ basis). Without measurement, we cannot gain information about the state. Measurements cause the quantum system to collapse into classical bits. \n",
399399
"\n",
400400
"For example, suppose we make independent measurements on each qubit of the three-qubit GHZ state\n",
401+
"\n",
401402
"$$|\\psi\\rangle = |000\\rangle +|111\\rangle)/\\sqrt{2},$$\n",
403+
"\n",
402404
"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",
403405
"\n",
404406
"<div class=\"alert alert-block alert-info\">\n",
405407
"<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",
406408
"</div>\n",
407409
"\n",
408410
"Recall the probability of obtaining outcome $xyz$ is given by\n",
409-
"$$\\mathrm{Pr}(xyz) = |\\langle xyz | \\psi \\rangle |^{2}$$ and as such for the GHZ state probability of obtaining 000 or 111 are both 1/2.\n",
411+
"\n",
412+
"$$\\mathrm{Pr}(xyz) = |\\langle xyz | \\psi \\rangle |^{2}$$\n",
413+
"\n",
414+
"and as such for the GHZ state probability of obtaining 000 or 111 are both 1/2.\n",
410415
"\n",
411416
"To simulate a circuit that includes measurement, we need to add measurements to the original circuit above, and use a different Aer backend."
412417
]
@@ -625,7 +630,7 @@
625630
"name": "python",
626631
"nbconvert_exporter": "python",
627632
"pygments_lexer": "ipython3",
628-
"version": "3.7.7"
633+
"version": "3.8.2"
629634
},
630635
"varInspector": {
631636
"cols": {

0 commit comments

Comments
 (0)