Conventional wireless techniques are becoming inadequate for beyond-5G networks due to latency and bandwidth considerations. To improve the error performance of communication systems, we propose physical layer network coding (PNC) in an intelligent reflecting surface (IRS)-assisted environment. We consider IRS-aided butterfly network, where algorithm obtaining optimal IRS phases. Analytic expre...