Module 5 - Quantum Computing Problems
Module 5 - Quantum Computing Problems
1. A linear operator X operates such that X |0i = |1i and X |1i = |0i. Find the matrix
representation of X.
Soln :
x11 x12 1 0
X= , |0i = , |1i =
x21 x22 0 1
x 0
X = 11 =
x21 1
Multiplying the matrices on LHS and equating with the matrix on the RHS, we get
x 1
X = 12 =
x22 0
Multiplying the matrices on LHS and equating with the matrix on the RHS, we get
Therefore,
x11 x12 0 1
X= =
x21 x22 1 0
0 −i
2. Given, A = , prove that A† = A.
i 0
1
0 i
A∗ =
−i 0
Thus,
0 −i
(A∗ )T = =A
i 0
" #
√1 √1
3. Show that the matrix U = 2 2 is Unitary.
√i − √i2
2
4. Find the inner product of states |0i and |1i and also draw conclusion on the result.
Thus, the states |0i and |1i are orthogonal to each other
α1 β1
5. Given, |ψi = and |φi = . Prove that hψ|φi = hφ|ψi∗
α2 β2
Soln : We have
∗ ∗ β1
= α1 ∗ β1 + α2 ∗ β2 − − −(1)
hψ|φi = α1 α2
β2
Similarly,
∗ ∗ α1
= β 1 ∗ α1 + β 2 ∗ α2
hφ|ψi = β1 β2
α2
or
hφ|ψi∗ = α1 ∗ β1 + α2 ∗ β2 − − −(2)
hψ|φi = hφ|ψi∗