An optical device may comprise a laser configured to generate an optical beam and a Mach-Zehnder Interferometer (MZI) configured to amplify the optical beam. The MZI may comprise a first coupler and a second coupler connected via a plurality of arms of the MZI. An arm, of the plurality of arms, may provide an optical path for part of the optical beam and may comprise a semiconductor optical amplifier (SOA) configured to amplify the part of the optical beam and a phase shifter configured to adjust a phase of the part of the optical beam.