 This paper proposes a new method for encrypting quantum images by combining quantum DNA codec and quantum Hilbert scrambling. Quantum DNA codec is used to encode and decode pixel color information using its special biological properties, while quantum Hilbert scrambling is used to scramble the image position data to double the encryption effect. To further enhance the encryption effect, the altered picture is employed as a key matrix in a quantum XOR operation with the original image. This inverse transformation of the encryption procedure can be used to decrypt the picture since all the quantum operations employed in this research are reversible. Experimental simulations and results show that the proposed two-dimensional optical image encryption technique provides higher security and robustness than previous algorithms and can withstand statistical analysis and differential attacks. This article was authored by Jia Gao, Inua Wang, Xiaoyang Song, and others.