Bayesian optimization for the Mid-IR Quantum Cascade Laser#

Input files:
  • MidIR_QCL_InGaAs_InAlAs_Bai_NaturePhot2010_optimization.negf

Python scripts:
  • MidIR_QCL_bayesian.py

Download files

This page describes the optimization of the Mid-IR quantum cascade laser using Bayesian optimization. For a description of the physical model and device parameters, as well as setup of the problem, see the optimization of a Mid-IR Quantum Cascade Laser page.

Optimization progress#

The code below shows how to use the Bayesian optimization once the IO and the Metric objects are defined.

variable_boundaries = ([1.0, 2.0, 2.0], [2.5, 6.0, 6.0])

BETA = 1.0  # UCB hyperparameter

optimizer = BayesianOptimization(nn_io, metric, variable_boundaries)

result = optimizer.run(
    trials=300, n_initial=40, seed=0, live_progress=True, acquisition="UCB", acquisition_kwargs={"beta": BETA}
)

From the total budget of 300 evaluations, the first 40 are used for random sampling of the design space. The remaining 260 evaluations are performed using the UCB acquisition function with \(\beta=1.0\). The optimization progress is shown in the figure below:

Progress of the Bayesian optimization

Figure 15 Live progress of the Bayesian optimization of the Mid-IR Quantum Cascade Laser. The left panel shows the objective of every evaluation together with the best value found so far. The right panels show the three design parameters over the same evaluations.#

Optimization results#

The best design found by the Bayesian optimization can be inspected with the code below:

x = result["champion_x"]
print(f"Optimal: thickness_well_1 = {x[0]:.3f} nm\n"
      f"         thickness_well_2 = {x[1]:.3f} nm\n"
      f"         thickness_well_3 = {x[2]:.3f} nm")
print(f"Gain at {TARGET_ENERGY} meV: {-result['champion_f']:.4g} 1/cm")

The optimization results, namely the objective value and the optimized parameters are shown in the table below.

Table 8 Best design found by the Bayesian optimization.#

Design

Gain at photon energy of 270 meV (1/cm)

thickness_well_1 (nm)

thickness_well_2 (nm)

thickness_well_3 (nm)

Champion solution

307.2

1.266

5.157

4.132

The gain as a function of energy for the optimized design is given in the figure below:

Gain spectrum of the optimized design

Figure 16 Gain spectrum of the champion design found by the Bayesian optimization. The vertical dashed line marks the target photon energy of 270 meV, where the gain reaches 307.2 \(\mathrm{cm}^{-1}\).#