The design of digital circuits is currently dominated by hardware description languages such as Verilog and VHDL. This automation of circuit design has enabled the development of modern computer processors with billions of transistors. Integrated photonic devices, on the other hand, are still designed by hand. A designer first picks a basic design based on…

