This study presents calculations of a multiparticle system within the framework of fractional quantum mechanics. We specifically explore the energy levels of a bosonic system with repulsive interactions confined in a hard-wall box. The impacts of fractional parameters on the system’s thermodynamic properties are meticulously analyzed. Furthermore, utilizing this model, we construct a quantum Otto cycle and discover that the system exhibits Bose–Fermi duality under varying fractional parameters. Intriguingly, the introduction of fractional parameters enables to optimize the performance of the quantum heat engine, edging it closer to the Carnot efficiency.