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

Commit

Permalink
[Superposition] Fix LaTeX rendering in solution of task 2.4 (#836)
Browse files Browse the repository at this point in the history
  • Loading branch information
Amana-L authored Oct 6, 2022
1 parent 002bca4 commit 0bc1b11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Superposition/Workbook_Superposition_Part2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,7 @@
"source": [
"### Solution\n",
"\n",
"To start, we will prepare the $\\frac{1}{\\sqrt{3}} \\big( |00\\rangle + |01\\rangle + |10\\rangle \\big)$ state using the solution to [task 2.3](#Task-2.3*.-$\\frac{1}{\\sqrt{3}}-\\big(|00\\rangle-+-|01\\rangle-+-|10\\rangle\\big)$-state.). To get to the final state, we need to add the relative phases to both $|01\\rangle$ and $|10\\rangle$ basis states without changing the $|00\\rangle$ state.\n",
"To start, we will prepare the $\\frac{1}{\\sqrt{3}} \\big( |00\\rangle + |01\\rangle + |10\\rangle \\big)$ state using the [solution to task 2.3](#threestates-twoqubits). To get to the final state, we need to add the relative phases to both $|01\\rangle$ and $|10\\rangle$ basis states without changing the $|00\\rangle$ state.\n",
"\n",
"First, we want to transform the $|01\\rangle$ state to the $\\omega |01\\rangle = e^{2\\pi i/3} |01\\rangle$ state, while not changing the other states. \n",
"Using the [$R_1$](../tutorials/SingleQubitGates/SingleQubitGates.ipynb#Rotation-Gates) gate, we can change a qubit state from $|1\\rangle$ to $e^{i\\theta}|1\\rangle$ without changing the $|0\\rangle$ state. \n",
Expand All @@ -1101,7 +1101,7 @@
"\n",
"We use the same approach to change $|10\\rangle$ term to $\\omega^2 |10\\rangle$. By applying the $R_1$ gate to the first qubit we will only change the $|10\\rangle$ term. In this case the right $\\theta$ will be $\\frac{4\\pi}{3}$.\n",
"\n",
"> If you get the `No identifier with the name \"ThreeStates_TwoQubits\" exists` error, you need to run the code cell with the solution to [task 2.3](#Task-2.3*.-$\\frac{1}{\\sqrt{3}}-\\big(|00\\rangle-+-|01\\rangle-+-|10\\rangle\\big)$-state.) first to make sure the `ThreeStates_TwoQubits` operation is defined."
"> If you get the `No identifier with the name \"ThreeStates_TwoQubits\" exists` error, you need to run the code cell with the [solution to task 2.3](#threestates-twoqubits) first to make sure the `ThreeStates_TwoQubits` operation is defined."
]
},
{
Expand Down

0 comments on commit 0bc1b11

Please sign in to comment.