T2: 1. Classical Computing Flashcards

1
Q

Define algorithm

A

A procedure for performing a calculation; that is, a means for evaluating f(x).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the two primary resources in computing and how are they quantised in the circuit model?

A

Time - number of gates

Space - number of bits

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Define complexity class

A

A set of problems which take similar computational resources (typically time as a function of input size) to solve.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How are algorithms classified into complexity classes

A

An upper bound is placed on computation time (as function of input bits) to give a worst case scenario

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Define the class of NP problems

A

Problems which have a verified solution in polynomial time, despite the solution being difficult to find.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Define NP-complete problems

A

NP Problems for which, if an answer was found, could be modified to solve all NP problems, implying P=NP.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Define computation

A

Some procedure for evaluating a given function f(x)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the four functions f:{0,1} → {0,1}

A
  1. Identity f(x)=x
  2. NOT f(x)=not(x)
  3. f(x)=0
  4. f(x)=1
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What function does the NOT gate represent?

A

f(x) = x+1 modulo 2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Why does the fanout gate not have a direct quantum analogue?

A

No cloning theorem prevents cloning of an arbitrary qubit.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Why are there 16 gates which map two bits to one?

A

There are four possible inputs: 00, 01, 10, 11

There are 2^input ways we can uniquely assign ones and zeroes to each input.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What properties do NOT and CNOT share, that AND, NAND and OR do not?

A

They are reversible; they map from and to the same number of bits.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How do we label bits/qubits on a circuit diagram (numerically or alphabetically)

A

Increasing numbers as we go up/x bottom, y top etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What function does the CNOT gate represent?

A

x⊕y ≔ x+y mod2

The outcome is on the top line.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How can we use a CNOT to copy a number?

A

Initialise an ancillary bit to zero and use this as the target for a not. It will copy the control.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What function does the CCNOT/Toffoli gate represent?

A

(x_1 and x_2) ⊕ y mod2

17
Q

Define the Universal Gate Set (UGS)

A

A finite set of gates which suffices to construct arbitrary functions f : {0, 1}^n →{0, 1}^m.

18
Q

Briefly describe how we can create an arbitrary function f : {0, 1}^n →{0, 1}^m

A

Consider a series of m functions mapping {0,1}^n→{0, 1}. Once we show each f_m can be built using a UGS, we can compose it into f. We copy the input m times using CNOTS and ancillary qubits (=0) and have each f_m act on a set of the copies.