Repo contains files related to Special Topics in Quantum Computing course.
-
elitzur-vaidman-bomb-detector.ipynb: This Jupyter notebook contains the implementation and explanation of the Elitzur-Vaidman bomb detector.
-
quantum-game-strategy.ipynb: This Jupyter notebook explores strategies for quantum games.
-
basis-measurment-proofs.ipynb: This Jupyter notebook contains proofs related to basis measurements in quantum computing.
The final project paper can be viewed here.
Single Qubit Hadamard (Base Case):
Inductive Hypothesis (n-1 qubits):
Inductive Step (Expansion):
Final Form (n qubits):
Here is a proof that for any orthonormal bases
First, we need to show that the set
where
where x and y range over all bit strings of length d and e, respectively. We can then rewrite each
where
Next, we need to show that the basis vectors are orthonormal. For any two distinct basis vectors
$$
\langle u_i \vert \otimes \langle v_j \vert (\vert u_k \rangle \otimes \vert v_l \rangle) = \langle u_i \vert u_k \rangle \langle v_j \vert v_l \rangle.
$$
Since
This shows that the basis vectors are orthonormal, as their inner product is 1 only when they are the same vector and 0 otherwise.
We have shown that the set
Note: This proof relies on the properties of orthonormal bases, including the fact that they span the vector space and their inner product is 0 for distinct basis vectors. These properties are proven in standard linear algebra textbooks and are assumed to be known in this context.
Let
-
Define the basis
$\vert \uparrow \rangle, \vert \downarrow \rangle$ :$\vert \uparrow \rangle = \frac{1}{\sqrt{2}}(\vert 0 \rangle + \vert 1 \rangle)$ $\vert \downarrow \rangle = \frac{1}{\sqrt{2}}(\vert 0 \rangle - \vert 1 \rangle)$
-
Calculate the probability of measuring
$\uparrow$ when the state is$\vert u_{\theta} \rangle$ :$\langle u_{\theta} \vert \uparrow \rangle = \langle u_{\theta} \vert \frac{1}{\sqrt{2}}(\vert 0 \rangle + \vert 1 \rangle)$ $= \frac{1}{\sqrt{2}}(\langle 0 \vert u_{\theta} \rangle + \langle 1 \vert u_{\theta} \rangle)$ $= \frac{1}{\sqrt{2}}(e^{-i\theta}/\sqrt{2} + e^{-i\theta}/\sqrt{2})$ $= 1$
-
Calculate the probability of measuring
$\uparrow$ when the state is$\vert u_{\phi} \rangle$ for$\phi \neq \theta$ :$\langle u_{\phi} \vert \uparrow \rangle = \langle u_{\phi} \vert \frac{1}{\sqrt{2}}(\vert 0 \rangle + \vert 1 \rangle)$ $= \frac{1}{\sqrt{2}}(\langle 0 \vert u_{\phi} \rangle + \langle 1 \vert u_{\phi} \rangle)$ $= \frac{1}{\sqrt{2}}(e^{-i\phi}/\sqrt{2} + e^{-i\phi}/\sqrt{2})$ $= \cos(\theta - \phi)/\sqrt{2}$
-
Show that the probability of measuring
$\uparrow$ is strictly less than 1 for$\phi \neq \theta$ :- Since
$\theta$ and$\phi$ are in$[0, 2\pi)$ ,$\theta - \phi$ is also in$[0, 2\pi)$ . - If
$\theta - \phi = 0$ , then$\cos(\theta - \phi) = 1$ and the probability of measuring$\uparrow$ is 1. - If
$\theta - \phi \neq 0$ , then$\cos(\theta - \phi) < 1$ and the probability of measuring$\uparrow$ is less than 1.
- Since
There is a basis
Rigorous Proof of Basis and Measurement Probability
Here is a more rigorous proof that there exists a basis
We can construct the desired basis
- Define
$\vert \uparrow \rangle = \vert u_{\theta} \rangle$ (this is allowed as$\vert u_{\theta} \rangle$ is a normalized vector). - Define a vector
$\vert v \rangle$ such that:
Note that
Apply the Gram-Schmidt orthogonalization procedure to
-
Step 1: Project
$\vert v \rangle$ onto$\vert \uparrow \rangle$ .
$$\vert \text{proj}{\uparrow}v \rangle = \langle \uparrow \vert v \rangle \vert \uparrow \rangle = (\langle u{\theta} \vert (e^{i\phi} \vert 0 \rangle + \vert 1 \rangle)) \vert u_{\theta} \rangle = (e^{i\phi} + 1) \vert u_{\theta} \rangle$$
- Step 2: Normalize the projection.
$$\vert \psi \rangle = \frac{\vert \text{proj}{\uparrow}v \rangle}{\Vert \text{proj}{\uparrow}v \Vert} = \frac{(e^{i\phi} + 1) \vert u_{\theta} \rangle}{\sqrt{1 + 2e^{i\phi} \cos(\theta - \phi) + 1}}$$
- Step 3: Obtain the second basis vector.
$$\vert \downarrow \rangle = \vert v \rangle - \vert \text{proj}{\uparrow}v \rangle = (e^{i\phi} \vert 0 \rangle + \vert 1 \rangle) - \left(\frac{(e^{i\phi} + 1) \vert u{\theta} \rangle}{\sqrt{1 + 2e^{i\phi} \cos(\theta - \phi) + 1}}\right)$$
- Probability of outcome
$\uparrow$ :
The probability of measuring outcome
- Probability of outcome
$\downarrow$ :
The probability of measuring outcome
Therefore, measuring
-
Case
$\phi \neq \theta$ : $x
Case
For any
We have constructed a basis
Note: This proof relies on the concepts of basis construction, Gram-Schmidt orthogonalization, and probability calculation in quantum mechanics.
Let
-
Define the basis
$\vert \uparrow \rangle, \vert \downarrow \rangle$ :$\vert \uparrow \rangle = \frac{1}{\sqrt{2}}(\vert 0 \rangle + \vert 1 \rangle)$ $\vert \downarrow \rangle = \frac{1}{\sqrt{2}}(\vert 0 \rangle - \vert 1 \rangle)$
-
Calculate the probability of measuring
$\uparrow$ when the state is$\vert u_{\theta} \rangle$ :$\langle u_{\theta} \vert \uparrow \rangle = \langle u_{\theta} \vert \frac{1}{\sqrt{2}}(\vert 0 \rangle + \vert 1 \rangle)$ $= \frac{1}{\sqrt{2}}(\langle 0 \vert u_{\theta} \rangle + \langle 1 \vert u_{\theta} \rangle)$ $= \frac{1}{\sqrt{2}}\left(\frac{e^{-i\theta}}{\sqrt{2}} + \frac{e^{-i\theta}}{\sqrt{2}}\right)$ $= 1$
-
Calculate the probability of measuring
$\uparrow$ when the state is$\vert u_{\phi} \rangle$ for$\phi \neq \theta$ :$\langle u_{\phi} \vert \uparrow \rangle = \langle u_{\phi} \vert \frac{1}{\sqrt{2}}(\vert 0 \rangle + \vert 1 \rangle)$ $= \frac{1}{\sqrt{2}}(\langle 0 \vert u_{\phi} \rangle + \langle 1 \vert u_{\phi} \rangle)$ $= \frac{1}{\sqrt{2}}\left(\frac{e^{-i\phi}}{\sqrt{2}} + \frac{e^{-i\phi}}{\sqrt{2}}\right)$ $= \frac{\cos(\theta - \phi)}{\sqrt{2}}$
-
Define the basis
$\vert \uparrow \rangle, \vert \downarrow \rangle$ :$\vert \uparrow \rangle = \frac{1}{\sqrt{2}}(\vert 0 \rangle + \vert 1 \rangle)$ $\vert \downarrow \rangle = \frac{1}{\sqrt{2}}(\vert 0 \rangle - \vert 1 \rangle)$
-
Calculate the probability of measuring
$\uparrow$ when the state is$\vert u_{\theta} \rangle$ :$\langle u_{\theta} \vert \uparrow \rangle = \langle u_{\theta} \vert \frac{1}{\sqrt{2}}(\vert 0 \rangle + \vert 1 \rangle)$ $= \frac{1}{\sqrt{2}}(\langle 0 \vert u_{\theta} \rangle + \langle 1 \vert u_{\theta} \rangle)$ $= \frac{1}{\sqrt{2}}(e^{-i\theta}/\sqrt{2} + e^{-i\theta}/\sqrt{2})$ $= 1$
-
Calculate the probability of measuring
$\uparrow$ when the state is$\vert u_{\phi} \rangle$ for$\phi \neq \theta$ :$\langle u_{\phi} \vert \uparrow \rangle = \langle u_{\phi} \vert \frac{1}{\sqrt{2}}(\vert 0 \rangle + \vert 1 \rangle)$ $= \frac{1}{\sqrt{2}}(\langle 0 \vert u_{\phi} \rangle + \langle 1 \vert u_{\phi} \rangle)$ $= \frac{1}{\sqrt{2}}(e^{-i\phi}/\sqrt{2} + e^{-i\phi}/\sqrt{2})$ $= \cos(\theta - \phi)/\sqrt{2}$
-
Show that the probability of measuring
$\uparrow$ is strictly less than 1 for$\phi \neq \theta$ - Since
$\theta$ and$\phi$ are in$[0, 2\pi]$ ,$\theta - \phi$ is also in$[0, 2\pi]$ . - If
$\theta - \phi = 0$ , then$\cos(\theta - \phi) = 1$ and the probability of measuring$\uparrow$ is 1. - If
$\theta - \phi \neq 0$ , then$\cos(\theta - \phi) < 1$ and the probability of measuring$\uparrow$ is less than 1.
- Since
There is a basis