Fiveable

โžฟQuantum Computing Unit 9 Review

QR code for Quantum Computing practice questions

9.1 Linear algebra for quantum computing

โžฟQuantum Computing
Unit 9 Review

9.1 Linear algebra for quantum computing

Written by the Fiveable Content Team โ€ข Last updated September 2025
Written by the Fiveable Content Team โ€ข Last updated September 2025
โžฟQuantum Computing
Unit & Topic Study Guides

Quantum states and Dirac notation form the foundation of quantum computing. They provide a concise way to represent and manipulate quantum information, allowing us to describe complex systems with elegance and precision.

Operators and matrices are the workhorses of quantum mechanics. They enable us to transform quantum states, measure observables, and build quantum circuits, giving us the tools to harness the power of quantum systems for computation.

Quantum States and Dirac Notation

Dirac notation for quantum states

  • Dirac notation (bra-ket notation) provides a concise way to represent quantum states and operations
    • Ket: $|ฯˆโŸฉ$ represents a column vector describing a quantum state (e.g., $|0โŸฉ$, $|1โŸฉ$)
    • Bra: $โŸจฯˆ|$ represents a row vector, the dual of the quantum state (e.g., $โŸจ0|$, $โŸจ1|$)
    • Inner product: $โŸจฯ•|ฯˆโŸฉ$ calculates the inner product of two states, yielding a complex number (e.g., $โŸจ0|1โŸฉ = 0$)
    • Outer product: $|ฯˆโŸฉโŸจฯ•|$ forms the outer product of two states, resulting in a matrix (e.g., $|0โŸฉโŸจ1|$)
  • Quantum state representation using Dirac notation allows for compact expressions of quantum systems
    • Qubit states: $|0โŸฉ$ and $|1โŸฉ$ form the computational basis, representing the two possible states of a qubit
    • General qubit state: $|ฯˆโŸฉ = ฮฑ|0โŸฉ + ฮฒ|1โŸฉ$, where $ฮฑ$ and $ฮฒ$ are complex amplitudes describing the probability of measuring the qubit in each basis state
    • Normalization condition: $|ฮฑ|^2 + |ฮฒ|^2 = 1$ ensures the total probability of measuring the qubit in any state is 1
  • State transformations can be concisely expressed using Dirac notation
    • Applying an operator $A$ to a state: $A|ฯˆโŸฉ$ represents the transformation of the state $|ฯˆโŸฉ$ by the operator $A$
    • Expectation value of an operator: $โŸจฯˆ|A|ฯˆโŸฉ$ calculates the average value of the observable represented by the operator $A$ for the state $|ฯˆโŸฉ$

Operators and Matrices in Quantum Systems

Operators and matrices in quantum systems

  • Quantum operators are mathematical objects that act on quantum states and represent physical observables or transformations
    • Hermitian operators: $A = A^โ€ $, where $A^โ€ $ is the adjoint (complex conjugate transpose) of $A$, represent observables with real eigenvalues (e.g., position, momentum)
    • Unitary operators: $UU^โ€  = U^โ€ U = I$, where $I$ is the identity matrix, represent reversible transformations that preserve the norm of the state (e.g., quantum gates)
    • Pauli matrices: $ฯƒ_x$, $ฯƒ_y$, and $ฯƒ_z$ are important single-qubit operators representing rotations around the x, y, and z axes of the Bloch sphere
  • Matrix representation of quantum states and operators allows for mathematical manipulation and computation
    • State vectors are represented as column matrices (e.g., $|0โŸฉ = \begin{pmatrix} 1 \ 0 \end{pmatrix}$, $|1โŸฉ = \begin{pmatrix} 0 \ 1 \end{pmatrix}$)
    • Operators are represented as square matrices (e.g., $ฯƒ_x = \begin{pmatrix} 0 & 1 \ 1 & 0 \end{pmatrix}$, $ฯƒ_y = \begin{pmatrix} 0 & -i \ i & 0 \end{pmatrix}$, $ฯƒ_z = \begin{pmatrix} 1 & 0 \ 0 & -1 \end{pmatrix}$)
    • Matrix multiplication is used for applying operators to states (e.g., $ฯƒ_x|0โŸฉ = \begin{pmatrix} 0 & 1 \ 1 & 0 \end{pmatrix} \begin{pmatrix} 1 \ 0 \end{pmatrix} = \begin{pmatrix} 0 \ 1 \end{pmatrix} = |1โŸฉ$)
  • Eigenvalues and eigenvectors are crucial concepts in quantum mechanics
    • Eigenvalue equation: $A|ฯˆโŸฉ = ฮป|ฯˆโŸฉ$, where $ฮป$ is an eigenvalue and $|ฯˆโŸฉ$ is an eigenvector, describes states that are unchanged by the operator $A$ up to a scalar factor
    • Spectral decomposition of Hermitian operators: $A = \sum_i ฮป_i |ฯˆ_iโŸฉโŸจฯˆ_i|$ expresses an operator as a sum of its eigenvalues and eigenvectors, which form a complete orthonormal basis

Linear algebra in quantum computing

  • Tensor products allow for the description of composite quantum systems
    • Combining multiple quantum systems: $|ฯˆโŸฉ โŠ— |ฯ•โŸฉ$ represents the joint state of two independent quantum systems (e.g., $|00โŸฉ = |0โŸฉ โŠ— |0โŸฉ$, $|01โŸฉ = |0โŸฉ โŠ— |1โŸฉ$)
    • Kronecker product is used for the matrix representation of tensor products (e.g., $A โŠ— B = \begin{pmatrix} a_{11}B & \cdots & a_{1n}B \ \vdots & \ddots & \vdots \ a_{m1}B & \cdots & a_{mn}B \end{pmatrix}$)
  • Quantum gates and circuits are fundamental building blocks of quantum algorithms
    • Representing quantum gates as unitary matrices allows for the mathematical description of their action on quantum states (e.g., Hadamard gate $H = \frac{1}{\sqrt{2}} \begin{pmatrix} 1 & 1 \ 1 & -1 \end{pmatrix}$)
    • Constructing quantum circuits using matrix multiplication enables the simulation and analysis of quantum algorithms (e.g., $U_3U_2U_1|ฯˆโŸฉ$ represents the application of gates $U_1$, $U_2$, and $U_3$ to the initial state $|ฯˆโŸฉ$)
  • Quantum measurements are the process of extracting classical information from quantum systems
    • Projective measurements: $P_i = |ฯˆ_iโŸฉโŸจฯˆ_i|$ are operators that project the state onto the basis state $|ฯˆ_iโŸฉ$ (e.g., $P_0 = |0โŸฉโŸจ0|$, $P_1 = |1โŸฉโŸจ1|$)
    • Probability of measuring a state: $p_i = โŸจฯˆ|P_i|ฯˆโŸฉ$ gives the probability of measuring the state $|ฯˆโŸฉ$ in the basis state $|ฯˆ_iโŸฉ$
    • State collapse after measurement: $|ฯˆ'โŸฉ = \frac{P_i|ฯˆโŸฉ}{\sqrt{โŸจฯˆ|P_i|ฯˆโŸฉ}}$ describes the state of the system after measuring and obtaining the outcome corresponding to $P_i$

Hilbert Spaces in Quantum Mechanics

Hilbert spaces in quantum mechanics

  • Definition of Hilbert space: A Hilbert space is a complete inner product space that serves as the mathematical foundation for quantum mechanics
    • Complete inner product space: A vector space equipped with an inner product, where every Cauchy sequence converges to an element within the space
    • Infinite-dimensional vector space: Hilbert spaces used in quantum mechanics are typically infinite-dimensional, allowing for the description of continuous systems (e.g., position, momentum)
  • Properties of Hilbert spaces: Hilbert spaces have several important properties that make them suitable for describing quantum systems
    • Completeness: The convergence of Cauchy sequences ensures that limits of sequences of states are well-defined and remain within the Hilbert space
    • Orthonormality: Basis vectors satisfy $โŸจฯˆ_i|ฯˆ_jโŸฉ = ฮด_{ij}$, where $ฮด_{ij}$ is the Kronecker delta, meaning they are orthogonal and normalized (e.g., $โŸจ0|0โŸฉ = 1$, $โŸจ0|1โŸฉ = 0$)
    • Superposition principle: Any state in the Hilbert space can be expressed as a linear combination of basis states (e.g., $|ฯˆโŸฉ = ฮฑ|0โŸฉ + ฮฒ|1โŸฉ$)
  • Hilbert space formalism in quantum mechanics: The Hilbert space formalism provides a rigorous mathematical framework for quantum mechanics
    • Wave functions as elements of a Hilbert space: Quantum states are represented by wave functions, which are elements of the Hilbert space (e.g., $ฯˆ(x)$ for a particle in one dimension)
    • Operators acting on the Hilbert space: Physical observables and transformations are represented by operators that act on the elements of the Hilbert space (e.g., position operator $\hat{x}$, momentum operator $\hat{p}$)
    • Observables as Hermitian operators with real eigenvalues: Observables are represented by Hermitian operators, ensuring that their eigenvalues, which correspond to the possible measurement outcomes, are real (e.g., energy operator $\hat{H}$)