Terahertz (THz) communication has emerged as one of the key technologies for sixth-generation (6G) wireless networks.