Abstract:Wave-based analog computing in the forms of inverse-designed metastructures and the meshes of Mach-Zehnder interferometers (MZI) have recently received considerable attention due to their capability in emulating linear operators, performing vector-matrix multiplication, inverting matrices, and solving integral and differential equations, via electromagnetic wave interaction and manipulation in such structures. Here, we combine these two platforms to propose a wave-based metadevice that can compute scattered fields in electromagnetic forward scattering problems. The proposed device consists of two sub-systems: a set of reconfigurable couplers with a proper feedback system and an inverse-designed inhomogeneous material block. The first sub-system computes the magnitude and phase of the dipole polarization induced in the scatterers when illuminated with a given incident wave (matrix inversion). The second sub-system computes the magnitude and phase of the scattered fields at given detection points (vector-matrix multiplication). We discuss the functionality of this metadevice, and through several examples, we theoretically evaluate its performance by comparing the simulation results of this device with full-wave numerical simulations and numerically evaluated matrix inversion. We also highlight that since the first section is reconfigurable, the proposed device can be used for different permittivity distributions of the scatterer and different incident excitations without changing the inverse-designed section. Our proposed device may provide a versatile platform for rapid computation in various scattering scenarios.