# Quantum Computing

wikpedia&#x20;

* [block sphere](https://en.wikipedia.org/wiki/Bloch_sphere)
* [toffoli gate ](https://en.wikipedia.org/wiki/Toffoli_gate)

[topological quantum computer ](https://en.wikipedia.org/wiki/Topological_quantum_computer)with [notes](https://medium.com/swlh/topological-quantum-computing-5b7bdc93d93f)

[hamming code ](http://users.cs.fiu.edu/~downeyt/cop3402/hamming.html)for adding parity bits for error correction is a classical version &#x20;

{% file src="<https://354051965-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M7czuNAEqLJsrfUWARA%2F-MH4yRoSRE0c_0wrI4Zc%2F-MH521mU7dDkxmeRsXiv%2Fmicrosoft.Quantum.pdf?alt=media&token=1293a1c8-6788-4afc-b980-b5380695b41e>" %}

[Notes from Microsoft Research 2018 ](https://www.youtube.com/watch?v=F_Riqjdh2oM)

* built on logic gates just like traditional machines&#x20;

Bit wise vectors&#x20;

0&#x20;

$$
\left(\begin{array}{l}
1 \\
0
\end{array}\right)
$$

matrix multiplication&#x20;

$$
\left(\begin{array}{ll}
a & b \\
c & d
\end{array}\right)\left(\begin{array}{l}
x \\
y
\end{array}\right)=\left(\begin{array}{l}
a x+b y \\
c x+d y
\end{array}\right)
$$

rank 3

$$
\left(\begin{array}{lll}
a & b & c \\
d & e & f \\
g & h & i
\end{array}\right)\left(\begin{array}{l}
x \\
y \\
z
\end{array}\right)=\left(\begin{array}{l}
a x+b y+c z \\
d x+e y+f z \\
g x+h y+i z
\end{array}\right)
$$

$$
\left(\begin{array}{ll}
a & b \\
c & d
\end{array}\right)\left(\begin{array}{ll}
w & x \\
y & z
\end{array}\right)=\left(\begin{array}{ll}
a w+b y & a x+b z \\
c w+d y & c x+d z
\end{array}\right)
$$

$$
\left\[
\begin{array}{llll}
1 & 0 & 0 & 0 \\
0 & 1 & 0 & 0 \\
0 & 0 & 1 & 0 \\
0 & 0 & 0 & 1
\end{array}\right]\left\[\begin{array}{l}
a \\
b \\
c \\
d
\end{array}\right]=\left\[\begin{array}{l}
a \\
b \\
c \\
d
\end{array}\right]
$$

$$
\left(\begin{array}{llll}
1 & 0 & 0 & 0 \\
0 & 0 & 1 & 0 \\
0 & 1 & 0 & 0 \\
0 & 0 & 0 & 1
\end{array}\right)\left(\begin{array}{l}
0 \\
1 \\
0 \\
0
\end{array}\right)=\left(\begin{array}{l}
0 \\
0 \\
1 \\
0
\end{array}\right)
$$

The bit flipping is important. The four operations of a function are identity, negation, constant 0 and constant 1


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://nkintc.gitbook.io/brainless/steam/technology/quantum-computing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
