Quantum Computing
Quantum Computing
The algorithms are also written based on quantum prin- the micro scale realm causing problems for current micro-
ciples in which, Shor’s algorithm for factorization and electronics. The most typical effects are electron tunneling
Grover’s search algorithm are basic. (Grover is an Indian among the circuit lines. Thus Quantum Computation is the
born Physicist working in Bell Labs). The process of com- option for the further generation.
putation is incredibly fast but it has to be done by the help
of quantum computers which are yet to be realized in prac-
tice. It is expected that 140 digit log number could be fac-
tored a billion (109 ) times faster that is possible with clas-
sical computation. It is so powerful that a search engine
can search every part of internet in half an hour.
Department of Physics
Chapter 5
Linear Algebra is the study of vector spaces and operations Pauli Matrices and Their operation on |0i and |1i
on vector spaces. The Standard quantum mechanical no- States
tation for a quantum state 𝜓 in a vector space is |𝜓i. The There are four extreamly useful matrices called Pauli Ma-
notation |i indicates that the object is a vector rand is called trices. The Pauli matrices of the following form
a ket vector. The examples of ket vectors are |𝜓i, |𝜙i and
|𝑢i etc.
1 0
𝜎0 = 𝐼 = (5.3)
0 1
This is an identity matrix.
5.2 Matrix Representation of 0 and 1
States 𝜎1 = 𝜎𝑥 = 𝑋 =
0 1
(5.4)
1 0
The wave function could be expressed in ket notation as
𝛼 0 −𝑖
|𝜓i (ket Vector), 𝜓 is the wave function. The |𝜓i = 1 𝜎2 = 𝜎𝑦 = 𝑌 = (5.5)
𝛼 𝑖 0
2
1
The matrix for of the states |0i and |1i. |0i = and
0 1 0
𝜎3 = 𝜎𝑧 = 𝑍 = (5.6)
0 0 −1
|1i =
1
Pauli Matrices operating on |0i and |1i States
5.2.1 Identity Operator
1 0 1 1
1. 𝜎0 |0i = = = |0i.
1 0 0 1 0 0
The operator of type 𝐼 = is called identity oper- 1 0 0 0
0 1 𝜎0 |1i = = = |1i.
ator. When an identity operator acts on a state vector its 0 1 1 1
keeps the state intact. By analogy we study identity opera-
tor as an identity matrix. 0 1 1 0
2. 𝜎𝑥 |0i = = = |1i
1 0 0 1
0 1 0 1
Let us consider the operation of Identity operator on |0i 𝜎𝑥 |1i =
1 0 1
=
0
= |0i.
and |1i states. As per the principle of identity operation
𝐼 |0i = |0i and 𝐼 |1i = |1i
0 −𝑖 1 0
3. 𝜎𝑦 |0i = = = 𝑖 |1i
𝑖 0 0 𝑖
1 0 1 1
𝐼 |0i = = (5.1) 0 −𝑖 0 −𝑖
0 1 0 0 𝜎𝑦 |1i = = = −𝑖 |0i.
𝑖 0 1 0
1 0 0 0 1 0 1 1
𝐼 |1i = = (5.2) 4. 𝜎𝑧 = . = = |0i
0 1 1 1 0 −1 0 0
1 0 0 0
Thus the operation of identity matrix(operator) on |0i and 𝜎𝑧 = . = = − |1i.
0 −1 1 −1
|1i leaves the states unchanged.
33
Applied Physics for CSE Stream Engineering Physics-22PHYS12/22
Thus the Bra is the complex conjugate of ket and vice- Using equation 5.31 the inner product h𝜓|𝜓i is given by,
versa. For example
𝛼
† h𝜓|𝜓i = 𝛼∗ 𝛽∗ = 𝛼𝛼∗ + 𝛽𝛽∗ (5.35)
1 𝛽
= 1 −𝑖 (5.23)
𝑖
Thus
Flipping between kets and bras is called "Taking the 𝛼𝛼∗ + 𝛽𝛽∗ = |𝛼| 2 + |𝛽| 2 (5.36)
Dual". This could also be written as
Thus for |0i state the corresponding h0| is given by |𝜓| 2 = 𝜓𝜓 ∗ (5.37)
1 Thus the above equation represents Probability Density.
|0i = (5.24) As per the principle of Normalization
0
|𝜓| 2 = 𝜓𝜓 ∗ = h𝜓|𝜓i = 1 = |𝛼| 2 + |𝛽| 2 (5.38)
h0| = 1 0 (5.25)
and similarly for and |1i states we have h1| as follows. Thus it implies |𝜓i is normalized.
0
|1i = (5.26) 5.11 Orthogonality
1
Two states |𝜓i and |𝜙i are said to be orthogonal if their
h1| = 0 1 (5.27)
inner product is Zero. Mathematically
Row and Column Matrices The two states are orthogonal means they are mutually ex-
clusive. Like Spin Up and Spin Down of an electron.
Let us consider two states |𝜓i and |𝜙i as follows
Consider h0|1i
𝛼
|𝜓i = 1 (5.28)
𝛽1 0
h0|1i = 1 0 = (0 + 0) = (0) (5.40)
1
𝛼
|𝜙i = 2 (5.29)
𝛽2
here
5.12 Orthonormality
h𝜓| = 𝛼1∗ 𝛽1∗ (5.30) The states |𝜓i and |𝜙i are said to be orthonormal if
The multiplication of the |𝜓i and |𝜙i is possible only by
1. |𝜓i and |𝜙i are normalized.
taking the inner product and is given by h𝜓|𝜙i
2. |𝜓i and |𝜙i are orthogonal to each other.
∗ 𝛼2
h𝜓|𝜙i = 𝛼1 𝛽1 ∗
(5.31)
𝛽2
5.10 Probability
Let us consider a Quantum State
6.4 Question Bank and Numerical 8. Distinguish between single qubit and multiple qubit
gates.
Problems
9. Describe Quantum Gates with three examples.
6.4.1 Principles of Quantum Information
and Quantum Computing 10. Discuss the functioning of Hadamard gate with ma-
trix representation and truth table.
1. Describe briefly the Quantum Computing and its im-
portance. 11. Explain the working of T gate with its matrix and
truth table.
2. Elucidate the differences between classical and quan-
tum computing.
6.5 Numerical Problems
3. Define a bit and qubit and explain the differences be-
tween them. Mention the properties of Qubit. 6.5.1 Dirac Representation and Matrix Op-
4. Discuss the representation of qubit by Bloch Sphere. erations
5. Explain single, two qubits and extension to N qubits. 1. A Linear Operator ’𝑋’ operates such that 𝑋 |0i = |1i
and 𝑋 |1i = |0i. Find the matrix representation of
’𝑋’.
6.4.2 Dirac Representation and Matrix Op-
0 −𝑖
erations 2. Given 𝐴 = , Prove that 𝐴† = 𝐴.
𝑖 0
1. Mention the matrix representation of |0i and |1i states
and apply the Identity operator to show there is no √1
(2) √1
(2)
change in states. 3. Show that the Matrix 𝑈 = 𝑖 is Unitary.
√ (2) √−𝑖
(2)
2. State the Pauli matrices and apply Pauli matrices on
the states |0i and |1i. 4. Find the inner product of states |1i 𝑎𝑛𝑑 |0i and draw
3. Explain conjugate and Transpose of a matrix. conclusions on the result.
𝛼1 𝛽1
4. Describe unitary matrix and along with an example. 5. Given |𝜓i = and |𝜙i = Prove that
𝛼2 𝛽2
∗
5. Describe row and column matrices and the inner h𝜓|𝜙i = h𝜙|𝜓i
product.
6. Discuss probability and quantum superposition.
6.5.2 Quantum Gates
7. Explain the conditions for orthogonality and or-
1. Using Matrix multiplication show that on applying
thonormality.
Hadamard gate twice to a |0i results in its original
state.
6.4.3 Quantum Gates
1. Illustrate the principle and working of Quantum Not 2. Using two X-gates in series show that two not gates
Gate. in series are equivalent to a quantum wire.
2. Discuss the Pauli X,Y and Z gates and their opera-
tions on quantum states. 3. Show the Hadamard Gate is Unitary.
3. Describe the Phase gate along with matrix represen- 4. Two Qubits are passed through CNOT gate.If the first
tation and truth table. qubit is the control qubit then what is the output for
the following initial states 1. |00i, 2. |01i, and 3.|11i.
4. Discuss the CNOT gate and its operation on four dif-
ferent input states.
5. Show that S gate can be formed by connecting two T
5. explain the matrix form and operation of Toffoli gate.
gates in Series.
6. Describe the Swap gate with the matrix and truth ta-
ble.
7. Elucidate the working of controlled-Z gate mention-
ing its matrix representation and truth table.