1 circuits

1.1 classical

A collection of gates and wires.

circuit: \{0, 1\}^{n_{\text{IN}}} \to \{0, 1\}^{n_{\text{OUT}}}

Theorem: any function f: \{0, 1\}^n \to \{0, 1\}^m has a circuit and vice versa

1.1.1 reversible gates

A gate G where G is its inverse. Or actually, a gate for which we can use itself to restore \bar x from G(\bar x)

Theorem: any function f: \{0, 1\}^n \to \{0, 1\}^m has a circuit made of reversible gates {CNOT, CCNOT, COPY, NOT}

1.2 axioms of quantum mechanics

1.2.1 1. state of a quantum system

The quantum state is a unit vector in a Hilbert space. The state of n qubits is | \psi \rangle \in \mathbf{C}^{2^n} with ||| \psi \rangle||^2 = 1

1.2.2 2. time evolution

  1. norm-preservation: ||f(| \psi \rangle)|| = ||| \psi \rangle||
  2. linearity: f(\alpha| \psi_1 \rangle + \beta| \psi_2 \rangle) = \alpha f(| \psi_1 \rangle) + \beta f(| \psi_2 \rangle)

Equivalently, we can say that an operation is a unitary matrix U \in \mathbf{C}^{2 \times 2}: f(| \psi \rangle) = U| \psi \rangle

1.2.3 3. measurement

We observe x \in \{0, 1\}^n with probability |\alpha_x|^2

1.2.4 4. composition

If quantum system 1 is in state | \psi_1 \rangle \in \mathbf{C}^{2^{n_1}} and quantum system 2 is in state| \psi_2 \rangle \in \mathbf{C}^{2^{n_2}} then the join state is | \psi_{12} \rangle = | \psi_1 \rangle \otimes | \psi_2 \rangle

An entangled state is such that cannot be decomposed into a product of two other ones. There is no simple way to know if a state is entangled or not.