PAR Class 20, Thu 2019-03-28
Table of contents::
2 Quantum computing
-
https://www.quantum-inspire.com/kbase/introduction-to-quantum-computing/
-
More from
Quantum Computing for Computer Scientists 1st Edition ( recommended in Microsoft talk)
-
Compare byte with qbyte.
-
State of byte is 8 bits.
-
State of qbyte is 256 complex weights.
-
They all get modified by each operation (aka matrix multiply).
-
That is the power of quantum computing.
-
The current limitations are that IBM does only a few qbits and that the operation is noisy.
-
No cloning: Cannot copy a qbit, but can move it.
-
Copied from page 171: All quantum algorithms work with the following basic framework:
- The system will start with the qubits in a particular classical state.
- From there the system is put into a superposition of many states.
- This is followed by acting on this superposition with several unitary operations.
- And finally, a measurement of the qubits.
-
Ways to look at measurement:
- Converts qbit to classical bit.
- Is an interaction with the external world.
- Information is not lost, but leaks into the external world.
- Is an operator represented by a matrix.
- that is Hermitian, i.e., it's equal to its complex transpose.
- For physical systems, some operators compute the system's momentum, position, or energy.
- The matrix's eigenvalues are real.
- The result of the operation is one of the eigenvalues.
-
https://en.m.wikipedia.org/wiki/Bloch_sphere:
- The state of a qbit can be represented as a point on or in a sphere of radius 1.
- E.g., |1> is the north pole, |0> the south pole.
- Many operations are rotations.
-
Common operations (aka gates):
https://en.wikipedia.org/wiki/Quantum_logic_gate
-
Hadamard.
Creates a superposition.
https://cs.stackexchange.com/questions/63859/intuition-behind-the-hadamard-gate
-
Toffoli, aka CCNOT.
Universal for classical boolean functions.
(a,b,c) -> (a,b, c xor (a and b))
-
Fredkin, aka CSWAP.
https://en.wikipedia.org/wiki/Fredkin_gate
3 inputs. Swaps last 2 if first is true.
sample app: 5 gates make a 3-bit full adder.
-
-
-
Algorithms:
- Some, but not all, are faster.
- Bounded-error quantum polynomial time (BQP)
- "is the class of decision problems solvable by a quantum computer in polynomial time, with an error probability of at most 1/3 for all instances" - https://en.wikipedia.org/wiki/BQP
- Includes integer factorization and discrete log.
- Relation to NP is unknown (big unsolved problem).
- Grover's algorithm:
- https://en.wikipedia.org/wiki/Grover%27s_algorithm
- Given a black box with N inputs and 1 output.
- Exactly one input makes the output 1.
- Problem: which one?
- Classical solution: Try each input, T=N.
- Quantum: $T=\sqrt(N)$.
- Probabilistic.
- Apps: mean, median, reverse a crypto hash, find collisions, generate false blocks.
- Can extend to quantum partial search.
- Grover's algorithm is optimal.
- This suggests that NP is not in BQP .
- Shor's algorithm:
- Factorize an int.
- in BQP.
- almost exponentially faster than best classical algorithm.
- Largest examples I can find: