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

Commit

Permalink
Merge pull request #908 from nonhermitian/fix_circuits_1
Browse files Browse the repository at this point in the history
fix spacing around equations in circuits_1
  • Loading branch information
nonhermitian committed May 11, 2020
2 parents 8aba564 + cd66800 commit 5427f9f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tutorials/circuits/1_getting_started_with_qiskit.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -398,15 +398,20 @@
"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",
"\n",
"For example, suppose we make independent measurements on each qubit of the three-qubit GHZ state\n",
"\n",
"$$|\\psi\\rangle = |000\\rangle +|111\\rangle)/\\sqrt{2},$$\n",
"\n",
"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",
"</div>\n",
"\n",
"Recall the probability of obtaining outcome $xyz$ is given by\n",
"$$\\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",
"\n",
"$$\\mathrm{Pr}(xyz) = |\\langle xyz | \\psi \\rangle |^{2}$$\n",
"\n",
"and as such for the GHZ state probability of obtaining 000 or 111 are both 1/2.\n",
"\n",
"To simulate a circuit that includes measurement, we need to add measurements to the original circuit above, and use a different Aer backend."
]
Expand Down Expand Up @@ -625,7 +630,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.7"
"version": "3.8.2"
},
"varInspector": {
"cols": {
Expand Down

0 comments on commit 5427f9f

Please sign in to comment.