Local optimizers for the Mid-IR Quantum Cascade Laser#

Input files:
  • MidIR_QCL_InGaAs_InAlAs_Bai_NaturePhot2010_optimization.negf

Python scripts:
  • MidIR_QCL_local_optimization.py

Download files

This page describes the optimization of the Mid-IR quantum cascase laser using local 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 local optimizers once the IO and the Metric objects are defined.

x0=np.array([1.6, 4.9, 3.4]) # nm
variable_boundaries = [(1.0, 2.5), (2.0, 6.0), (2.0, 6.0)]  # nm

optimizer = LocalOptimizer(nextnanoio=nn_io, metric=metric)
optimizer.setup_plotting()

result = optimizer.run(
    x0=x0, method="Nelder-Mead", bounds=variable_boundaries, live_progress=True,
    options={"maxfev": 140}
)

With live_progress=True, the optimization progress is shown in the plot which is updated after each algorithm iteration.

Progress of the local optimization

Figure 13 Live progress of the Nelder-Mead 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.#

The plots demonstrate that the optimization converges to a local minimum after about 100 evaluations.

Optimization results#

To print the optimization results, the following code can be used:

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

The optimization results, namely the objective value and the optimized parameters are shown in the table below. To demonstrate that the local optimization output is dependent on the starting point x0, the optimization is repeated for two different starting points.

Table 7 Designs found by the Nelder-Mead algorithm for two starting points, compared with the design used to generate the targets.#

Design

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

thickness_well_1 (nm)

thickness_well_2 (nm)

thickness_well_3 (nm)

x0 = [1.6, 4.9, 3.4]

341.2

1.261

5.143

4.118

x0 = [4.0, 4.0, 0.1, 0.1]

5.404

3.930

3.930

2.238

The gain as a function of energy for the two optimized designs is shown in the figure below:

Gain spectra for the two starting points

Figure 14 Gain spectra of the designs found by the Nelder-Mead algorithm. Left: the optimized result with the starting point x0 = [1.6, 4.9, 3.4], which converges to a design with the gain of 341.2 \(\mathrm{cm}^{-1}\) at the target photon energy of 270 meV (vertical dashed line). Right: the optimized result with the the starting point, x0 = [4.0, 4.0, 0.1, 0.1] which converges to a design with the gain of 5.404 \(\mathrm{cm}^{-1}\) at the target.#