Quantum Mechanics Primer
Essential quantum mechanics for understanding quantum reservoir computing: states, gates, measurement, density matrices, and open-system dynamics.
#Introduction
This primer covers the quantum mechanics you need before reading the QRC essay. It does not assume any prior physics background beyond basic linear algebra (vectors, matrices, complex numbers).
The goal is not a full quantum mechanics course. It is the minimum viable quantum toolkit for understanding how quantum systems serve as reservoirs: how states encode information, how dynamics process it, and how measurement extracts it.
Each section builds on the last. Review cards appear after related sections to reinforce definitions and key equations.
#Classical vs Quantum
A classical bit is either 0 or 1. A qubit generalizes this: its state is a unit vector in a two-dimensional complex vector space.
The notation is called a “ket” in Dirac notation. The computational basis states are:
The complex coefficients and are called probability amplitudes. They carry both magnitude (which determines measurement probabilities) and phase (which determines interference behavior).
A “bra” is the conjugate transpose of the ket. The inner product gives the overlap between two states.
#The Bloch Sphere
Any single-qubit pure state can be parameterized as:
This maps to a point on the unit sphere in three dimensions. The angles (polar) and (azimuthal) have direct physical meaning: controls how “close” the state is to vs , while is the relative phase between the two components.
Quantum gates correspond to rotations on the Bloch sphere. This geometric picture is the main intuition tool for understanding single-qubit transformations.
#Quantum Gates
Quantum gates are unitary matrices acting on qubit states. Unitarity () ensures that gates are reversible and preserve probability normalization.
#Pauli Gates
The three Pauli matrices are the fundamental single-qubit operations:
X is a bit flip, Z is a phase flip, and Y combines both. On the Bloch sphere, each Pauli gate is a 180° rotation about the corresponding axis. The Pauli operators also serve as observables for measurement, which is directly relevant to QRC feature extraction.
#Hadamard and Rotations
The Hadamard gate creates equal superpositions:
General single-qubit rotations about axis by angle have the form:
where is the vector of Pauli matrices. In QRC, rotation angles are often the control parameters modulated by classical input signals.
#Multi-Qubit Gates
The controlled-NOT (CNOT) gate flips the target qubit only when the control qubit is :
Together with arbitrary single-qubit rotations, CNOT forms a universal gate set: any unitary on n qubits can be decomposed into single-qubit gates and CNOTs. This is a cornerstone result in quantum computing.
#Measurement
Measurement is the bridge from quantum to classical information. For a qubit in state , measuring in the computational basis yields:
This is the Born rule. After measurement, the state collapses to the observed outcome. The process is irreversible and probabilistic.
For a general observable (a Hermitian operator), the expectation value is:
In QRC, observables like the Pauli operators are measured on the reservoir state, and their expectation values become the classical feature vector fed to the readout layer.
#Density Matrices
A pure state can also be written as a density matrix: . But density matrices can also represent mixed states, which arise from:
- Statistical ensembles (classical uncertainty about which state was prepared)
- Tracing out part of an entangled system (the reduced state of a subsystem)
- Decoherence from environmental interaction
A valid density matrix satisfies (positive semi-definite) and . Purity is measured by : equal to 1 for pure states, less than 1 for mixed.
The expectation value formula generalizes naturally:
This is the central formula in QRC for extracting features from the quantum reservoir state. The partial trace operation, , gives the reduced state of subsystem A, which is generally mixed even if the global state is pure.
#Entanglement
A multi-qubit state is formed by the tensor product of individual qubit spaces. For two qubits, the basis is , spanning a four-dimensional Hilbert space.
A state is entangled if it cannot be written as a product of individual qubit states. The canonical examples are the Bell states:
In an entangled state, measuring one qubit instantly constrains the possible outcomes of the other. This is non-classical: no local hidden variable model can reproduce the correlations.
For QRC, entanglement is what makes n qubits produce correlations across a 2n-dimensional space. It enables richer feature dynamics than n independent qubits would provide.
#Quantum Dynamics
Closed quantum systems evolve according to the Schrödinger equation:
The Hamiltonian is a Hermitian operator that encodes the energy structure and interactions of the system. For a time-independent Hamiltonian, the solution is:
The evolution operator is unitary, so it preserves the norm of the state vector and is invertible. In density-matrix form:
In QRC, the Hamiltonian is the reservoir itself. Its structure determines what dynamical features the reservoir can produce. The time-dependent case is common in QRC, since classical inputs modulate Hamiltonian parameters at each time step.
#Open Quantum Systems
Real quantum hardware is never perfectly isolated. Environmental interactions cause decoherence (loss of quantum coherence) and dissipation (energy exchange with surroundings). The Lindblad master equation governs these processes:
The first term is coherent (Hamiltonian) evolution. The sum is the dissipator, where each is a Lindblad (jump) operator describing a specific noise channel, and is its rate.
Common noise channels include:
- Amplitude damping () — energy relaxation
- Dephasing () — loss of phase coherence
- Depolarizing — uniform contraction toward the maximally mixed state
In QRC, noise is not purely destructive. Moderate decoherence can implement fading memory, helping the reservoir forget old inputs at a controlled rate. Too much noise destroys useful structure; too little can cause the reservoir to retain information indefinitely, violating the fading-memory property needed for temporal processing.
#Bridge to Reservoir Computing
Every concept in this primer maps directly to a QRC component:
- The density matrix is the reservoir state, evolving in a 2n-dimensional space for n qubits.
- The Hamiltonian drives the reservoir dynamics, with classical inputs modulating its parameters at each time step.
- Lindblad operators model hardware noise, which can serve as a natural fading-memory mechanism.
- Expectation values extract classical features for the linear readout layer.
The exponentially large Hilbert space is the key resource: a few qubits can produce feature vectors of dimension far exceeding the physical qubit count, potentially enriching the readout's discrimination power.
With this foundation in place, you are ready to read the main QRC essay, where these quantum ingredients combine with the reservoir computing paradigm.