Quantum Computing
Quantum Computing
For quantum computing we need only deal with finite quantum systems,
and it suffices to consider only finite dimensional complex vector spaces
with inner product.
1 0
|0> = 0 |1> =
1
Single-Qubit State Transformations
Identity Transformation
I: |0> |0> 1 0
|1> |1> 0 1
Complement
X: |0> |1> 0 1
|1> |0> 1 0
Negative Complement
Y: |0> - |1> 0 1
|1> |0> -1 0
Controlled Not
|01> |01> 0 1 0 0
|10> |11> 0 0 0 1
|11> |10> 0 0 1 0
The third bit is negated only if the first two are both 1
Negation Conjunction
(H H …. H) |00…00>
= (1/ 2n)((| 0> + |1>) (|0>+|1>) … (|0>+|1>)
Let |0> and |1> be any two basis vector (states) in the complex plane.
And let |x> be any (unit) vector (state) in the plane. Then:
We can represent X as
X = |0><1| + |1><0|
Measurement of the second bit will yield |0> or |1> with a probability of ½
for each result, independently of whether the first bit has been measured
or not. Measurement of the first bit will always yield |0>.
It is an entangled state.
The first measurement completely determines the outcome of the second.
Cloning
|c> |c>
|x> |x>
|y> |y>
|0> |s>
|1> |1> |0>
|0> |c’>
|0> |0> |1>
Let |c> = |1>, |x> = |0>, |y> = |1> |s> = |0>, |c’> = |1>
Quantum Gate Arrays
|x> |x>
Uf
|y> |y f(x)>
Quantum Gate Arrays
Uf + = Uf U f+ U f = U f U f = I
|x> |x>
|x>
Uf Uf
|y> |y>
0
=
1
T(H|0> H|0> |0> ) = ½(|000> + |010> + |100> + |111>)
|111> 1
UP : |x,0> |x,P(x)>
N-1 N-1
ai|xi> (2A – ai)|xi> Where A denotes the average
i=0 i=0 of the ai’s
1 0 0 …. 0
0 -1 0 …. 0
R=
0 …………… 0
0 ………...0 -1
Grover’s Quantum Search Algorithm
2 0 0 ……. 0
0 0 0 …….. 0
R’ =
0 ……………… 0
0 ……………0 0
And WR’W – I = D
Schor’s Factoring Algorithm
Factor an integer M
Step 2 -- details
i
Repeatedly square a (mod M) 2
{classically} to get a for i m
This requires O(m) squarings and multiplications of m-bit numbers
(mod M)
This gives way to a gate array that uses O(m log(m) loglog (m))
gates to multiply two m-bit numbers (using Schönhage-Strassen)
Subroutine 2
i
let c = a2
(mod M), and b = poweri, then
result := 0
for j = 0 to m – 1
if (bi == 1) then
result := result + 2ic (mod M)
endif
endfor
0 otherwise
1 if f(x) = u
C x g(x)|x,u> where g(x) =
and C is a complex scale factor
Schor’s Factoring Algorithm
m bits
amplitude
x
The above graph displays the values of x consistent with the
measurement on |f(x)>
Measurement of
transformed
Measurement of f(x) states
Schor’s Factoring Algorithm
j cj |j(2m/r),u>
1 0 0 0
0 1 0 0
Let Sj,k =
0 0 1 0
0 0 0 eik-j
where k –j = /2k-j
Where the matrices are applied in reverse order (from left to right)
and the transformed state is the bit-reversed state of state |c>
aq = 1 mod M since
aq ax = ax mod M for all x.
If q is even we can write
(aq/2 + 1) (aq/2 - 1) = 0 mod M
thus, if neither of these factors is a multiple of M,
either has a non-trivial factor with M. (found by
using Euclid’s algorithm on a classical computer)
Schor’s Factoring Algorithm
Example
Let M = 21
Step 1 – choose a = 11 which is relatively prime to M
a = 11, q/2 = 3, M = 21
(113 + 1) = 1332 (113 - 1) = 1330
gcd(1332, 21) = 7 and gcd(1330, 21) = 3
Quantum Error Correction
Characterization of Errors
The possible errors for each single qubit consist of no errors (I),
bit- flip errors (X), phase errors (Z), and bit-flip phase errors (Y).
In the general case, possible errors are expressed as linear
combinations of unitary error operators Ei
|> = C|>
1. Apply the syndrome extraction operator SC to the quantum state (padded with
sufficient 0 bits.) SC(i ei Ei | >) |0> = i ei Ei | > |i>
2. Measure the |i> component of the result. This yields some random value i0 and
projects the state to Ei0 | , i0>
3. Apply the inverse error Ei0-1 to the first n+ k qubits of Ei0| , i0> to get the
corrected state | >
Quantum Error Correction
Example
E = {I I I, X I I, I X I, I I X}
S: |x0, x1, x2, 0, 0, 0> |x0, x1, x2, x0 xor x1, x0 xor x2, x1 xor x2>
Quantum Error Correction
E =(4/5) X I I + (3/5) I X I
continuing
Sc E |> |000>
Preliminaries
Note that
q† + q = X and q†q + q q† = I
The Architecture of Quantum Computers
k
.
logic
.
.
1
0
Memory program
Program counter
The Architecture of a Quantum Computer
Are we there yet?
k |1>
k-1 |1>
. |0>
. |0>
. Ak-1 Ak-2 ,.,A2 A1
|1>
A2 |1>
2
1 A1 |0>
0 |1>
|0> A1|>
A2A1 |>
PC
† q A Qubit registers
q†
q 12q01A12
H = q† i +1q i Ai +1 + c.c where summation is from i = 0 to i = k-1
References