+++ title = "Practice Problems on Quantum Information Science" hascode = true rss = "Practice problems for the QIS class. These are not mandatory homeworks, but they can help you in preparing for the class and deepening your knowledge." rss_title = "Practice Problems on Quantum Information Science" rss_pubdate = Date(2023, 1, 1)
tags = ["teaching"] +++
Practice problems for the QIS class, either undergrad or grad versions. These are not mandatory homeworks, but they can help you in preparing for the class and deepening your knowledge in the first couple of weeks.
\toc
A quick short quiz that goes over linear algebra skills we will need in this class:
Find the eigenvalues and eigenvectors of these 3 matrices
Compute the determinant of
What is the implication of a determinant being equal to zero?
Compute the inverse of
Compute the Taylor expansion of
This is not too important for the class, but it could be useful and it is an interesting technique. By substituting in the expression for the Taylor series, compute the matrix exponential $\exp\left(\alpha\begin{pmatrix} 1 & 0 \ 0 & 1 \end{pmatrix}\right)$ and $\exp\left(\beta\begin{pmatrix} 0 & 1 \ 1 & 0 \end{pmatrix}\right)$.
When are stochastic matrices invertible? What properties have the stochastic matrices that represent reversible processes?
Consider two bits for which we know with complete certainty that they are in state 00
. What is the state vector representing them (in the sense of a vector that represents a classical probability distribution over possible states)?
Consider the same two bits as above. Transform the following two programs (given as pseudo code) into stochastic matrices acting on state vectors.
function f(bit1, bit2)
if bit1 == bit2
return (bit2, bit1)
else
return (bit1, bit2)
end
end
function g(bit1, bit2)
if bit1 == 0
if 0.5 ≤ rand()
return (0,0)
else
return (1,1)
end
else
return (1,0)
end
end
Write down the pseudo code corresponding to the following stochastic matrix:
i.e. a block-diagonal matrix where each block on the diagonal is the $\begin{pmatrix} 0&1 \ 1&0\end{pmatrix}$ permutation matrix and everything else is zero.
Which of these matrices could represent a classical probabilistic process (and among them, which represent a classical process without any randomness)? Which matrices could represent a quantum process? Why and what do they mean?
- $\begin{pmatrix} 1 & 1 \ 0 & 0 \end{pmatrix}$
- $\begin{pmatrix} 1 & 0.4 \ 0 & 0.6 \end{pmatrix}$
- $\begin{pmatrix} 1 & -1 \ 0 & 0 \end{pmatrix}$
- $\begin{pmatrix} 1 & 0 \ 0 & i \end{pmatrix}$
- $\begin{pmatrix} 1 & 0 \ 0 & 1 \end{pmatrix}$
- $\begin{pmatrix} 0 & 1 \ 1 & 0 \end{pmatrix}$
- $\begin{pmatrix} 0 & 1 \ i & 0 \end{pmatrix}$
- $\begin{pmatrix} \sin(\theta) & \cos(\theta) \ -\cos(\theta) & \sin(\theta) \end{pmatrix}$
- $\begin{pmatrix} \sin(\theta) & \cos(\theta) \ \cos(\theta) & \sin(\theta) \end{pmatrix}$
- $\begin{pmatrix} \sin(\theta)^2 & \cos(\theta)^2 \ \cos(\theta)^2 & \sin(\theta)^2 \end{pmatrix}$
Which of these quantum states correspond to distinguishable quantum probability distributions (i.e., you can perform observations that let you distinguish one state from the other)?
- States of the form $\begin{pmatrix} 1 \ 0 \end{pmatrix}$
- States of the form $\frac{1}{\sqrt2}\begin{pmatrix} 1 \ i \end{pmatrix}$
- States of the form $\frac{1}{\sqrt2}\begin{pmatrix} -1 \ i \end{pmatrix}$
- States of the form $\begin{pmatrix} -1 \ 0 \end{pmatrix}$
- States of the form $\frac{1}{\sqrt2}\begin{pmatrix} i \ -1 \end{pmatrix}$
We represent the following quantum states in a basis
- $\frac{1}{\sqrt2}\begin{pmatrix} -1 \ i \end{pmatrix}$
- $\begin{pmatrix} \sin(\theta) \ e^{i\phi}\cos(\theta) \end{pmatrix}$
- $\frac{1}{\sqrt2}\begin{pmatrix} e^{i\phi} \ i \end{pmatrix}$
- $\frac{1}{\sqrt2}\begin{pmatrix} -1 \ ie^{i\phi} \end{pmatrix}$
What is the probability to observe
The "Z basis" or the "computational basis" is the basis of states $|0\rangle=\begin{pmatrix} 1 \ 0 \end{pmatrix}$ and $|1\rangle=\begin{pmatrix} 0 \ 1 \end{pmatrix}$. What are the possible outcomes and the probability of observing each outcome for a measurement in the Z basis on the following quantum states:
- $\begin{pmatrix} 1 \ 0 \end{pmatrix}$
- $\begin{pmatrix} i \ 0 \end{pmatrix}$
- $\begin{pmatrix} 0 \ -i \end{pmatrix}$
- $\begin{pmatrix} 0 \ e^{i\phi} \end{pmatrix}$
- $\begin{pmatrix} \cos(\theta) \ e^{i\phi}\sin(\theta) \end{pmatrix}$
For the same given quantum states as above, what are the possible results and the probabilities for observing these results if we are measuring in the basis of states $|+\rangle=\frac{1}{\sqrt2}\begin{pmatrix} 1 \ 1 \end{pmatrix}$ and $|-\rangle=\frac{1}{\sqrt2}\begin{pmatrix} 1 \ -1 \end{pmatrix}$.
Consider a 3-level system (i.e. we need 3 vectors to define a complete basis). The most natural and simple basis is of course $|e_1\rangle=\begin{pmatrix} 1 \ 0 \ 0 \end{pmatrix}$, $|e_2\rangle=\begin{pmatrix} 0 \ 1 \ 0 \end{pmatrix}$, $|e_3\rangle=\begin{pmatrix} 0 \ 0 \ 1 \end{pmatrix}$. We will call that basis BE. Instead of the BE basis, we will perform the measurements in the basis BU: $|u_1\rangle=\frac{1}{\sqrt2}\begin{pmatrix} 1 \ 0 \ 1 \end{pmatrix}$, $|u_2\rangle=\begin{pmatrix} 0 \ 1 \ 0 \end{pmatrix}$, and
- What can
$|u_3\rangle$ be? (Remember that measurable states need to be perfectly distinguishable, i.e. orthogonal). - How do we implement the measurement in BU if our device can natively perform only BE measurements? I.e. what gate do we need to add in front of the BE measurement in order for the gate + BE measurement to act as a BU measurement? Give that gate as a unitary matrix.
You are given the state $|+\rangle=\frac{1}{\sqrt2}\begin{pmatrix} 1 \ 1 \end{pmatrix}$. You perform a sequence of 3 measurements: Z followed by a Z, followed by a third Z. What are the possible 3-bit results you get (you get one bit from each measurement) and what is the probability with which you can obtain each? Answer the same question if the sequence of measurements is XXX and then also if it is XZZ.