/ concept-collection / numbl-quantum-optics
Sign in
concept-collection / numbl-quantum-optics
numbl-quantum-optics / ex08_atomic_states.m
11 lines · 520 BCodeBlameHistory
21c62a3Quantum optics in numbl: companion to arXiv:2309.14354Jeremy Magland 1% States of a two-level atom (Sec. II.G)
2% Excited |e> and ground |g> states as 2-dimensional column vectors, and a
3% normalized superposition |psi> = alpha|e> + beta|g>, |alpha|^2+|beta|^2 = 1.
5clear; % Clear memory
6clc; % Clear the command window/screen
7es = [1;0] % excited state |e>
8gs = [0;1] % ground state |g>
9alpha = sqrt(0.4); % superposition coefficient
10beta = sqrt(0.6); % superposition coefficient
11Psi = alpha*es + beta*gs % superposition state (norm = 1)
moveopenescclose