<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Tutorial | Yuchao Su's Personal Website</title><link>https://yuchaosu.com/tags/tutorial/</link><atom:link href="https://yuchaosu.com/tags/tutorial/index.xml" rel="self" type="application/rss+xml"/><description>Tutorial</description><generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Thu, 28 May 2026 00:00:00 +0000</lastBuildDate><image><url>https://yuchaosu.com/media/icon_hu_8ebada37abdf526d.png</url><title>Tutorial</title><link>https://yuchaosu.com/tags/tutorial/</link></image><item><title>Understanding Quantum Computing from the Math Up</title><link>https://yuchaosu.com/post/quantumcomputing/</link><pubDate>Thu, 28 May 2026 00:00:00 +0000</pubDate><guid>https://yuchaosu.com/post/quantumcomputing/</guid><description>&lt;p>We start with the simplest ingredients — complex numbers and vectors — and end with variational quantum algorithms running on today&amp;rsquo;s noisy hardware. Every section depends on the one before it, so I recommend reading in order.&lt;/p>
&lt;hr>
&lt;h2 id="1-complex-numbers-the-language-of-quantum-amplitudes">1. Complex Numbers: The Language of Quantum Amplitudes&lt;/h2>
&lt;p>A complex number has the form $z = a + bi$ where $i = \sqrt{-1}$. Quantum mechanics is built on complex numbers because they naturally encode two pieces of information at once: a &lt;strong>magnitude&lt;/strong> and a &lt;strong>phase&lt;/strong>.&lt;/p>
&lt;h3 id="modulus-and-modulus-squared">Modulus and modulus squared&lt;/h3>
&lt;p>The &lt;strong>modulus&lt;/strong> (absolute value) of $z = a + bi$ is:&lt;/p>
$$|z| = \sqrt{a^2 + b^2}$$&lt;p>The &lt;strong>modulus squared&lt;/strong> is:&lt;/p>
$$|z|^2 = a^2 + b^2 = z \cdot z^*$$&lt;p>where $z^* = a - bi$ is the complex conjugate. The modulus squared is the single most important operation in quantum mechanics — it turns amplitudes into probabilities.&lt;/p>
&lt;h3 id="polar-form-and-phase">Polar form and phase&lt;/h3>
&lt;p>Any complex number can be written in polar form:&lt;/p>
$$z = r\,e^{i\theta} = r(\cos\theta + i\sin\theta)$$&lt;p>Here $r = |z|$ is the modulus and $\theta$ is the &lt;strong>phase angle&lt;/strong>. The bridge is Euler&amp;rsquo;s formula:&lt;/p>
$$e^{i\theta} = \cos\theta + i\sin\theta$$&lt;p>The factor $e^{i\theta}$ lives on the unit circle in the complex plane — its modulus is always 1. It is called a &lt;strong>phase factor&lt;/strong>: it rotates a complex number without changing its size.&lt;/p>
&lt;p>This duality — magnitude &lt;em>and&lt;/em> angle — is exactly what quantum amplitudes need. A probability (a real non-negative number) can only tell you &amp;ldquo;how likely.&amp;rdquo; A complex amplitude tells you &amp;ldquo;how likely&amp;rdquo; &lt;em>and&lt;/em> &amp;ldquo;at what angle&amp;rdquo; — and that angle is what enables interference.&lt;/p>
&lt;hr>
&lt;h2 id="2-vectors-inner-products-and-dirac-notation">2. Vectors, Inner Products, and Dirac Notation&lt;/h2>
&lt;h3 id="kets-and-bras">Kets and bras&lt;/h3>
&lt;p>In Dirac notation a quantum state is written as a &lt;strong>ket&lt;/strong> — a column vector of complex amplitudes:&lt;/p>
$$|\psi\rangle = \begin{pmatrix} \alpha \\ \beta \end{pmatrix}, \quad \alpha, \beta \in \mathbb{C}$$&lt;p>The corresponding &lt;strong>bra&lt;/strong> is the conjugate transpose (row vector):&lt;/p>
$$\langle\psi| = \begin{pmatrix} \alpha^* &amp; \beta^* \end{pmatrix}$$&lt;h3 id="inner-product">Inner product&lt;/h3>
&lt;p>The &lt;strong>inner product&lt;/strong> (bra times ket) yields a scalar measuring the overlap between two states:&lt;/p>
$$\langle\psi|\psi\rangle = \alpha^*\alpha + \beta^*\beta = |\alpha|^2 + |\beta|^2$$&lt;p>When this equals 1, the state is &lt;strong>normalized&lt;/strong> — a physical requirement, as we will see next.&lt;/p>
&lt;hr>
&lt;h2 id="3-the-qubit">3. The Qubit&lt;/h2>
&lt;p>A classical bit is either 0 or 1. A &lt;strong>qubit&lt;/strong> is a two-dimensional complex vector that can be in a superposition of both:&lt;/p>
$$|\psi\rangle = \alpha|0\rangle + \beta|1\rangle$$&lt;p>where the computational basis states are:&lt;/p>
$$|0\rangle = \begin{pmatrix} 1 \\ 0 \end{pmatrix}, \qquad |1\rangle = \begin{pmatrix} 0 \\ 1 \end{pmatrix}$$&lt;p>The coefficients $\alpha$ and $\beta$ are called &lt;strong>amplitudes&lt;/strong>.&lt;/p>
&lt;h3 id="the-born-rule-normalization">The Born rule (normalization)&lt;/h3>
&lt;p>The modulus squared of each amplitude gives the probability of measuring that outcome:&lt;/p>
&lt;ul>
&lt;li>Probability of measuring 0: $|\alpha|^2$&lt;/li>
&lt;li>Probability of measuring 1: $|\beta|^2$&lt;/li>
&lt;/ul>
&lt;p>Since probabilities must sum to 1:&lt;/p>
$$|\alpha|^2 + |\beta|^2 = 1 \quad \Longleftrightarrow \quad \langle\psi|\psi\rangle = 1$$&lt;p>This is why a quantum state must be a &lt;strong>unit-length vector&lt;/strong>. The familiar factor of $1/\sqrt{2}$ in the state $(|0\rangle + |1\rangle)/\sqrt{2}$ is simply the normalization constant: $|1/\sqrt{2}|^2 + |1/\sqrt{2}|^2 = 1$.&lt;/p>
&lt;h3 id="two-kinds-of-phase">Two kinds of phase&lt;/h3>
&lt;p>Write the most general single-qubit state as $|\psi\rangle = e^{i\gamma}(\alpha'|0\rangle + e^{i\varphi}\beta'|1\rangle)$.&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Global phase&lt;/strong> ($e^{i\gamma}$): multiplies the &lt;em>entire&lt;/em> state. It cancels out in every measurement probability ($|e^{i\gamma}\alpha'|^2 = |\alpha'|^2$), so it has &lt;strong>no physical meaning&lt;/strong>. We are free to drop it.&lt;/li>
&lt;li>&lt;strong>Relative phase&lt;/strong> ($e^{i\varphi}$): the phase difference &lt;em>between&lt;/em> $|0\rangle$ and $|1\rangle$. This is &lt;strong>physically observable&lt;/strong> — it determines the outcomes of measurements in bases other than $Z$, and it is exactly what decoherence destroys.&lt;/li>
&lt;/ul>
&lt;p>After removing the global phase, any single-qubit state can be parametrized by just two real numbers:&lt;/p>
$$|\psi\rangle = \cos\frac{\theta}{2}\,|0\rangle + e^{i\varphi}\sin\frac{\theta}{2}\,|1\rangle, \quad \theta \in [0, \pi],\ \varphi \in [0, 2\pi)$$&lt;p>Two angles — exactly what you need to specify a point on a sphere.&lt;/p>
&lt;hr>
&lt;h2 id="4-the-bloch-sphere">4. The Bloch Sphere&lt;/h2>
&lt;p>Since a single-qubit pure state is described by two angles $(\theta, \varphi)$, it maps to a point on the surface of a unit sphere — the &lt;strong>Bloch sphere&lt;/strong>.&lt;/p>
&lt;ul>
&lt;li>$\theta$ (polar angle, 0 to $\pi$): controls the balance between $|0\rangle$ and $|1\rangle$&lt;/li>
&lt;li>$\varphi$ (azimuthal angle, 0 to $2\pi$): the relative phase&lt;/li>
&lt;/ul>
&lt;h3 id="notable-points">Notable points&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Location&lt;/th>
&lt;th>Angles&lt;/th>
&lt;th>State&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>North pole&lt;/td>
&lt;td>$\theta = 0$&lt;/td>
&lt;td>$\|0\rangle$&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>South pole&lt;/td>
&lt;td>$\theta = \pi$&lt;/td>
&lt;td>$\|1\rangle$&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Equator $+x$&lt;/td>
&lt;td>$\theta = \pi/2,\ \varphi = 0$&lt;/td>
&lt;td>$\|+\rangle = (\|0\rangle + \|1\rangle)/\sqrt{2}$&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Equator $-x$&lt;/td>
&lt;td>$\theta = \pi/2,\ \varphi = \pi$&lt;/td>
&lt;td>$\|-\rangle = (\|0\rangle - \|1\rangle)/\sqrt{2}$&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Equator $\pm y$&lt;/td>
&lt;td>$\theta = \pi/2,\ \varphi = \pm\pi/2$&lt;/td>
&lt;td>Superpositions with $\pm i$ phase&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>The states $|+\rangle$ and $|-\rangle$ sit at opposite points on the equator. They share the same $\theta$ (so $Z$-basis measurements give 50/50 for both), but they differ by $\varphi = \pi$ — which means an $X$-basis measurement can tell them apart perfectly. This is the geometric picture of relative phase.&lt;/p>
&lt;h3 id="two-key-correspondences">Two key correspondences&lt;/h3>
&lt;ol>
&lt;li>
&lt;p>&lt;strong>Pure states live on the surface; mixed states live inside.&lt;/strong> A perfectly coherent qubit is a point on the sphere (Bloch vector length = 1). As decoherence degrades the state, the point shrinks toward the center. At the center sits the maximally mixed state — 50/50 $|0\rangle$ and $|1\rangle$ with no phase information left. The distance from the center encodes &amp;ldquo;how much coherence remains.&amp;rdquo;&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Quantum gates are rotations.&lt;/strong> The $X$ gate rotates 180° around the $x$-axis ($|0\rangle \leftrightarrow |1\rangle$). The $Z$ gate rotates 180° around the $z$-axis ($|+\rangle \leftrightarrow |-\rangle$, i.e., it flips the relative phase). $R_X(\theta)$ and $R_Z(\theta)$ are partial rotations around their respective axes.&lt;/p>
&lt;/li>
&lt;/ol>
&lt;h3 id="try-it-yourself">Try it yourself&lt;/h3>
&lt;p>Use the
to build intuition. Start at $|0\rangle$ (north pole), apply an $H$ gate to move to the equator, then try $Z$, $S$, $T$ to see how phase rotations work.&lt;/p>
&lt;hr>
&lt;h2 id="5-measurement-and-expectation-values">5. Measurement and Expectation Values&lt;/h2>
&lt;h3 id="measurement">Measurement&lt;/h3>
&lt;p>Quantum measurement forces a qubit to collapse into one of the basis states, probabilistically. Measuring $|\psi\rangle = \alpha|0\rangle + \beta|1\rangle$ in the $Z$-basis:&lt;/p>
&lt;ul>
&lt;li>With probability $|\alpha|^2$: result is &amp;ldquo;0,&amp;rdquo; state collapses to $|0\rangle$&lt;/li>
&lt;li>With probability $|\beta|^2$: result is &amp;ldquo;1,&amp;rdquo; state collapses to $|1\rangle$&lt;/li>
&lt;/ul>
&lt;p>A single measurement gives a single random bit — it reveals nothing about $\alpha$ or $\beta$ individually. To learn about the state, you must prepare it many times and collect statistics. This leads to the concept of the expectation value.&lt;/p>
&lt;h3 id="expectation-value">Expectation value&lt;/h3>
&lt;p>The expectation value is the weighted average of measurement outcomes. Assign eigenvalue $+1$ to outcome $|0\rangle$ and $-1$ to $|1\rangle$ (these are the eigenvalues of $Z$):&lt;/p>
$$\langle Z \rangle = (+1) \cdot P(0) + (-1) \cdot P(1) = |\alpha|^2 - |\beta|^2$$&lt;p>For any observable (Hermitian operator) $A$, the expectation value is given by the unified formula:&lt;/p>
$$\boxed{\langle A \rangle = \langle\psi|A|\psi\rangle}$$&lt;p>Read right to left: apply $A$ to $|\psi\rangle$ to get a new vector, then take the inner product with $\langle\psi|$. The result is always a real number.&lt;/p>
&lt;h3 id="worked-example">Worked example&lt;/h3>
&lt;p>Take $|\psi\rangle = |+\rangle = \frac{1}{\sqrt{2}}\begin{pmatrix}1\\1\end{pmatrix}$.&lt;/p>
&lt;p>&lt;strong>Computing $\langle Z \rangle$:&lt;/strong>&lt;/p>
$$Z|\psi\rangle = \frac{1}{\sqrt{2}}\begin{pmatrix}1\\-1\end{pmatrix}, \qquad \langle Z\rangle = \frac{1}{2}(1 \cdot 1 + 1 \cdot (-1)) = 0$$&lt;p>This makes sense: $|+\rangle$ measured in the $Z$-basis gives 50/50 outcomes, so the average of $\{+1, -1\}$ is 0.&lt;/p>
&lt;p>&lt;strong>Computing $\langle X \rangle$:&lt;/strong>&lt;/p>
$$X|\psi\rangle = \frac{1}{\sqrt{2}}\begin{pmatrix}1\\1\end{pmatrix} = |\psi\rangle, \qquad \langle X\rangle = \langle\psi|\psi\rangle = 1$$&lt;p>This also makes sense: $|+\rangle$ is the $+1$ eigenstate of $X$, so $X$-basis measurement yields $+1$ with certainty.&lt;/p>
&lt;p>Together with $\langle Y \rangle = 0$, these three values $(\langle X \rangle, \langle Y \rangle, \langle Z \rangle) = (1, 0, 0)$ give the Bloch sphere coordinates — pointing along the $+x$ axis, exactly where $|+\rangle$ lives.&lt;/p>
&lt;h3 id="why-expectation-values-matter">Why expectation values matter&lt;/h3>
&lt;ol>
&lt;li>&lt;strong>They are the experimentally accessible quantity.&lt;/strong> Single shots are random; repeated measurements converge to $\langle A \rangle$. This is also why VQE is measurement-hungry — suppressing statistical noise requires many repetitions.&lt;/li>
&lt;li>&lt;strong>They translate quantum states into physical numbers.&lt;/strong> If $H$ is a Hamiltonian, $\langle H \rangle$ is the average energy. VQE&amp;rsquo;s cost function is an expectation value.&lt;/li>
&lt;li>&lt;strong>They connect directly to probabilities.&lt;/strong> For an observable with eigenvalues $\pm 1$: $P_{+1} = (1 + \langle A \rangle)/2$.&lt;/li>
&lt;li>&lt;strong>They &lt;em>are&lt;/em> the Bloch sphere coordinates.&lt;/strong> $(\langle X \rangle, \langle Y \rangle, \langle Z \rangle)$ locates the state on the sphere, and $\sqrt{\langle X \rangle^2 + \langle Y \rangle^2 + \langle Z \rangle^2}$ measures purity (1 for pure, smaller for mixed).&lt;/li>
&lt;/ol>
&lt;hr>
&lt;h2 id="6-phase-information-what-it-means-to-have-it-or-lose-it">6. Phase Information: What It Means to Have It (or Lose It)&lt;/h2>
&lt;p>Now that we have the mathematical tools, we can understand precisely what &amp;ldquo;phase&amp;rdquo; means and why losing it is catastrophic.&lt;/p>
&lt;h3 id="where-is-the-phase">Where is the phase?&lt;/h3>
&lt;p>A general superposition:&lt;/p>
$$|\psi\rangle = \frac{1}{\sqrt{2}}\left(|0\rangle + e^{i\varphi}|1\rangle\right)$$&lt;p>The relative phase $\varphi$ distinguishes $|+\rangle$ ($\varphi=0$) from $|-\rangle$ ($\varphi=\pi$). In the $Z$-basis both measure as 50/50, but in the $X$-basis they give opposite deterministic outcomes. The difference is entirely in $\varphi$.&lt;/p>
&lt;h3 id="seeing-decoherence-through-the-density-matrix">Seeing decoherence through the density matrix&lt;/h3>
&lt;p>A pure superposition state has the density matrix:&lt;/p>
$$\rho = \frac{1}{2}\begin{pmatrix} 1 &amp; e^{-i\varphi} \\ e^{i\varphi} &amp; 1 \end{pmatrix}$$&lt;ul>
&lt;li>The &lt;strong>diagonal elements&lt;/strong> (0.5, 0.5) are the populations — the probabilities of finding $|0\rangle$ or $|1\rangle$.&lt;/li>
&lt;li>The &lt;strong>off-diagonal elements&lt;/strong> $e^{\pm i\varphi}/2$ are the &lt;strong>coherences&lt;/strong> — they carry the phase information.&lt;/li>
&lt;/ul>
&lt;p>When the environment randomizes the phase (dephasing), we average over $\varphi$, and the off-diagonals vanish:&lt;/p>
$$\rho \;\longrightarrow\; \frac{1}{2}\begin{pmatrix} 1 &amp; 0 \\ 0 &amp; 1 \end{pmatrix}$$&lt;p>This is a &lt;strong>classical probability mixture&lt;/strong> — 50% $|0\rangle$, 50% $|1\rangle$, with zero interference capability.&lt;/p>
&lt;blockquote class="border-l-4 border-neutral-300 dark:border-neutral-600 pl-4 italic text-neutral-600 dark:text-neutral-400 my-6">
&lt;p>&lt;strong>Precisely:&lt;/strong> &amp;ldquo;Losing phase information&amp;rdquo; = the off-diagonal terms of the density matrix decay to zero while the diagonal (populations) stay unchanged. This is exactly the $T_\varphi$ process. If the diagonals also change ($|1\rangle$ population decaying to $|0\rangle$), that is the $T_1$ process.&lt;/p>
&lt;/blockquote>
&lt;h3 id="coherent-vs-incoherent-the-experimental-distinction">Coherent vs. incoherent: the experimental distinction&lt;/h3>
&lt;p>| | System A: pure superposition $(|0\rangle+|1\rangle)/\sqrt{2}$ | System B: classical mixture 50% $|0\rangle$ + 50% $|1\rangle$ |
|&amp;mdash;|&amp;mdash;|&amp;mdash;|
| $Z$-basis measurement | 50/50 | 50/50 (indistinguishable!) |
| Hadamard then measure | &lt;strong>100% gives 0&lt;/strong> | &lt;strong>50/50&lt;/strong> |
| Math object | Amplitudes $\alpha, \beta$ (complex) | Probabilities $p_0, p_1$ (real) |
| How they combine | Amplitudes add, &lt;em>then&lt;/em> square | Probabilities add directly |
| Interference? | Yes (constructive / destructive) | No |
| Density matrix | Non-zero off-diagonals | Off-diagonals are zero |
| Bloch sphere | On the surface | Inside (center at worst) |&lt;/p>
&lt;p>System A, passed through a Hadamard gate, undergoes &lt;strong>destructive interference&lt;/strong> — the $|1\rangle$ amplitude cancels perfectly. System B has no phase relationship, so probabilities just average. The fundamental distinction is &lt;strong>amplitude addition vs. probability addition&lt;/strong>.&lt;/p>
&lt;blockquote class="border-l-4 border-neutral-300 dark:border-neutral-600 pl-4 italic text-neutral-600 dark:text-neutral-400 my-6">
&lt;p>&lt;strong>Why this matters for quantum computing:&lt;/strong> Every quantum speedup (Shor, Grover, phase estimation) relies on &lt;em>controlled interference&lt;/em> — amplifying the correct answer and canceling the wrong ones. Once phase information is lost, a quantum computer degrades into an expensive random number generator.&lt;/p>
&lt;/blockquote>
&lt;hr>
&lt;h2 id="7-tensor-products-building-multi-qubit-systems">7. Tensor Products: Building Multi-Qubit Systems&lt;/h2>
&lt;p>The tensor product ($\otimes$, or Kronecker product for matrices) combines subsystems into a joint system. &lt;strong>Dimensions multiply, they do not add.&lt;/strong>&lt;/p>
&lt;h3 id="vectors">Vectors&lt;/h3>
&lt;p>Each component of the first vector multiplies the &lt;em>entire&lt;/em> second vector:&lt;/p>
$$\begin{pmatrix} a \\ b \end{pmatrix} \otimes \begin{pmatrix} c \\ d \end{pmatrix} = \begin{pmatrix} ac \\ ad \\ bc \\ bd \end{pmatrix}$$&lt;p>For example, $|0\rangle \otimes |1\rangle$ (written $|01\rangle$):&lt;/p>
$$\begin{pmatrix} 1 \\ 0 \end{pmatrix} \otimes \begin{pmatrix} 0 \\ 1 \end{pmatrix} = \begin{pmatrix} 0 \\ 1 \\ 0 \\ 0 \end{pmatrix}$$&lt;p>The four components correspond to the amplitudes of $|00\rangle, |01\rangle, |10\rangle, |11\rangle$. For $n$ qubits the state vector has $2^n$ dimensions — this exponential growth is the source of quantum computing&amp;rsquo;s potential power.&lt;/p>
&lt;h3 id="matrices">Matrices&lt;/h3>
&lt;p>Each element of the first matrix is replaced by that element times the entire second matrix:&lt;/p>
$$A \otimes B = \begin{pmatrix} a_{11}B &amp; a_{12}B \\ a_{21}B &amp; a_{22}B \end{pmatrix}$$&lt;p>For example, the Pauli string $Z \otimes X$:&lt;/p>
$$Z \otimes X = \begin{pmatrix} 1 \cdot X &amp; 0 \cdot X \\ 0 \cdot X &amp; -1 \cdot X \end{pmatrix} = \begin{pmatrix} 0 &amp; 1 &amp; 0 &amp; 0 \\ 1 &amp; 0 &amp; 0 &amp; 0 \\ 0 &amp; 0 &amp; 0 &amp; -1 \\ 0 &amp; 0 &amp; -1 &amp; 0 \end{pmatrix}$$&lt;h3 id="the-mixed-product-property">The mixed-product property&lt;/h3>
&lt;p>This is the most useful identity in multi-qubit calculations:&lt;/p>
$$(A \otimes B)(|\psi\rangle \otimes |\phi\rangle) = (A|\psi\rangle) \otimes (B|\phi\rangle)$$&lt;p>Each factor acts only on its own subsystem. For instance, $(Z \otimes X)|01\rangle = (Z|0\rangle) \otimes (X|1\rangle) = |0\rangle \otimes |0\rangle = |00\rangle$ — no need to construct the $4 \times 4$ matrix.&lt;/p>
&lt;p>Another frequently used rule:&lt;/p>
$$(A \otimes B)(C \otimes D) = (AC) \otimes (BD)$$&lt;h3 id="practical-notes">Practical notes&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>Not commutative:&lt;/strong> $A \otimes B \neq B \otimes A$. The ordering corresponds to qubit labeling and cannot be swapped.&lt;/li>
&lt;li>&lt;strong>Associative:&lt;/strong> $(A \otimes B) \otimes C = A \otimes (B \otimes C)$, so grouping does not matter.&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h2 id="8-pauli-strings-the-building-blocks-of-quantum-observables">8. Pauli Strings: The Building Blocks of Quantum Observables&lt;/h2>
&lt;h3 id="the-four-pauli-matrices">The four Pauli matrices&lt;/h3>
$$I = \begin{pmatrix} 1 &amp; 0 \\ 0 &amp; 1 \end{pmatrix},\quad X = \begin{pmatrix} 0 &amp; 1 \\ 1 &amp; 0 \end{pmatrix},\quad Y = \begin{pmatrix} 0 &amp; -i \\ i &amp; 0 \end{pmatrix},\quad Z = \begin{pmatrix} 1 &amp; 0 \\ 0 &amp; -1 \end{pmatrix}$$&lt;ul>
&lt;li>$I$: identity, does nothing.&lt;/li>
&lt;li>$X$: bit flip ($X|0\rangle = |1\rangle$), 180° rotation around the Bloch sphere $x$-axis.&lt;/li>
&lt;li>$Z$: phase flip ($Z|1\rangle = -|1\rangle$), 180° rotation around the $z$-axis.&lt;/li>
&lt;li>$Y = iXZ$: 180° rotation around the $y$-axis.&lt;/li>
&lt;/ul>
&lt;p>These four matrices form a &lt;strong>basis&lt;/strong> for all $2 \times 2$ Hermitian matrices. Any single-qubit observable can be written as a linear combination of $\{I, X, Y, Z\}$.&lt;/p>
&lt;h3 id="pauli-strings">Pauli strings&lt;/h3>
&lt;p>An $n$-qubit &lt;strong>Pauli string&lt;/strong> assigns one Pauli matrix to each qubit and connects them with tensor products:&lt;/p>
$$P = \sigma_1 \otimes \sigma_2 \otimes \cdots \otimes \sigma_n, \qquad \sigma_i \in \{I, X, Y, Z\}$$&lt;p>Examples (subscripts denote qubit index, omitted positions default to $I$):&lt;/p>
&lt;ul>
&lt;li>$Z_0 Z_1$ = $Z \otimes Z \otimes I$&lt;/li>
&lt;li>$X_1$ = $I \otimes X \otimes I$&lt;/li>
&lt;li>$Y_0 Z_2$ = $Y \otimes I \otimes Z$&lt;/li>
&lt;/ul>
&lt;p>A Pauli string is formally a $2^n \times 2^n$ matrix, but we almost always work with the compact notation — which is the whole point of using them.&lt;/p>
&lt;h3 id="why-pauli-strings-are-central">Why Pauli strings are central&lt;/h3>
&lt;ol>
&lt;li>
&lt;p>&lt;strong>They are the building blocks of Hamiltonians.&lt;/strong> Any $n$-qubit Hermitian operator can be uniquely decomposed as a weighted sum of Pauli strings: $H = \sum_i c_i P_i$. The $4^n$ Pauli strings form a complete orthogonal basis for the space of $2^n \times 2^n$ Hermitian matrices.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Expectation values are easy to measure.&lt;/strong> Measuring $\langle Z_0 Z_1 \rangle$ just requires checking parity. Measuring $\langle X \rangle$ or $\langle Y \rangle$ requires a basis-change gate before measuring as $Z$. So $\langle H \rangle$ is computed by measuring each Pauli term separately and taking the weighted sum.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Exponentials decompose into standard gate circuits.&lt;/strong> $e^{-i\theta P}$ for any Pauli string $P$ has a fixed circuit template (detailed in Section 10).&lt;/p>
&lt;/li>
&lt;/ol>
&lt;h3 id="useful-properties">Useful properties&lt;/h3>
&lt;ul>
&lt;li>Every Pauli string is both &lt;strong>Hermitian&lt;/strong> ($P = P^\dagger$) and &lt;strong>unitary&lt;/strong> ($P^2 = I$), so its eigenvalues are $+1$ and $-1$ only.&lt;/li>
&lt;li>Any two Pauli strings either &lt;strong>commute&lt;/strong> or &lt;strong>anti-commute&lt;/strong> — this is the foundation of the stabilizer formalism and quantum error correction.&lt;/li>
&lt;li>&lt;strong>Weight&lt;/strong>: the number of non-$I$ factors. Higher weight means more expensive measurement and deeper circuits. (The notorious $Z$-tails of Jordan-Wigner are high-weight strings.)&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h2 id="9-mapping-problems-to-quantum-circuits">9. Mapping Problems to Quantum Circuits&lt;/h2>
&lt;p>The goal is to recast a problem as &lt;strong>finding the ground state of some Hamiltonian $H$&lt;/strong>. The mapping has three layers:&lt;/p>
&lt;ol>
&lt;li>&lt;strong>Problem layer&lt;/strong> — define what to optimize or solve.&lt;/li>
&lt;li>&lt;strong>Hamiltonian layer&lt;/strong> — write $H = \sum_i c_i P_i$ (a weighted sum of Pauli strings) such that the ground state of $H$ encodes the solution.&lt;/li>
&lt;li>&lt;strong>Circuit layer&lt;/strong> — translate state preparation and time evolution $e^{-iH}$ into concrete quantum gates.&lt;/li>
&lt;/ol>
&lt;h3 id="example-1-qaoa-for-max-cut">Example 1: QAOA for Max-Cut&lt;/h3>
&lt;p>&lt;strong>Encoding:&lt;/strong> Each graph vertex gets one qubit. $|0\rangle$ = group A, $|1\rangle$ = group B.&lt;/p>
&lt;p>&lt;strong>Hamiltonian:&lt;/strong> For each edge $(i, j)$, the &amp;ldquo;reward for being cut&amp;rdquo; is:&lt;/p>
$$\frac{1}{2}(1 - Z_i Z_j)$$&lt;p>This equals 1 if qubits $i$ and $j$ are in different groups (one is $|0\rangle$, the other $|1\rangle$) and 0 if they are in the same group. The full cost Hamiltonian is:&lt;/p>
$$H_C = \sum_{(i,j) \in E} \frac{1}{2}(1 - Z_i Z_j)$$&lt;p>This is diagonal — every computational basis state is an eigenstate, and its eigenvalue equals the number of edges cut by that assignment. The ground state (maximum eigenvalue after sign flip, or minimum of $-H_C$) corresponds to the optimal cut.&lt;/p>
&lt;p>&lt;strong>Circuit translation:&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>Initial state: apply Hadamard to all qubits to create $|+\rangle^{\otimes n}$.&lt;/li>
&lt;li>Problem layer $e^{-i\gamma Z_i Z_j}$: implement as CNOT$(i \to j)$ → $R_Z(2\gamma)$ on $j$ → CNOT$(i \to j)$.&lt;/li>
&lt;li>Mixing layer $e^{-i\beta H_B}$ with $H_B = \sum_i X_i$: apply $R_X(2\beta)$ to each qubit.&lt;/li>
&lt;li>Repeat for $p$ layers.&lt;/li>
&lt;/ul>
&lt;h3 id="example-2-vqe-for-molecular-simulation">Example 2: VQE for molecular simulation&lt;/h3>
&lt;p>This requires an extra step — a &lt;strong>fermion-to-qubit mapping&lt;/strong> — because electrons are fermions with anti-commutation relations that bare qubit operators do not satisfy.&lt;/p>
&lt;ol>
&lt;li>
&lt;p>&lt;strong>Second-quantized Hamiltonian:&lt;/strong> $H = \sum_{pq} h_{pq}\, a_p^\dagger a_q + \frac{1}{2}\sum_{pqrs} h_{pqrs}\, a_p^\dagger a_q^\dagger a_r a_s$, with coefficients computed classically.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Fermion-to-qubit transform&lt;/strong> (the key step):&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Jordan-Wigner&lt;/strong>: most straightforward, but introduces long $Z$-tails — each creation/annihilation operator maps to a Pauli string whose weight scales as $O(n)$.&lt;/li>
&lt;li>&lt;strong>Bravyi-Kitaev&lt;/strong>: each operator involves only $O(\log n)$ qubits, producing shorter circuits.&lt;/li>
&lt;/ul>
&lt;p>After this step, $H$ becomes a sum of Pauli strings $H = \sum_i c_i P_i$.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Ansatz construction:&lt;/strong> UCCSD (chemistry-inspired, accurate but deep circuits) or hardware-efficient ansatz (shallow but prone to barren plateaus).&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Measuring $\langle H \rangle$:&lt;/strong> each Pauli term is measured independently (with appropriate basis rotations for $X$ and $Y$ terms), then results are combined with their coefficients.&lt;/p>
&lt;/li>
&lt;/ol>
&lt;h3 id="general-technique-decomposing--into-gates">General technique: decomposing $e^{-iH}$ into gates&lt;/h3>
&lt;p>Regardless of the problem, the evolution operator must be broken into elementary gates. The core recipe is &lt;strong>Trotter decomposition + standard Pauli-string exponentiation&lt;/strong>:&lt;/p>
&lt;ul>
&lt;li>When terms do not commute, use the Trotter approximation: $e^{-iHt} \approx \left[\prod_i e^{-i P_i t/n}\right]^n$.&lt;/li>
&lt;li>For a single Pauli string exponential $e^{-i\theta P}$, there is a fixed template:
&lt;ol>
&lt;li>Single-qubit gates to rotate any non-$Z$ Paulis to $Z$.&lt;/li>
&lt;li>A cascade of CNOTs to collect parity onto one qubit.&lt;/li>
&lt;li>$R_Z(2\theta)$ on that qubit.&lt;/li>
&lt;li>Reverse the CNOTs and basis rotations.&lt;/li>
&lt;/ol>
&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h2 id="10-the-nisq-era-and-variational-algorithms">10. The NISQ Era and Variational Algorithms&lt;/h2>
&lt;h3 id="what-is-near-term-quantum">What is &amp;ldquo;near-term quantum&amp;rdquo;?&lt;/h3>
&lt;p>The term &lt;strong>NISQ&lt;/strong> (Noisy Intermediate-Scale Quantum) was coined by John Preskill in 2018 to describe the current generation of quantum hardware:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Noisy&lt;/strong>: qubits have no error correction. Decoherence and gate errors (0.1%–1% per gate) accumulate directly in the output.&lt;/li>
&lt;li>&lt;strong>Intermediate-Scale&lt;/strong>: roughly 50 to a few thousand physical qubits. Beyond ~50 qubits, classical computers struggle to simulate the system exactly — but the qubit count is still far too small to support full error correction.&lt;/li>
&lt;/ul>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>&lt;/th>
&lt;th>NISQ (Near-term)&lt;/th>
&lt;th>FTQC (Fault-tolerant)&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>Error correction&lt;/td>
&lt;td>None&lt;/td>
&lt;td>Full quantum error-correcting codes&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Qubit count&lt;/td>
&lt;td>50 – few thousand (physical)&lt;/td>
&lt;td>Millions physical → thousands logical&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Circuit depth&lt;/td>
&lt;td>Strictly limited by decoherence&lt;/td>
&lt;td>Arbitrarily long in principle&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Algorithms&lt;/td>
&lt;td>Variational, sampling tasks&lt;/td>
&lt;td>Shor&amp;rsquo;s factoring, exact chemistry simulation&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>The dividing line is &lt;strong>error correction&lt;/strong>. NISQ occupies the awkward middle ground — too many qubits for classical simulation, too few for the overhead of error correction.&lt;/p>
&lt;h3 id="the-variational-hybrid-algorithm-framework">The variational hybrid algorithm framework&lt;/h3>
&lt;p>All variational algorithms share a common skeleton — a feedback loop between a quantum processor and a classical optimizer:&lt;/p>
&lt;ol>
&lt;li>Prepare a &lt;strong>parameterized quantum circuit&lt;/strong> $U(\boldsymbol{\theta})$ acting on an initial state, producing a trial state $|\psi(\boldsymbol{\theta})\rangle$ (called the &lt;strong>ansatz&lt;/strong>).&lt;/li>
&lt;li>&lt;strong>Measure&lt;/strong> the expectation value of the target Hamiltonian: $\langle\psi(\boldsymbol{\theta})|H|\psi(\boldsymbol{\theta})\rangle$ — this is the &amp;ldquo;cost.&amp;rdquo;&lt;/li>
&lt;li>A &lt;strong>classical optimizer&lt;/strong> adjusts $\boldsymbol{\theta}$ to reduce the cost.&lt;/li>
&lt;li>Repeat until convergence.&lt;/li>
&lt;/ol>
&lt;p>The design motivation: keep the quantum circuit shallow (avoiding decoherence) and offload the heavy iteration work to the noise-resilient classical computer. The theoretical justification is the &lt;strong>variational principle&lt;/strong>: for any trial state, $\langle H \rangle \geq E_0$ (the ground state energy). So &amp;ldquo;minimize $\langle H \rangle$&amp;rdquo; is equivalent to &amp;ldquo;approximate the ground state.&amp;rdquo;&lt;/p>
&lt;h3 id="vqe-and-qaoa">VQE and QAOA&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>&lt;/th>
&lt;th>VQE (Variational Quantum Eigensolver)&lt;/th>
&lt;th>QAOA (Quantum Approximate Optimization)&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>Problem&lt;/td>
&lt;td>Ground-state energy of a Hamiltonian&lt;/td>
&lt;td>Approximate solution to combinatorial optimization&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Applications&lt;/td>
&lt;td>Quantum chemistry, materials science&lt;/td>
&lt;td>Max-Cut, scheduling, routing&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Ansatz structure&lt;/td>
&lt;td>Flexible (UCCSD, hardware-efficient, etc.)&lt;/td>
&lt;td>Fixed: alternating $H_C$ and $H_B$ layers&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Parameter count&lt;/td>
&lt;td>Many (grows with ansatz complexity)&lt;/td>
&lt;td>Few (only $2p$ parameters for $p$ layers)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>QAOA has a physically motivated circuit structure — alternating applications of two unitaries:&lt;/p>
$$|\psi(\boldsymbol{\gamma}, \boldsymbol{\beta})\rangle = e^{-i\beta_p H_B} e^{-i\gamma_p H_C} \cdots e^{-i\beta_1 H_B} e^{-i\gamma_1 H_C}\,|+\rangle^{\otimes n}$$&lt;p>Here $H_C$ encodes the optimization objective (its ground state = the optimal solution) and $H_B = \sum_i X_i$ provides &amp;ldquo;mixing&amp;rdquo; — exploring the solution space. The integer $p$ is the number of alternating layers. QAOA can be viewed as VQE with a structured, problem-specific ansatz.&lt;/p>
&lt;p>&lt;strong>Shared practical challenges:&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>Noise accumulation limits circuit depth.&lt;/li>
&lt;li>&lt;strong>Barren plateaus&lt;/strong>: gradients can vanish exponentially in the number of qubits, making optimization intractable.&lt;/li>
&lt;li>Measurement overhead is significant — each expectation value requires thousands of shots.&lt;/li>
&lt;li>Whether NISQ algorithms offer genuine quantum advantage at practical scale remains an open question. The field is gradually shifting toward &amp;ldquo;early fault-tolerant&amp;rdquo; approaches.&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h2 id="11-superconducting-qubits-and-decoherence">11. Superconducting Qubits and Decoherence&lt;/h2>
&lt;p>With the mathematical framework in place, we can now understand the physical platform where much of today&amp;rsquo;s quantum computing happens — and why maintaining coherence is so hard.&lt;/p>
&lt;h3 id="why-superconducting-qubits-stay-coherent-for-a-while">Why superconducting qubits stay coherent (for a while)&lt;/h3>
&lt;p>Superconducting qubits are &lt;em>not&lt;/em> especially long-lived — their coherence times (typically 100 $\mu$s to 1 ms) are short compared to trapped ions or neutral atoms. But they maintain coherence long enough to be useful, for specific physical reasons:&lt;/p>
&lt;p>&lt;strong>The superconducting energy gap.&lt;/strong> At cryogenic temperatures, electrons pair into Cooper pairs and condense into a superconducting state. Breaking a Cooper pair requires crossing a finite energy gap ($2\Delta$). Below this gap, there are simply no available electronic excitation states for energy to dissipate into. In normal metals, the continuous excitation spectrum means oscillating currents decay almost immediately. In a superconductor at low temperature, the qubit&amp;rsquo;s operating frequency range is effectively &amp;ldquo;silent.&amp;rdquo;&lt;/p>
&lt;p>&lt;strong>Supporting factors:&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Macroscopic quantum coherence&lt;/strong>: a superconducting qubit is a collective state of billions of Cooper pairs sharing a single wave function. The Josephson junction provides the nonlinearity needed to isolate two energy levels, while the rest of the circuit behaves like a clean LC oscillator.&lt;/li>
&lt;li>&lt;strong>Millikelvin operating temperatures&lt;/strong>: at 10–20 mK, thermal photons at the qubit frequency (~5 GHz) are essentially absent ($k_B T \ll \hbar\omega$).&lt;/li>
&lt;li>&lt;strong>Circuit design against known noise&lt;/strong>: the transmon design deliberately operates in a regime exponentially insensitive to charge noise.&lt;/li>
&lt;/ul>
&lt;h3 id="coherence-times---and-dephasing">Coherence times: $T_1$, $T_2$, and dephasing&lt;/h3>
&lt;p>Coherence time measures how long a qubit preserves its &amp;ldquo;quantumness.&amp;rdquo; There are two distinct timescales:&lt;/p>
&lt;p>&lt;strong>$T_1$ (energy relaxation time):&lt;/strong> the characteristic time for the qubit to decay from $|1\rangle$ to $|0\rangle$. Energy is genuinely lost to the environment (dielectric loss, quasiparticles, stray modes).&lt;/p>
&lt;p>&lt;strong>$T_2$ (phase coherence time):&lt;/strong> the characteristic time for the relative phase of a superposition to remain well-defined. Even without energy loss, environmental fluctuations can randomly shift the phase, causing the superposition to &amp;ldquo;blur out.&amp;rdquo; This pure phase randomization is called &lt;strong>dephasing&lt;/strong>, with characteristic time $T_\varphi$.&lt;/p>
&lt;p>The three are related by:&lt;/p>
$$\frac{1}{T_2} = \frac{1}{2T_1} + \frac{1}{T_\varphi}$$&lt;p>Energy relaxation necessarily causes some dephasing (the $1/2T_1$ term), but additional pure dephasing mechanisms — typically low-frequency noise ($1/f$ noise, flux fluctuations, charge fluctuations) causing the qubit frequency to drift — contribute $1/T_\varphi$.&lt;/p>
&lt;p>&lt;strong>Key detail:&lt;/strong> $T_2 \leq 2T_1$ always. When $T_2 \approx 2T_1$, dephasing has been suppressed to its limit, and the remaining decoherence comes almost entirely from energy decay — a sign of excellent fabrication.&lt;/p>
&lt;p>&lt;strong>Practical implications:&lt;/strong> The number of gate operations per coherence time $\approx T_2 /$ single-gate time. With single gates at 20–50 ns and $T_2 \approx 100\ \mu$s, a circuit can in principle run a few thousand gates — but each gate also has finite error, so fault-tolerant quantum computing requires error correction to break through this barrier.&lt;/p>
&lt;h3 id="what-still-causes-decoherence">What still causes decoherence&lt;/h3>
&lt;ul>
&lt;li>Two-level systems (TLS) in amorphous oxide layers at interfaces&lt;/li>
&lt;li>Quasiparticles generated by stray infrared photons or cosmic rays&lt;/li>
&lt;li>Dielectric loss in the substrate&lt;/li>
&lt;li>Stray mode coupling in packaging&lt;/li>
&lt;/ul>
&lt;p>Over the past two decades, these have been identified and systematically suppressed one by one. Coherence times have improved by roughly $10^5\times$ since the first charge qubit in 1999.&lt;/p>
&lt;h3 id="energy-is-the-gift-phase-is-the-struggle">Energy is the gift; phase is the struggle&lt;/h3>
&lt;p>The superconducting gap specifically suppresses high-frequency dissipation — the environment has no states to absorb energy at the qubit frequency, making $T_1$ relatively long. But dephasing does not require energy exchange. Slow environmental fluctuations can scramble the relative phase without crossing the gap, so $T_\varphi$ is harder to protect.&lt;/p>
&lt;p>&lt;strong>Platform comparison ($T_2$ typical values):&lt;/strong>&lt;/p>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Platform&lt;/th>
&lt;th>Typical $T_2$&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>Superconducting (transmon)&lt;/td>
&lt;td>50–500 $\mu$s&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Semiconductor spin qubits&lt;/td>
&lt;td>Tens of $\mu$s to milliseconds&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Trapped ions&lt;/td>
&lt;td>Seconds to tens of seconds&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Neutral atoms&lt;/td>
&lt;td>Seconds&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Nuclear spins&lt;/td>
&lt;td>Seconds to minutes&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>Superconducting qubits couple strongly and operate fast — but that same strong coupling means they &amp;ldquo;hear&amp;rdquo; more noise.&lt;/p>
&lt;blockquote class="border-l-4 border-neutral-300 dark:border-neutral-600 pl-4 italic text-neutral-600 dark:text-neutral-400 my-6">
&lt;p>&lt;strong>$T_1$ is the gift from physics; $T_2$ is what engineers fight for.&lt;/strong>&lt;/p>
&lt;/blockquote>
&lt;hr>
&lt;h2 id="12-tying-it-all-together">12. Tying It All Together&lt;/h2>
&lt;p>Here is how every piece connects into one coherent framework:&lt;/p>
&lt;ol>
&lt;li>&lt;strong>Complex numbers&lt;/strong> carry both a modulus and a phase → quantum amplitudes are complex, so quantum states inherently carry phase information.&lt;/li>
&lt;li>&lt;strong>Modulus squared = probability&lt;/strong>, and the total must be 1 → this is the normalization condition and the origin of the $\sqrt{2}$ factor.&lt;/li>
&lt;li>&lt;strong>Relative phase&lt;/strong> (not global phase) is physically observable → it is precisely what dephasing destroys.&lt;/li>
&lt;li>&lt;strong>Two real angles&lt;/strong> $(\theta, \varphi)$ fully describe a single-qubit state → the &lt;strong>Bloch sphere&lt;/strong>, where phase is the azimuthal angle.&lt;/li>
&lt;li>&lt;strong>Measurement&lt;/strong> collapses the state randomly; a single shot carries minimal information → statistics over many runs are essential.&lt;/li>
&lt;li>&lt;strong>Expectation values&lt;/strong> $\langle A \rangle = \langle\psi|A|\psi\rangle$ are the stable, experimentally accessible quantities — they are the Bloch sphere coordinates, the VQE energy to optimize, and the bridge between &amp;ldquo;quantum state&amp;rdquo; and &amp;ldquo;experimental number.&amp;rdquo;&lt;/li>
&lt;li>&lt;strong>Pauli strings&lt;/strong> decompose any observable or Hamiltonian; &lt;strong>tensor products&lt;/strong> combine single-qubit spaces into multi-qubit spaces → these are the complete language for writing &amp;ldquo;a problem&amp;rdquo; as &amp;ldquo;a measurable, optimizable $\langle H \rangle$.&amp;rdquo;&lt;/li>
&lt;/ol>
&lt;p>Pauli strings, tensor products, phase, decoherence — each is a link in the same chain, a different facet of the same framework.&lt;/p>
&lt;h3 id="directions-to-explore-next">Directions to explore next&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>Bell states hands-on:&lt;/strong> Start from the tensor product, work through a specific two-qubit state all the way to its expectation values, to see the multi-qubit formalism in action.&lt;/li>
&lt;li>&lt;strong>Quantum gates as Bloch sphere rotations:&lt;/strong> Connect each common gate&amp;rsquo;s matrix representation to its geometric meaning on the sphere.&lt;/li>
&lt;li>&lt;strong>Stabilizer formalism and error correction:&lt;/strong> How Pauli string commutation relations lead to quantum error-correcting codes.&lt;/li>
&lt;/ul>
&lt;hr>
&lt;p>&lt;em>These notes were compiled from a series of AI-assisted learning conversations, tracing a complete thread from superconducting decoherence to the mathematical foundations of quantum algorithms.&lt;/em>&lt;/p></description></item></channel></rss>