Evolutionary algorithms for the Mid-IR Quantum Cascade Laser#

Input files:
  • MidIR_QCL_InGaAs_InAlAs_Bai_NaturePhot2010_optimization.negf

Python scripts:
  • MidIR_QCL_evolution.py

Download files

This page describes the optimization of the Mid-IR quantum cascade laser using evolutionary algorithms. 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 Evolutionary algorithms once the IO and the Metric objects are defined.

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

optimizer = Evolution(
    nn_io, metric, bounds=variable_boundaries, algorithm="ga", size=30, parallel_limit=4
)
optimizer.setup_plotting(objective_names=["-gain (cm$^{-1}$)"])

result = optimizer.run(gen=30, seed=0, live_progress=True)

With gen=30 and size=30, the total number of evaluations is 900. The optimization progress is shown in the figure below:

Progress of the evolutionary optimization

Figure 17 Live progress of the evolutionary optimization of the Mid-IR Quantum Cascade Laser. The left panel shows the objective of every candidate, the mean value in each generation, and the best candidate found. The right panels show the three design parameters over the same candidates.#

Optimization results#

The best design found by the evolutionary algorithm can be inspected with the code below:

x = result.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.F[0]:.4g} 1/cm")

The resulting design is shown in the table below.

Table 9 Best design in the final population.#

Design

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

thickness_well_1 (nm)

thickness_well_2 (nm)

thickness_well_3 (nm)

Best candidate

342.2

1.261

5.141

4.114

The gain as a function of energy for the best candidate is given in the figure below:

Gain spectrum of the best candidate

Figure 18 Gain spectrum of the best candidate found by the evolutionary algorithm. The vertical dashed line marks the target photon energy of 270 meV, where the gain reaches 342.2 \(\mathrm{cm}^{-1}\).#

With optimizer.plot_all() you can also plot the last population of candidates in the input space to inspect the diversity of the solutions found by the evolutionary algorithm, see the figure below:

The candidates from the last generation

Figure 19 The candidates from the last generation. The Pareto set in case of the single objective problem is a single champion solution.#