430 likes | 928 Views
Quantum Computing & Algorithms. Loginov Oleg Department of Computational Physics Saint-Petersburg State University 2004. Contents. Fundamentals Logic Qubit (short of quantum bit) Operators Multi-qubit systems Entangled states Quantum Circuits (Gates) Computational Algorithms
E N D
Quantum Computing & Algorithms Loginov Oleg Department of Computational Physics Saint-Petersburg State University 2004
Contents • Fundamentals • Logic • Qubit (short of quantum bit) • Operators • Multi-qubit systems • Entangled states • Quantum Circuits (Gates) • Computational Algorithms • Shor’s Algorithm • Grover’s Algorithm
Hilbert Space Inner product: Norm: Dual vector: Outer product:
Qubit (short of quantum bit) Measurement non-deterministiccollapse Two possible outputs (constraint) State: Computational basis
Operators Unitary: Tensor product For operators
Multi-qubit Systems N-qubit quantum computer states 2-qubit QC:
Entangled states Entangled state Example: 2-qubitsystem
Conclusion • Qubits have probabilistic nature • N-qubit register have 2^N basis functions • Gates that are direct product of other gates do not produce entanglement. • cNOT and one-qubit gates form a universal set of gates. • In principle there is an infinite number unitary operators U.
Quantum Algorithms • Shor’s Algorithm (Factorization) • Grover’s Algorithm • Wavelet Q-Search • Extended Search • Root Calculator • Algorithm for Triangle Problem
Factorization I non-trivial factors of N
Factorization II Example: N = 21
Shor #0 t n
Shor #1 t n
Shor #2 t n
Shor #3 t n
QDFT 1 0
Before Q-DFT Probability distribution (1 register)
After QFDT Probability distribution (1 register)
Example – Step 1 If x is not coprime to N, then use GCD(x, N), else - Shor
Example – Before QDFT 2-nd register:
Example – After QDFT 0 85 171 256 341 427 Probability 0.41e-03 0.25e-03 0.39e-04 j 0 256 341 427 85 171 Probability contribution Prob(j)
Continued Fraction Approximation 0 85 171 256 341 427
Conclusion • Atomic sizes • Probabilistic character • Speed • Classical machine – • Quantum machine – timesteps timesteps Example: 300 digit code – 1E06 years1000 digit code – 1E25 years several hours
Search Task N states: The problem is identify the state Condition:
Grover’s Algorithm Take a n-qubit register, where After n-dimension Hadamard Gate: Several iterations of Rotate Phase Operator and Diffusion Operator Measurement
Rotate Phase Operator i 0 1 2 3 4 5 6 i 0 1 2 3 4 5 6
Diffusion Operator i i 0 1 2 3 4 0 1 2 3 4
Measurement Average amplitude: Addition in each step: Exact calculations:
Experimental Scheme in Optics H H Rotate Gate H H H Z H
CNOT optical gate control target
Conclusion Advantage: • Speed instead of • Disadvantages: • Difficulty of assigning data
Acknowledgement • Prof. A.V. Tsiganov • Prof. S.Y. Slavyanov • My mom and all my friends…