14. 14
State Vectors
The state of a bit/qubit can be represented by a vector.
In the case of a qubit this serves as a complementary
representation to the Bloch sphere, where the
probability of measuring a given state is given by the
modulus of the associated value.
15. 15
State Transitions
•Operations on bits/qubits can be described as
matrices
•Multiplying a matrix which represents an operation
by an input state vector returns the resulting output
state vector
16. 16
Multiple Qubits
Multiple independent qubits (or operations on qubits)
can be represented by the tensor product of the two
state vectors (or operation matrices)
23. 23
General Quantum Algorithm
1.Qubits start in some classical state
- e.g. 0000 or 1001
2.System is placed into a superposition of states
3.Act upon qubits using unitary operations
4.Measure some of the qubits (collapsing to a classical
state)
24. 24
Deutsch’s Algorithm
•Determines whether a function is “balanced” or
“constant”
•Operates on functions in the space
•Classical algorithms require 2 calls to the function,
while the quantum algorithm requires 1. This is
achieved by a “change of basis” in the problem
space.
27. 27
Grover’s Algorithm
Find an element in a set in expected time
1.Start with a selector function
2.Repeat times
a.Perform phase inversion using selector function (selected
element takes opposite phase from other elements)
b.Perform inversion about the mean (amplitude of selected
element is increased)
3.Measure
30. 30
Cryptography
•Public key cryptography (RSA)
• Relies on difficulty of factoring large numbers (with large
prime factors)
• Shor’s algorithm can factor integers in polynomial
expected time
•Quantum private key generation & eavesdropping
• Classical bits randomly generated and transmitted as
qubits in randomly selected bases
• Qubits measured in randomly selected bases
• Subset of qubits transmitted/measured in same bases are
compared; rest are used as private key