Skip to main content

Hyperfine Structure: Sech Pulse 2π, q=1 — Self-Induced Transparency

Author

Thomas Ogden

\(^{87}\mathrm{Rb}\) driven on the \(5S_{1/2} F=1 \rightarrow 5p_{1/2} F=1\) transition.

import numpy as np
from clerq import hyperfine

Rb87_5s12_F1 = hyperfine.LevelF(I=1.5, J=0.5, F=1)
Rb87_5s12_F2 = hyperfine.LevelF(I=1.5, J=0.5, F=2)  # Needed for decay

Rb87_5p12_F1 = hyperfine.LevelF(I=1.5, J=0.5, F=1)

atom1e = hyperfine.Atom1e(element="Rb", isotope="87")

atom1e.add_F_level(Rb87_5s12_F1)
atom1e.add_F_level(Rb87_5s12_F2)
atom1e.add_F_level(Rb87_5p12_F1)
NUM_STATES = atom1e.get_num_mF_levels()
print(NUM_STATES)
11
ENERGIES = atom1e.get_energies()
print(ENERGIES)
[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
# Tune to be on resonance with the F1 -> F1 transition
DETUNING = 0
print(DETUNING)
0
FIELD_CHANNELS = atom1e.get_coupled_levels(F_level_idxs_a=(0,), F_level_idxs_b=(2,))
print(FIELD_CHANNELS)
[[0, 8], [0, 9], [0, 10], [1, 8], [1, 9], [1, 10], [2, 8], [2, 9], [2, 10]]
q = 1  # Field polarisation
FIELD_FACTORS = atom1e.get_clebsch_hf_factors(
    F_level_idxs_a=(0,), F_level_idxs_b=(2,), q=q
)
print(FIELD_FACTORS)
[ 0.          0.          0.          0.28867513 -0.         -0.
  0.          0.28867513  0.        ]
strength_factor = np.sum(FIELD_FACTORS**2)
print(strength_factor)
0.16666666666666657

1/6 is the strength factor S_11

hf_factor = np.max(FIELD_FACTORS)
print(hf_factor)
0.2886751345948128
DECAY_CHANNELS = atom1e.get_coupled_levels(F_level_idxs_a=(0, 1), F_level_idxs_b=(2,))
print(DECAY_CHANNELS)
[[0, 8], [0, 9], [0, 10], [1, 8], [1, 9], [1, 10], [2, 8], [2, 9], [2, 10], [3, 8], [3, 9], [3, 10], [4, 8], [4, 9], [4, 10], [5, 8], [5, 9], [5, 10], [6, 8], [6, 9], [6, 10], [7, 8], [7, 9], [7, 10]]
DECAY_FACTORS = atom1e.get_decay_factors(F_level_idxs_a=(0, 1), F_level_idxs_b=(2,))
print(DECAY_FACTORS)
[ 0.28867513 -0.28867513  0.          0.28867513 -0.         -0.28867513
  0.          0.28867513 -0.28867513  0.70710678  0.          0.
  0.5         0.5        -0.          0.28867513  0.57735027  0.28867513
 -0.          0.5         0.5         0.          0.          0.70710678]
INITIAL_STATE = (
    [1.0 / 3.0] * 3  # s12_F1
    + [0.0 / 5.0] * 5  # s12_F2
    + [0.0] * 3
)  # p12_F1
print(INITIAL_STATE)
[0.3333333333333333, 0.3333333333333333, 0.3333333333333333, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
sech_fwhm_conv = 1.0 / 2.6339157938
WIDTH = 1.0 * sech_fwhm_conv  # [τ]
print("WIDTH", WIDTH)

n = 2.0  # For a pulse area of nπ
AMPL = n / WIDTH / (2 * np.pi)  # Pulse amplitude [2π Γ]

AMPL *= 1 / hf_factor

print("ampl", AMPL)
WIDTH 0.3796628587572578
ampl 2.9043077704595337
mb_solve_json = """
{{
  "system": {{
    "decays": [
      {{
        "channels": {decay_channels},
        "rate": 0.0,
        "factors": {decay_factors}
      }}
    ],
    "energies": {energies},
    "fields": [
      {{
        "coupled_levels": {field_channels},
        "factors": {field_factors},
        "detuning": {detuning},
        "detuning_positive": true,
        "label": "probe",
        "rabi_freq": 1.0,
        "rabi_freq_t_args": {{
          "ampl": {ampl},
          "centre": 0.0,
          "width": {width}
        }},
        "rabi_freq_t_func": "sech"
      }}
    ],
    "num_states": {num_states},
    "initial_state": {initial_state}
  }},
  "t_min": -2.0,
  "t_max": 10.0,
  "t_steps": 100,
  "z_min": -0.5,
  "z_max": 1.5,
  "z_steps": 100,
  "z_steps_inner": 1,
  "num_density_z_func": "square",
  "num_density_z_args": {{
    "on": 0.0,
    "off": 1.0,
    "ampl": 1.0
  }},
  "interaction_strengths": [
    72
  ],
  "velocity_classes": null,
  "method": "mesolve",
  "opts": {{
    "method": "bdf", 
    "atol": 1e-8, 
    "rtol": 1e-6,
    "nsteps": 1e2
  }},
  "savefile": "mbs-Rb87_5s12_5p12_F11_q1-sech-2pi"
}}
""".format(
    num_states=NUM_STATES,
    energies=ENERGIES,
    initial_state=INITIAL_STATE,
    detuning=DETUNING,
    field_channels=FIELD_CHANNELS,
    field_factors=FIELD_FACTORS.tolist(),
    decay_channels=DECAY_CHANNELS,
    decay_factors=DECAY_FACTORS.tolist(),
    ampl=float(AMPL),
    width=WIDTH,
)
from clerq import PropagationSolver

mbs = PropagationSolver().from_json_str(mb_solve_json)
Omegas_zt, states_zt = mbs.solve(recalc=True)
Saving PropagationSolver to mbs-Rb87_5s12_5p12_F11_q1-sech-2pi.qu
/var/folders/41/hkxt57911pzcfzrv2p66w1z80000gn/T/ipykernel_91229/4067998402.py:1: UserWarning: The z-step may be too coarse: estimated accumulated relative error is 50.5% (tolerance 10.0%). Try z_steps_inner=3 (currently 1) or z_steps_inner='auto'.
  Omegas_zt, states_zt = mbs.solve(recalc=True)
from clerq import plot

fig = plot.field_spacetime(mbs, 0, plot_type="contour", show_z_bounds=(0, 1))
fig.show(renderer='notebook_connected')
fig = plot.population_spacetime(mbs, 0, colorscale="Reds", plot_type="contour", show_z_bounds=(0, 1))
fig.show(renderer='notebook_connected')
import plotly.graph_objects as go

fig = go.Figure(
    go.Contour(
        z=np.imag(mbs.coherences_field(0)), x=mbs.tlist, y=mbs.zlist,
        colorscale="Greens", colorbar=dict(title="Im ρ"),
        line_width=0, line_smoothing=0.85,
    ),
    layout=go.Layout(
        title="Coherence Im ρ(z, t)", xaxis_title="t (γ⁻¹)", yaxis_title="z",
        width=700, height=400, template="clerq",
    ),
)
for z in (0, 1):
    fig.add_hline(y=z, line=dict(color="grey", dash="dot", width=1))
fig.show(renderer='notebook_connected')