Chapter 16c
Chapter 16c
Albert Einstein
2
• A computer that takes advantage of quantum mechanics
phenomena.
• A quantum computer can do certain calculations much faster than
conventional computers
• For some tasks, it can compute with only storage as if it were
operating on values in parallel
• Grover’s algorithm: reduces the search time to the square root of the
size of the search space
David Deutsch
• If a polarized filter is exactly aligned with the photon’s polarization it will pass
through it.
• If the filter is off from the photon’s polarization, it will not pass
• If the filter is off from the photon’s polarization, it passes through with probability 1/2
• If the photon is polarized at an angle relative to the filter the probability it will
pass is
Examples of a qubit
10
Real life example
• Put two filters aligned from each other on top of each other: no light will pass.
• Insert a third filter between the two aligned from the others: ½ will pas though the
first filter, and of this ½ will pas through the third filter.
• Bell’s theorem: Locality (“speed of light”) and Realism (things have definite values)
are incompatible with quantum mechanics (the mechanics of waves)
(Bell's Theorem Video: The Quantum Venn Diagram Paradox, https://www.youtube.com/watch?v=zcqZHYo7ONswatch?v
Bell's Inequality Video: The weirdest theorem in the world | Nobel Prize 2022, https://www.youtube.com/watch?v=9OM0jSTeeBg )
Examples of a qubit
11
• QCs use qubits
• A qubit’s state can be a mixture of 0 and 1 – known as a superposition
• The notation for describing superposition is known as ket, a bar “” followed by
a right angle “.
• A classical bit is an intuitive concept, it is either equal to:
0= or 1 =
• The state of a single qubit (in superposition) is: where are complex numbers
that are probability amplitudes, such that the probability of outcome with
value is and that the probability of outcome with value is , so that .
17
• Entanglement 1: Given the state of multiple entangled qubits, one
cannot express the state of individual qubits separately.
Example: for 2 superposed qubits for entanglement we
need:
(
• Entanglement 2: Given the state of multiple entangled qubits,
measuring a qubit individually will reveal the state of other qubits.
Example: for the 2 superposed qubits:
– Measure qubit #1: it is 0 or 1 with probability ½. If it is 0 then qubit # 2 is 0; if it is 1
then qubit #2 is 1. Similarly for the measurement of qubit #2 So the qubits are
entangled.
• We shall show how to generate entangled qubits with CNOT gates in the
next slides
Multi-qubit entanglement
18
• It requires coefficients to express the state of entangled qubits. That
is, for entangled qubits we need 1,024 coefficients.
• If the qubits are not entangled then their state can be described with
only coefficients: for the first one, for the second, etc. Then for
qubits we only need 20 coefficients.
• As with conventional computers you might think that if you have a qubit
you could “XOR” it with a qubit in state and wind up with two qubits, each
in state .
No Cloning theorem
24
• Linearity constrains the possible things a quantum gate can do.
• Another constraint is unitarity.
• Unitarity requires that: if the input state of the gate is normalized (the sum
of the squared absolute values of the coefficients is 1) then the output state
is normalized.
• Unitary gates:
• For the Hadamard gate
• Unitarity forbids certain kinds of gates. For example zeroize gates for which
the truth table output consists of zeroes (they do not have an inverse)
• Classical operations that cannot be turned into unitary gates are called
irreversible.
Matrix representation 30
A geometrical representation of the state space of a
qubit
State Space postulate
The state of a quantum system can be described by a unit vector in
Hilbert space H Felix Bloch (1905 –1983)
-gate,
initial state final state
Grover’s algorithm
33
• To superpose all possible -bit values onto qubits begin by zeroing
each qubit: measuring it, if its 1 inverting it and then applying the
Hadamard gate to each qubit.
• The amplitudes at this point that should be for each qubit. (Slide 21)
Grover’s algorithm
35
Now loop over the following two operations
2. Reflect the amplitudes of all states about the mean of all the amplitudes
• Repeat the operations all the amplitudes get a little smaller (except for
).