Performance Analysis and Optimization of STAR-RIS-Aided Cell-Free Massive MIMO Systems Relying on Imperfect Hardware Zeping Sui, Member, IEEE, Hien Quoc Ngo, Fellow, IEEE, Michail Matthaiou, Fellow, IEEE, Lajos Hanzo, Life Fellow, IEEE Abstract Simultaneously transmitting and reflecting reconfigurable intelligent surface (STAR-RIS)-aided cell-free massive multiple-input multiple-output (CF-mMIMO) systems are investigated under spatially correlated fading channels using realistic imperfect hardware. Specifically, the transceiver distortions, time-varying phase noise, and RIS phase shift errors are considered. Upon considering imperfect hardware and pilot contamination, we derive a linear minimum mean-square error (MMSE) criterion-based cascaded channel estimator. Moreover, a closed-form expression of the downlink ergodic spectral efficiency (SE) is derived based on maximum ratio (MR) based transmit precoding and channel statistics, where both a finite number of access points (APs) and STAR-RIS elements as well as imperfect hardware are considered. Furthermore, by exploiting the ergodic signal-to-interference-plus-noise ratios (SINRs) among user equipment (UE), a max-min fairness problem is formulated for the joint optimization of the passive transmitting and reflecting beamforming (BF) at the STAR-RIS as well as of the power control coefficients. An alternating optimization (AO) algorithm is proposed for solving the resultant problems, where iterative adaptive particle swarm optimization (APSO) and bisection methods are proposed for circumventing the non-convexity of the RIS passive BF and the quasi-concave power control sub-problems, respectively. Our simulation results illustrate that the STAR-RIS-aided CF-mMIMO system attains higher SE than its RIS-aided counterpart. The performance of different hardware parameters is also evaluated. Additionally, it is demonstrated that the SE of the worst UE can be significantly improved by exploiting the proposed AO-based algorithm compared to conventional solutions associated with random passive BF and equal-power scenarios. I Introduction Cell-free massive multiple-input multiple-output (CF-mMIMO) solutions constitute a compelling candidate for 6G wireless networks, since there are no cell boundaries in CF-mMIMO systems, and the inter-cell interference of conventional cellular networks can be mitigated [ 2 , 3 ] . In CF-mMIMO systems, a large number of geographically distributed access points (APs) connect to central processing units (CPUs) via fronthaul links, and a small number of user equipments (UEs) are served in a coverage area within the same time and frequency resources [ 4 , 5 ] . Compared to conventional cellular mMIMO networks, CF-mMIMO systems achieve improved connectivity, enhanced energy efficiency, and uniformly good quality of service (QoS) of UEs [ 6 ] . However, the spectral efficiency (SE) and macro-diversity gains of CF-mMIMO systems may suffer significantly under harsh propagation scenarios associated with long transmission distances, high path loss and spatially correlated channels [ 7 ] . As a promising technology, reconfigurable intelligent surfaces (RISs) can strike electromagnetic-level transmit waveform shaping without sophisticated digital signal processing schemes and extra power amplifiers [ 8 ] . Explicitly, effective passive beamforming (BF) can be achieved by adjusting the phase shifts of the impinging signals based on refractive RIS elements [ 9 ] . Therefore, RISs can be deployed to enhance the SE, coverage and energy efficiency (EE) in the face of hostile channels [ 10 ] . Moreover, RIS-aided systems can attain comparable performance at reduced transmit power and number of antennas compared to systems dispensing with a RIS [ 11 ] . However, a conventional RIS can only reflect signals and support UEs in a half-plane at the same side of RISs [ 12 ] . To circumvent this, simultaneously transmitting and reflecting RISs (STAR-RISs) have been proposed, where the impinging signals can be transmitted and reflected simultaneously toward UEs located at both sides of STAR-RISs, yielding higher SE than the conventional RIS-based systems [ 13 ] . Hence, a STAR-RIS can, in principle, support full-space 360^{\circ} coverage upon adjusting the amplitudes and phases of incident signals. Due to the above-mentioned benefits, RISs have been applied to CF-mMIMO systems, yielding improved SE under harsh propagation conditions [ 14 , 15 , 16 ] . Specifically, a joint precoding framework was conceived for RIS-aided CF networks in [ 14 ] . Later in [ 15 ] , the uplink and downlink SEs of single-antenna AP-based RIS-aided CF-mMIMO (RIS-CF-mMIMO) systems were investigated while exploiting maximum ratio (MR) processing. In [ 17 ] , the uplink SE of RIS-CF-mMIMO systems operating in the face of electromagnetic interference (EMI) was studied. Shi et al. [ 18 ] quantified the uplink SE of RIS-CF-mMIMO systems under Rician fading channels, where single-antenna APs and UEs were assumed. In [ 19 ] , upon considering multiple RIS-assisted CF networks, a low-complexity two-timescale transmission protocol was proposed, where the joint optimization of BF at APs and RISs was investigated in the context of a max weighted sum-rate (WSR) problem. Then, closed-form expressions of uplink and downlink SEs of hybrid relay-reflecting intelligent surface-assisted CF-mMIMO systems were derived in [ 20 ] , where MR processing techniques were harnessed. By investigating the effect of channel aging, a closed-form SE expression of RIS-CF-mMIMO systems was derived in [ 21 ] . More recently, to utilize the full-space coverage of STAR-RIS, the authors of [ 22 ] carried out a SE analysis of STAR-RIS-aided CF-mMIMO (STAR-RIS-CF-mMIMO) relying on perfect hardware. In [ 23 ] , the joint optimization of the active BF at APs and passive BF at STAR-RISs was conceived for maximizing the WSR of STAR-RIS-CF-mMIMO systems. But again, the above treatises are developed based on perfect hardware, while some are conceived under the assumption of perfect channel state information (CSI). However, realistic imperfect hardware and channel estimation errors may impose severe performance loss [ 24 ] . Practical non-ideal hardware imposes hardware impairments (HWIs), such as oscillator phase noise, in-phase/quadrature (I/Q) imbalance and power amplifier non-linearity [ 25 , 26 , 27 ] . Specifically, the impact of HWIs can be characterized by the error vector magnitude (EVM) model, where the transmit/received signals are multiplied by hardware quality factors and extra hardware distortion terms that are uncorrelated with the transmit/received signals [ 28 ] . The HWIs have been investigated in the CF-mMIMO literature of [ 29 , 30 , 31 ] . Then, the downlink and uplink SE of HWI-constrained RIS-CF-mMIMO systems were analyzed under uncorrelated channels and ideal RISs in [ 32 , 33 ] . Moreover, for RIS-aided systems, the RIS phase error introduced by the quantized phase drifts also results in significant performance erosion [ 28 ] . However, to the best of our knowledge, no authors have investigated the system performance of STAR-RIS-CF-mMIMO systems under both realistic HWIs, RIS phase errors, and imperfect CSI. To address the aforementioned issues, the contributions of our paper are boldly and explicitly contrasted to the state-of-the-art in Table I , which are also detailed as follows: TABLE I: Contrasting contributions to the existing literature related to RIS-CF networks. Contributions This paper [ 14 ] [ 15 ] [ 17 ] [ 18 ] [ 19 ] [ 20 ] [ 21 ] [ 22 ] [ 23 ] [ 32 ] [ 33 ] STAR-RIS-CF-mMIMO ✓ ✓ ✓ Transceiver HWIs ✓ ✓ ✓ RIS phase shift errors ✓ Spatially correlated channels ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ Imperfect CSI ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ Closed-form expression of SE ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ STAR-RIS passive BF design ✓ ✓ ✓ Power control design ✓ ✓ ✓ ✓ Joint design for optimization ✓ ✓ ✓ ✓ Alternative optimization (AO) ✓ ✓ ✓ ✓ Complexity analysis of AO ✓ ✓ ✓ ✓ Convergence analysis of AO ✓ ✓ ✓ ✓ • We first develop the linear minimum mean-square error (MMSE) estimate of the STAR-RIS-aided cascaded channel upon considering transceiver HWIs, nonlinear distortions, RIS phase error and spatially correlated channel, where multi-antenna APs and pilot contamination from arbitrary pilot reuse patterns are considered. Consequently, sufficient statistical information can be provided for the ensuing data processing. • We derive a closed-form expression for the downlink ergodic SE of the STAR-RIS-CF-mMIMO system based on large-scale statistics, MR precoding, realistic hardware and imperfect CSI, where finite numbers of APs, UEs and STAR-RIS elements are considered. Then, we investigate the impacts of the STAR-RIS element size, number of RIS elements, hardware-related parameters, array gain, and channel estimation errors. • Simulation results reveal that the proposed STAR-RIS-CF-mMIMO system can significantly improve the SE of its conventional RIS-CF-mMIMO and CF-mMIMO counterparts. Moreover, the accuracy of the derived closed-form expression of the downlink SE is validated through Monte-Carlo simulations, while our STAR-RIS-CF-mMIMO systems can still attain higher SEs under the worst-case RIS phase error compared to conventional CF-mMIMO systems. Furthermore, it can be demonstrated that the UE hardware quality factor inflicts a more significant negative impact on the SE than the AP hardware quality factor. In addition, the effects of pilot contamination, the number of APs, UEs, and antennas per AP, and the RIS element size are also characterized. • We then formulate a joint STAR-RIS passive BF and power control design for our signal-to-interference-plus noise ratio (SINR) max-min problem. In particular, we decompose the NP-hard SINR max-min problem into two sub-problems. Specifically, our proposed adaptive particle swarm optimization (APSO) algorithm and the bisection method are leveraged to address the resultant non-convex and quasi-concave sub-problems. Numerical results demonstrate that our AO-based algorithm can significantly enhance the max-min SE of the conventional random passive having equal-power coefficients. Moreover, the AO algorithm with the proposed APSO algorithm is capable of achieving better convergence compared to conventional ones, since better search capability can be stroked by the proposed APSO. The rest of our paper is organized as follows: The system model is described in Section II , while Section III details the channel estimation. Then, we provide our the downlink ergodic SE analysis in Section IV . Section V develops the joint optimization problem of power control and STAR-RIS passive BF for our STAR-RIS-CF-mMIMO systems. Simulation results are provided in Section VI . Finally, we conclude the paper in Section VII . Notation: The argument, expectation and trace operators are denoted by \arg(\cdot) , \mathbb{E}\{\cdot\} and \text{tr}(\cdot) , respectively; \mathcal{CN}(\boldsymbol{a},\boldsymbol{B}) stands for the complex Gaussian distribution having a mean vector \boldsymbol{a} and covariance matrix \boldsymbol{B} . Moreover, the transpose, conjugate transpose and magnitude operators are denoted by (\cdot)^{T} , (\cdot)^{H} and \left|\cdot\right|^{2} , respectively; \boldsymbol{I}_{N} is the N -dimensional identity matrix, and I_{m}(\vartheta) denotes the m -order Bessel function of the first kind of \vartheta . The Hadamard product and Kronecker product operators are denoted as \odot and \otimes , respectively, while a^{(l)} and A^{(m,n)} denote the l th element of vector \boldsymbol{a} and the (m,n) th element of matrix \boldsymbol{A} , respectively. Furthermore, \left\|\cdot\right\| is the Euclidean norm operator. A diagonal matrix obtained from the vector \boldsymbol{a} and from the main diagonal vector of matrix \boldsymbol{A} are \diag\{\boldsymbol{a}\} and \diag\{\boldsymbol{A}\} , respectively. Furthermore, \text{vec}(\boldsymbol{A}) denotes the vector obtained from stacking the columns of \boldsymbol{A} . The uniform distribution within a range of [a,b] is denoted by x\sim\mathcal{U}[a,b] . II System Model II-A STAR-RIS Signal Model Let us consider a STAR-RIS-CF-mMIMO system consisting of a single STAR-RIS with N elements, M APs equipped with L antennas and K UEs, where we leverage the time-division duplexing (TDD) protocol. As shown in Fig. 1 , the STAR-RIS divides the full plane into transmission and reflection spaces. We use \mathcal{M}=\{1,\ldots,M\} to denote the AP set, while the set of STAR-RIS elements and UEs are \mathcal{N}=\{1,\ldots,N\} and \mathcal{K}=\{1,\ldots,K\} , respectively. According to the locations of UEs and the STAR-RIS, we split the UEs into the reflection group \mathcal{K}_{R}=\{1,\ldots,K_{R}\} and the transmission group \mathcal{K}_{T}=\{1,\ldots,K_{T}\} , yielding K=K_{T}+K_{R} . All the APs are randomly distributed in the reflection space and are connected to the CPU via fronthaul links in the spirit of [ 22 ] 1 1 1 Employing APs on both sides of STAR-RIS-CF-mMIMO systems is an interesting topic, which we will investigate in our future work. . Furthermore, the direct AP-UE links are blocked by obstacles. Let \boldsymbol{x}_{m}\in\mathbb{C}^{L} denote the transmit signal of the m th AP. The STAR-RIS reflected and transmitted signals corresponding to the n th STAR-RIS element is given by \sqrt{\beta_{T,n}}e^{j{\theta}_{T,n}}\boldsymbol{x}_{m} and \sqrt{{\beta}_{R,n}}e^{j{\theta}_{R,n}}\boldsymbol{x}_{m} , respectively, where {\beta}_{T,n} , {\beta}_{R,n} and {\theta}_{T,n},{\theta}_{R,n}\in[0,2\pi) denote the amplitude and phase shift of the n th STAR-RIS element responsible for the transmission and reflection spaces, respectively. The STAR-RIS passive BF matrices of the transmission and reflection spaces can be respectively formulated as \boldsymbol{\Phi}_{T}=\text{diag}\{\boldsymbol{v}_{T}\} and \boldsymbol{\Phi}_{R}=\text{diag}\{\boldsymbol{v}_{R}\} with \boldsymbol{v}_{T}=\left[\sqrt{\beta_{T,1}}e^{j\theta_{T,1}},\ldots,\sqrt{\beta_{T,N}}e^{j\theta_{T,N}}\right] and \boldsymbol{v}_{R}=\left[\sqrt{\beta_{R,1}}e^{j\theta_{R,1}},\ldots,\sqrt{\beta_{R,N}}e^{j\theta_{R,N}}\right] . We harness the energy splitting (ES) STAR-RIS protocol, and all the STAR-RIS elements are assumed to opreate in reflection and transmission modes, simultaneously. Based on \beta_{T,n} and \beta_{R,n} , the energy of the STAR-RIS incident waves is partitioned into transmitted and reflected components. Moreover, we assume that {\theta}_{T,n} and {\theta}_{R,n} are independent, while the amplitudes \beta_{T,n} and \beta_{R,n} are coupled according to the law of energy conservation, which satisfy \beta_{T,n},\beta_{R,n}\in[0,1] , \theta_{T,n},\theta_{R,n}\in[0,2\pi) , \beta_{T,n}+\beta_{R,n}=1,\forall n\in\mathcal{N} [ 13 ] . Fig. 1: Illustration of the considered STAR-RIS-CF-mMIMO system. II-B Phase Shift Error Model We consider realistic scenarios in which the precisions of RIS phase shifts are finite, yielding phase errors [ 28 ] . Specifically, the phase errors can be modeled as \tilde{\boldsymbol{\Phi}}_{k}=\diag\left(e^{j\tilde{\theta}_{k,1}},\ldots,e^{j\tilde{\theta}_{k,N}}\right) , where \tilde{\theta}_{k,n} denotes the phase error of the n th RIS element with k\in\{T,R\} . The probability density function (PDF) of \tilde{\theta}_{k,n} is symmetric with a zero-mean direction, and we have \arg\left(\mathbb{E}\left\{e^{j\tilde{\theta}_{k,n}}\right\}\right)=0 . The phase errors \tilde{\theta}_{k,n}\in[-\pi,\pi) are identically and independently distributed (i.i.d.) random variables (RVs) that follow either the Von Mises distribution or uniform distribution [ 28 ] : (1) Von Mises distribution: the phase errors have a zero mean with the concentration parameter \vartheta , representing the phase estimation accuracy. The characteristic function (CF) of phase errors is given by \varsigma_{p}=I_{1}\left(\vartheta\right)/I_{0}\left(\vartheta\right) , with \vartheta=1/\sigma^{2}_{p} and the RIS phase noise power \sigma^{2}_{p} . (2) uniform distribution: random phase errors without a priori information with \vartheta=0 . II-C Channel Model Let us consider a block fading channel associated with the length of the coherence interval, i.e., the number of channel uses of \tau_{c}=B_{c}T_{c} , where B_{c} and T_{c} represent the coherence bandwidth and coherence time, respectively [ 24 ] . Moreover, the number of channel uses for the uplink channel estimation is \tau_{p} , yielding the remaining \tau_{d}=\tau_{c}-\tau_{p} channel uses for downlink data transmission. We assume that the APs and the STAR-RIS use uniform linear arrays (ULAs) with L elements and a uniform squared planar array (USPA) with N elements, respectively. As shown in Fig. 1 , the non-line-of-sight (NLoS) direct AP-UE link can be formulated as \boldsymbol{d}_{mk}\sim\mathcal{CN}(\boldsymbol{0},\boldsymbol{R}^{d}_{mk}) , where \boldsymbol{R}^{d}_{mk}\in\mathbb{C}^{L\times L} is the spatial correlation matrix, and \beta^{d}_{mk}=\tr(\boldsymbol{R}^{d}_{mk})/L denotes the large-scale fading coefficient. Moreover, we assume that the STAR-RIS is close to the UEs, resulting in LoS channel components for the RIS-UE links. Then, the AP-RIS and RIS-UE channels can be formulated as {\boldsymbol{Q}}_{m}=\sqrt{\xi_{m}}\boldsymbol{R}_{\text{A},m}^{1/2}\boldsymbol{V}_{m}\boldsymbol{R}_{\text{S}}^{1/2}\in\mathbb{C}^{L\times N} and \boldsymbol{g}_{k}=\sqrt{\frac{\alpha_{k}}{\iota_{k}+1}}\left(\sqrt{\iota_{k}}\bar{\boldsymbol{g}}_{k}+\tilde{\boldsymbol{g}}_{k}\right)\in\mathbb{C}^{N} , respectively [ 22 ] , where \xi_{m} and \alpha_{k} are the large-scale fading coefficients, while \iota_{k} is the Rician coefficient. Moreover, \boldsymbol{R}_{\text{A},m}\in\mathbb{C}^{L\times L} and \boldsymbol{R}_{\text{S}}\in\mathbb{C}^{N\times N} are the deterministic Hermitian positive semi-definite spatially correlation matrices of the AP m and the STAR-RIS with \text{vec}\left(\boldsymbol{V}_{m}\right)\sim\mathcal{CN}(\boldsymbol{0},\boldsymbol{I}_{NL}) . Note that \boldsymbol{R}_{\text{A},m} can be obtained based on [ 34 ] . Upon considering a multi-path transmission scenario of uniformly distributed isotropic scattering, the elements of \boldsymbol{R}_{\text{S}} are given by R_{\text{S}}^{(a,b)}=d_{H}d_{V}\text{sinc}(2||\boldsymbol{u}_{a}-\boldsymbol{u}_{b}||^{2}/\lambda) with \boldsymbol{u}_{l}=[0,\mod(l-1,N_{H})d_{H},\lfloor(l-1)/N_{H}\rfloor d_{V}]^{T} , l\in\{a,b\} , where d_{H} and d_{V} denote the horizontal width and the vertical height of each STAR-RIS element, while N_{H}=\sqrt{N} denotes the number of RIS elements in each row [ 35 ] . The LoS component \bar{\boldsymbol{g}}_{k} can be formulated based on [ 36 ] . Furthermore, the NLoS component is given by \tilde{\boldsymbol{g}}_{k}=\boldsymbol{R}_{\text{S}}^{1/2}\boldsymbol{c}_{k}\in\mathbb{C}^{N} with \boldsymbol{c}_{k}\sim\mathcal{CN}(\boldsymbol{0},\boldsymbol{I}_{N}) . Then, the L\times 1 -dimensional cascaded channel spanning from AP m to UE k can be written as \boldsymbol{f}_{mk}=\boldsymbol{d}_{mk}+\boldsymbol{Q}_{m}\boldsymbol{\Phi}_{k}\tilde{\boldsymbol{\Phi}}_{k}\boldsymbol{g}_{k} , where we have k\in\{T,R\} of \boldsymbol{\Phi}_{k}\tilde{\boldsymbol{\Phi}}_{k} based on the location of UE k . By introducing \boldsymbol{G}_{k}=\bar{\boldsymbol{g}}_{k}\bar{\boldsymbol{g}}_{k}^{H} , the covariance matrix of the cascaded channel \boldsymbol{R}_{mk}=\mathbb{E}\{\boldsymbol{f}_{mk}\boldsymbol{f}_{mk}^{H}\} can be formulated based on Lemma 1 shown in Appendix A as \displaystyle{\boldsymbol{R}}_{mk} \displaystyle=\boldsymbol{R}^{d}_{mk}+\boldsymbol{R}_{\text{A},m}\tr\left(\bar{\boldsymbol{R}}^{f}_{mk}\right)+\boldsymbol{R}_{\text{A},m}\tr\left(\tilde{\boldsymbol{R}}^{f}_{mk}\right) \displaystyle=\boldsymbol{R}^{d}_{mk}+\boldsymbol{R}_{\text{A},m}\tr\left({\boldsymbol{R}}^{f}_{mk}\right), (1) where \bar{\boldsymbol{R}}^{f}_{mk}={\xi_{m}\alpha_{k}\iota_{k}}\boldsymbol{R}_{\text{S}}{\boldsymbol{\Phi}}_{k}\tilde{\boldsymbol{G}}_{k}{\boldsymbol{\Phi}}_{k}^{H}/\varpi_{k} and \tilde{\boldsymbol{R}}^{f}_{mk}={\xi_{m}\alpha_{k}}\boldsymbol{R}_{\text{S}}{\boldsymbol{\Phi}}_{k}\tilde{\boldsymbol{R}}_{\text{S}}{\boldsymbol{\Phi}}_{k}^{H}/\varpi_{k} with \varpi_{k}=\iota_{k}+1 . Moreover, we can obtain \tilde{\boldsymbol{G}}_{k}=\mathbb{E}\left\{\tilde{\boldsymbol{\Phi}}_{k}\boldsymbol{G}_{k}\tilde{\boldsymbol{\Phi}}_{k}^{H}\right\} and \tilde{\boldsymbol{R}}_{\text{S}}=\mathbb{E}\left\{\tilde{\boldsymbol{\Phi}}_{k}{\boldsymbol{R}}_{\text{S}}\tilde{\boldsymbol{\Phi}}_{k}^{H}\right\} . The elements of \tilde{\boldsymbol{G}}_{k} and \tilde{\boldsymbol{R}}_{\text{S}} are, respectively, given by as \tilde{G}_{k}^{(n,n^{\prime})}=G_{k}^{(n,n^{\prime})}\mathbb{E}\left\{e^{j\tilde{\theta}_{k,n}-j\tilde{\theta}_{k,n^{\prime}}}\right\} and \tilde{R}_{\text{S}}^{(n,n^{\prime})}=R_{\text{S}}^{(n,n^{\prime})}\mathbb{E}\left\{e^{j\tilde{\theta}_{k,n}-j\tilde{\theta}_{k,n^{\prime}}}\right\} . Therefore, we can obtain \tilde{\boldsymbol{G}}_{k}=\varsigma^{2}_{p}{\boldsymbol{G}}_{k}+(1-\varsigma^{2}_{p})\diag({\boldsymbol{G}}_{k}) and \tilde{\boldsymbol{R}}_{\text{S}}=\varsigma^{2}_{p}{\boldsymbol{R}}_{\text{S}}+(1-\varsigma^{2}_{p})\diag({\boldsymbol{R}}_{\text{S}}) . II-D Phase Noise Model Consider a realistic scenario, where both the APs and UEs are equipped with free-running oscillators, leading to transceiver phase noise terms \phi_{m}^{\text{AP}}(t) and \phi_{k}^{\text{UE}}(t) at the channel use t\in\{0,\ldots,\tau_{c}-1\} that are generated during the baseband signal up-conversion and the passband signal down-conversion process. The phase noise samples can be modelled by Wiener RVs, yielding [ 29 , 24 ] \displaystyle\phi_{m}(t) \displaystyle=\phi_{m}(t-1)+\zeta_{\phi_{m}}(t),\ \zeta_{\phi_{m}}(t)\sim\mathcal{N}(0,\varrho^{2}_{\phi_{m}}), \displaystyle\psi_{k}(t) \displaystyle=\phi_{k}(t-1)+\zeta_{\psi_{k}}(t),\ \zeta_{\psi_{k}}(t)\sim\mathcal{N}(0,\varrho^{2}_{\psi_{k}}), (2) where \varrho^{2}_{\phi_{m}} and \varrho^{2}_{\psi_{k}} are the phase noise variances corresponding to the additive terms \zeta_{\phi_{m}}(t) and \zeta_{\psi_{k}}(t) , respectively. For ease of analysis, we stipulate \varrho^{2}_{\phi_{m}}=\varrho^{2}_{\phi} and \varrho^{2}_{\psi_{k}}=\varrho^{2}_{\psi} , \forall k,m . Explicitly, the variances are given by \varrho^{2}_{i}=4\pi^{2}f_{c}^{2}c_{i}T_{s} where f_{c} is the carrier frequency, c_{i} denotes a constant of the oscillator with i\in\{\phi,\psi\} , and T_{s} represents the symbol duration [ 24 ] . Let \varphi_{mk}(t)=\phi_{m}(t)+\psi_{k}(t) denote the overall transceiver oscillator phase noise, yielding \varphi_{mk}(t)\sim\mathcal{N}[\varphi_{mk}(t-1),\delta^{2}] with \delta^{2}=\varrho^{2}_{\phi}+\varrho^{2}_{\psi} . Consequently, the effective channel at the channel use t can be written as \boldsymbol{h}_{mk}(t)=\boldsymbol{f}_{mk}e^{j\varphi_{mk}(t)} . III Channel Estimation We assume that \tau_{p}0 denotes the transmitted pilot power, while the elements of the noise term \boldsymbol{N}_{m}\in\mathbb{C}^{L\times\tau_{p}} are independent and identically distributed (i.i.d.) Gaussian RVs with zero mean and a variance of \sigma^{2} . Specifically, \boldsymbol{w}_{i}^{\text{UE}}\sim\mathcal{CN}(\boldsymbol{0},(1-\gamma_{R}){p}\boldsymbol{I}_{\tau_{p}}) is the transmitter distortion at the UE side, while the columns of the receiver distortion term \boldsymbol{G}_{m}^{\text{AP}} can be formulated as \boldsymbol{g}_{m}^{\text{AP}}|\{\boldsymbol{f}_{mi}\}\sim\mathcal{CN}\left(\boldsymbol{0},(1-\gamma_{T}){p}\sum_{i=1}^{K}\diag\{\boldsymbol{f}_{mi}\boldsymbol{f}_{mi}^{H}\}\right) [ 26 , 27 ] . Then, we correlate the normalized pilot signal and the received signal as \boldsymbol{y}_{mk}^{p}(0)\triangleq\boldsymbol{Y}^{p}_{m}(0)\bar{\boldsymbol{\phi}}_{u_{k}}/\sqrt{\tau_{p}} to estimate the effective channel \boldsymbol{h}_{mk}(0) , yielding \displaystyle\boldsymbol{y}_{mk}^{p}(0) \displaystyle=\sum_{i\in\mathcal{P}_{k}}\sqrt{\gamma_{T}\gamma_{R}{p}\tau_{p}}\boldsymbol{h}_{mi}(0)+\sqrt{\frac{\gamma_{T}}{\tau_{p}}}\sum_{i=1}^{K}\boldsymbol{h}_{mi}(0) \displaystyle\times\left(\boldsymbol{w}_{i}^{\text{UE}}\right)^{H}\bar{\boldsymbol{\phi}}_{u_{k}}+\frac{\boldsymbol{G}_{m}^{\text{AP}}\bar{\boldsymbol{\phi}}_{u_{k}}}{\sqrt{\tau_{p}}}+\boldsymbol{n}_{mk}, (4) where we have \boldsymbol{n}_{mk}\triangleq{\boldsymbol{N}_{m}\bar{\boldsymbol{\phi}}_{u_{k}}}/{\sqrt{\tau_{p}}}\sim\mathcal{CN}(\boldsymbol{0},\sigma^{2}\boldsymbol{I}_{L}) , while {\boldsymbol{G}_{m}^{\text{AP}}\bar{\boldsymbol{\phi}}_{u_{k}}}/{\sqrt{\tau_{p}}}|\{\boldsymbol{f}_{mi}\} obeys the same distribution as \boldsymbol{g}_{m}^{\text{AP}}|\{\boldsymbol{f}_{mi}\} . By using the linear MMSE channel estimation technique, we can obtain the estimate of the cascaded channel as {\boldsymbol{h}}_{mk}(0)=\sqrt{\gamma_{T}\gamma_{R}{p}\tau_{p}}\boldsymbol{R}_{mk}\boldsymbol{\Psi}_{mk}^{-1}\boldsymbol{z}_{mk}(0) , where \displaystyle\boldsymbol{\Psi}_{mk} \displaystyle=\gamma_{T}\gamma_{R}{p}\tau_{p}\sum_{i\in\mathcal{P}_{k}}\boldsymbol{R}_{mi}+(1-\gamma_{R})\gamma_{T}{p}\sum_{i=1}^{K}\boldsymbol{R}_{mi} \displaystyle+(1-\gamma_{T}){p}\sum_{i=1}^{K}\diag(\boldsymbol{R}_{mi})+\sigma^{2}\boldsymbol{I}_{L}. (5) It can be readily shown that both \boldsymbol{\Psi}_{mk} and \boldsymbol{R}_{mk} are deterministic Hermitian matrices. Denoting the channel estimation error as \tilde{\boldsymbol{h}}_{mk}(0)=\boldsymbol{h}_{mk}(0)-\hat{\boldsymbol{h}}_{mk}(0) , we have \hat{\boldsymbol{h}}_{mk}(0)\sim\mathcal{CN}({\boldsymbol{0}},\boldsymbol{\Omega}_{mk}) and \tilde{\boldsymbol{h}}_{mk}(0)\sim\mathcal{CN}(\boldsymbol{0},\boldsymbol{C}_{mk}) with \boldsymbol{\Omega}_{mk}=\gamma_{T}\gamma_{R}{p}\tau_{p}\boldsymbol{R}_{mk}\boldsymbol{\Psi}_{mk}^{-1}\boldsymbol{R}_{mk} and \boldsymbol{C}_{mk}=\boldsymbol{R}_{mk}-\boldsymbol{\Omega}_{mk} . It should be noted that \hat{\boldsymbol{h}}_{mk}(0) and \tilde{\boldsymbol{h}}_{mk}(0) are independent vectors. Moreover, we have \mathbb{E}\left\{\hat{\boldsymbol{h}}_{mk}^{H}(0)\hat{\boldsymbol{h}}_{mk}(0)\right\}=\tr\left(\boldsymbol{\Omega}_{mk}\right) and \mathbb{E}\left\{\tilde{\boldsymbol{h}}_{mk}^{H}(0)\tilde{\boldsymbol{h}}_{mk}(0)\right\}=\tr\left(\boldsymbol{C}_{mk}\right) . IV Downlink Data Transmission and Performance Analysis In this section, we investigate the downlink data transmission phase in the face of imperfect hardware and derive a closed-form expression of the downlink ergodic SE using MR precoding and arbitrary STAR-RIS passive BF. IV-A Downlink Data Transmission During downlink data transmission t\in[\tau_{p},\tau_{c}-1] , we exploit the estimated channels \hat{\boldsymbol{h}}_{mk}(0) to formulate MR precoding vectors. The downlink transmitted signal of AP m can be formulated as \displaystyle\boldsymbol{x}_{m}(t) \displaystyle=\sqrt{\gamma_{T}\rho}\sum_{k=1}^{K}\sqrt{\eta_{mk}}\hat{\boldsymbol{h}}_{mk}(0)s_{k}(t)+\boldsymbol{\mu}_{m}^{\text{AP}}(t) \displaystyle=\bar{\boldsymbol{x}}_{m}(t)+\boldsymbol{\mu}_{m}^{\text{AP}}(t), (6) where \bar{\boldsymbol{x}}_{m}(t)=\sqrt{\gamma_{T}\rho}\sum_{k=1}^{K}\sqrt{\eta_{mk}}\hat{\boldsymbol{h}}_{mk}(0)s_{k}(t)\in\mathbb{C}^{L} , while \rho is the normalized downlink SNR. Moreover, the symbol transmitted from the k th UE can be denoted by s_{k} with \mathbb{E}\{|s_{k}(t)|^{2}\}=1 , and \eta_{mk}\geq 0 represents the corresponding power control coefficient. Given the MR precoding vector \left\{\hat{\boldsymbol{h}}_{mk}(0),\forall k\right\} and the EVM model [ 33 ] , the transmitter hardware distortion can be formulated as \boldsymbol{\mu}_{m}^{\text{AP}}(t)\sim\mathcal{CN}\left(\boldsymbol{0},\boldsymbol{D}_{m,\left\{\hat{\boldsymbol{h}}\right\}}\right) with the conditional correlation matrix \boldsymbol{D}_{m,\left\{\hat{\boldsymbol{h}}\right\}}=(1-\gamma_{T})\sum_{k=1}^{K}\rho\eta_{mk}\diag(\boldsymbol{\Omega}_{mk})\in\mathbb{C}^{L\times L} . Moreover, based on the power constraint \mathbb{E}\{||\bar{\boldsymbol{x}}_{m}(t)||^{2}\}\leq\gamma_{T}\rho [ 3 ] , we have \sum_{k=1}^{K}\eta_{mk}\tr(\boldsymbol{\Omega}_{mk})\leq 1,\forall m . The receiver distortion can be written as {\mu}_{k}^{\text{UE}}(t)\sim\mathcal{CN}\left(0,(1-\gamma_{R})\nu_{m,\{\hat{\boldsymbol{h}}\}}\right) with \displaystyle\nu_{m,\{\hat{\boldsymbol{h}}\}} \displaystyle=\mathbb{E}\left\{\left|\sum_{m=1}^{M}\boldsymbol{h}_{mk}^{H}(t)\boldsymbol{x}_{m}(t)\right|^{2}|\{\boldsymbol{h}_{mk}(t)\}\right\} \displaystyle=\mathbb{E}\left\{\sum_{m=1}^{M}\sum_{i=1}^{K}\rho\eta_{mi}\left(\gamma_{T}|\boldsymbol{h}_{mk}^{H}(t)\hat{\boldsymbol{h}}_{mi}(0)|^{2}\right.\right. \displaystyle+\left.\left.(1-\gamma_{T})\left\|\hat{\boldsymbol{h}}_{mi}(0)\odot\boldsymbol{h}_{mk}(t)\right\|^{2}\right)\right\}. (7) Then, the received signal of the k th UE can be expressed based on ( IV-A ) as \displaystyle{y}_{k}(t) \displaystyle=\sum_{m=1}^{M}\sqrt{\gamma_{R}}\boldsymbol{h}_{mk}^{H}(t)\boldsymbol{x}_{m}(t)+{\mu}_{k}^{\text{UE}}(t)+{n}_{k}(t) \displaystyle={\tt DS}_{k}\cdot s_{k}(t)+{\tt BU}_{k}\cdot s_{k}(t)+\sum_{i\neq k}^{K}{\tt UI}_{ki}\cdot s_{i}(t) \displaystyle+{\tt HWI}_{k}+{\mu}_{k}^{\text{UE}}(t)+{n}_{k}(t), (8) where the noise term is n_{k}(t)\sim\mathcal{CN}(0,1) . Let C_{mk}(t)=\sum_{m=1}^{M}\sqrt{\eta_{mk}}\boldsymbol{h}^{H}_{mk}(t)\hat{\boldsymbol{h}}_{mk}(0) , we have and \displaystyle{\tt DS}_{k}(t) \displaystyle\triangleq\sqrt{\gamma_{R}\gamma_{T}\rho}\mathbb{E}\left\{C_{mk}(t)\right\}, (9) \displaystyle{\tt BU}_{k}(t) \displaystyle\triangleq\sqrt{\gamma_{R}\gamma_{T}\rho}\left(C_{mk}(t)-\mathbb{E}\left\{C_{mk}(t)\right\}\right), (10) \displaystyle{\tt UI}_{ki}(t) \displaystyle\triangleq\sqrt{\gamma_{R}\gamma_{T}\rho}\sum_{m=1}^{M}\sqrt{\eta_{mi}}\boldsymbol{h}^{H}_{mk}(t)\hat{\boldsymbol{h}}_{mi}(0), (11) \displaystyle{\tt HWI}_{k}(t) \displaystyle\triangleq\sqrt{\gamma_{R}}\sum_{m=1}^{M}\boldsymbol{h}^{H}_{mk}(t)\boldsymbol{\mu}_{m}^{\text{AP}}(t), (12) represent the strength of the desired signal (DS), the beamforming uncertainty (BU), the UE interference (UI) caused by the i th UE and the interference imposed by transmitter HWIs, respectively. We emphasize that the HWI model invoked in this paper considers nonlinear transceiver distortions, which characterize the nonlinear power amplifiers [ 26 , 27 ] . Furthermore, the distortion terms \boldsymbol{G}_{m}^{\text{AP}} , \boldsymbol{\mu}_{m}^{\text{AP}}(t) are associated with the CSI and channel estimates [ 24 , 26 , 27 , 33 ] . IV-B Downlink Ergodic SE Analysis with MR Precoding Based on the use-and-then forget capacity bounding technique of [ 2 ] , the downlink ergodic SE (measured in bit/s/Hz) of the k th UE can be expressed as \displaystyle R_{k}(\boldsymbol{\eta}_{k},\boldsymbol{\Phi}_{k})=\frac{1}{\tau_{c}}\sum_{t=\tau_{p}}^{\tau_{c}-1}\log_{2}\left[1+{\tt SINR}_{k}(t)\right], (13) where {\tt SINR}_{k}(t) denotes the effective signal-to-interference-plus-noise ratio (SINR) associated with UE k at the channel use t , yielding \displaystyle{\tt SINR}_{k}(t)=\frac{|{\tt DS}_{k}(t)|^{2}}{D_{k}(t)}, (14) where D_{k}(t)=\mathbb{E}\{|{\tt BU}_{k}(t)|^{2}\}+\sum_{i\neq k}^{K}\mathbb{E}\{|{\tt UI}_{ki}(t)|^{2}\}+\mathbb{E}\{|{\tt HWI}_{k}(t)|^{2}\}+\mathbb{E}\{|{\mu}_{k}^{\text{UE}}(t)|^{2}\}+1 . Proposition 1: Upon exploiting the MR precoding with arbitrary STAR-RIS passive BF \boldsymbol{\Phi}_{k} , the closed-form expression of the downlink ergodic SE of UE k can be derived in ( 13 ), where the SINR can be formulated as \displaystyle{\tt SINR}_{k}(t)=\frac{\gamma_{R}\gamma_{T}\rho e^{-\delta^{2}t}\left|\tr(\boldsymbol{\eta}_{k}^{1/2}\boldsymbol{\Omega}_{k})\right|^{2}}{D_{k}(t)}, (15) where D_{k}(t) can be rewritten as ( IV-B ) shown at the top of next page, and we have \tilde{\gamma}=(1-\gamma_{R})(1-\gamma_{T}) , \boldsymbol{\eta}_{k}^{1/2}=\boldsymbol{P}_{k}^{1/2}\otimes\boldsymbol{I}_{L} with \boldsymbol{P}_{k}^{1/2}=\diag\left(\sqrt{\eta_{1k}},\ldots,\sqrt{\eta_{Mk}}\right) , \boldsymbol{\Omega}_{k}=\diag\left(\boldsymbol{\Omega}_{1k},\ldots,\boldsymbol{\Omega}_{Mk}\right) . Furthermore, we have \boldsymbol{R}_{k}=\diag\left(\boldsymbol{R}_{1k},\ldots,\boldsymbol{R}_{Mk}\right) , \boldsymbol{A}_{k}=\diag(a_{1k},\ldots,a_{Mk}) with a_{mk}=|\tr(\boldsymbol{\Omega}_{mk})|^{2} , \boldsymbol{B}_{ik}=\diag(b_{1ik},\ldots,b_{Mik}) with b_{mik}=\left|\gamma_{T}\gamma_{R}p\tau_{p}\tr(\boldsymbol{R}_{mi}\boldsymbol{\Psi}_{mk}^{-1}\boldsymbol{R}_{mk})\right|^{2} , and \boldsymbol{\Xi}_{ik}=\diag(\boldsymbol{\Xi}_{1ik},\ldots,\boldsymbol{\Xi}_{Mik}) with \boldsymbol{\Xi}_{mik}=\boldsymbol{R}_{mi}\boldsymbol{R}_{mk}^{-1} . \displaystyle D_{k}(t) \displaystyle=\gamma_{T}\gamma_{R}\rho e^{-\varrho^{2}_{\phi}t}\left(1-e^{-\varrho^{2}_{\psi}t}\right)\left|\tr(\boldsymbol{\eta}_{k}^{1/2}\boldsymbol{\Omega}_{k})\right|^{2}+\gamma_{T}\rho\left(1-\gamma_{R}e^{-\varrho^{2}_{\phi}t}\right)\tr(\boldsymbol{P}_{k}\boldsymbol{A}_{k})+\tilde{\gamma}\rho\tr\left(\boldsymbol{\eta}_{k}(\diag(\boldsymbol{\Omega}_{k}))^{2}\right) \displaystyle+\sum_{i\in\mathcal{P}_{k}\setminus\{k\}}\left\{\gamma_{T}\rho\left(1-\gamma_{R}e^{-\varrho^{2}_{\phi}t}\right)\tr(\boldsymbol{P}_{i}\boldsymbol{B}_{ik})+\gamma_{T}\gamma_{R}\rho e^{-\varrho^{2}_{\phi}t}\left|\tr\left(\boldsymbol{\eta}_{i}^{1/2}\boldsymbol{\Xi}_{ik}\boldsymbol{\Omega}_{k}\right)\right|^{2}\right\} \displaystyle+\sum_{i=1}^{K}\rho\left[\gamma_{T}\tr(\boldsymbol{\eta}_{i}\boldsymbol{R}_{k}\boldsymbol{\Omega}_{i})+(1-\gamma_{T})\tr\left(\boldsymbol{\eta}_{i}\diag(\boldsymbol{\Omega}_{i})\diag(\boldsymbol{R}_{k})\right)\right]+1, (16) Proof: See Appendix B . \blacksquare Remark 1: Based on Proposition 1, we can observe that all the components of ( 14 ) are associated with the hardware quality factors and phase noise. The power of DS can be decreased by \gamma_{R}\gamma_{T}\rho(1-e^{-\delta^{2}t})\left|\tr(\boldsymbol{\eta}_{k}^{1/2}\boldsymbol{\Omega}_{k})\right|^{2} due to the transceiver phase noise. The increase of BU power can be formulated based on ( B-B ) as \gamma_{T}\gamma_{R}\rho\left(1-e^{-\varrho^{2}_{\phi}t}\right)\left[e^{-\varrho^{2}_{\phi}t}\left|\tr(\boldsymbol{\eta}_{k}^{1/2}\boldsymbol{\Omega}_{k})\right|^{2}+\tr(\boldsymbol{P}_{k}\boldsymbol{A}_{k})\right] , which is introduced by the realistic phase noise. The interference due to the pilot contamination can be formulated as \gamma_{T}\rho\left(1-\gamma_{R}e^{-\varrho^{2}_{\phi}t}\right)\tr(\boldsymbol{P}_{i}\boldsymbol{B}_{ik})+\gamma_{T}\gamma_{R}\rho e^{-\varrho^{2}_{\phi}t}\left|\tr\left(\boldsymbol{\eta}_{i}^{1/2}\boldsymbol{\Xi}_{ik}\boldsymbol{\Omega}_{k}\right)\right|^{2} , while the interference boost inflicted by pilot contamination can be mitigated by \sum_{i\in\mathcal{P}_{k}\setminus\{k\}}\left[\left|\tr\left(\boldsymbol{\eta}_{i}^{1/2}\boldsymbol{\Xi}_{ik}\boldsymbol{\Omega}_{k}\right)\right|^{2}-\tr(\boldsymbol{P}_{i}\boldsymbol{B}_{ik})\right]\gamma_{R}\gamma_{T}\rho\\ \left(1-e^{-\varrho^{2}_{\phi}t}\right) . V Joint Power Control and STAR-RIS Passive Beamforming Design In this section, we first formulate the max-min fairness optimization problem for the joint design of STAR-RIS passive BF and power control. Due to the non-convexity of the optimization problem, we then partition it into two sub-problems, and propose an AO-based algorithm to solve it. V-A Problem Formulation We aim for maximizing the worst SINR {\tt SINR}_{k}(t) at the t th channel use along all the UEs, upon designing the power control coefficients \boldsymbol{\eta}_{k} and the STAR-RIS passive BF matrix \boldsymbol{\Phi}_{k} for k=1,\ldots,K . Therefore, the joint optimization problem can be formulated as \displaystyle\mathop{\max}_{\boldsymbol{\eta}_{k},\boldsymbol{\Phi}_{k}}\min_{k}\ \displaystyle{\tt SINR}_{k}(t) (17a) s.t. \displaystyle\beta_{T,n}+\beta_{R,n}=1,\forall n\in\mathcal{N}, (17b) \displaystyle\beta_{k,n}\in[0,1],\theta_{k,n}\in[0,2\pi),\forall n\in\mathcal{N},k, (17c) \displaystyle\eta_{mk}\geq 0,\forall m,k, (17d) \displaystyle\sum_{k=1}^{K}\eta_{mk}\tr(\boldsymbol{\Omega}_{mk})\leq 1,\forall m, (17e) where ( 17b ) and ( 17c ) are constraints of the STAR-RIS passive BF matrices, while ( 17d ) and ( 17e ) denote the power control constraints. It can be observed that the optimization problem of ( 17 ) is non-convex, since its objective function and STAR-RIS passive BF-related constraints are all non-convex. Therefore, we solve the max-min SINR problem of ( 17 ) by an AO technique. The passive BF and power control coefficients are optimized alternately, while the other variables are fixed. Explicitly, the optimization problem of ( 17 ) can be decomposed into two sub-problems as follows. V-B The Sub-Problem of STAR-RIS Passive BF When the power control coefficients are fixed, the sub-problem of STAR-RIS passive BF can be cast as \displaystyle\mathop{\max}_{\beta_{T,n},\beta_{R,n},\theta_{T,n},\theta_{R,n}}\min_{k}\ \displaystyle{\tt SINR}_{k}(t) (18a) s.t. \displaystyle\eqref{eq_opt_p2},\eqref{eq_opt_p3}. (18b) It can be readily shown that the objective function and passive BF-related constraints of ( 18 ) are all non-convex, and the passive BF matrices \boldsymbol{\Phi}_{k} for k=1,\ldots,K among different UEs are highly coupled in our SINR expression of ( 15 ). Hence, it is hard (if not possible) to tackle the optimization problem of ( 18 ) upon invoking conventional optimization algorithms and its global optimal solution of is nontrivial to attain. Therefore, we propose an APSO algorithm to optimize the amplitudes and phase shifts of the STAR-RIS. Let us denote the passive BF parameter set as \mathcal{X}=\{\beta_{T,n},\beta_{R,n},\theta_{T,n},\theta_{R,n}:\forall n\in\mathcal{N}\} . Based on ( 17b ) and ( 17c ), a total of 3N parameters have to be optimized. Let us introduce \boldsymbol{x}=\{\boldsymbol{\beta}_{T},\boldsymbol{\theta}_{T},\boldsymbol{\theta}_{R}\} with \boldsymbol{\beta}_{T}=\{{\beta}_{T,1},\ldots,{\beta}_{T,N}\} , \boldsymbol{\theta}_{T}=\{{\theta}_{T,1},\ldots,{\theta}_{T,N}\} and \boldsymbol{\theta}_{R}=\{{\theta}_{R,1},\ldots,{\theta}_{R,N}\} . Let us furthermore consider the PSO population set \mathcal{L} with L_{P} particles, and exploit \beta_{T,n}\sim\mathcal{U}[0,1] and \theta_{k,n}\sim\mathcal{U}[0,2\pi) , \forall n\in\mathcal{N},k\in\{T,R\} at the initial iteration of the APSO. During the t_{P} th APSO iteration, the l_{P} th particle can be formulated as \boldsymbol{x}_{l_{P}}^{(t_{P})}=\left\{\boldsymbol{\beta}_{T,l_{P}}^{(t_{P})},\boldsymbol{\theta}_{T,l_{P}}^{(t_{P})},\boldsymbol{\theta}_{R,l_{P}}^{(t_{P})}\right\}=\left\{{x}_{l_{P},1}^{(t_{P})},\ldots,{x}_{l_{P},3N}^{(t_{P})}\right\} for l_{P}=1,\ldots,L_{P} , and all the L_{P} particles are updated at the same time. Based on the SINR values that the particles attain, the APSO algorithm records both the global and local optimal particles, yielding \boldsymbol{x}^{(t_{P})}_{\text{gbest}} and \boldsymbol{x}^{(t_{P})}_{l_{P},\text{pbest}} , respectively. The velocities of particles can be updated as \boldsymbol{v}^{(t_{P}+1)}_{l_{P}}=\omega^{(t_{P})}\boldsymbol{v}^{(t_{P})}_{l_{P}}+\boldsymbol{\Delta}_{l_{P}}^{(t_{P})} , where \boldsymbol{\Delta}_{l_{P}}^{(t_{P})}=c_{1}r_{1}\left(\boldsymbol{x}^{(t_{P})}_{l_{P},\text{pbest}}-\boldsymbol{x}^{(t_{P})}_{l_{P}}\right)+c_{2}r_{2}\left(\boldsymbol{x}^{(t_{P})}_{\text{gbest}}-\boldsymbol{x}^{(t_{P})}_{l_{P}}\right) with the acceleration coefficients c_{1}=c_{2}=1.496 [ 37 ] , r_{a}\sim\mathcal{U}[0,1] where a\in\{1,2\} . The adaptive inertia weight \omega^{(t_{P})} can be formulated as \omega^{(t_{P})}=\frac{e^{6\kappa_{t}}-1}{e^{6\kappa_{t}}+1}(\omega_{\text{max}}-\omega_{\text{min}})+\omega_{\text{min}} , where \kappa_{t}=(T_{P}-t_{P})/{T_{P}} with the maximum number of iterations T_{P} , while \omega_{\text{min}} and \omega_{\text{max}} denote the initial and final values of the inertia weight, respectively. Then the particles can be updated as \boldsymbol{x}_{l_{P}}^{(t_{P}+1)}=\boldsymbol{x}_{l_{P}}^{(t_{P})}+\boldsymbol{v}^{(t_{P}+1)}_{l_{P}} . After T_{P} iterations, the globally optimal particle \boldsymbol{x}^{(T_{P})}_{\text{gbest}} is selected to formulate the STAR-RIS passive BF \boldsymbol{\Phi}_{T} and \boldsymbol{\Phi}_{R} . Our proposed APSO procedure is summarized in Algorithm 1 . Algorithm 1 APSO algorithm for optimizing STAR-RIS passive BF in the t_{A} th AO iteration 1: The obtained power control efficient \boldsymbol{z}^{[t_{A}-1]}_{k} , c_{1} , c_{2} , \omega_{\text{min}} and \omega_{\text{max}} . 2: Preparation : Set the maximum number of iterations T_{P} . 3: Initialize The passive BF \boldsymbol{x}_{l_{p}}^{(0)} for l_{P}=1,\ldots,L_{P} . 4: for t_{P}=0 to T_{P} do 5: for l_{P}=1 to L_{P} do 6: Calculate {\tt SINR}_{k}(t)^{(t_{P})} based on particle \boldsymbol{x}_{l_{p}}^{(t_{P})} . 7: end for 8: Obtain \boldsymbol{x}_{l_{P},\text{pbest}}^{(t_{P})} and \boldsymbol{x}_{\text{gbest}}^{(t_{P})} . 9: \omega^{(t_{P})}=\frac{e^{6\kappa_{t}}-1}{e^{6\kappa_{t}}+1}(\omega_{\text{max}}-\omega_{\text{min}})+\omega_{\text{min}} . 10: for l_{P}=1 to L_{P} do 11: Calculate \boldsymbol{\Delta}_{l_{P}}^{t_{P}} . 12: \boldsymbol{v}^{(t_{P}+1)}_{l_{P}}=\omega^{(t_{P})}\boldsymbol{v}^{(t_{P})}_{l_{P}}+\boldsymbol{\Delta}_{l_{P}}^{(t_{P})} . 13: Updated particles \boldsymbol{x}_{l_{P}}^{(t_{P}+1)}=\boldsymbol{x}_{l_{P}}^{(t_{P})}+\boldsymbol{v}^{(t_{P}+1)}_{l_{P}} . 14: end for 15: end for 16: return passive BF \boldsymbol{\Phi}_{T}^{[t_{A}]} and \boldsymbol{\Phi}_{R}^{[t_{A}]} based on \boldsymbol{x}^{(T_{P})}_{\text{gbest}} . V-C The Sub-Problem of Power Control Fix the STAR-RIS passive BF coefficients and let z_{mk}\triangleq\sqrt{\eta_{mk}} , then we can formulate the sub-problem of power control by introducing the slack variables \varepsilon_{mk} , \varkappa_{ik} , q_{mk} and r_{mk} , yielding \displaystyle\mathop{\max}_{\mathcal{X}_{mik}}\min_{k}\ \displaystyle\overline{\tt{SINR}}_{k}(t) (19a) s.t. \displaystyle z_{mk}\geq 0,\forall m,k, (19b) \displaystyle\sum_{k=1}^{K}z^{2}_{mk}\tr(\boldsymbol{\Omega}_{mk})\leq 1,\forall m, (19c) \displaystyle\sum_{i\in\mathcal{P}_{k}\setminus\{k\}}z^{2}_{mi}b_{mik}\leq\varepsilon^{2}_{mk},\forall m,k, (19d) \displaystyle\sum_{m=1}^{M}z_{mi}\tr(\boldsymbol{\Xi}_{mik}\boldsymbol{\Omega}_{mk})\leq\varkappa_{ik},\forall i\neq k, (19e) \displaystyle\sum_{i=1}^{K}z_{mi}^{2}\tr(\boldsymbol{\Gamma}_{mk})\leq q^{2}_{mk},\forall m,k, (19f) \displaystyle\sum_{i=1}^{K}z_{mi}^{2}\tr(\boldsymbol{R}_{mk}\boldsymbol{\Omega}_{mi})\leq r^{2}_{mk},\forall m,k, (19g) where \mathcal{X}_{mik}=\{z_{mk},\varepsilon_{mk},\varkappa_{ik},q_{mk},r_{mk}\} , \boldsymbol{\Gamma}_{mk}=\diag(\boldsymbol{\Omega}_{mi})\diag(\boldsymbol{R}_{mk}) and we have \overline{\tt{SINR}}_{k}(t)={{\gamma_{R}\gamma_{T}\rho e^{-\delta^{2}t}}\left[\sum_{m=1}^{M}{z_{mk}}\tr(\boldsymbol{\Omega}_{mk})\right]^{2}}/{\bar{D}_{k}(t)} with \bar{D}_{k}(t) of ( V-C ) shown at the top of next page. \displaystyle\bar{D}_{k}(t) \displaystyle=\gamma_{R}\gamma_{T}\rho e^{-\varrho^{2}_{\phi}t}\left(1-e^{-\varrho^{2}_{\psi}t}\right)\left[\sum_{m=1}^{M}z_{mk}\tr(\boldsymbol{\Omega}_{mk})\right]^{2}+\gamma_{T}\rho\left(1-\gamma_{R}e^{-\varrho^{2}_{\phi}t}\right)\sum_{m=1}^{M}{z_{mk}^{2}}\left|\tr(\boldsymbol{\Omega}_{mk})\right|^{2} \displaystyle+\tilde{\gamma}\rho\sum_{m=1}^{M}{z_{mk}^{2}}\tr\left(\diag(\boldsymbol{\Omega}_{mk})^{2}\right)+\gamma_{T}\rho\left(1-\gamma_{R}e^{-\varrho^{2}_{\phi}t}\right)\sum_{m=1}^{M}\varepsilon_{mk}^{2}+\gamma_{T}\gamma_{R}\rho e^{-\varrho^{2}_{\phi}t}\sum_{i\in\mathcal{P}_{k}\setminus\{k\}}\varkappa_{ik}^{2} \displaystyle+(1-\gamma_{T})\rho\sum_{m=1}^{M}q^{2}_{mk}+\gamma_{T}\rho\sum_{m=1}^{M}r^{2}_{mk}+1. (20) The problem of ( 19 ) can be reformulated as \displaystyle\mathop{\max}_{\mathcal{X}_{mik},u}\ \displaystyle u (21a) s.t. \displaystyle u\leq\overline{\tt{SINR}}_{k}(t),k=1,\ldots,K, (21b) \displaystyle\eqref{eq_sub2_p2}-\eqref{eq_sub2_p7}. (21c) Proposition 2: The objective function and the problem of ( 21 ) are all quasi-concave. Proof: The proof is provided in Appendix C . \blacksquare Therefore, based on the SOCP feasibility bisection search of [ 38 ] , we can efficiently solve the problem in ( 21 ). Specifically, we solve a sequence of convex feasibility problems during each iteration, and the bisection method is detailed in Algorithm 2 . Specifically, the parameters u_{\text{max}} and u_{\text{min}} can be attained based on the maximum and minimum values of the worst SINR, upon invoking equal-power control (EPC) and random passive beamforming schemes. Algorithm 2 Bisection algorithm for optimizing power control coefficients in the t_{A} th AO iteration 1: The passive BF \boldsymbol{\Phi}_{T}^{[t_{A}-1]} and \boldsymbol{\Phi}_{R}^{[t_{A}-1]} , u_{\text{max}} and u_{\text{min}} which denote the range of values of ( 19a ). 2: Preparation : Set the tolerance parameter \epsilon_{\text{bi}}>0 . 3: Initialize Set u=\frac{u_{\text{min}}+u_{\text{max}}}{2} . 4: Solve the following convex feasibility problem: \displaystyle\begin{cases}\left\|\boldsymbol{v}_{k}^{[t_{A}]}\right\|\leq\sqrt{\tilde{u}(t)\gamma_{R}\gamma_{T}\rho e^{-\varrho^{2}_{\phi}t}}\sum\limits_{m=1}^{M}{z_{mk}^{[t_{A}]}}\tr(\boldsymbol{\Omega}_{mk}),\forall k,\\ z_{mk}^{[t_{A}]}\geq 0,\forall m,k,\\ \sum_{k=1}^{K}\left(z_{mk}^{[t_{A}]}\right)^{2}\tr(\boldsymbol{\Omega}_{mk})\leq 1,\forall m,\\ \sum_{i\in\mathcal{P}_{k}\setminus\{k\}}\left(z_{mi}^{[t_{A}]}\right)^{2}b_{mik}\leq\varepsilon^{2}_{mk},\forall m,k,\\ \sum_{m=1}^{M}z_{mi}^{[t_{A}]}\tr(\boldsymbol{\Xi}_{mik}\boldsymbol{\Omega}_{mk})\leq\varkappa_{ik},\forall i\neq k,\\ \sum_{i=1}^{K}\left(z_{mi}^{[t_{A}]}\right)^{2}\tr(\diag(\boldsymbol{\Omega}_{mi})\diag(\boldsymbol{R}_{mk}))\leq q^{2}_{mk},\forall m,k,\\ \sum_{i=1}^{K}\left(z_{mi}^{[t_{A}]}\right)^{2}\tr(\boldsymbol{R}_{mk}\boldsymbol{\Omega}_{mi})\leq r^{2}_{mk},\forall m,k,\\ 00 , \forall y . We consider a harsh propagation scenario, where the M APs are uniformly distributed in a square region of x_{\text{AP}}\in[-500,-250] m and y_{\text{AP}}\in[250,500] m. Moreover, the K_{R} UEs are uniformly distributed within a sub-region of the reflection space yielding x_{R},y_{R}\in[-325,-125] m, while the remaining K_{T} UEs are positioned within the sub-region as x_{T}\in[125,325] m and y_{T}\in[-125,-325] m. Unless stated otherwise, other simulation parameters are summarized in Table II . For the conventional EPC scheme, we assume that the power control coefficient of AP m remains constant when associated with different UEs, i.e., we have \eta_{mk}=\left(\sum_{i=1}^{K}\tr(\boldsymbol{\Omega}_{mi})\right)^{-1},\forall m,k . The random BF (RBF) associated with the EPC technique is utilized, when we evaluate our SE performance analysis results. The other channel-related parameters are the same as those in [ 6 ] . Furthermore, we exploit the CF-mMIMO (denoted as “Cell-free”) and the conventional RIS-CF-mMIMO (denoted as “RIS-cell-free”) with ideal hardware as benchmarks. Explicitly, for the RIS-CF-mMIMO system, we harness two reflection-only RISs having N/2 elements adjacent to each other at the coordinate of (0,0) . TABLE II: Simulation parameters Parameters Values Carrier frequency, f_{c} 2 GHz Bandwidth, B 10 MHz Length of coherence block, \tau_{c} 100 Coherence bandwidth, B_{c} 100 KHz Coherence time, T_{c} 1 ms Power of pilots, p 0.2 W Maximum transmitted power of symbols, \rho 1 W Symbol duration, T_{s} 10 \mu s Oscillator constants, c_{i},\forall i 1\times 10^{-18} Spacings of RIS elements, d_{\text{RIS}} \lambda/4 Spacings of AP elements, d_{\text{AP}} \lambda/2 Height of UEs 1.5 m Height of RIS 30 m Height of APs 12.5 m Max inertia weight, \omega_{\text{max}} 0.9 Min inertia weight, \omega_{\text{min}} 0.4 Number of UEs in the reflection space, K_{R} 3 Number of UEs in the reflection space, K_{T} 3 Number of antennas with each AP, L 4 Horizontal width of each RIS element, d_{H} \lambda/4 Vertical height of each RIS element, d_{V} \lambda/4 Number of pilots, \tau_{p} 3 Tolerance parameter of bisection algorithm, \epsilon_{\text{bi}} 0.01 Max number of APSO iterations, T_{P} 100 Number of APSO particles, L_{P} 10 RIS phase error parameter, \vartheta 3 Number of APs, M , 16 Number of RIS elements, N , 16 VI-B Performance of STAR-RIS-CF-mMIMO Systems We investigate the cumulative distribution function (CDF) of the downlink sum SEs of our proposed STAR-RIS-CF-mMIMO systems having different hardware quality factors \gamma_{T} and \gamma_{R} in Fig. 3 . The closed-form expression of the sum SEs and the corresponding Monte-Carlo simulation results are computed based on ( 13 ), ( 14 ) and ( IV-B ). From Fig. 3 , we have the following observations. Firstly, given \gamma_{T}=\gamma_{R}=1 , the STAR-RIS-CF-mMIMO systems are capable of attaining significant SE performance gains compared to the conventional RIS-CF-mMIMO and CF-mMIMO systems. This is because higher degrees of freedom (DoF) can be achieved by simultaneous transmission and reception using the STAR-RIS. Specifically, the 95\% -likely SE of STAR-RIS-CF-mMIMO systems is about 14.7 and 1.7 times higher than that of the CF-mMIMO and RIS-CF-mMIMO systems. Moreover, the STAR-RIS-CF-mMIMO can always attain a higher sum SE than the CF-mMIMO system, even in the worst hardware case. Furthermore, the receiver hardware quality factor \gamma_{R} may inflict a more significant negative impact on the sum SE than \gamma_{T} , implying that the UE quality is more important than its AP counterpart. This observation is consistent with the conclusions of [30]. Finally, the perfect overlap between the closed-form expression of sum SE and Monte-Carlo simulations showcases the accuracy of our analytical results, which also implies the tightness of our derived use-and-then-forget bound. Fig. 2: CDF of the downlink sum SE for the STAR-RIS-CF-mMIMO with different \gamma_{T} and \gamma_{R} ( M=20,N=128,\vartheta=4 ). Fig. 3: Downlink sum SE versus the number of APs M operating at different RIS phase error parameter \vartheta ( N=64,\gamma_{T}=\gamma_{R}=1 ). In Fig. 3 , we investigate the sum SE of the STAR-RIS-CF-mMIMO for \gamma_{T}=\gamma_{R}=1 versus the number of APs M , and we consider different values of \vartheta . It can be observed that higher SEs can be attained by deploying more APs, since more efficient beamforming can be achieved when we increase the number of spatial DoF. Moreover, given M=20 , the STAR-RIS-CF-mMIMO systems having no phase errors are capable of providing about 172.7\% and 62.2\% higher sum SE compared to the CF-mMIMO and RIS-CF-mMIMO systems, respectively. Furthermore, the higher the values of \vartheta , the higher SE values are achieved by the STAR-RIS-CF-mMIMO, since lower phase errors are imposed on the STAR-RIS. Specifically, the \vartheta=3 scenario is respectively capable of achieving 24.9\% and 54.8\% higher sum SEs than the \vartheta=1 and \vartheta=0 cases when M=30 . We emphasize that the STAR-RIS-CF-mMIMO system can always attain a significantly higher SE than its CF-mMIMO counterpart, even under \vartheta=0 . Additionally, it can be seen that the average SE per UE is less than 3 bit/s/Hz, since we consider a harsh transmission scenario of high path loss for the direct AP-UE links. The average SE per UE is depicted as a function of the number of UEs K in Fig. 5 , where different hardware quality factors \gamma_{T} and \gamma_{R} are considered. It can be observed that supporting more UEs can yield a significant SE performance erosion, since higher inter-user interference (IUI) induced pilot contamination is encountered. Moreover, the SE degradation introduced by higher IUI can be mitigated using a transceiver of better hardware quality. Furthermore, the performance gap, which is constrained by phase errors, narrows as the value of K increases. However, at a value of K=22 , the STAR-RIS-CF-mMIMO is still capable of achieving 41.7\% and 183.3\% average SE improvements compared to its RIS-CF-mMIMO and CF-mMIMO counterparts, which underlines the importance of deploying STAR-RISs to compensate for harsh propagation. Fig. 4: Downlink average SE per UE for STAR-RIS-CF-mMIMO, RIS-CF-mMIMO and CF-mMIMO versus the number of UEs K operating at different hardware quality factors. Fig. 5: Downlink average SE per UE for STAR-RIS-CF-mMIMO, RIS-CF-mMIMO and CF-mMIMO versus the number of pilot \tau_{p} operating at different hardware quality factors with K=10 . In Fig. 5 , the effect of the number of pilots \tau_{p} is investigated for different hardware quality factors. From Fig. 5 , we have the following observations. Firstly, the SE of all the systems can be enhanced by using more pilots, since lower pilot contamination can be attained. Moreover, given the values of \gamma_{T} ( \gamma_{R} ), lower values of \gamma_{R} ( \gamma_{T} ) degrade the SE performance. This is because lower hardware quality factors introduce an avoidable transceiver HWIs. Furthermore, the SEs of STAR-RIS-CF-mMIMOs with (\gamma_{T},\gamma_{R})=(0.8,1) and (\gamma_{T},\gamma_{R})=(1,0.8) are still higher compared to the RIS-CF-mMIMO and CF-mMIMO systems having ideal hardware, yielding 1.03 and 25.6 times higher SE, respectively. Fig. 6: Average SE per UE for STAR-RIS-CF-mMIMO, RIS-CF-mMIMO and CF-mMIMO versus the number of antennas per AP L operating at different hardware quality factors and LM=80 ( K=4,\tau_{p}=4 ). Fig. 7: Sum SE for STAR-RIS-CF-mMIMO versus the size of RIS elements d_{H}\times d_{V} operating at different hardware quality factors with K=10 . We compare the average SE per UE of both STAR-RIS-CF-mMIMO, RIS-CF-mMIMO and conventional CF-mMIMO systems versus different number of antennas per AP L in Fig. 7 , while the total number of antennas remains fixed at LM=80 . We can see from Fig. 7 that although the average SE of our STAR-RIS-CF-mMIMO system with \gamma_{T}=\gamma_{R}=1 still outperforms RIS-CF-mMIMO and CF-mMIMO, there is a significant UE erosion as L increases. This observation can be explained as follows. Firstly, a higher value of L implies that fewer APs are deployed, since the number of antennas is unchanged, leading to higher path losses. Secondly, a lower value of M tends to yield a lower macro-diversity. Therefore, we can readily show that macro-diversity is the dominant factor for this scenario, rather than the array gain at the AP side. In Fig. 7 , we compare the downlink sum SE for different size of elements, while also different hardware quality factors are considered, and the total number of STAR-RIS elements N remains unchanged. Moreover, higher values of d_{H}d_{V} imply that the size of the RIS Nd_{H}d_{V} increases. It can be seen from Fig. 7 that a better sum SE performance can be attained upon increasing the size of each RIS element. Moreover, lower values of \gamma_{R} always result in significant SE erosion, consistent with the observations shown in Fig. 3 -Fig. 7 . In Fig. 8 , the sum SE against the number of RIS elements N over different RIS deployment positions is shown, where the weighted MMSE (WMMSE) precoding [ 39 ] is also invoked as a benchmark to further characterize the performance of our proposed STAR-RIS-CF-mMIMO. Specifically, we utilize the following three different RIS deployment positions: 1) P-UE: the RIS is deployed near the UEs, i.e., (x_{\text{RIS}},y_{\text{RIS}})=(0,-125) m; 2) P-AP: the RIS is deployed near the APs, i.e., (x_{\text{RIS}},y_{\text{RIS}})=(0,250) m; 3) P-ZERO: the RIS is deployed at the zero point, i.e., (x_{\text{RIS}},y_{\text{RIS}})=(0,0) m. We can make the following observations from Fig. 8 . Firstly, given the precoding scheme and the number of RIS elements N , the P-UE RIS deployment can attain the highest sum SE, followed by the P-AP and P-ZERO topologies. This trend implies that the SE of our STAR-RIS-CF-mMIMO system can be enhanced by optimizing the STAR-RIS deployment location. Moreover, when the RIS deployment position and the number of RIS elements N are fixed, it can be observed that the WMMSE precoding is capable of attaining higher sum SE compared to the conventional MR precoding. This is because the WMMSE technique can converge to a stationary point of the max weighted sum rate optimization problem [ 39 , 40 ] . It should be observed that the SE gain is attained by WMMSE precoding at the cost of high complexity, which is introduced by matrix inversion [ 39 ] . Under the MR scenario, the sum SE converges, when N\geq 36 . However, the sum SE can still be enhanced using more RIS elements in the WMMSE counterparts. This implies that the WMMSE precoding can utilize the spatial DoF provided by the STAR-RIS in the proposed system. Fig. 8: Sum SE with WMMSE and MR precoding against the number RIS elements N over different RIS positions ( K=20,M=30,\gamma_{T}=\gamma_{R}=1,\vartheta=1 ). VI-C Performance of AO Algorithm The CDFs of the minimum SE using the proposed AO-based algorithm and the conventional RBF with EPC scheme for different numbers of UEs are shown in Fig. 10 . It can be observed that our proposed AO-based algorithm significant increases the minimum SE compared to the conventional RBF using the EPC scheme, which implies that the AO-based algorithm is capable of improving the max-min SINR fairness. Moreover, similar to Fig. 5 , an increase in the value of K can lead to performance erosion, since higher pilot contamination and IUI must be tolerated. The CDF of minimum SE using the AO-based algorithm and the conventional RBF with EPC are investigated in Fig. 10 , where different numbers of APs M are considered. It can be observed from Fig. 10 , that the worst SE per UE is significantly improved upon invoking the proposed AO-based algorithm, regardless of the number of APs. Moreover, increasing the number of APs is capable of achieving a higher 95\% -likely minimum SE, which is consistent with the observation of Fig. 3 . Fig. 9: CDF of the downlink minimum SE for the STAR-RIS-CF-mMIMO with different K ( M=15,\gamma_{T}=\gamma_{R}=0.8 ). Fig. 10: CDF of the downlink minimum SE for the STAR-RIS-CF-mMIMO with different M ( \gamma_{T}=\gamma_{R}=0.8 ). Fig. 11: Convergence of the proposed AO algorithms using APSO and PSO for STAR-RIS-CF-mMIMO with different M ( \gamma_{T}=\gamma_{R}=0.8 ). In Fig. 11 , the convergence of the proposed AO-based algorithm is plotted. Explicitly, upon solving the sub-problems alternatively, we can obtain the final solution of the joint design optimization problem. Moreover, the solution obtained from each sub-problem is invoked as the input of the other sub-problem. It is demonstrated that our AO-based algorithm using the proposed APSO can achieve convergence using as few as two AO iterations. By contrast, the AO algorithm relying on the conventional PSO can only converge after three AO iterations. Furthermore, given the value of M , the minimum SE attained by the APSO-based AO algorithm is higher than its PSO-based counterpart. This is because the APSO algorithm achieves better search capability with adaptive inertia weight. The running times of the AO algorithms using APSO and PSO are depicted in Fig. 12 , where the remaining parameters are the same as in Fig. 11 . An Inter Core i9-14900HX processor is employed. It can be observed that given the value of M , the APSO-based AO algorithm is more computationally efficient than its PSO-based counterpart, since the AO algorithm with PSO needs more iterations to achieve convergence. In addition, observe that all types of AO algorithms can converge within the coherence interval of T_{c}=1 ms. Fig. 12: Running times of the proposed AO algorithms including APSO and PSO for STAR-RIS-CF-mMIMO with different M ( \gamma_{T}=\gamma_{R}=0.8 ). VII Conclusions STAR-RIS-CF-mMIMO having realistic imperfect hardware was proposed and its ergodic downlink SE analysis was presented, where both the transceiver hardware impairment and the STAR-RIS phase errors are considered. Then, upon investigating both the pilot contamination and HWIs, the linear MMSE cascade channel estimation was conceived. Moreover, a closed-form expression of the downlink ergodic SE of our systems was derived based on the MR precoding scheme. Our numerical results have shown the accuracy of the SE derived in closed-form by comparing it to our Monte-Carlo simulation results. Furthermore, the joint power control and STAR-RIS passive BF design were investigated to maximize the worst-case ergodic SE among different UEs. To solve the resultant non-convex max-min fairness problems, we decomposed it into two sub-problems, where the proposed APSO and bisection methods were conceived, respectively. The complexity and convergence of the proposed AO-based algorithm were analyzed. Our simulation results illustrated that the STAR-RIS-CF-mMIMO system attains higher SE than its conventional counterparts, while the SE under different hardware parameters was also investigated. Finally, the effectiveness of our AO-based algorithm was validated by its SE enhancements compared to the conventional solutions. Appendix A Useful Results Lemma 1 [ 36 ] : Let \boldsymbol{A}\in\mathbb{C}^{L\times N} denote a L\times N -dimensional matrix whose elements are i.i.d RVs with zero mean and \xi_{a} variance. Consider a deterministic matrix \boldsymbol{Z}\in\mathbb{C}^{N\times N} . Then, we have \mathbb{E}\left\{\boldsymbol{A}\boldsymbol{Z}\boldsymbol{A}^{H}\right\}=\xi_{a}\tr(\boldsymbol{Z})\boldsymbol{I}_{L} . Lemma 2 [ 15 ] : Let us consider a K -dimensional vector \boldsymbol{c}\sim\mathcal{CN}(\boldsymbol{0},\boldsymbol{C}) with the covariance matrix \boldsymbol{C}\in\mathbb{C}^{K\times K} , and a deterministic matrix \boldsymbol{A}\in\mathbb{C}^{K\times K} . Then, we can obtain \mathbb{E}\left\{|\boldsymbol{c}^{H}\boldsymbol{A}\boldsymbol{c}|^{2}\right\}=\left|\tr(\boldsymbol{A}\boldsymbol{C})\right|^{2}+\tr(\boldsymbol{A}\boldsymbol{C}\boldsymbol{A}^{H}\boldsymbol{C}) . Appendix B Proof of Proposition 1 B-A Derivation of \left|{\tt DS}_{k}(t)\right|^{2} Since the channel estimate \hat{\boldsymbol{h}}_{mk}(0) and channel estimation error \tilde{\boldsymbol{h}}_{mk}(0) are uncorrelated, the desired signal term {\tt DS}_{k}(t) can be formulated as \displaystyle{\tt DS}_{k}(t) \displaystyle=\sqrt{\gamma_{R}\gamma_{T}\rho}\mathbb{E}\left\{\sum_{m=1}^{M}\sqrt{\eta_{mk}}\boldsymbol{f}^{H}_{mk}\hat{\boldsymbol{h}}_{mk}(0)e^{-j\varphi_{mk}(t)}\right\} \displaystyle\overset{(a)}{=}\sqrt{\gamma_{R}\gamma_{T}\rho}\sum_{m=1}^{M}\sqrt{\eta_{mk}}\tr(\boldsymbol{\Omega}_{mk})e^{-\frac{\delta^{2}t}{2}}, (22) where \chi_{mk}(t)=e^{-j\Delta\varphi_{mk}(t)} with \Delta\varphi_{mk}(t)=\varphi_{mk}(t)-\varphi_{mk}(0) , while we invoke \mathbb{E}\left\{e^{j[\varphi_{mk}(t_{1})-\varphi_{mk}(t_{2})]}\right\}=e^{-\frac{\delta^{2}|t_{1}-t_{2}|}{2}} in (a) . Here we introduce \boldsymbol{\eta}_{k}^{1/2}=\diag\left(\sqrt{\eta_{1k}},\ldots,\sqrt{\eta_{Mk}}\right)\otimes\boldsymbol{I}_{L} and \boldsymbol{\Omega}_{k}=\diag\left(\boldsymbol{\Omega}_{1k},\ldots,\boldsymbol{\Omega}_{Mk}\right) . Hence, we can obtain \left|{\tt DS}_{k}(t)\right|^{2}=\gamma_{R}\gamma_{T}\rho e^{-\delta^{2}t}\left|\tr(\boldsymbol{\eta}_{k}^{1/2}\boldsymbol{\Omega}_{k})\right|^{2} . B-B Derivation of \mathbb{E}\left\{|{\tt BU}_{k}(t)|^{2}\right\} Let T_{0}=\sum_{m=1}^{M}\sqrt{\eta_{mk}}\boldsymbol{h}^{H}_{mk}(t)\hat{\boldsymbol{h}}_{mk}(0) . Then, we have \displaystyle\mathbb{E}\left\{|{\tt BU}_{k}(t)|^{2}\right\}={\gamma_{R}\gamma_{T}\rho}\mathbb{E}\left\{\left|T_{0}\right|^{2}\right\}-|{\tt DS}_{k}(t)|^{2}, (23) where we can formulate \mathbb{E}\left\{\left|T_{0}\right|^{2}\right\}=T_{1}+T_{2} with T_{1}=\mathbb{E}\left\{\left|\sum_{m=1}^{M}\sqrt{\eta_{mk}}\hat{\boldsymbol{h}}^{H}_{mk}(0)\hat{\boldsymbol{h}}_{mk}(0)\chi_{mk}(t)\right|^{2}\right\} and T_{2}=\mathbb{E}\left\{\left|\sum_{m=1}^{M}\sqrt{\eta_{mk}}\tilde{\boldsymbol{h}}^{H}_{mk}(0)\hat{\boldsymbol{h}}_{mk}(0)\chi_{mk}(t)\right|^{2}\right\} . Let \hat{\boldsymbol{h}}_{k}(0)=\left(\hat{\boldsymbol{h}}_{1k}^{H}(0),\ldots,\hat{\boldsymbol{h}}_{Mk}^{H}(0)\right)^{H} and \boldsymbol{\Delta}_{k}(t)=\diag\left(\chi_{1k}(t),\ldots,\chi_{Mk}(t)\right)\otimes\boldsymbol{I}_{L} . Then, T_{1}=\mathbb{E}_{\boldsymbol{\Delta}}\left\{\left|\hat{\boldsymbol{h}}_{k}^{H}(0)\boldsymbol{\Delta}_{k}(t)\boldsymbol{\eta}_{k}^{1/2}\hat{\boldsymbol{h}}_{k}(0)\right|^{2}\right\} can be reformulated as \displaystyle T_{1} \displaystyle=\mathbb{E}_{\boldsymbol{\Delta}}\left\{\left|\tr\left(\boldsymbol{\Delta}_{k}(t)\boldsymbol{\eta}_{k}^{1/2}\boldsymbol{\Omega}_{k}\right)\right|^{2}\right\} \displaystyle+\mathbb{E}_{\boldsymbol{\Delta}}\left\{\tr\left(\boldsymbol{\Delta}_{k}(t)\boldsymbol{\eta}_{k}^{1/2}\boldsymbol{\Omega}_{k}\boldsymbol{\eta}_{k}^{1/2}\boldsymbol{\Delta}_{k}^{H}(t)\boldsymbol{\Omega}_{k}\right)\right\} \displaystyle=\mathbb{E}\left\{\left|\sum_{m=1}^{M}\tr\left(\sqrt{\eta_{mk}}\boldsymbol{\Omega}_{mk}\chi_{mk}(t)\right)\right|^{2}\right\}+\tr\left(\boldsymbol{\eta}_{k}\boldsymbol{\Omega}_{k}^{2}\right). (24) Then we can formulate T_{1} as \displaystyle T_{1} \displaystyle=\sum_{m=1}^{M}\eta_{mk}|\tr(\boldsymbol{\Omega}_{mk})|^{2}+\sum_{m=1}^{M}\eta_{mk}\tr\left(\boldsymbol{\Omega}_{mk}^{2}\right) \displaystyle+e^{-\varrho^{2}_{\phi}t}\sum_{m=1}^{M}\sum_{n\neq m}^{M}\sqrt{\eta_{mk}\eta_{nk}}\tr(\boldsymbol{\Omega}_{mk})\tr(\boldsymbol{\Omega}_{nk}). (25) Moreover, we have \mathbb{E}\left\{\tilde{\boldsymbol{h}}_{mk}^{H}(0)\hat{\boldsymbol{h}}_{mk}(0)\hat{\boldsymbol{h}}_{nk}^{H}(0)\tilde{\boldsymbol{h}}_{nk}(0)\right\}=0 with n\neq m , since the estimated channels of different APs are independent. Hence, we can derive T_{2}=\sum_{m=1}^{M}\eta_{mk}\tr\left((\boldsymbol{R}_{mk}-\boldsymbol{\Omega}_{mk})\boldsymbol{\Omega}_{mk}\right) . Therefore, we can obtain \mathbb{E}\left\{\left|T_{0}\right|^{2}\right\} . By introducing \boldsymbol{P}_{k}=\diag(\eta_{1k},\ldots,\eta_{Mk}) , \boldsymbol{A}_{k}=\diag(a_{1k},\ldots,a_{Mk}) with a_{mk}=|\tr(\boldsymbol{\Omega}_{mk})|^{2} and \boldsymbol{R}_{k}=\diag(\boldsymbol{R}_{1k},\ldots,\boldsymbol{R}_{Mk}) , we can finally derive \mathbb{E}\left\{|{\tt BU}_{k}(t)|^{2}\right\} as \displaystyle\gamma_{T}\gamma_{R}\rho\left\{e^{-\varrho^{2}_{\phi}t}\left(1-e^{-\varrho^{2}_{\psi}t}\right)\left|\tr(\boldsymbol{\eta}_{k}^{1/2}\boldsymbol{\Omega}_{k})\right|^{2}\right. \displaystyle\left.+\left(1-e^{-\varrho^{2}_{\phi}t}\right)\tr(\boldsymbol{P}_{k}\boldsymbol{A}_{k})+\tr(\boldsymbol{\eta}_{k}\boldsymbol{R}_{k}\boldsymbol{\Omega}_{k})\right\}. (26) B-C Derivation of \sum_{i\neq k}^{K}\mathbb{E}\left\{|{\tt UI}_{ki}(t)|^{2}\right\} For the UE interference term, we can write \sum_{i\neq k}^{K}\mathbb{E}\left\{|{\tt UI}_{ki}(t)|^{2}\right\} as \displaystyle\sum_{i\notin\mathcal{P}_{k}}\mathbb{E}\left\{|{\tt UI}_{ki}(t)|^{2}\right\}+\sum_{i\in\mathcal{P}_{k}\setminus\{k\}}\mathbb{E}\left\{|{\tt UI}_{ki}(t)|^{2}\right\}=T_{3}+T_{4}. (27) Based on the scenarios of i\notin\mathcal{P}_{k} and i\in\mathcal{P}_{k}\setminus\{k\} , let us denote the non-coherence and coherence interference terms as T_{3}=T_{31}+T_{32} and T_{4}=T_{41}+T_{42} according to the conditions of n=m and n\neq m , respectively. For the case of n=m and i\notin\mathcal{P}_{k} , we can obtain \displaystyle T_{31} \displaystyle=\gamma_{T}\gamma_{R}\rho\sum_{i\notin\mathcal{P}_{k}}\sum_{m=1}^{M}\eta_{mi}\mathbb{E}\left\{\left|\boldsymbol{h}^{H}_{mk}(0)\hat{\boldsymbol{h}}_{mi}(0)\right|^{2}\right\} \displaystyle=\gamma_{T}\gamma_{R}\rho\sum_{i\notin\mathcal{P}_{k}}\sum_{m=1}^{M}\eta_{mi}\tr\left(\boldsymbol{R}_{mk}\boldsymbol{\Omega}_{mi}\right). (28) Since the channel estimates of different APs are independent, we can formulate T_{32}=0 when n\neq m and i\notin\mathcal{P}_{k} . When n=m and i\in\mathcal{P}_{k}\setminus\{k\} , we have T_{4} as \displaystyle\check{\gamma}\rho\sum_{i\in\mathcal{P}_{k}\setminus\{k\}}\sum_{m=1}^{M}\eta_{mi}\mathcal{I}_{1}+\check{\gamma}\rho\sum_{i\in\mathcal{P}_{k}\setminus\{k\}}\sum_{m=1}^{M}\eta_{mi}\mathcal{I}_{2}, (29) where \check{\gamma}=\gamma_{T}\gamma_{R} , \mathcal{I}_{1}=\mathbb{E}\left\{\left|\hat{\boldsymbol{h}}_{mk}^{H}(0)\hat{\boldsymbol{h}}_{mi}(0)\right|^{2}\right\} and \mathcal{I}_{2}=\mathbb{E}\left\{\left|\tilde{\boldsymbol{h}}_{mk}^{H}(0)\hat{\boldsymbol{h}}_{mi}(0)\right|^{2}\right\} . Since we have \boldsymbol{z}_{mk}(0)=\boldsymbol{z}_{mi}(0) and \boldsymbol{\Psi}_{mk}=\boldsymbol{\Psi}_{mi} under the scenario of n=m and i\in\mathcal{P}_{k}\setminus\{k\} , \mathcal{I}_{1} can be expressed as \displaystyle\gamma_{T}^{2}\gamma_{R}^{2}p^{2}\tau_{p}^{2}\mathbb{E}\left\{\left|\boldsymbol{z}^{H}_{mk}(0)\boldsymbol{\Psi}^{-1}_{mk}\boldsymbol{R}_{mk}\boldsymbol{R}_{mi}\boldsymbol{\Psi}^{-1}_{mi}\boldsymbol{z}_{mi}(0)\right|^{2}\right\} \displaystyle\overset{(a)}{=}\gamma_{T}^{2}\gamma_{R}^{2}p^{2}\tau_{p}^{2}\mathbb{E}\left\{\left|\boldsymbol{c}^{H}\boldsymbol{\Psi}^{-1/2}_{mk}\boldsymbol{R}_{mk}\boldsymbol{R}_{mi}\boldsymbol{\Psi}^{-1/2}_{mi}\boldsymbol{c}\right|^{2}\right\} \displaystyle\overset{(b)}{=}\gamma_{T}^{2}\gamma_{R}^{2}p^{2}\tau_{p}^{2}\left|\tr(\boldsymbol{R}_{mi}\boldsymbol{\Psi}^{-1}_{mk}\boldsymbol{R}_{mk})\right|^{2}+\tr\left(\boldsymbol{\Omega}_{mk}\boldsymbol{\Omega}_{mi}\right), (30) where \boldsymbol{z}_{mk}(0)\sim\mathcal{CN}(\boldsymbol{0},\boldsymbol{\Psi}_{mk}) and \boldsymbol{c}\sim\mathcal{CN}(\boldsymbol{0},\boldsymbol{I}_{L}) are invoked in (a) , while we use Lemma 2 in (b) . We can readily show that \mathcal{I}_{2}=\tr\left(\left(\boldsymbol{R}_{mk}-\boldsymbol{\Omega}_{mk}\right)\boldsymbol{\Omega}_{mi}\right) , hence we have T_{41}=\gamma_{T}\gamma_{R}\rho\sum_{i\in\mathcal{P}_{k}\setminus\{k\}}\sum_{m=1}^{M}\eta_{mi}\left[\gamma_{T}^{2}\gamma_{R}^{2}p^{2}\tau_{p}^{2}\left|\tr(\boldsymbol{R}_{mi}\boldsymbol{\Psi}^{-1}_{mk}\right.\right.\\ \left.\left.\boldsymbol{R}_{mk})\right|^{2}+\tr\left(\boldsymbol{R}_{mk}\boldsymbol{\Omega}_{mi}\right)\right] . Under the scenario of n\neq m and i\in\mathcal{P}_{k}\setminus\{k\} , we have T_{42}=\gamma_{T}\gamma_{R}\rho e^{-\varrho^{2}_{\phi}t}\sum_{i\in\mathcal{P}_{k}\setminus\{k\}}\sum_{m=1}^{M}\sum_{n\neq m}^{M}\sqrt{\eta_{mi}\eta_{ni}}\\ \mathbb{E}\left\{\hat{\boldsymbol{h}}_{mk}^{H}(0)\hat{\boldsymbol{h}}_{mi}(0)\right\}\mathbb{E}\left\{\hat{\boldsymbol{h}}_{ni}^{H}(0)\hat{\boldsymbol{h}}_{nk}(0)\right\} . Similar to the expression of ( B-C ), we have \mathbb{E}\left\{\hat{\boldsymbol{h}}_{mk}^{H}(0)\hat{\boldsymbol{h}}_{mi}(0)\right\}=\gamma_{T}\gamma_{R}p\tau_{p}\tr\left(\boldsymbol{R}_{mi}\boldsymbol{\Psi}_{mk}^{-1}\boldsymbol{R}_{mk}\right) and \mathbb{E}\left\{\hat{\boldsymbol{h}}_{ni}^{H}(0)\hat{\boldsymbol{h}}_{nk}(0)\right\}=\gamma_{T}\gamma_{R}p\tau_{p}\tr\left(\boldsymbol{R}_{nk}\boldsymbol{\Psi}_{nk}^{-1}\boldsymbol{R}_{ni}\right) . Consequently we can obtain T_{4}=T_{41}+T_{42} . Let \boldsymbol{B}_{ik}=\diag(b_{1ik},\ldots,b_{Mik}) with b_{mik}=\left|\gamma_{T}\gamma_{R}p\tau_{p}\tr(\boldsymbol{R}_{mi}\boldsymbol{\Psi}_{mk}^{-1}\boldsymbol{R}_{mk})\right|^{2} and \boldsymbol{\Xi}_{ik}=\diag(\boldsymbol{\Xi}_{1ik},\ldots,\boldsymbol{\Xi}_{Mik}) with \boldsymbol{\Xi}_{mik}=\boldsymbol{R}_{mi}\boldsymbol{R}_{mk}^{-1} and combine the above derived results, \sum_{i\neq k}^{K}\mathbb{E}\left\{|{\tt UI}_{ki}(t)|^{2}\right\}/\gamma_{T}\gamma_{R}\rho can be obtained as \displaystyle\sum_{i\neq k}\tr(\boldsymbol{\eta}_{i}\boldsymbol{R}_{k}\boldsymbol{\Omega}_{i})+\sum_{i\in\mathcal{P}_{k}\setminus\{k\}}e^{-\varrho^{2}_{\phi}t}\left|\tr\left(\boldsymbol{\eta}_{i}^{1/2}\boldsymbol{\Xi}_{ik}\boldsymbol{\Omega}_{k}\right)\right|^{2} \displaystyle+\left(1-e^{-\varrho^{2}_{\phi}t}\right)\tr(\boldsymbol{P}_{k}\boldsymbol{B}_{ik}). (31) B-D Derivation of \mathbb{E}\left\{\left|{\tt HWI}_{k}(t)\right|^{2}\right\} We can express the transmitter HWIs term as \mathbb{E}\left\{\left|{\tt HWI}_{k}(t)\right|^{2}\right\}=\gamma_{R}\sum_{m=1}^{M}\mathbb{E}\left\{\left|\boldsymbol{h}^{H}_{mk}(t)\boldsymbol{\mu}^{\text{AP}}_{m}(t)\right|^{2}\right\}=\gamma_{R}(1-\gamma_{T})\rho\sum_{i=1}^{K}\tr\left(\boldsymbol{\eta}_{i}\diag(\boldsymbol{\Omega}_{i})\boldsymbol{R}_{k}\right) . B-E Derivation of \mathbb{E}\{|{\mu}_{k}^{\textit{\rm UE}}(t)|^{2}\} Based on ( IV-A ), we can formulate \mathbb{E}\{|{\mu}_{k}^{\textit{\rm UE}}(t)|^{2}\}=(1-\gamma_{R})\rho\sum_{m=1}^{M}\sum_{i=1}^{K}\eta_{mi}\left[\gamma_{T}\mathcal{I}_{3}+(1-\gamma_{T})\mathcal{I}_{4}\right] with \mathcal{I}_{3}=\mathbb{E}\left\{|\boldsymbol{h}_{mk}^{H}(t)\hat{\boldsymbol{h}}_{mi}(0)|^{2}\right\} and \mathcal{I}_{4}=\mathbb{E}\left\{\left\|\hat{\boldsymbol{h}}_{mi}(0)\odot\boldsymbol{h}_{mk}(t)\right\|^{2}\right\} . When i=k , we have \mathcal{I}_{3}=\mathbb{E}\left\{\left|\hat{\boldsymbol{h}}_{mk}^{H}(t)\hat{\boldsymbol{h}}_{mk}(0)\right|^{2}\right\}+\mathbb{E}\left\{\left|\tilde{\boldsymbol{h}}_{mk}^{H}(t)\hat{\boldsymbol{h}}_{mk}(0)\right|^{2}\right\} . Moreover, we have \mathbb{E}\left\{\left|\hat{\boldsymbol{h}}_{mk}^{H}(t)\hat{\boldsymbol{h}}_{mk}(0)\right|^{2}\right\}=\mathbb{E}\left\{\left|\hat{\boldsymbol{h}}_{mk}^{H}(0)\hat{\boldsymbol{h}}_{mk}(0)\right|^{2}\right\}=\left|\tr(\boldsymbol{\Omega}_{mk})\right|^{2}+\tr(\boldsymbol{\Omega}_{mk}\boldsymbol{\Omega}_{mk}) by virtue of Lemma 2, and we can also obtain \mathbb{E}\left\{\left|\tilde{\boldsymbol{h}}_{mk}^{H}(t)\hat{\boldsymbol{h}}_{mk}(0)\right|^{2}\right\}=\mathbb{E}\left\{\left|\tilde{\boldsymbol{h}}_{mk}^{H}(0)\hat{\boldsymbol{h}}_{mk}(0)\right|^{2}\right\}=\tr[(\boldsymbol{R}_{mk}-\boldsymbol{\Omega}_{mk})\boldsymbol{\Omega}_{mk}] . Hence, under the scenario of i=k , we can obtain \mathcal{I}_{3}=\left|\tr(\boldsymbol{\Omega}_{mk})\right|^{2}+\tr(\boldsymbol{R}_{mk}\boldsymbol{\Omega}_{mk}) . Based on ( B-C ), we have \mathcal{I}_{3}=\tr\left(\boldsymbol{R}_{mk}\boldsymbol{\Omega}_{mi}\right) when i\notin\mathcal{P}_{k} . With the help of the results of \mathcal{I}_{1} and \mathcal{I}_{2} , when i\in\mathcal{P}_{k}\setminus\{k\} we can obtain \mathcal{I}_{3}=\mathcal{I}_{1}+\mathcal{I}_{2}=\gamma_{T}^{2}\gamma_{R}^{2}p^{2}\tau_{p}^{2}\left|\tr(\boldsymbol{R}_{mi}\boldsymbol{\Psi}^{-1}_{mk}\boldsymbol{R}_{mk})\right|^{2}+\tr\left(\boldsymbol{R}_{mk}\boldsymbol{\Omega}_{mi}\right) . Then, we can have \mathcal{I}_{4}=\mathbb{E}\left\{\left\|\hat{\boldsymbol{h}}_{mi}(0)\odot\hat{\boldsymbol{h}}_{mk}(t)\right\|^{2}\right\}+\mathbb{E}\left\{\left\|\hat{\boldsymbol{h}}_{mi}(0)\odot\tilde{\boldsymbol{h}}_{mk}(t)\right\|^{2}\right\} . When i=k , the first term of \mathcal{I}_{4} can be derived as \sum_{l=1}^{L}\mathbb{E}\left\{\left|\hat{{h}}^{(l)}_{mk}(0)\right|^{4}\right\}\overset{(a)}{=}2\sum_{l=1}^{L}\left(\Omega_{mk}^{(l,l)}\right)^{2}=2\tr\left[\left(\diag(\boldsymbol{\Omega}_{mk})\right)^{2}\right] , where (a) is obtained with the help of Lemma 2. Moreover, the second term of \mathcal{I}_{4} can be calculated as \sum_{l=1}^{L}\Omega_{mk}^{(l,l)}C_{mk}^{(l,l)}=\tr[\diag(\boldsymbol{\Omega}_{mk})\diag(\boldsymbol{R}_{mk}-\boldsymbol{\Omega}_{mk})] . Upon combing the above derived results, we can obtain \mathcal{I}_{4}=\tr[\diag(\boldsymbol{\Omega}_{mk})\diag(\boldsymbol{\Gamma}_{mk})] , where \boldsymbol{\Gamma}_{mk}=\boldsymbol{R}_{mk}+\boldsymbol{\Omega}_{mk} . Similarly, when i\neq k , we can readily show that \mathcal{I}_{4}=\tr[\diag(\boldsymbol{\Omega}_{mi})\diag(\boldsymbol{R}_{mk})] . Based on the above results of \mathcal{I}_{3} and \mathcal{I}_{4} after some algebraic manipulations, we can have \mathbb{E}\{|{\mu}_{k}^{\textit{\rm UE}}(t)|^{2}\} as \displaystyle\bar{\gamma}\rho\left[\sum_{i=1}^{K}\tr(\boldsymbol{\eta}_{i}\boldsymbol{R}_{k}\boldsymbol{\Omega}_{i})+\tr(\boldsymbol{P}_{k}\boldsymbol{A}_{k})+\sum_{i\in\mathcal{P}_{k}\setminus\{k\}}\tr(\boldsymbol{P}_{k}\boldsymbol{B}_{ik})\right] \displaystyle+ \displaystyle\tilde{\gamma}\rho\left[\sum_{i=1}^{K}\tr\left(\boldsymbol{\eta}_{i}\diag(\boldsymbol{\Omega}_{i})\diag(\boldsymbol{R}_{k})\right)+\tr\left(\boldsymbol{\eta}_{k}(\diag(\boldsymbol{\Omega}_{k}))^{2}\right)\right], (32) where \bar{\gamma}=(1-\gamma_{R})\gamma_{T} and \tilde{\gamma}=(1-\gamma_{R})(1-\gamma_{T}) . Then, by combining the derived results of all the components, we can obtain the final result of D_{k}(t) as shown in ( IV-B ). Appendix C Proof of Proposition 2 Upon defining the variable set as \mathcal{S}\triangleq\{{\eta}_{mk},\varepsilon_{mk},\varkappa_{ik},q_{mk},r_{mk}\} , the objective function of ( 19a ) can be formulated as \displaystyle f(\mathcal{S})\triangleq\min_{k}\frac{{\gamma_{R}\gamma_{T}\rho e^{-\delta^{2}t}}\left[\sum_{m=1}^{M}{z_{mk}}\tr(\boldsymbol{\Omega}_{mk})\right]^{2}}{\gamma_{R}\gamma_{T}\rho e^{-\varrho^{2}_{\phi}t}\upsilon_{\psi}t\left[\sum_{m=1}^{M}{z_{mk}}\tr(\boldsymbol{\Omega}_{mk})\right]^{2}+\mathcal{I}}, (33) where \upsilon_{\psi}t=1-e^{-\varrho^{2}_{\psi}t} , and we have \mathcal{I} shown in ( C ) at the top of next page. Given \forall u\in\mathbb{R}^{+} , the upper-level set associated with f(\mathcal{S}) that belongs to \mathcal{S} can be formulated as ( C ) which is shown at the top of next page, where we have \boldsymbol{v}_{k}\triangleq[\boldsymbol{v}_{k1};\boldsymbol{v}_{k2};\boldsymbol{v}_{k3};\boldsymbol{v}_{k4};\boldsymbol{v}_{k5};\boldsymbol{v}_{k6};1] with \boldsymbol{v}_{k1}=\sqrt{\gamma_{T}\rho\left(1-\gamma_{R}e^{-\varrho^{2}_{\phi}t}\right)}(\boldsymbol{z}_{k}\odot\boldsymbol{\lambda}_{k1}) , \boldsymbol{v}_{k2}=\sqrt{\tilde{\gamma}\rho}(\boldsymbol{z}_{k}\odot\boldsymbol{\lambda}_{k2}) , \boldsymbol{v}_{k3}=\sqrt{\gamma_{T}\rho}\boldsymbol{r}_{k} , \boldsymbol{v}_{k4}=\sqrt{\gamma_{T}\rho\left(1-\gamma_{R}e^{-\varrho^{2}_{\phi}t}\right)}\boldsymbol{\varepsilon}_{k} , \boldsymbol{v}_{k5}=\sqrt{\gamma_{T}\gamma_{R}\rho e^{-\varrho^{2}_{\phi}t}}\boldsymbol{\varkappa}_{k} and \boldsymbol{v}_{k6}=\sqrt{(1-\gamma_{T})\rho}\boldsymbol{q}_{k} . Furthermore, we have \boldsymbol{z}_{k}=[z_{1k},\ldots,z_{Mk}]^{T} , \boldsymbol{\lambda}_{k1}=\left[\left|\tr(\boldsymbol{\Omega}_{1k})\right|,\ldots,\left|\tr(\boldsymbol{\Omega}_{Mk})\right|\right]^{T} , \boldsymbol{\lambda}_{k2}=[\lambda_{1k2},\ldots,\lambda_{Mk2}]^{T} with \lambda_{mk2}=\sqrt{\tr\left(\diag(\boldsymbol{\Omega}_{mk})^{2}\right)} for m=1,\ldots,M , \boldsymbol{r}_{k}=[r_{1k},\ldots,r_{Mk}] , \boldsymbol{\varepsilon}_{k}=[\varepsilon_{1k},\ldots,\varepsilon_{Mk}]^{T} , \boldsymbol{\varkappa}_{k}=\left\{{\varkappa}_{ik}|{i\in\mathcal{P}_{k}\setminus\{k\}},\forall i\right\} and \boldsymbol{q}_{k}=[q_{1k},\ldots,q_{Mk}]^{T} . It can be readily shown that the upper-level set U(f,u) is in a second-order cone (SOC) form, hence it is a convex set. Consequently, f(\mathcal{S}) and the optimization problem of ( 19 ) are all quasi-concave, since the constraint set of ( 19 ) is convex. \displaystyle\mathcal{I} \displaystyle=\gamma_{T}\rho\left(1-\gamma_{R}e^{-\varrho^{2}_{\phi}t}\right)\sum_{m=1}^{M}{z_{mk}^{2}}\left|\tr(\boldsymbol{\Omega}_{mk})\right|^{2}+\tilde{\gamma}\rho\sum_{m=1}^{M}{z_{mk}^{2}}\tr\left(\diag(\boldsymbol{\Omega}_{mk})^{2}\right)+\gamma_{T}\rho\sum_{m=1}^{M}r^{2}_{mk} \displaystyle+\gamma_{T}\rho\left(1-\gamma_{R}e^{-\varrho^{2}_{\phi}t}\right)\sum_{m=1}^{M}\varepsilon_{mk}^{2}+\gamma_{T}\gamma_{R}\rho e^{-\varrho^{2}_{\phi}t}\sum_{i\in\mathcal{P}_{k}\setminus\{k\}}\varkappa_{ik}^{2}+(1-\gamma_{T})\rho\sum_{m=1}^{M}q^{2}_{mk}+1. (34) \displaystyle U(f,u) \displaystyle=\{\mathcal{S}:f(\mathcal{S})>u\}=\left\{\mathcal{S}:\frac{{\gamma_{R}\gamma_{T}\rho e^{-\delta^{2}t}}\left[\sum_{m=1}^{M}{z_{mk}}\tr(\boldsymbol{\Omega}_{mk})\right]^{2}}{\gamma_{R}\gamma_{T}\rho e^{-\varrho^{2}_{\phi}t}\left(1-e^{-\varrho^{2}_{\psi}t}\right)\left[\sum_{m=1}^{M}\sqrt{\eta_{mk}}\tr(\boldsymbol{\Omega}_{mk})\right]^{2}+\mathcal{I}}\geq u\right\} \displaystyle=\left\{\mathcal{S}:||\boldsymbol{v}_{k}||\leq\sqrt{\left[\left(\frac{1}{u}+1\right)e^{-\varrho_{\psi}^{2}t}-1\right]\gamma_{R}\gamma_{T}\rho e^{-\varrho^{2}_{\phi}t}}\sum_{m=1}^{M}{z_{mk}}\tr(\boldsymbol{\Omega}_{mk})\right\}, (35) *