This study investigates trellis shaping (TS) for mitigating nonlinear impairments in photonic terahertz (THz) communication systems. A parallel shaping architecture integrating hierarchical modulation (HM) with adjustable power allocation is proposed. The scheme applies TS to structure the data stream hierarchically and employs superposition coding (SC) to generate non-uniformly distributed TS-16QAM signals, enhancing transmission performance. Experimental validation over a 5-m link at 320 GHz d