Hi everyone,
Day-6 of the QuCode 21-day challenge is done! Today was all about getting comfortable with the language and structure of quantum mechanics: Dirac notation (bra-ket notation), Hilbert spaces, and the role of basis states and operations. MIT OpenCourseWare notes on functional analysis and Hilbert spaces, and the classic Nielsen & Chuang textbook ‘s chapter 2 selected topics were of great use to understand this abstract math.
Dirac notation, or bra-ket notation, is basically the shorthand of quantum computing. Instead of writing out long column vectors, we use kets like |ψ⟩ to represent quantum states, and bras like ⟨ψ| for their conjugate transposes (row vectors). The inner product, written as ⟨φ|ψ⟩, tells us about the “overlap” between two states — squared, it gives the probability of measuring one state as another. The outer product, |ψ⟩⟨φ|, builds matrices from vectors and is used for constructing operators and projectors3.
Get BK_HimaBindhu’s stories in your inbox
Join Medium for free to get updates from this writer.
Hilbert spaces are the mathematical playground where all these quantum states live. They’re complex vector spaces with an inner product, and they’re complete, so every sequence of vectors that should converge, actually does. For a single qubit, the Hilbert space is just two-dimensional, spanned by the computational basis states |0⟩ and |1⟩. For multi-qubit systems, the space grows exponentially — two qubits give you four basis states (|00⟩, |01⟩, |10⟩, |11⟩), and so on. Each quantum state is a linear combination (superposition) of these basis states, with complex coefficients called probability amplitudes.
Basis states are the reference points of your Hilbert space. The computational (z-) basis is the most common: |0⟩ and |1⟩ for a single qubit, or all combinations like |101⟩ for three qubits. But you can also have x-basis (|+⟩, |−⟩) and y-basis states, which are just different orthonormal sets, useful for different quantum operations and measurements. When you measure a qubit, you’re projecting it onto one of these basis states, and the probability is given by the squared modulus of the amplitude in that basis.
Operations in Hilbert space, like quantum gates are linear and usually unitary, meaning they preserve the length of vectors so total probability stays 1. The Hadamard gate, for example, takes |0⟩ to |+⟩ and |1⟩ to |−⟩, creating superpositions that are fundamental to quantum algorithms.
#QuCode #DiracNotation #HilbertSpace #BasisStates #Day6 #21DayChallenge






