Quantum Computing
Quantum Computing
A Seminar Report
Submitted By
NANDAN A D
Register No. MEC20CS026
Of
BACHELOR OF TECHNOLOGY
In
COMPUTER SCIENCE AND ENGINEERING
DECEMBER 2023
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
1
QUANTUM COMPUTING
A Seminar Report
Submitted By
NANDAN A D
Register No. MEC20CS026
Of
BACHELOR OF TECHNOLOGY
In
COMPUTER SCIENCE AND ENGINEERING
DECEMBER 2023
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
2
MALABAR COLLEGE OF ENGINEERING AND TECHNOLOGY,
DECEMBER 2023
CERTIFICATE
Certified that the Seminar Report entitled “QUANTUM COMPUTING” is a bonafide record of the work
carried out by “NANDAN A D (MEC20CS026)” in partial fulfillment of the award of Bachelor of
Technology in Computer Science and Engineering of APJ Abdul Kalam Technological University, during the
year 2019-2023.
3
1. ACKNOWLEDGEMENT
I take this opportunity to express our heartfelt gratitude and regard to all respected personalities who had
guided, inspired and helped me in the successful completion of this project.
First and foremost, I express my thanks to The Lord Almighty for guiding me in this endeavour and making it
a success.
I thankful to Principal of my college Dr. P BABU and the Management for providing me with the excellent
lab and infrastructure facilities.
My sincere thanks to the Head of the Department of Computer Science and Engineering (in charge),
Mr.ABDUL NAZZAR A A for his valuable guidance and suggestions.
I would like to express my wholehearted thankfulness to my seminar guide as well as my class incharge
Mrs.PARVATHY P for her valuable help and gracious co-operation throughout my project.
Last but not least, L thank all the teaching and non-teaching staffs of the Department Of Computer Science
and Engineering, and I further expose my heart full thanks to parents, friends, classmates and colleagues who
kept by their overwhelming support, motivation and encouragement.
4
CONTENTS
Sl. NO TITLE
1 AKNOWLEDGMENT
2 ABSTRACT
3 INTRODUCTION
4 HISTRORY
5 QUANTUM MECHANICS
5.1 Superposition
5.2 Uncertainity
5.3 Entanglement
5
7 QUANTUM COMPUTERS
11 CONCLUSION
12 REFERENCES
6
2. ABSTRACT
3. INTRODUCTION
7
starting to falter, and components are getting smaller. Soon they will be so
small, being made up of a few atoms that quantum effects will become
unavoidable, possibly ending Moore’s law. There are ways in which we
can use quantum effects to our advantage in a classical sense, but by fully
utilizing those effects we can achieve much more. This approach is the
basis for quantum computing.
4.HISTORY
5. QUANTUM MECHANICS
8
wrong, it explains why the stars shine, how matter is structured, the
periodic table, and countless other phenomena [10].
5.1 Superposition
Superposition means a system can be in two or more of its states
simultaneously. For example a single particle can be traveling along two
different paths at once. This implies that the particle has wave-like
properties, which can mean that the waves from the different paths can
interfere with each other. Interference can cause the particle to act in ways
that are impossible to explain without these wave-like properties. The
ability for the particle to be in a superposition is where we get the parallel
nature of quantum computing: If each of the states corresponds to a
different value then, if we have a superposition of such states and act on
the system, we effectively act on all the states simultaneously.
5.2 Uncertainty
The quantum world is irreducibly small so it’s impossible to measure a
quantum system without having an effect on that system as our
measurement device is also quantum mechanical. As a result there is no
way of accurately predicting all of the properties of a particle. There is a
trade off - the properties occur in complementary pairs (like position and
momentum, or vertical spin and horizontal spin) and if we know one
property with a high degree of certainty then we must know almost
nothing about the other property. That unknown property’s behavior is
essentially random. An example of this is a particle’s position and
velocity: if we know exactly where it is then we know nothing about how
fast it is going. This indeterminacy is exploited in quantum cryptography.
It has been postulated (and currently accepted) that particles in fact DO
NOT have defined values for unknown properties until they are measured.
This is like saying that something does not exist until it is looked at.
5.3 Entanglement
9
In 1935 Einstein (along with colleagues Podolski and Rosen)
demonstrated a paradox (named EPR after them) in an attempt to refute
the undefined nature of quantum systems. The results of their experiment
seemed to show that quantum systems were defined, having local state
BEFORE measurement. Although the original hypothesis was later
proven wrong (i.e. it was proven that quantum systems do not have local
state before measurement). The effect they demonstrated was still
important, and later became known as entanglement. Entanglement is the
ability for pairs of particles to interact over any distance instantaneously.
Particles don’t exactly communicate, but there is a statistical correlation
between results of measurements on each particle that is hard to
understand using classical physics. To become entangled, two particles
are allowed to interact; they then separate and, on measuring say, the
velocity of one of them (regardless of the distance between them), we can
be sure of the value of velocity of the other one (before it is measured).
The reason we say that they communicate instantaneously is because they
store no local state and only have well defined state once they are
measured. Because of this limitation particles can’t be used to transmit
classical messages faster than the speed of light as we only know the
states upon measurement. Entanglement has applications in a wide variety
of quantum algorithms and machinery.
10
project the electron into one or the other of the two states, with equal
probabilities 1/2
11
where the numbers θ and φ define a point on the unit three-dimensional
sphere, as shown here. This sphere is often called the Bloch sphere, and it
provides a useful means to visualize the state of a single qubit.
Theoretically, a single qubit can store an infinite amount of information,
yet when measured it yields only the classical result (0 or 1) with certain
probabilities that are specified by the quantum state. In other words, the
measurement changes the state of the qubit, “collapsing” it from the
superposition to one of its terms. The crucial point is that unless the qubit
is measured, the amount of “hidden” information it stores is conserved
under the dynamic evolution (namely, Schrödinger's equation). This
feature of quantum mechanics allows one to manipulate the information
stored in unmeasured qubit with quantum gates, and is one of the sources
for the putative power of quantum computers.
1
Fig. 1.1 The Bloch Sphere
(Stanford Encyclopedia, Quantum Computing)[18]
To see why, let us suppose we have two qubits with us. If these were
classical bits, then they could be in four possible states (00, 01, 10, and
11). Correspondingly, a pair of qubits has four computational basis states
(00, 01, 10 and 11). But while a single classical two-bit register can store
these numbers only one at a time, a pair of qubits can also exist in a
superposition of these four basis states, each of which with its own
complex coefficient (whose mod square, being interpreted as probability,
is normalized). As long as the quantum system evolves unitarily and is
unmeasured, all four possible states are simultaneously “stored” in a
12
single two-qubit quantum register. More generally, the amount of
information that can be stored in a system of n unmeasured qubits grows
exponentially in n. The difficult task, however, is to retrieve this
information efficiently.
5.2 Quantum Gates
Classical computational gates are Boolean logic gates that perform
manipulations of the information stored in the bits. In quantum computing
these gates are represented by matrices, and can be visualized as rotations
of the quantum state on the Bloch sphere. This visualization represents the
fact that quantum gates are unitary operators, i.e., they preserve the norm
of the quantum state (if U is a matrix describing a single qubit gate, then
U†U=I, where U† is the ad joint of U, obtained by transposing and then
complex-conjugating U). As in the case of classical computing, where
there exists a universal gate (the combinations of which can be used to
compute any computable function), namely, the NAND gate which results
from performing an AND gate and then a NOT gate, in quantum
computing it was shown that any multiple qubit logic gate may be
composed from a quantum CNOT gate (which operates on a multiple
qubit by flipping or preserving the target bit given the state of the control
bit, an operation analogous to the classical XOR, i.e., the exclusive OR
gate) and single qubit gates. One feature of quantum gates that
distinguishes it from classical gates is that they are reversible: the inverse
of a unitary matrix is also a unitary matrix, and thus a quantum gate can
always be inverted by another quantum gate [13].
13
Unitary gates manipulate the information stored in the quantum
register, and in this sense ordinary (unitary) quantum evolution can be
regarded as computation (showed how a small set of single-qubit gates
and a two-qubit gate is universal, in the sense that a circuit combined from
this set can approximate to arbitrary accuracy any unitary transformation
of n qubits)[2]. In order to read the result of this computation, however,
the quantum register must be measured. The measurement gate is a non-
unitary gate that “collapses” the quantum superposition in the register
onto one of its terms with the corresponding probability. Usually this
measurement is done in the computational basis, but since quantum
mechanics allows one to express an arbitrary state as a linear combination
of basis states, provided that the states are orthonormal (a condition that
ensures normalization) one can in principle measure the register in any
arbitrary orthonormal basis. This, however, doesn't mean that
measurements in different bases are efficiently equivalent. Indeed, one of
the difficulties in constructing efficient quantum algorithms stems exactly
from the fact that measurement collapses the state, and some
measurements are much more complicated than others.
14
They are acyclic (no loops).
No FANIN, as FANIN implies that the circuit is NOT reversible,
and therefore not unitary.
No FANOUT, as we can’t copy a qubits state during the
computational phase because of the no-cloning theorem.
15
Fig. 1.3: The Hadamard Gate
7 .QUANTUM COMPUTERS
16
qubits. Design F so that it maximizes the probability that the output we
measure is the answer we want.
Measuring the output collapses the wave function: get Boolean values for
all the qubits in W. The result is one of the possible outputs.
Imagine that F is (integer) square root W =√V. Prepare V as the
superposition of all integers from 0 to 2 n, run the computer, then measure
W. Result will square root of some number between 0 and 2 n. The square
root of any such number, with equal probability. F calculates the square
roots of all the integers in parallel, but QMP says we can only find out
about one. For real problems, arrange F so the probability amplitudes of
the output state strongly favor the desired output from F. .
A quantum computer is probabilistic: we may need to run it multiple
times before we get the answer we want.
The biggest success so far -- and the event which ignited the
current explosive growth of the field of quantum computing -- was Peter
Shor's 1994 discovery of an efficient quantum algorithm for finding the
prime factors (factoring) of large integers[8].
By making clever use of superposition’s, interference, quantum
parallelism, and some classical number theory, Shor's algorithm finds a
factor of a number N in time roughly the square of the length of the input
(which is log N bits). In contrast, every known classical algorithm
requires exponential time to factor. Since factoring is one of the most
elementary aspects of number theory, the oldest mathematical discipline,
and centuries of efforts by the greatest mathematicians have not yielded
better methods, it is widely believed that such better methods either do not
exist or are prohibitively difficult to find.
In fact, this belief underlies most of current public-key
cryptography, notably the RSA system, ubiquitously used on the Internet
and in the financial world. Such crypto-systems can be broken if one can
factor large numbers fast. Accordingly, the advent of quantum computing
compromises all such systems: if a quantum computer can be built, then
most of current cryptography becomes totally insecure, and, for example,
electronic money can be forged.
What quantum computing takes away with one hand (classical
public-key crypto), it gives back in another form with the other (quantum
17
secret-key crypto).In 1984, Bennett and Brassard found a scheme which
allowed two distant parties to obtain a shared secret key via quantum
mechanical communication. Their scheme was always believed to be fully
secure against any type of spy or eavesdropper, and recently this has
indeed been formally proven. On the other hand, some other parts of
electronic transactions, like unforgivable signatures, appear to be beyond
the power of quantum methods.
A third application is Grover's 1996 algorithm for searching
databases. Consider finding some specific record in a large unordered
database of N items. Classically, there is no smarter method than just to
go through all records sequentially, which will requires expected N / 2
time steps for a record in general position. Grover's algorithm, however,
uses quantum superposition’s to examine all records ``at the same time'',
and finds the desired record in roughly √N steps.
Examining a 10 12 records with unit microsecond probes, this is the
difference between about two months of computing and one second of
computing! His algorithm also allows to solve the widespread and
notoriously hard NP-complete problems (such as the traveling salesman
problem) quadratic ally faster than known classical methods--reducing say
exponential time with exponent N to exponential time with exponent N /
2.
A fourth application was initially conceived and primarily
developed in collaboration with the CWI (Centrum voor Wiskunde en
Informatics, University of Amsterdam) group. It deals with the setting
where two separated parties, Alice and Bob, want to compute some
function f(x,y) depending on x (only known to Alice) and y (only known
to Bob).
A simple scheme would be for Alice to send her x to Bob and then
let Bob do all the work by himself, but this may take a lot of bits of
communication and often there are much more clever schemes requiring
less communication. The field of communication complexity examines the
optimal number of bits that have to be communicated in order to compute
the function at hand. What happens if we generalize this setting to the
quantum world and allow Alice and Bob the use of quantum computers
and qubit-communication?
It turns out that some tasks can be solved with significantly less
communication if we allow such quantization. We have obtained similar
advantages by sticking to classical communication, but allowing Alice and
Bob the use of pre-established ``entangled'' qubits. Both approaches beat
the limits provable for just classical communication.
The above developments suggested the vision that all computation
can be enormously speeded up by quantum computers. But not so! CWI's
18
researchers obtained strong and general limitations of quantum computers
as well. Grover's algorithm is quadratically faster than classical search
algorithms. It was already known that such a quadratic speed-up is the
best quantum computers can achieve for searching a database, so
exponential speed-ups cannot be obtained for this problem.
CWI-researchers recently showed that the same holds for all
problems in the database-setting of Grover's algorithm: for all such
problems, quantum computers can be at most polynomially faster than
classical computers.
Limiting results like the above, of course, do not preclude exponential
speed-ups in different settings, like Shor's, or a clever future setting as yet
unknown. Exploring this potential of quantum computation remains an
exciting and important task for computer scientists and physicists alike.
19
Classical computing relies, at its ultimate level, on principles
expressed by Boolean algebra, operating with a (usually) 7-mode logic
gate principle, though it is possible to exist with only three modes (which
are AND, NOT, and COPY). Data must be processed in an exclusive
binary state at any point in time - that is, either 0 (off / false) or 1 (on /
true). These values are binary digits, or bits. The millions of transistors
and capacitors at the heart of computers can only be in one state at any
point. While the time that the each transistor or capacitor need be either in
0 or 1 before switching states is now measurable in billionths of a second,
there is still a limit as to how quickly these devices can be made to switch
state. As we progress to smaller and faster circuits, we begin to reach the
physical limits of materials and the threshold for classical laws of physics
to apply [21].
The Quantum computer, by contrast, can work with a two-mode logic
gate: XOR and a mode we'll call QO1 (the ability to change 0 into a
superposition of 0 and 1, a logic gate which cannot exist in classical
computing). In a quantum computer, a number of elemental particles such
as electrons or photons can be used (in practice, success has also been
achieved with ions), with either their charge or polarization acting as a
representation of 0 and/or 1. Each of these particles is known as a
quantum bit, or qubit, the nature and behavior of these particles form the
basis of quantum computing. The two most relevant aspects of quantum
physics are the principles of superposition and entanglement.
20
Fig 1.4 Summary of Comparison between classical and quantum
Computing
Teleportation
Perhaps the most astounding of the claimed for benefits of
quantum computing is teleportation, the favoured local transportation
mechanism in Star Trek episodes. Teleportation is the capability to make
an object or a person disintegrates in one place while a perfect replica
21
appears in another. In physics, teleportation has never been taken
seriously because of the uncertainty principle. According to the
uncertainty principle, the duplicating process will disturb or destroy the
original objects; the more an object is duplicated, the more it is destroyed.
The detail information regarding how the duplication is made and how the
original object is destroyed is unknown. Therefore, it will reach a point
where one cannot extract enough information from the original to make a
perfect replica.
It has been more than three decades since IBM Fellow, Rolf
Landauer, first put forward the theory of quantum information. A decade
later, David Deutsch and other research fellows proposed the concept of a
quantum computer. Since then progress in the technical development of
quantum computing has moved slowly. Currently, IBM has a three-bit
quantum computer while Alamos National Laboratory announced a seven-
bit NMR (Nuclear Magnetic Resonance) computer not long ago. Even
though IBM research fellows promise that a ten-bit computer will emerge
soon, a useful quantum computer will require at least hundreds and
perhaps thousands of qubits. Unfortunately, it appears almost impossible
to develop more than 10 qubits. This is because room temperature and
other conditions will be changed exponentially as the qubits are added
resulting in disturbing the atom’s quantum behaviour. As IBM Research
Fellow Isaac Chuang, a leading scientist in quantum computing research,
22
said “Quantum mechanics goes away when you look at it. So you have to
make sure that the computer is extremely well isolated from the rest of the
world.” In other words, the commercial development of quantum
computing is still limited. The real life use of quantum computers
therefore will not affect our everyday life in the near future. However,
Chuang is very optimistic about it: “Quantum computing begins where
Moore’s law ends—about the year 2020, when circuit features are
predicted to be the size of atoms and molecules”. Other scientists estimate
the birth of commercial quantum computers will be in at least another
three decades.
11. CONCLUSION
12. REFERENCES
[1] Michael Nielsen, Isaac Chuang, “Quantum Computation and
Quantum Information" , Cambridge University Press (2000).
23
[2] Peter Shor, “Algorithms for Quantum Computation:
aaaaaaDiscrete Logarithms and Factoring," Proceedings of aaaaaathe 35th
Annual Symposium on Foundations of aaaaaaComputer Science 124-
134(1994).
24
[13] DiVicenzo, D. ‘Two-bit gates are universal for quantum
computation’, Phys. Rev., A 51: 1015–1022(1995).
[20] http://qubit.org/
[21] http://iqc.uwaterloo.ca/
[22] http://en.wikipedia.org/wiki/Quantum_computer
[23] http://howstuffworks.com/quantum-computer.htm
[24] http://qcis.uts.edu.au
25