Ad hoc networks of quantum-enabled IoT devices require efficient resource allocation techniques to optimize energy consumption and data transmission rates. This paper proposes an enhanced version of quantum-inspired hybrid particle swarm optimization called the Improved quantum-inspired hybrid particle swarm optimization (IQHPSO) algorithm for resource allocation in ad hoc networks of quantum-enabled IoT devices. The enhanced QHPSO algorithm incorporates a novel innovation technique based on adaptive parameter tuning and a global best selection strategy that further improves the optimization performance of the QHPSO approach. We evaluate the proposed approach through simulations and compare its performance with the original QHPSO algorithm and other state-of-the-art optimization techniques regarding objective functions such as energy consumption, data transmission rate, and network lifetime. Our results show that the IQHPSO algorithm outperforms the original QHPSO algorithm by 10-15% in energy consumption, 5-10% in data transmission rate, and 3-7% in network lifetime. Furthermore, our results demonstrate that the IQHPSO algorithm outperforms other state-of-the-art optimization techniques regarding these objective functions. We also discuss the practical implementation of the IQHPSO algorithm in a real-world ad hoc network of quantum-enabled IoT devices. This research contributes to the ongoing development of quantum-inspired optimization techniques for wireless networking applications. Furthermore, it demonstrates the benefits of incorporating innovative approaches, such as adaptive parameter tuning and global best selection strategy, to improve the performance of existing optimization algorithms.