From 04cebb77df0006712fa24823d6dc6956f5debc68 Mon Sep 17 00:00:00 2001 From: Aly Date: Mon, 15 Sep 2025 09:48:28 -0600 Subject: [PATCH] outer products --- controlled-not.md | 2 +- fourier-basis.md | 6 ++++++ hadamard-gate.md | 6 ++++++ inner-product.md | 1 + norm.md | 5 +++++ orthonormal.md | 5 +++++ outer-product.md | 8 ++++++++ unitary-operator.md | 12 ++++++++++++ 8 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 fourier-basis.md create mode 100644 hadamard-gate.md create mode 100644 norm.md create mode 100644 orthonormal.md create mode 100644 outer-product.md create mode 100644 unitary-operator.md diff --git a/controlled-not.md b/controlled-not.md index 00d2f6d..ff54f17 100644 --- a/controlled-not.md +++ b/controlled-not.md @@ -3,4 +3,4 @@ - [[quantum-computing]] - [[push]] [[CNOT]] - quantum equivalent of XOR -- written $`\operatorname{CNOT}_{1 \rarr 2}`$ for when $`\left(x, y\right)`$ becomes $`\left(x, x \oplus y\right)`$ +- written $`\operatorname{CNOT}_{1 \rightarrow 2}`$ for when $`\left(x, y\right)`$ becomes $`\left(x, x \oplus y\right)`$ diff --git a/fourier-basis.md b/fourier-basis.md new file mode 100644 index 0000000..d324921 --- /dev/null +++ b/fourier-basis.md @@ -0,0 +1,6 @@ +# Fourier Basis + +- [[quantum-computing]] +- the basis with base vectors $`\ket{+}`$ and $`\ket{-}`$ +- $`\ket{+} = \frac{1}{\sqrt{2}}\begin{bmatrix}1\\1\end{bmatrix}`$ +- $`\ket{-} = \frac{1}{\sqrt{2}}\begin{bmatrix}1\\-1\end{bmatrix}`$ diff --git a/hadamard-gate.md b/hadamard-gate.md new file mode 100644 index 0000000..f56dbf1 --- /dev/null +++ b/hadamard-gate.md @@ -0,0 +1,6 @@ +# Hadamard Gate + +- [[quantum-computing]] +- [[unitary-operator]] +- change-of-basis into the [[fourier-basis]] +- written $`\mathbf{H}`$ diff --git a/inner-product.md b/inner-product.md index daa5332..9bb0dc7 100644 --- a/inner-product.md +++ b/inner-product.md @@ -4,6 +4,7 @@ - notation $`\braket{x|y}`$ - $`\bra{x}`$ is a [[bra]] - $`\ket{y}`$ is a [[ket]] +- [[matrix-multiplication]], associates with [[outer-product]] - follows laws 1. $`\braket{0|y} = 0`$ and $`\braket{x|0} = 0`$ 2. $`\braket{x + y|z} = \braket{x|z} + \braket{y|z}`$ and $`\braket{x|y + z} = \braket{x|y} + \braket{x|z}`$ diff --git a/norm.md b/norm.md new file mode 100644 index 0000000..5f0fb66 --- /dev/null +++ b/norm.md @@ -0,0 +1,5 @@ +# Norm + +- "length" of a vector +- norm of a state $`u`$ is square root of [[inner-product]] $`\sqrt{\braket{u|u}}`$ +- written $`\left\lVert \ket{u} \right\rVert`$ diff --git a/orthonormal.md b/orthonormal.md new file mode 100644 index 0000000..d2ea107 --- /dev/null +++ b/orthonormal.md @@ -0,0 +1,5 @@ +# Orthonormal + +- property of a set of vectors +- [[norm]] of all vectors must be 1 +- [[inner-product]] of all vectors must be 0 diff --git a/outer-product.md b/outer-product.md new file mode 100644 index 0000000..9c8554b --- /dev/null +++ b/outer-product.md @@ -0,0 +1,8 @@ +# Outer Product + +- operates on two vectors and produces a matrix +- notation is $`\ket{x}\bra{y}`$ + - $`\ket{x}`$ is a [[ket]] + - $`\bra{y}`$ is a [[bra]] +- [[matrix-multiplication]], associates with [[inner-product]] +- a sum $`\ket{x}\bra{0} + \ket{y}\bra{1}`$ where $`\ket{x}`$ and $`\ket{y}`$ are [[orthonormal]] produces a [[unitary-operator]] sending $`\ket{0}`$ to $`\ket{x}`$ and $`\ket{1}`$ to $`\ket{y}`$ diff --git a/unitary-operator.md b/unitary-operator.md new file mode 100644 index 0000000..fdc7a0e --- /dev/null +++ b/unitary-operator.md @@ -0,0 +1,12 @@ +# Unitary Operator + +- [[quantum-computing]] +- a matrix $`\mathcal{U}`$ operating on a [[quantum-state]] to produce another [[quantum-state]] + - maps unit vectors to unit vectors + - [[norm]] +- other equivalent definitions: + - columns of $`\mathcal{U}`$ are [[orthonormal]] + - rows of $`\mathcal{U}`$ are [[orthonormal]] + - $`\mathcal{U}^{-1} = \mathcal{U}^\dagger = \overline{\mathcal{U}^\intercal} = \overline{\mathcal{U}}^\intercal`$ + - preserves [[norm]] + - preserves [[inner-product]]