Research Article

Obtaining the Negative of an Image Using Quantum Programming with Python/Qiskit

Volume: 3 Number: 2 November 27, 2026

Obtaining the Negative of an Image Using Quantum Programming with Python/Qiskit

Abstract

This study investigates the implementation of grayscale color inversion (negation), a fundamental image processing operation in digital images, using quantum computing principles. While the conversion of 8-bit grayscale (0–255) pixels to their opposite values is performed using a logical NOT operation in classical computing, this operation is modeled in quantum computing using a Pauli-X gate defined on qubits. An implementation is developed using the Qiskit 2.x library to preserve the original resolution of the images and manage simulation complexity with a grayscale value set (2⁸ = 256 tones). The study demonstrates the mathematical equivalence of basic quantum gate operations with classical image processing operators, while also highlighting the limitations of quantum simulations on classical hardware and the necessity of superposition-based image representation models (NEQR/FRQI) required for true quantum advantage. In conclusion, this hybrid approach provides a practical basis for the development and validation of more complex quantum computer vision algorithms before the widespread availability of fault-tolerant physical quantum hardware. In this study, each pixel value of the image was sequentially sent to a quantum circuit. In this quantum circuit, the incoming grayscale level was processed using the 256 - incoming_value operation, and a negative of the image was created by forming a matrix again. A QLUT table can be created to perform this task in a shorter time.

Keywords

References

  1. Farooq, U., Singh, P., and Kumar, A. (2025). A systematic review of quantum image processing: Representation, applications and future perspectives. Computer Science Review, 57, 100763. Javadi-Abhari, A., Treinish, M., Krsulich, K., Wood, C. J., Lishman, J., Gacon, J., Martiel, S., Nation, P. D., Bishop, L. S., Cross, A. W., Johnson, B. R., and Gambetta, J. M. (2024). Quantum computing with Qiskit. arXiv:2405.08810.
  2. Le, P. Q., Dong, F., and Hirota, K. (2011). A flexible representation of quantum images for polynomial preparation, image compression, and processing operations. Quantum Information Processing, 10(1), 63-84.
  3. Lisnichenko, M., and Protasov, S. (2023). Quantum image representation: A review. Quantum Machine Intelligence, 5(2).
  4. Nielsen, M. A., and Chuang, I. L. (2010). Quantum Computation and Quantum Information. Cambridge, U.K.: Cambridge University Press.
  5. Sahin, E., and Yilmaz, I. (2018). QRMW: Quantum representation of multi wavelength images. Turkish Journal of Electrical Engineering & Computer Sciences, 26, 768-779.
  6. Su, J., Guo, X., Liu, C., Lu, S., and Li, L. (2021). An improved novel quantum image representation and its experimental test on IBM quantum experience. Scientific Reports, 11, 13879.
  7. Venegas-Andraca, S. E., and Bose, S. (2003). Storing, processing, and retrieving an image using quantum mechanics. In Proc. SPIE Conf. Quantum Information and Computation, 137-147.
  8. Yan, F., Iliyasu, A. M., and Venegas-Andraca, S. E. (2016). A survey of quantum image representations. Quantum Information Processing, 15(1), 1-35.

Details

Primary Language

English

Subjects

Lasers and Quantum Electronics

Journal Section

Research Article

Authors

Hasan Suay Tanin *
GAZİANTEP ÜNİVERSİTESİ
0009-0006-1330-5577
Türkiye

Davut Kesen
GAZIANTEP UNIVERSITY
0000-0002-2096-462X
Türkiye

Memet Şahin
GAZIANTEP UNIVERSITY
0000-0002-1066-1641
Türkiye

Publication Date

November 27, 2026

Submission Date

August 3, 2026

Acceptance Date

October 4, 2026

Published in Issue

Year 2026 Volume: 3 Number: 2

APA
Tanin, H. S., Kesen, D., & Şahin, M. (2026). Obtaining the Negative of an Image Using Quantum Programming with Python/Qiskit. Natural Sciences and Engineering Bulletin, 3(2), 115-122. https://doi.org/10.66754/nase.2010397
AMA
1.Tanin HS, Kesen D, Şahin M. Obtaining the Negative of an Image Using Quantum Programming with Python/Qiskit. NASE. 2026;3(2):115-122. doi:10.66754/nase.2010397
Chicago
Tanin, Hasan Suay, Davut Kesen, and Memet Şahin. 2026. “Obtaining the Negative of an Image Using Quantum Programming With Python Qiskit”. Natural Sciences and Engineering Bulletin 3 (2): 115-22. https://doi.org/10.66754/nase.2010397.
EndNote
Tanin HS, Kesen D, Şahin M (November 27, 2026) Obtaining the Negative of an Image Using Quantum Programming with Python/Qiskit. Natural Sciences and Engineering Bulletin 3 2 115–122.
IEEE
[1]H. S. Tanin, D. Kesen, and M. Şahin, “Obtaining the Negative of an Image Using Quantum Programming with Python/Qiskit”, NASE, vol. 3, no. 2, pp. 115–122, Nov. 2026, doi: 10.66754/nase.2010397.
ISNAD
Tanin, Hasan Suay - Kesen, Davut - Şahin, Memet. “Obtaining the Negative of an Image Using Quantum Programming With Python Qiskit”. Natural Sciences and Engineering Bulletin 3/2 (November 27, 2026): 115-122. https://doi.org/10.66754/nase.2010397.
JAMA
1.Tanin HS, Kesen D, Şahin M. Obtaining the Negative of an Image Using Quantum Programming with Python/Qiskit. NASE. 2026;3:115–122.
MLA
Tanin, Hasan Suay, et al. “Obtaining the Negative of an Image Using Quantum Programming With Python Qiskit”. Natural Sciences and Engineering Bulletin, vol. 3, no. 2, Nov. 2026, pp. 115-22, doi:10.66754/nase.2010397.
Vancouver
1.Hasan Suay Tanin, Davut Kesen, Memet Şahin. Obtaining the Negative of an Image Using Quantum Programming with Python/Qiskit. NASE. 2026 Nov. 27;3(2):115-22. doi:10.66754/nase.2010397