The error correction model’s main purpose in heavy hexagonal quantum codes is to improve their reliability for quantum computing applications. Existing challenges include finding the optimal decoder for quantum error correction in heavy hexagonal codes. This research propels the frontier of quantum error correction, with a specific focus on tailoring topological quantum error-correcting codes for the unique challenges posed by superconducting qubits in quantum computers. In response, this research harnesses the power of deep learning, presenting a Humming sparrow optimization based self-adaptive deep CNN (HSO-based SADCNN) model designed for heavy hexagonal codes. This decoder incorporates a Self-adaptive Deep CNN (SADCNN) Noise Correction Module, a sophisticated component to refine error correction. The proposed decoder’s efficacy is rigorously evaluated across varying code distances (three, five, and seven) using the Humming Sparrow Optimization (HSO) algorithm. HSO, intricately designed to fine-tune the SADCNN decoder, significantly enhances its error correction capabilities for heavy hexagonal quantum codes. The algorithm seamlessly integrates advantageous characteristics of herding and tracing from Humming Bird optimization and Sparrow search optimization, representing a critical stride in advancing the reliability of quantum computing applications, particularly within the intricate domain of heavy hexagonal quantum codes. Based upon the achievements, the Training Percentage (TP) 90 metrics demonstrate significant progress, boasting a commendable accuracy of $$97.35\%$$
97.35
%
, coupled with reduced logical error probability and a diminished bit error rate, marked at 5.51 and 3.72, respectively.