NEQRX: Efficient Quantum Image Encryption with Reduced Circuit Complexity

Rakesh Saini, Bikash K. Behera, Hussein Abulkasim, Prayag TiwariarXiv 2022 · DOI

Abstract

Cryptography plays an important role in ensuring data security and authentication within information processing systems. As the prevalence of digital imagery continues to grow, safeguarding this form of data becomes increasingly crucial. However, existing security protocols, reliant on complex mathematical models, exhibit vulnerabilities in effectively protecting information from both internal and external threats. Moreover, the forthcoming advent of quantum computing poses a significant challenge, as it could decrypt data encrypted by classical methods. In this paper, we propose an efficient implementation scheme for a quantum image encryption algorithm combining the generalized affine transform (GAT) and logistic map. We evaluated developed quantum circuits using Qiskit and quantum devices to validate the encryption technique. Through comprehensive performance analysis, we have demonstrated the efficiency of the chosen encryption algorithm across various criteria. Furthermore, we introduce a hybrid methodology aimed at mitigating circuit complexity and reducing quantum cost. Leveraging the Espresso algorithm and incorporating an ancilla qubit into the circuitry, we achieve a remarkable 50% reduction in cost while maintaining security and efficiency. Finally, we conducted robustness and security analyses to assess the resilience of our encryption method against diverse noise attacks. The results confirm that our proposed quantum image encryption technique provides a secure solution and offers precise and measurable quantum image processing capabilities.

Introduction

As we edge closer to the era of functional quantum computers, classical cryptographic standards like AES and RSA face an existential threat. Quantum algorithms, such as Shor’s, can theoretically crack the mathematical foundations of today’s secure communications. This has sparked a race to develop "quantum-native" encryption.

However, processing images on a quantum computer is notoriously resource-intensive. Representing a simple grayscale image requires complex circuits with high quantum cost (the number of elementary gates) and significant circuit depth. On today’s Noisy Intermediate-Scale Quantum (NISQ) devices, long, complex circuits lead to decoherence and errors, rendering results useless. The NEQRX framework addresses these challenges by creating a robust encryption scheme optimized for limited quantum hardware.

Proposed Methodology

The NEQRX framework utilizes an optimized version of the Novel Enhanced Quantum Representation (NEQR). The approach involves three main stages:

1. Image Representation

The system uses $2n + 8$ qubits to store an image, where $2n$ qubits represent the $(X, Y)$ coordinates and 8 qubits store the grayscale intensity (0–255).

2. Encryption Strategy

The encryption process employs a dual-layered approach:

  • Diffusion (Logistic Map): A chaotic Logistic Map (LM) is used to alter pixel values. Chaotic systems are highly sensitive to initial conditions, ensuring that even a minor change in the encryption key results in a completely different encrypted image.
  • Permutation (Generalized Affine Transform - GAT): The GAT scrambles pixel positions, effectively shuffling the image until the original structure is unrecognizable.
Algorithm 2 for encrypting pixel positions using GAT and its basic quantum components.

The quantum implementation of the GAT relies on modular arithmetic blocks to perform the coordinate transformations efficiently.

Quantum circuit implementation of the Generalized Affine Transform using modular adders.

Optimization and Complexity Reduction

The core contribution of this work is the reduction of circuit complexity. To minimize the number of multi-controlled Toffoli gates required for NEQR, the authors applied the Espresso algorithm, a classical logic minimization tool. Furthermore, complexity was reduced by introducing an ancilla qubit—an extra "helper" qubit—to store intermediate gate information. This strategy allows for the replacement of bulky multi-control gates with simpler CNOT and Toffoli gates, leading to a 50% reduction in quantum cost.

Experimental Results and Analysis

The study primarily used the classic Lena image (64x64 and 128x128 grayscale) for evaluation. Simulations were performed using the Qiskit Qasm simulator and validated against IBM quantum hardware.

  • Efficiency Gains: For a sample $2 \times 2$ image, the quantum cost dropped from 234 in standard NEQR to 91 in the optimized NEQRX.
  • Security and Fidelity: The Peak Signal-to-Noise Ratio (PSNR) for decrypted images remained around 34.15 dB. Differential analysis showed a 100% change in encrypted output for a single-pixel change in the original image (NPCR), demonstrating a strong "avalanche effect."
  • Noise Robustness: The system was tested against various noise channels (e.g., bit-flip, phase-damping). While noise affected fidelity, the system maintained recognizable image quality under moderate noise levels.
  • Correlation: The correlation coefficient between original and encrypted images was near zero, indicating successful removal of discernible patterns.

Conclusion

While the NEQRX scheme shows great promise, simulation scaling remains a hurdle due to the exponential growth of density matrices for larger images. Future work will focus on implementing the scheme on larger images as hardware improves and exploring other quantum image representation protocols, such as NCQI for color images, using similar optimization techniques.

Summary updated

BibTeX
@misc{saini2022neqrx,
  author = {Rakesh Saini and Bikash K. Behera and Hussein Abulkasim and Prayag Tiwari},
  title = {{NEQRX: Efficient Quantum Image Encryption with Reduced Circuit Complexity}},
  year = {2022},
  eprint = {2204.07996},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.07996},
}
Figure