I. Introduction
Reconfigurable intelligent surfaces (RIS) aim to reconfigure the random channel between a source and a destination to make it directional [1]–[4]. The reconfiguration is to be done wisely by the source to maximize the intended performance metrics such as rate, signal-to-noise ratio (SNR), received power, etc. The source has to select the phase shifts of the RIS elements based on the channel state information (CSI) of the links between itself, the RIS, and the destination [5], [6]. The source sends these phase shifts to the RIS controller, which applies them to the RIS elements until a new configuration is sent. The benefits of RISs in improving the rate and the power received at the destination have been demonstrated in many papers [1]–[3], [5]–[7]. Some RIS implementations are also presented in [8]. For these reasons, RISs are considered one of the main enablers of 6G wireless systems [9], in addition to hybrid architectures [10], and massive multiple input multiple output systems [11].