|q⟩ Bad Qubits

beginner · Physics · Quantum Numbers & the Hydrogen Atom (Intro)

The Magnetic Quantum Number mₗ

What is the magnetic quantum number?

When solving the Schrödinger equation for the hydrogen atom in spherical coordinates (r,θ,ϕ)(r, \theta, \phi), the wavefunction separates into a radial part and an angular part. The angular part is further factored into a polar piece (depending on θ\theta) and an azimuthal piece (depending on ϕ\phi). Imposing that the azimuthal wavefunction must be single-valued — meaning it returns to the same value after a full rotation ϕ→ϕ+2π\phi \to \phi + 2\pi — forces the separation constant to be an integer. That integer is the magnetic quantum number mℓm_\ell.

In compact notation the azimuthal factor takes the form

Φ(ϕ)=eimℓϕ,\Phi(\phi) = e^{i m_\ell \phi},

and the single-valuedness condition Φ(ϕ+2π)=Φ(ϕ)\Phi(\phi + 2\pi) = \Phi(\phi) requires eimℓ⋅2π=1e^{i m_\ell \cdot 2\pi} = 1, which holds if and only if mℓm_\ell is an integer.

The range of mₗ

The polar equation imposes a second constraint: the solutions that remain finite at the poles θ=0\theta = 0 and θ=π\theta = \pi — the associated Legendre polynomials — exist only when

mℓ∈{−ℓ,  −ℓ+1,  …,  0,  …,  ℓ−1,  ℓ}.m_\ell \in \{-\ell,\; -\ell+1,\; \ldots,\; 0,\; \ldots,\; \ell-1,\; \ell\}.

Here ℓ\ell is the orbital angular momentum quantum number (ℓ=0,1,2,…,n−1\ell = 0, 1, 2, \ldots, n-1, where nn is the principal quantum number). For a given ℓ\ell, there are exactly 2ℓ+12\ell + 1 allowed values of mℓm_\ell.

| ℓ\ell | name | mℓm_\ell values | count | |--------|------|-----------------|-------| | 0 | s | 0 | 1 | | 1 | p | -1, 0, 1 | 3 | | 2 | d | -2, -1, 0, 1, 2 | 5 | | 3 | f | -3, -2, -1, 0, 1, 2, 3 | 7 |

Physical meaning

The zz-component of the orbital angular momentum LzL_z is quantized:

Lz=mℓℏ.L_z = m_\ell \hbar.

The full magnitude is L=ℏℓ(ℓ+1)L = \hbar\sqrt{\ell(\ell+1)}, so ∣mℓ∣≤ℓ|m_\ell| \leq \ell reflects the fact that a component of a vector cannot exceed the vector's length. Because LzL_z can take only 2ℓ+12\ell + 1 discrete values, we say the orbital angular momentum is space-quantized.

Why mₗ matters for chemistry and quantum computing

Each allowed mℓm_\ell value labels a distinct orbital — a distinct spatial wavefunction — inside a sub-shell. Counting these orbitals gives the degeneracy that underlies the shell structure of the periodic table. For quantum computing, any two-level system (such as the mℓ=0m_\ell = 0 and mℓ=1m_\ell = 1 states of an atomic transition) can serve as a qubit, so understanding how mℓm_\ell enumerates states is also a bridge to quantum hardware.

Try it

This is a numerical exercise — your code should return a number. For ℓ=3\ell = 3 (the f sub-shell), how many distinct values of mℓm_\ell are allowed?

Run your code to see the quantum state.

Sign in on the full site to ask questions and join the discussion.