Skip to content

Update qosf-simulator-task.ipynb #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion qosf-simulator-task.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@
"\n",
"$\\mathit{CU} \\;=\\; \\vert{0}\\rangle\\!\\langle{0}\\vert \\!\\otimes\\! \\mathbf 1 \\,+\\, \\vert{1}\\rangle\\!\\langle{1}\\vert \\!\\otimes\\! U$\n",
"\n",
"where ${\\mathbf 1}$ is an identity matrix of the same dimension as $U$. Here, ${\\ket{0}\\!\\bra{0}}$ and ${\\ket{1}\\!\\bra{1}}$ are projectors onto the states ${\\ket{0}}$ and ${\\ket{1}}$ of the control qubit — but we are not using them here as elements of a measurement, but to describe the effect on the other qubits depending on one or the other subspace of the state-space of the first qubit.\n",
"where ${\\mathbf 1}$ is an identity matrix of the same dimension as $U$. Here, ${\\vert{0}\\rangle\\!\\langle{0}\\vert}$ and ${\\vert{1}\\rangle\\!\\langle{1}\\vert}$ are projectors onto the states ${\\vert{0}\\rangle}$ and ${\\vert{1}\\rangle}$ of the control qubit — but we are not using them here as elements of a measurement, but to describe the effect on the other qubits depending on one or the other subspace of the state-space of the first qubit.\n",
"\n",
"We can use this to derive the matrix for the gate ${\\mathit{CX}_{1,3}}$ which performs an $X$ operation on qubit 3, coherently conditioned on the state of qubit 1, by thinking of this as a controlled-${(\\mathbf 1_2 \\!\\otimes\\! X)}$ operation on qubits 2 and 3:\n",
"\n",
Expand Down